Make sure CONTIKI_BOARD_xyz is defined
This commit is contained in:
parent
3c7d9d3ad2
commit
db18b43f0f
@ -46,11 +46,6 @@ UPPERCASE = _ABCDEFGHIJKLMNOPQRSTUVWXYZ_
|
|||||||
TARGET_UPPERCASE := ${strip ${shell echo $(TARGET) | sed y!$(LOWERCASE)!$(UPPERCASE)!}}
|
TARGET_UPPERCASE := ${strip ${shell echo $(TARGET) | sed y!$(LOWERCASE)!$(UPPERCASE)!}}
|
||||||
CFLAGS += -DCONTIKI=1 -DCONTIKI_TARGET_$(TARGET_UPPERCASE)=1
|
CFLAGS += -DCONTIKI=1 -DCONTIKI_TARGET_$(TARGET_UPPERCASE)=1
|
||||||
CFLAGS += -DCONTIKI_TARGET_STRING=\"$(TARGET)\"
|
CFLAGS += -DCONTIKI_TARGET_STRING=\"$(TARGET)\"
|
||||||
ifneq ($(BOARD),)
|
|
||||||
TARGET_BOARD_UPPERCASE := ${strip ${shell echo $(BOARD) | sed y!$(LOWERCASE)!$(UPPERCASE)!}}
|
|
||||||
CFLAGS += -DCONTIKI_BOARD_$(TARGET_BOARD_UPPERCASE)=1
|
|
||||||
CFLAGS += -DCONTIKI_BOARD_STRING=\"$(BOARD)\"
|
|
||||||
endif
|
|
||||||
|
|
||||||
CFLAGS += -Wno-unused-const-variable
|
CFLAGS += -Wno-unused-const-variable
|
||||||
|
|
||||||
@ -129,6 +124,12 @@ endif # $(BOARD) not empty
|
|||||||
|
|
||||||
PLATFORM_ACTION ?= build
|
PLATFORM_ACTION ?= build
|
||||||
|
|
||||||
|
ifneq ($(BOARD),)
|
||||||
|
TARGET_BOARD_UPPERCASE := ${strip ${shell echo $(BOARD) | sed y!$(LOWERCASE)!$(UPPERCASE)!}}
|
||||||
|
CFLAGS += -DCONTIKI_BOARD_$(TARGET_BOARD_UPPERCASE)=1
|
||||||
|
CFLAGS += -DCONTIKI_BOARD_STRING=\"$(BOARD)\"
|
||||||
|
endif
|
||||||
|
|
||||||
# Configure MAC layer
|
# Configure MAC layer
|
||||||
|
|
||||||
# The different options
|
# The different options
|
||||||
|
Loading…
Reference in New Issue
Block a user