diff options
author | Pete Johanson <peter@peterjohanson.com> | 2020-04-13 15:55:27 +0000 |
---|---|---|
committer | Florian Didron <fdidron@users.noreply.github.com> | 2020-06-12 17:00:27 +0900 |
commit | 84562a44652bd736ddb58e929b37bdca63e2237f (patch) | |
tree | a5883667ed0c622cf7649f84eb13da8933d88d30 | |
parent | 37ee7ea539435abe04c2294f57c48ef50ab5b435 (diff) |
CLI: Invoke gmake on FreeBSD when using `qmk compile`.
* Current makefiles aren't portable, so invoke gmake on FreeBSD.
-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 e6321ff843..a251d6e70f 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): 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(configurator_filename, bootloader=None): |