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:
Glenn Ruben Bakke 2018-02-23 23:36:58 +01:00 committed by Damien George
parent 4231d4311f
commit c486127378
1 changed files with 1 additions and 3 deletions

View File

@ -26,9 +26,7 @@ else
include drivers/bluetooth/bluetooth_common.mk include drivers/bluetooth/bluetooth_common.mk
endif endif
ifeq ($(shell test -e boards/$(BOARD)/modules/boardmodules.mk && echo -n yes),yes) -include boards/$(BOARD)/modules/boardmodules.mk
include boards/$(BOARD)/modules/boardmodules.mk
endif
# qstr definitions (must come before including py.mk) # qstr definitions (must come before including py.mk)
QSTR_DEFS = qstrdefsport.h $(BUILD)/pins_qstr.h QSTR_DEFS = qstrdefsport.h $(BUILD)/pins_qstr.h