mirror of
https://github.com/oliverschmidt/contiki.git
synced 2025-03-11 07:29:48 +00:00
Replace hyphen with underline to make generated macro names more consistent.
This commit is contained in:
parent
f40cfa2f42
commit
e362e2b99e
@ -40,8 +40,8 @@ ifeq (${wildcard $(OBJECTDIR)},)
|
|||||||
DUMMY := ${shell mkdir $(OBJECTDIR)}
|
DUMMY := ${shell mkdir $(OBJECTDIR)}
|
||||||
endif
|
endif
|
||||||
|
|
||||||
LOWERCASE = abcdefghijklmnopqrstuvwxyz
|
LOWERCASE = -abcdefghijklmnopqrstuvwxyz
|
||||||
UPPERCASE = ABCDEFGHIJKLMNOPQRSTUVWXYZ
|
UPPERCASE = _ABCDEFGHIJKLMNOPQRSTUVWXYZ
|
||||||
TARGET_UPPERCASE := ${shell echo $(TARGET) | sed 'y!$(LOWERCASE)!$(UPPERCASE)!'}
|
TARGET_UPPERCASE := ${shell echo $(TARGET) | sed 'y!$(LOWERCASE)!$(UPPERCASE)!'}
|
||||||
CFLAGS += -DCONTIKI_TARGET_$(TARGET_UPPERCASE)
|
CFLAGS += -DCONTIKI_TARGET_$(TARGET_UPPERCASE)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user