tools: replace DEFINE to DEFINE_PREFIX
Signed-off-by: yinshengkai <yinshengkai@xiaomi.com>
This commit is contained in:
parent
7903911000
commit
bd2efd9f51
@ -199,8 +199,8 @@ $(MAINCXXOBJ): %$(CXXEXT)$(SUFFIX)$(OBJEXT): %$(CXXEXT)
|
|||||||
$(call ELFCOMPILEXX, $<, $@), $(call COMPILEXX, $<, $@))
|
$(call ELFCOMPILEXX, $<, $@), $(call COMPILEXX, $<, $@))
|
||||||
|
|
||||||
$(MAINCOBJ): %.c$(SUFFIX)$(OBJEXT): %.c
|
$(MAINCOBJ): %.c$(SUFFIX)$(OBJEXT): %.c
|
||||||
$(eval $<_CFLAGS += ${shell $(DEFINE) "$(CC)" main=$(firstword $(MAINNAME))})
|
$(eval $<_CFLAGS += ${DEFINE_PREFIX}main=$(firstword $(MAINNAME)))
|
||||||
$(eval $<_CELFFLAGS += ${shell $(DEFINE) "$(CC)" main=$(firstword $(MAINNAME))})
|
$(eval $<_CELFFLAGS += ${DEFINE_PREFIX}main=$(firstword $(MAINNAME)))
|
||||||
$(eval MAINNAME=$(filter-out $(firstword $(MAINNAME)),$(MAINNAME)))
|
$(eval MAINNAME=$(filter-out $(firstword $(MAINNAME)),$(MAINNAME)))
|
||||||
$(if $(and $(CONFIG_BUILD_LOADABLE),$(CELFFLAGS)), \
|
$(if $(and $(CONFIG_BUILD_LOADABLE),$(CELFFLAGS)), \
|
||||||
$(call ELFCOMPILE, $<, $@), $(call COMPILE, $<, $@))
|
$(call ELFCOMPILE, $<, $@), $(call COMPILE, $<, $@))
|
||||||
|
@ -26,7 +26,7 @@ CONFIGURED_APPS += $(APPDIR)/crypto/mbedtls
|
|||||||
CFLAGS += ${INCDIR_PREFIX}$(APPDIR)/crypto/mbedtls/mbedtls/include
|
CFLAGS += ${INCDIR_PREFIX}$(APPDIR)/crypto/mbedtls/mbedtls/include
|
||||||
CXXFLAGS += ${INCDIR_PREFIX}$(APPDIR)/crypto/mbedtls/mbedtls/include
|
CXXFLAGS += ${INCDIR_PREFIX}$(APPDIR)/crypto/mbedtls/mbedtls/include
|
||||||
|
|
||||||
CFLAGS += ${shell $(DEFINE) "$(CC)" MBEDTLS_CONFIG_FILE='"<crypto/mbedtls_config.h>"'}
|
CFLAGS += ${DEFINE_PREFIX}MBEDTLS_CONFIG_FILE="<crypto/mbedtls_config.h>"
|
||||||
CXXFLAGS += ${shell $(DEFINE) "$(CC)" MBEDTLS_CONFIG_FILE='"<crypto/mbedtls_config.h>"'}
|
CXXFLAGS += ${DEFINE_PREFIX}MBEDTLS_CONFIG_FILE="<crypto/mbedtls_config.h>"
|
||||||
|
|
||||||
endif
|
endif
|
||||||
|
@ -36,7 +36,7 @@ MBEDTLS_UNPACKLIBDIR = $(MBEDTLS_UNPACKNAME)$(DELIM)library
|
|||||||
MBEDTLS_UNPACKPROGDIR = $(MBEDTLS_UNPACKNAME)$(DELIM)programs
|
MBEDTLS_UNPACKPROGDIR = $(MBEDTLS_UNPACKNAME)$(DELIM)programs
|
||||||
|
|
||||||
# This lets Mbed TLS better use some of the POSIX features we have
|
# This lets Mbed TLS better use some of the POSIX features we have
|
||||||
CFLAGS += ${shell $(DEFINE) "$(CC)" __unix__}
|
CFLAGS += ${DEFINE_PREFIX}__unix__
|
||||||
|
|
||||||
CSRCS = $(wildcard $(MBEDTLS_UNPACKLIBDIR)$(DELIM)*.c)
|
CSRCS = $(wildcard $(MBEDTLS_UNPACKLIBDIR)$(DELIM)*.c)
|
||||||
|
|
||||||
|
@ -74,8 +74,8 @@ endif
|
|||||||
|
|
||||||
MAINSRC = lvgldemo.c
|
MAINSRC = lvgldemo.c
|
||||||
|
|
||||||
CFLAGS += ${shell $(DEFINE) "$(CC)" LV_LVGL_H_INCLUDE_SIMPLE} -Wno-format
|
CFLAGS += ${DEFINE_PREFIX}LV_LVGL_H_INCLUDE_SIMPLE -Wno-format
|
||||||
CXXFLAGS += ${shell $(DEFINE) "$(CC)" LV_LVGL_H_INCLUDE_SIMPLE} -Wno-format
|
CXXFLAGS += ${DEFINE_PREFIX}LV_LVGL_H_INCLUDE_SIMPLE -Wno-format
|
||||||
|
|
||||||
$(LVGL_EXAMPLES_TARBALL):
|
$(LVGL_EXAMPLES_TARBALL):
|
||||||
$(Q) echo "Downloading: $(LVGL_EXAMPLES_TARBALL)"
|
$(Q) echo "Downloading: $(LVGL_EXAMPLES_TARBALL)"
|
||||||
|
@ -28,7 +28,7 @@ ARGTABLE3_SRCDIR = $(ARGTABLE3_UNPACK)$(DELIM)src
|
|||||||
DEPPATH += --dep-path $(ARGTABLE3_SRCDIR)
|
DEPPATH += --dep-path $(ARGTABLE3_SRCDIR)
|
||||||
VPATH += :$(ARGTABLE3_SRCDIR)
|
VPATH += :$(ARGTABLE3_SRCDIR)
|
||||||
|
|
||||||
CFLAGS += ${shell $(DEFINE) "$(CC)" ARG_REPLACE_GETOPT=0}
|
CFLAGS += ${DEFINE_PREFIX}ARG_REPLACE_GETOPT=0
|
||||||
CSRCS := $(notdir $(wildcard $(ARGTABLE3_SRCDIR)$(DELIM)*.c))
|
CSRCS := $(notdir $(wildcard $(ARGTABLE3_SRCDIR)$(DELIM)*.c))
|
||||||
|
|
||||||
# workaround for clang.
|
# workaround for clang.
|
||||||
|
Loading…
Reference in New Issue
Block a user