diff options
| author | Glenn Ruben Bakke <glennbakke@gmail.com> | 2018-02-23 23:36:58 +0100 |
|---|---|---|
| committer | Damien George <damien.p.george@gmail.com> | 2018-07-18 17:12:25 +1000 |
| commit | c486127378e3eb977f45f335eafedd908cb2cf0c (patch) | |
| tree | 0b2c3426e18887c3e9305bf30c6d835b994dcee0 | |
| parent | 4231d4311fa5983b03b821631299e415f9169881 (diff) | |
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
| -rw-r--r-- | ports/nrf/Makefile | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/ports/nrf/Makefile b/ports/nrf/Makefile index cffbbefe1..99dd60e82 100644 --- a/ports/nrf/Makefile +++ b/ports/nrf/Makefile @@ -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 |
