diff options
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 19 |
1 files changed, 3 insertions, 16 deletions
@@ -664,22 +664,9 @@ ifeq ($(shell $(CONFIG_SHELL) $(srctree)/scripts/gcc-goto.sh $(CC)), y) | |||
664 | endif | 664 | endif |
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 | 667 | KBUILD_CPPFLAGS += $(KCPPFLAGS) |
668 | warn-assign = \ | 668 | KBUILD_AFLAGS += $(KAFLAGS) |
669 | $(warning "WARNING: Appending $$K$(1) ($(K$(1))) from $(origin K$(1)) to kernel $$$(1)") | 669 | KBUILD_CFLAGS += $(KCFLAGS) |
670 | |||
671 | ifneq ($(KCPPFLAGS),) | ||
672 | $(call warn-assign,CPPFLAGS) | ||
673 | KBUILD_CPPFLAGS += $(KCPPFLAGS) | ||
674 | endif | ||
675 | ifneq ($(KAFLAGS),) | ||
676 | $(call warn-assign,AFLAGS) | ||
677 | KBUILD_AFLAGS += $(KAFLAGS) | ||
678 | endif | ||
679 | ifneq ($(KCFLAGS),) | ||
680 | $(call warn-assign,CFLAGS) | ||
681 | KBUILD_CFLAGS += $(KCFLAGS) | ||
682 | endif | ||
683 | 670 | ||
684 | # Use --build-id when available. | 671 | # Use --build-id when available. |
685 | LDFLAGS_BUILD_ID = $(patsubst -Wl$(comma)%,%,\ | 672 | LDFLAGS_BUILD_ID = $(patsubst -Wl$(comma)%,%,\ |