mirror of
https://github.com/edk2-porting/linux-next.git
synced 2024-11-19 16:14:13 +08:00
e7d163f766
Removed an unnecessary local copy of zlib (sorry for the add'l traffic). Fixed 'O=' support (thanks to Jan Dittmer for pointing it out). Some minor clean-ups in the make files. Signed-off-by: Chris Zankel <chris@zankel.net> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
34 lines
789 B
Makefile
34 lines
789 B
Makefile
#
|
|
# arch/xtensa/boot/Makefile
|
|
#
|
|
# This file is subject to the terms and conditions of the GNU General Public
|
|
# License. See the file "COPYING" in the main directory of this archive
|
|
# for more details.
|
|
#
|
|
#
|
|
|
|
|
|
CFLAGS += -fno-builtin -Iarch/$(ARCH)/boot/include
|
|
HOSTFLAGS += -Iarch/$(ARCH)/boot/include
|
|
|
|
BIG_ENDIAN := $(shell echo -e __XTENSA_EB__ | $(CC) -E - | grep -v "\#")
|
|
|
|
export CFLAGS
|
|
export AFLAGS
|
|
export BIG_ENDIAN
|
|
|
|
subdir-y := lib
|
|
|
|
# Subdirs for the boot loader(s)
|
|
|
|
bootdir-$(CONFIG_XTENSA_PLATFORM_ISS) += boot-elf
|
|
bootdir-$(CONFIG_XTENSA_PLATFORM_XT2000) += boot-redboot boot-elf
|
|
|
|
|
|
zImage zImage.initrd Image Image.initrd: $(bootdir-y)
|
|
|
|
$(bootdir-y): $(addprefix $(obj)/,$(subdir-y)) \
|
|
$(addprefix $(obj)/,$(host-progs))
|
|
$(Q)$(MAKE) $(build)=$(obj)/$@ $(MAKECMDGOALS)
|
|
|