config.mk 947 B

12345678910111213141516171819202122232425262728293031323334
  1. # Copyright 2015 Texas Instruments Incorporated, <www.ti.com>
  2. #
  3. # Lokesh Vutla <lokeshvutla@ti.com>
  4. #
  5. # SPDX-License-Identifier: GPL-2.0+
  6. #
  7. include $(srctree)/arch/arm/mach-omap2/config_secure.mk
  8. ifndef CONFIG_SPL_BUILD
  9. ifeq ($(CONFIG_TI_SECURE_DEVICE),y)
  10. INPUTS-y += u-boot_HS_MLO
  11. else
  12. INPUTS-y += MLO
  13. endif
  14. endif
  15. MKIMAGEFLAGS_u-boot-spl.gph = -A $(ARCH) -T gpimage -C none \
  16. -a $(CONFIG_SPL_TEXT_BASE) -e $(CONFIG_SPL_TEXT_BASE) -n SPL
  17. spl/u-boot-spl.gph: spl/u-boot-spl.bin FORCE
  18. $(call if_changed,mkimage)
  19. OBJCOPYFLAGS_u-boot-spi.gph = -I binary -O binary --pad-to=$(CONFIG_SPL_PAD_TO) \
  20. --gap-fill=0
  21. u-boot-spi.gph: spl/u-boot-spl.gph u-boot.img FORCE
  22. $(call if_changed,pad_cat)
  23. ifndef CONFIG_SPL_BUILD
  24. MKIMAGEFLAGS_MLO = -A $(ARCH) -T gpimage -C none \
  25. -a $(CONFIG_SYS_TEXT_BASE) -e $(CONFIG_SYS_TEXT_BASE) -n U-Boot
  26. MLO: u-boot.bin FORCE
  27. $(call if_changed,mkimage)
  28. @dd if=/dev/zero bs=8 count=1 2>/dev/null >> $@
  29. endif