Skip to content

Commit

Permalink
kbuild: restore arch/{ppc/xtensa}/boot cflags
Browse files Browse the repository at this point in the history
Commit 9a39e27 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 <[email protected]>
Signed-off-by: Sam Ravnborg <[email protected]>
  • Loading branch information
Milton Miller authored and Sam Ravnborg committed Oct 20, 2007
1 parent a54bb70 commit 437374e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 2 additions & 0 deletions arch/ppc/boot/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@
# modified by Cort ([email protected])
#

# KBUILD_CFLAGS used when building rest of boot (takes effect recursively)
KBUILD_CFLAGS += -fno-builtin -D__BOOTER__ -Iarch/$(ARCH)/boot/include
HOSTCFLAGS += -Iarch/$(ARCH)/boot/include

BOOT_TARGETS = zImage zImage.initrd znetboot znetboot.initrd
Expand Down
3 changes: 2 additions & 1 deletion arch/xtensa/boot/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@
#


EXTRA_CFLAGS += -fno-builtin -Iarch/$(ARCH)/boot/include
# KBUILD_CFLAGS used when building rest of boot (takes effect recursively)
KBUILD_CFLAGS += -fno-builtin -Iarch/$(ARCH)/boot/include
HOSTFLAGS += -Iarch/$(ARCH)/boot/include

BIG_ENDIAN := $(shell echo -e __XTENSA_EB__ | $(CC) -E - | grep -v "\#")
Expand Down

0 comments on commit 437374e

Please sign in to comment.