mirror of
https://github.com/openstenoproject/qmk
synced 2024-11-10 18:49:08 +00:00
CLI: Invoke gmake on FreeBSD when using qmk compile
.
* Current makefiles aren't portable, so invoke gmake on FreeBSD.
This commit is contained in:
parent
355b693e4e
commit
06b571aa53
1 changed files with 6 additions and 1 deletions
|
@ -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
|
A command that can be run to make the specified keyboard and keymap
|
||||||
"""
|
"""
|
||||||
make_args = [keyboard, keymap]
|
make_args = [keyboard, keymap]
|
||||||
|
make_cmd = 'make'
|
||||||
|
|
||||||
|
platform_id = platform.platform().lower()
|
||||||
|
if 'freebsd' in platform_id:
|
||||||
|
make_cmd = 'gmake'
|
||||||
|
|
||||||
if target:
|
if target:
|
||||||
make_args.append(target)
|
make_args.append(target)
|
||||||
|
|
||||||
return ['make', ':'.join(make_args)]
|
return [make_cmd, ':'.join(make_args)]
|
||||||
|
|
||||||
|
|
||||||
def compile_configurator_json(user_keymap, bootloader=None):
|
def compile_configurator_json(user_keymap, bootloader=None):
|
||||||
|
|
Loading…
Reference in a new issue