Replace hyphen with underline to make generated macro names more consistent.
This commit is contained in:
parent
f40cfa2f42
commit
e362e2b99e
1 changed files with 2 additions and 2 deletions
|
@ -40,8 +40,8 @@ ifeq (${wildcard $(OBJECTDIR)},)
|
|||
DUMMY := ${shell mkdir $(OBJECTDIR)}
|
||||
endif
|
||||
|
||||
LOWERCASE = abcdefghijklmnopqrstuvwxyz
|
||||
UPPERCASE = ABCDEFGHIJKLMNOPQRSTUVWXYZ
|
||||
LOWERCASE = -abcdefghijklmnopqrstuvwxyz
|
||||
UPPERCASE = _ABCDEFGHIJKLMNOPQRSTUVWXYZ
|
||||
TARGET_UPPERCASE := ${shell echo $(TARGET) | sed 'y!$(LOWERCASE)!$(UPPERCASE)!'}
|
||||
CFLAGS += -DCONTIKI_TARGET_$(TARGET_UPPERCASE)
|
||||
|
||||
|
|
Loading…
Reference in a new issue