Skip to content

Commit 2ec3f4e

Browse files
authored
refactor(Build): Check if MAXIM_PATH is empty before including board.mk (#1356)
1 parent 3e9349c commit 2ec3f4e

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

Libraries/libs.mk

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,12 @@ PROJ_CFLAGS += -DLIB_BOARD
4545
# in this case we want to avoid building with mismatched BSPs.
4646
export BOARD
4747
export BSP_SEARCH_DIR
48+
ifeq "$(MAXIM_PATH)" ""
49+
$(warning Warning: MAXIM_PATH is not set! Unable to find the MiscDrivers directory.)
50+
else
4851
include $(BOARD_DIR)/board.mk
52+
endif
53+
4954
endif
5055
# ************************
5156

0 commit comments

Comments
 (0)