Skip to content

Commit

Permalink
CLI: Invoke gmake on FreeBSD when using qmk compile.
Browse files Browse the repository at this point in the history
* Current makefiles aren't portable, so invoke gmake on FreeBSD.
  • Loading branch information
petejohanson authored and jakobaa committed Jul 7, 2020
1 parent db59329 commit dff2c2a
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion lib/python/qmk/commands.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,16 @@ def create_make_command(keyboard, keymap, target=None):
A command that can be run to make the specified keyboard and keymap
"""
make_args = [keyboard, keymap]
make_cmd = 'make'

platform_id = platform.platform().lower()
if 'freebsd' in platform_id:
make_cmd = 'gmake'

if target:
make_args.append(target)

return ['make', ':'.join(make_args)]
return [make_cmd, ':'.join(make_args)]


def compile_configurator_json(user_keymap, bootloader=None):
Expand Down

0 comments on commit dff2c2a

Please sign in to comment.