aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile19
1 files changed, 3 insertions, 16 deletions
diff --git a/Makefile b/Makefile
index 86eb6acb3978..5d8e7f258388 100644
--- a/Makefile
+++ b/Makefile
@@ -664,22 +664,9 @@ ifeq ($(shell $(CONFIG_SHELL) $(srctree)/scripts/gcc-goto.sh $(CC)), y)
664endif 664endif
665 665
666# Add user supplied CPPFLAGS, AFLAGS and CFLAGS as the last assignments 666# Add user supplied CPPFLAGS, AFLAGS and CFLAGS as the last assignments
667# But warn user when we do so 667KBUILD_CPPFLAGS += $(KCPPFLAGS)
668warn-assign = \ 668KBUILD_AFLAGS += $(KAFLAGS)
669$(warning "WARNING: Appending $$K$(1) ($(K$(1))) from $(origin K$(1)) to kernel $$$(1)") 669KBUILD_CFLAGS += $(KCFLAGS)
670
671ifneq ($(KCPPFLAGS),)
672 $(call warn-assign,CPPFLAGS)
673 KBUILD_CPPFLAGS += $(KCPPFLAGS)
674endif
675ifneq ($(KAFLAGS),)
676 $(call warn-assign,AFLAGS)
677 KBUILD_AFLAGS += $(KAFLAGS)
678endif
679ifneq ($(KCFLAGS),)
680 $(call warn-assign,CFLAGS)
681 KBUILD_CFLAGS += $(KCFLAGS)
682endif
683 670
684# Use --build-id when available. 671# Use --build-id when available.
685LDFLAGS_BUILD_ID = $(patsubst -Wl$(comma)%,%,\ 672LDFLAGS_BUILD_ID = $(patsubst -Wl$(comma)%,%,\