Makefile 785 B

1234567891011121314151617181920212223242526272829303132
  1. #
  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. EXTRA_CFLAGS += -fno-builtin -Iarch/$(ARCH)/boot/include
  10. HOSTFLAGS += -Iarch/$(ARCH)/boot/include
  11. BIG_ENDIAN := $(shell echo -e __XTENSA_EB__ | $(CC) -E - | grep -v "\#")
  12. export EXTRA_CFLAGS
  13. export BIG_ENDIAN
  14. subdir-y := lib
  15. # Subdirs for the boot loader(s)
  16. bootdir-$(CONFIG_XTENSA_PLATFORM_ISS) += boot-elf
  17. bootdir-$(CONFIG_XTENSA_PLATFORM_XT2000) += boot-redboot boot-elf
  18. zImage zImage.initrd Image Image.initrd: $(bootdir-y)
  19. $(bootdir-y): $(addprefix $(obj)/,$(subdir-y)) \
  20. $(addprefix $(obj)/,$(host-progs))
  21. $(Q)$(MAKE) $(build)=$(obj)/$@ $(MAKECMDGOALS)