2005-06-24 12:01:12 +07:00
|
|
|
#
|
|
|
|
# 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.
|
|
|
|
#
|
|
|
|
#
|
|
|
|
|
|
|
|
|
2007-10-20 15:58:03 +07:00
|
|
|
# KBUILD_CFLAGS used when building rest of boot (takes effect recursively)
|
|
|
|
KBUILD_CFLAGS += -fno-builtin -Iarch/$(ARCH)/boot/include
|
2005-06-24 12:01:12 +07:00
|
|
|
HOSTFLAGS += -Iarch/$(ARCH)/boot/include
|
|
|
|
|
2005-06-30 16:58:59 +07:00
|
|
|
BIG_ENDIAN := $(shell echo -e __XTENSA_EB__ | $(CC) -E - | grep -v "\#")
|
2005-06-24 12:01:12 +07:00
|
|
|
|
2007-10-15 02:49:42 +07:00
|
|
|
export EXTRA_CFLAGS
|
2005-06-24 12:01:12 +07:00
|
|
|
export BIG_ENDIAN
|
|
|
|
|
2005-06-30 16:58:59 +07:00
|
|
|
subdir-y := lib
|
|
|
|
|
2005-06-24 12:01:12 +07:00
|
|
|
# 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)
|
|
|
|
|