[U-Boot] [PATCH] examples: delete unnecessary CPPFLAGS
Masahiro Yamada
yamada.m at jp.panasonic.com
Mon Nov 18 03:06:00 CET 2013
Signed-off-by: Masahiro Yamada <yamada.m at jp.panasonic.com>
---
Note that adding CPPFLAGS locally in examples/{api,standalone}/Makefile
is meaningless.
$(CPPFLAGS) is evaluated around line 260 of $(TOPDIR)/config.mk:
CFLAGS := $(CPPFLAGS) -Wall -Wstrict-prototypes
$(TOPDIR)/config.mk is included at the top of
examples/{api,standalone}/Makefile, which is before
adding CPPFLAGS locally.
Please be aware that GNU make has the two different flavor
of substition operator, ":=" and "=".
examples/api/Makefile | 2 --
examples/standalone/Makefile | 2 --
2 files changed, 4 deletions(-)
diff --git a/examples/api/Makefile b/examples/api/Makefile
index 33cc91b..1cefbe7 100644
--- a/examples/api/Makefile
+++ b/examples/api/Makefile
@@ -46,8 +46,6 @@ OBJS += $(addprefix $(obj),$(COBJ_FILES-y))
OBJS += $(addprefix $(obj),$(notdir $(EXT_COBJ_FILES-y)))
OBJS += $(addprefix $(obj),$(notdir $(EXT_SOBJ_FILES-y)))
-CPPFLAGS += -I..
-
all: $(obj).depend $(OUTPUT)
#########################################################################
diff --git a/examples/standalone/Makefile b/examples/standalone/Makefile
index 237b737..c9b2a27 100644
--- a/examples/standalone/Makefile
+++ b/examples/standalone/Makefile
@@ -52,8 +52,6 @@ SREC := $(addprefix $(obj),$(SREC))
gcclibdir := $(shell dirname `$(CC) -print-libgcc-file-name`)
-CPPFLAGS += -I..
-
# For PowerPC there's no need to compile standalone applications as a
# relocatable executable. The relocation data is not needed, and
# also causes the entry point of the standalone application to be
--
1.8.3.2
More information about the U-Boot
mailing list