Makefile 919 B

123456789101112131415161718192021222324252627282930
  1. # This file is part of the OpenADK project. OpenADK is copyrighted
  2. # material, please see the LICENCE file in the top-level directory.
  3. include $(ADK_TOPDIR)/rules.mk
  4. PKG_NAME:= afboot-stm32
  5. PKG_VERSION:= 3566acd582e5536fb60864281788a30f5527df2d
  6. PKG_RELEASE:= 1
  7. PKG_DESCR:= bootloader for stm32 devices
  8. PKG_SECTION:= base/boot
  9. PKG_SITES:= https://github.com/mcoquelin-stm32/afboot-stm32.git
  10. PKG_SYSTEM_DEPENDS:= st-stm32f429 st-stm32f769
  11. include $(ADK_TOPDIR)/mk/package.mk
  12. $(eval $(call PKG_template,AFBOOT_STM32,afboot-stm32,$(PKG_VERSION)-$(PKG_RELEASE),$(PKG_DEPENDS),$(PKG_DESCR),$(PKG_SECTION)))
  13. CONFIG_STYLE:= manual
  14. INSTALL_STYLE:= manual
  15. afboot-stm32-install:
  16. ifeq ($(ADK_TARGET_SYSTEM_ST_STM32F429),y)
  17. $(CP) $(WRKBUILD)/stm32f429i-disco.bin $(FW_DIR)
  18. endif
  19. ifeq ($(ADK_TARGET_SYSTEM_ST_STM32F769),y)
  20. $(CP) $(WRKBUILD)/stm32746g-eval.bin $(FW_DIR)
  21. endif
  22. include $(ADK_TOPDIR)/mk/pkg-bottom.mk