diff options
author | Ozan Çağlayan <ozancag@gmail.com> | 2012-08-14 12:00:54 -0400 |
---|---|---|
committer | Michal Marek <mmarek@suse.cz> | 2012-08-31 10:03:16 -0400 |
commit | 70cfe02682ff16bd8c1fec0d2374bd4dbceae54f (patch) | |
tree | 5e9979b4810281f0720f64ab5155180de5aca6fd /Makefile | |
parent | 0d7614f09c1ebdbaa1599a5aba7593f147bf96ee (diff) |
kbuild: Remove useless warning while appending KCFLAGS
This is a respin of an older patch sent by Sam Ravnborg:
http://www.gossamer-threads.com/lists/linux/kernel/1530602
This patch removes the annoying warning:
Makefile:708: "WARNING: Appending $KCFLAGS (-Wno-sign-compare) from command
line to kernel $CFLAGS"
which is printed every time I use KCFLAFS. The commit which introduced the
warning:
69ee0b3 kbuild: do not pick up CFLAGS from the environment
tells about the problems when people have CFLAGS in their environment,
then switches to KCFLAFS which should be enough to solve the issue, but
it anyway introduces a warning. Drop this warning.
Signed-off-by: Ozan Çağlayan <ozancag@gmail.com>
Signed-off-by: Michal Marek <mmarek@suse.cz>
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 19 |
1 files changed, 3 insertions, 16 deletions
@@ -648,22 +648,9 @@ ifeq ($(shell $(CONFIG_SHELL) $(srctree)/scripts/gcc-goto.sh $(CC)), y) | |||
648 | endif | 648 | endif |
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 | 651 | KBUILD_CPPFLAGS += $(KCPPFLAGS) |
652 | warn-assign = \ | 652 | KBUILD_AFLAGS += $(KAFLAGS) |
653 | $(warning "WARNING: Appending $$K$(1) ($(K$(1))) from $(origin K$(1)) to kernel $$$(1)") | 653 | KBUILD_CFLAGS += $(KCFLAGS) |
654 | |||
655 | ifneq ($(KCPPFLAGS),) | ||
656 | $(call warn-assign,CPPFLAGS) | ||
657 | KBUILD_CPPFLAGS += $(KCPPFLAGS) | ||
658 | endif | ||
659 | ifneq ($(KAFLAGS),) | ||
660 | $(call warn-assign,AFLAGS) | ||
661 | KBUILD_AFLAGS += $(KAFLAGS) | ||
662 | endif | ||
663 | ifneq ($(KCFLAGS),) | ||
664 | $(call warn-assign,CFLAGS) | ||
665 | KBUILD_CFLAGS += $(KCFLAGS) | ||
666 | endif | ||
667 | 654 | ||
668 | # Use --build-id when available. | 655 | # Use --build-id when available. |
669 | LDFLAGS_BUILD_ID = $(patsubst -Wl$(comma)%,%,\ | 656 | LDFLAGS_BUILD_ID = $(patsubst -Wl$(comma)%,%,\ |