config.mk 744 B

1234567891011121314151617181920212223242526272829
  1. # SPDX-License-Identifier: GPL-2.0+ OR BSD-3-Clause
  2. #
  3. # Copyright (C) 2018, STMicroelectronics - All Rights Reserved
  4. #
  5. ifndef CONFIG_SPL
  6. INPUTS-y += u-boot.stm32
  7. else
  8. ifdef CONFIG_SPL_BUILD
  9. INPUTS-y += u-boot-spl.stm32
  10. endif
  11. endif
  12. MKIMAGEFLAGS_u-boot.stm32 = -T stm32image -a $(CONFIG_SYS_TEXT_BASE) -e $(CONFIG_SYS_TEXT_BASE)
  13. u-boot.stm32: MKIMAGEOUTPUT = u-boot.stm32.log
  14. u-boot.stm32: u-boot.bin FORCE
  15. $(call if_changed,mkimage)
  16. MKIMAGEFLAGS_u-boot-spl.stm32 = -T stm32image -a $(CONFIG_SPL_TEXT_BASE) -e $(CONFIG_SPL_TEXT_BASE)
  17. spl/u-boot-spl.stm32: MKIMAGEOUTPUT = spl/u-boot-spl.stm32.log
  18. spl/u-boot-spl.stm32: spl/u-boot-spl.bin FORCE
  19. $(call if_changed,mkimage)
  20. u-boot-spl.stm32 : spl/u-boot-spl.stm32
  21. $(call if_changed,copy)