From 06b571aa53940b278e4359136e4b7d78cf4594f9 Mon Sep 17 00:00:00 2001 From: Pete Johanson Date: Mon, 13 Apr 2020 15:55:27 +0000 Subject: [PATCH] CLI: Invoke gmake on FreeBSD when using `qmk compile`. * Current makefiles aren't portable, so invoke gmake on FreeBSD. --- lib/python/qmk/commands.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/lib/python/qmk/commands.py b/lib/python/qmk/commands.py index 3424cdf085..1fdca19437 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):