2
1

afboot-stm32.mk 748 B

12345678910111213141516171819202122
  1. ################################################################################
  2. #
  3. # afboot-stm32
  4. #
  5. ################################################################################
  6. AFBOOT_STM32_VERSION = 3566acd582e5536fb60864281788a30f5527df2d
  7. AFBOOT_STM32_SITE = $(call github,mcoquelin-stm32,afboot-stm32,$(AFBOOT_STM32_VERSION))
  8. AFBOOT_STM32_INSTALL_IMAGES = YES
  9. AFBOOT_STM32_INSTALL_TARGET = NO
  10. define AFBOOT_STM32_BUILD_CMDS
  11. $(TARGET_MAKE_ENV) $(MAKE) -C $(@D) CROSS_COMPILE=$(TARGET_CROSS) all \
  12. KERNEL_ADDR=$(BR2_TARGET_AFBOOT_STM32_KERNEL_ADDR) \
  13. DTB_ADDR=$(BR2_TARGET_AFBOOT_STM32_DTB_ADDR)
  14. endef
  15. define AFBOOT_STM32_INSTALL_IMAGES_CMDS
  16. $(INSTALL) -m 0755 -t $(BINARIES_DIR) -D $(@D)/stm32*.bin
  17. endef
  18. $(eval $(generic-package))