Makefile 789 B

123456789101112131415161718192021222324252627282930313233
  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. 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 CFLAGS
  13. export AFLAGS
  14. export BIG_ENDIAN
  15. subdir-y := lib
  16. # Subdirs for the boot loader(s)
  17. bootdir-$(CONFIG_XTENSA_PLATFORM_ISS) += boot-elf
  18. bootdir-$(CONFIG_XTENSA_PLATFORM_XT2000) += boot-redboot boot-elf
  19. zImage zImage.initrd Image Image.initrd: $(bootdir-y)
  20. $(bootdir-y): $(addprefix $(obj)/,$(subdir-y)) \
  21. $(addprefix $(obj)/,$(host-progs))
  22. $(Q)$(MAKE) $(build)=$(obj)/$@ $(MAKECMDGOALS)