diff options
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/python/qmk/commands.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/lib/python/qmk/commands.py b/lib/python/qmk/commands.py index 3424cdf08..1fdca1943 100644 --- a/lib/python/qmk/commands.py +++ b/lib/python/qmk/commands.py | |||
| @@ -28,11 +28,16 @@ def create_make_command(keyboard, keymap, target=None): | |||
| 28 | A command that can be run to make the specified keyboard and keymap | 28 | A command that can be run to make the specified keyboard and keymap |
| 29 | """ | 29 | """ |
| 30 | make_args = [keyboard, keymap] | 30 | make_args = [keyboard, keymap] |
| 31 | make_cmd = 'make' | ||
| 32 | |||
| 33 | platform_id = platform.platform().lower() | ||
| 34 | if 'freebsd' in platform_id: | ||
| 35 | make_cmd = 'gmake' | ||
| 31 | 36 | ||
| 32 | if target: | 37 | if target: |
| 33 | make_args.append(target) | 38 | make_args.append(target) |
| 34 | 39 | ||
| 35 | return ['make', ':'.join(make_args)] | 40 | return [make_cmd, ':'.join(make_args)] |
| 36 | 41 | ||
| 37 | 42 | ||
| 38 | def compile_configurator_json(user_keymap, bootloader=None): | 43 | def compile_configurator_json(user_keymap, bootloader=None): |
