2005-06-24 07:01:12 +02: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 10:58:03 +02:00
|
|
|
# KBUILD_CFLAGS used when building rest of boot (takes effect recursively)
|
|
|
|
KBUILD_CFLAGS += -fno-builtin -Iarch/$(ARCH)/boot/include
|
2005-06-24 07:01:12 +02:00
|
|
|
HOSTFLAGS += -Iarch/$(ARCH)/boot/include
|
|
|
|
|
2013-08-22 16:09:47 +02:00
|
|
|
BIG_ENDIAN := $(shell echo __XTENSA_EB__ | $(CC) -E - | grep -v "\#")
|
2005-06-24 07:01:12 +02:00
|
|
|
|
2011-01-14 15:12:34 +01:00
|
|
|
export ccflags-y
|
2005-06-24 07:01:12 +02:00
|
|
|
export BIG_ENDIAN
|
|
|
|
|
2005-06-30 11:58:59 +02:00
|
|
|
subdir-y := lib
|
|
|
|
|
2005-06-24 07:01:12 +02:00
|
|
|
# Subdirs for the boot loader(s)
|
|
|
|
|
|
|
|
bootdir-$(CONFIG_XTENSA_PLATFORM_ISS) += boot-elf
|
2012-11-05 04:36:00 +01:00
|
|
|
bootdir-$(CONFIG_XTENSA_PLATFORM_XT2000) += boot-redboot boot-elf boot-uboot
|
2012-11-05 04:37:14 +01:00
|
|
|
bootdir-$(CONFIG_XTENSA_PLATFORM_XTFPGA) += boot-redboot boot-elf boot-uboot
|
2005-06-24 07:01:12 +02:00
|
|
|
|
2012-09-17 03:44:50 +02:00
|
|
|
zImage Image: $(bootdir-y)
|
2005-06-24 07:01:12 +02:00
|
|
|
|
|
|
|
$(bootdir-y): $(addprefix $(obj)/,$(subdir-y)) \
|
|
|
|
$(addprefix $(obj)/,$(host-progs))
|
|
|
|
$(Q)$(MAKE) $(build)=$(obj)/$@ $(MAKECMDGOALS)
|
|
|
|
|
2012-11-05 06:10:00 +01:00
|
|
|
OBJCOPYFLAGS = --strip-all -R .comment -R .note.gnu.build-id -O binary
|
|
|
|
|
|
|
|
vmlinux.bin: vmlinux FORCE
|
|
|
|
$(call if_changed,objcopy)
|
|
|
|
|
|
|
|
vmlinux.bin.gz: vmlinux.bin FORCE
|
|
|
|
$(call if_changed,gzip)
|
|
|
|
|
|
|
|
boot-elf: vmlinux.bin
|
|
|
|
boot-redboot: vmlinux.bin.gz
|
2012-11-05 04:36:00 +01:00
|
|
|
boot-uboot: vmlinux.bin.gz
|