mirror of
https://github.com/apache/nuttx.git
synced 2026-06-06 08:36:24 +08:00
tools: replace DEFINE script to Makefile variable
In the past, predefined macros were generated by define.sh scripts Now they are generated by concatenating environment variables In this way, when executing makefile, no shell command will be executed, it will improve the speed of executing makfile Signed-off-by: yinshengkai <yinshengkai@xiaomi.com>
This commit is contained in:
@@ -38,7 +38,7 @@ ifeq ($(CONFIG_RAMLOG),y)
|
||||
CSRCS += ramlog.c
|
||||
|
||||
ifneq ($(CONFIG_RAMLOG_BUFFER_SECTION),"")
|
||||
CFLAGS += ${shell $(DEFINE) "$(CC)" RAMLOG_BUFFER_SECTION=CONFIG_RAMLOG_BUFFER_SECTION}
|
||||
CFLAGS += ${DEFINE_PREFIX}RAMLOG_BUFFER_SECTION=CONFIG_RAMLOG_BUFFER_SECTION
|
||||
endif
|
||||
endif
|
||||
|
||||
|
||||
Reference in New Issue
Block a user