diff options
author | Pete Johanson <peter@peterjohanson.com> | 2020-04-13 15:55:27 +0000 |
---|---|---|
committer | skullydazed <skullydazed@users.noreply.github.com> | 2020-04-13 10:48:27 -0700 |
commit | 06b571aa53940b278e4359136e4b7d78cf4594f9 (patch) | |
tree | cad39c9ba478bfb4d825f4066a5bf078d700c1c2 /lib/python/qmk | |
parent | 355b693e4e0d801ffc374cfc0e7a450f1d490310 (diff) | |
download | qmk_firmware-06b571aa53940b278e4359136e4b7d78cf4594f9.tar.gz qmk_firmware-06b571aa53940b278e4359136e4b7d78cf4594f9.zip |
CLI: Invoke gmake on FreeBSD when using `qmk compile`.
* Current makefiles aren't portable, so invoke gmake on FreeBSD.
Diffstat (limited to 'lib/python/qmk')
-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): |