xref: /OK3568_Linux_fs/buildroot/boot/afboot-stm32/afboot-stm32.mk (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1################################################################################
2#
3# afboot-stm32
4#
5################################################################################
6
7AFBOOT_STM32_VERSION = 0.2
8AFBOOT_STM32_SITE = $(call github,mcoquelin-stm32,afboot-stm32,v$(AFBOOT_STM32_VERSION))
9AFBOOT_STM32_INSTALL_IMAGES = YES
10AFBOOT_STM32_INSTALL_TARGET = NO
11
12define AFBOOT_STM32_BUILD_CMDS
13	$(TARGET_MAKE_ENV) $(MAKE) -C $(@D) CROSS_COMPILE=$(TARGET_CROSS) all
14endef
15
16define AFBOOT_STM32_INSTALL_IMAGES_CMDS
17	$(INSTALL) -m 0755 -t $(BINARIES_DIR) -D $(@D)/stm32*.bin
18endef
19
20$(eval $(generic-package))
21