Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

kbuild: restore arch/{ppc/xtensa}/boot cflags

Commit 9a39e273d4df0560c724c5fe71f6314a0583ca2b removed the boot directory
addition to CFLAGS that was being used by the subdirectory builds. For the
other files, that patch set EXTRA_CFLAGS, but Makefile.build explicitly
sets that to empty as it is explicitly for a single directory only.
Append to KBUILD_CFLAGS instead.

Signed-off-by: Milton Miller <miltonm@bga.com>
Signed-off-by: Sam Ravnborg <sam@ravnborg.org>

authored by

Milton Miller and committed by
Sam Ravnborg
437374e9 a54bb701

+4 -1
+2
arch/ppc/boot/Makefile
··· 13 13 # modified by Cort (cort@cs.nmt.edu) 14 14 # 15 15 16 + # KBUILD_CFLAGS used when building rest of boot (takes effect recursively) 17 + KBUILD_CFLAGS += -fno-builtin -D__BOOTER__ -Iarch/$(ARCH)/boot/include 16 18 HOSTCFLAGS += -Iarch/$(ARCH)/boot/include 17 19 18 20 BOOT_TARGETS = zImage zImage.initrd znetboot znetboot.initrd
+2 -1
arch/xtensa/boot/Makefile
··· 8 8 # 9 9 10 10 11 - EXTRA_CFLAGS += -fno-builtin -Iarch/$(ARCH)/boot/include 11 + # KBUILD_CFLAGS used when building rest of boot (takes effect recursively) 12 + KBUILD_CFLAGS += -fno-builtin -Iarch/$(ARCH)/boot/include 12 13 HOSTFLAGS += -Iarch/$(ARCH)/boot/include 13 14 14 15 BIG_ENDIAN := $(shell echo -e __XTENSA_EB__ | $(CC) -E - | grep -v "\#")