mirror of
https://github.com/apache/nuttx.git
synced 2026-05-30 05:16:47 +08:00
Use EXTRAFLAGS instead of EXTRADEFINES to be used by make via command line
So call 'make EXTRAFLAGS=-Wno-cpp' could suppress the warnings with pre-processor directive #warning in GCC. Change-Id: Iaa618238924c9969bf91db22117b39e6d2fc9bb6 Signed-off-by: liuhaitao <liuhaitao@xiaomi.com>
This commit is contained in:
+2
-2
@@ -168,14 +168,14 @@ endif
|
||||
|
||||
ifneq ($(BIN),$(UBIN))
|
||||
$(UBIN):
|
||||
$(Q) $(MAKE) $(UBIN) BIN=$(UBIN) BINDIR=ubin TOPDIR=$(TOPDIR) EXTRADEFINES=$(EXTRADEFINES)
|
||||
$(Q) $(MAKE) $(UBIN) BIN=$(UBIN) BINDIR=ubin TOPDIR=$(TOPDIR) EXTRAFLAGS="$(EXTRAFLAGS)"
|
||||
endif
|
||||
|
||||
# C library for the kernel phase of the two-pass kernel build
|
||||
|
||||
ifneq ($(BIN),$(KBIN))
|
||||
$(KBIN):
|
||||
$(Q) $(MAKE) $(KBIN) BIN=$(KBIN) BINDIR=kbin TOPDIR=$(TOPDIR) EXTRADEFINES=$(EXTRADEFINES)
|
||||
$(Q) $(MAKE) $(KBIN) BIN=$(KBIN) BINDIR=kbin TOPDIR=$(TOPDIR) EXTRAFLAGS="$(EXTRAFLAGS)"
|
||||
endif
|
||||
|
||||
# Context
|
||||
|
||||
Reference in New Issue
Block a user