mirror of
https://github.com/micropython/micropython.git
synced 2026-01-05 03:30:14 +01:00
nrf: Improve include of boardmodules.mk
Removing shell commands for checking if boardmodules.mk exists under boards/<BOARD>/modules folder before including it. This patch does the equivalent to previous test without using shell commands. Hence, including the .mk if it exists. Reference: https://stackoverflow.com/questions/8346118/check-if-a-makefile-exists-before-including-it
This commit is contained in:
committed by
Damien George
parent
4231d4311f
commit
c486127378
@@ -26,9 +26,7 @@ else
|
||||
include drivers/bluetooth/bluetooth_common.mk
|
||||
endif
|
||||
|
||||
ifeq ($(shell test -e boards/$(BOARD)/modules/boardmodules.mk && echo -n yes),yes)
|
||||
include boards/$(BOARD)/modules/boardmodules.mk
|
||||
endif
|
||||
-include boards/$(BOARD)/modules/boardmodules.mk
|
||||
|
||||
# qstr definitions (must come before including py.mk)
|
||||
QSTR_DEFS = qstrdefsport.h $(BUILD)/pins_qstr.h
|
||||
|
||||
Reference in New Issue
Block a user