blob: 9c5185f605b666f7a9e3a51daf244762a56b9f4c [file] [log] [blame]
Chris Zankel4bedea92005-06-23 22:01:12 -07001#
2# arch/xtensa/boot/Makefile
3#
4# This file is subject to the terms and conditions of the GNU General Public
5# License. See the file "COPYING" in the main directory of this archive
6# for more details.
7#
8#
9
10
Sam Ravnborg9a39e272007-10-14 21:49:42 +020011EXTRA_CFLAGS += -fno-builtin -Iarch/$(ARCH)/boot/include
Chris Zankel4bedea92005-06-23 22:01:12 -070012HOSTFLAGS += -Iarch/$(ARCH)/boot/include
13
Chris Zankele7d163f2005-06-30 02:58:59 -070014BIG_ENDIAN := $(shell echo -e __XTENSA_EB__ | $(CC) -E - | grep -v "\#")
Chris Zankel4bedea92005-06-23 22:01:12 -070015
Sam Ravnborg9a39e272007-10-14 21:49:42 +020016export EXTRA_CFLAGS
Chris Zankel4bedea92005-06-23 22:01:12 -070017export BIG_ENDIAN
18
Chris Zankele7d163f2005-06-30 02:58:59 -070019subdir-y := lib
20
Chris Zankel4bedea92005-06-23 22:01:12 -070021# Subdirs for the boot loader(s)
22
23bootdir-$(CONFIG_XTENSA_PLATFORM_ISS) += boot-elf
24bootdir-$(CONFIG_XTENSA_PLATFORM_XT2000) += boot-redboot boot-elf
25
Chris Zankel4bedea92005-06-23 22:01:12 -070026
27zImage zImage.initrd Image Image.initrd: $(bootdir-y)
28
29$(bootdir-y): $(addprefix $(obj)/,$(subdir-y)) \
30 $(addprefix $(obj)/,$(host-progs))
31 $(Q)$(MAKE) $(build)=$(obj)/$@ $(MAKECMDGOALS)
32