aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorPete Johanson <peter@peterjohanson.com>2020-04-13 15:55:27 +0000
committerskullydazed <skullydazed@users.noreply.github.com>2020-04-13 10:48:27 -0700
commit06b571aa53940b278e4359136e4b7d78cf4594f9 (patch)
treecad39c9ba478bfb4d825f4066a5bf078d700c1c2 /lib
parent355b693e4e0d801ffc374cfc0e7a450f1d490310 (diff)
downloadfirmware-06b571aa53940b278e4359136e4b7d78cf4594f9.tar.gz
firmware-06b571aa53940b278e4359136e4b7d78cf4594f9.tar.bz2
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')
-rw-r--r--lib/python/qmk/commands.py7
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):
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):