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 ddf5be952e45..fe8ab312402f 100644
--- a/Makefile
+++ b/Makefile
@@ -648,22 +648,9 @@ ifeq ($(shell $(CONFIG_SHELL) $(srctree)/scripts/gcc-goto.sh $(CC)), y)
648endif 648endif
649 649
650# Add user supplied CPPFLAGS, AFLAGS and CFLAGS as the last assignments 650# Add user supplied CPPFLAGS, AFLAGS and CFLAGS as the last assignments
651# But warn user when we do so 651KBUILD_CPPFLAGS += $(KCPPFLAGS)
652warn-assign = \ 652KBUILD_AFLAGS += $(KAFLAGS)
653$(warning "WARNING: Appending $$K$(1) ($(K$(1))) from $(origin K$(1)) to kernel $$$(1)") 653KBUILD_CFLAGS += $(KCFLAGS)
654
655ifneq ($(KCPPFLAGS),)
656 $(call warn-assign,CPPFLAGS)
657 KBUILD_CPPFLAGS += $(KCPPFLAGS)
658endif
659ifneq ($(KAFLAGS),)
660 $(call warn-assign,AFLAGS)
661 KBUILD_AFLAGS += $(KAFLAGS)
662endif
663ifneq ($(KCFLAGS),)
664 $(call warn-assign,CFLAGS)
665 KBUILD_CFLAGS += $(KCFLAGS)
666endif
667 654
668# Use --build-id when available. 655# Use --build-id when available.
669LDFLAGS_BUILD_ID = $(patsubst -Wl$(comma)%,%,\ 656LDFLAGS_BUILD_ID = $(patsubst -Wl$(comma)%,%,\