mirror of
https://github.com/motioneye-project/motioneyeos.git
synced 2025-07-29 14:16:31 +00:00
boot/afboot-stm32: create destination directory during installation
Following d0f4f95e390bcb1c953efa125f5277a8a235396e ("Makefile: rework main directory creation logic"), BINARIES_DIR is not implicitly created by the main Makefile at the beginning of the build, leaving that up to whatever piece of code needs to install something in $(BINARIES_DIR). The afboot-stm32 package didn't pay attention to this, which this commit fixes. While at it, we move the afboot-stm32 installation into <pkg>_INSTALL_IMAGES_CMDS, because using <pkg>_INSTALL_TARGET_CMDS to install only files to BINARIES_DIR is a bit strange. Fixes: https://gitlab.com/buildroot.org/buildroot/-/jobs/131217111 Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com> Acked-by: "Yann E. MORIN" <yann.morin.1998@free.fr> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
This commit is contained in:
parent
1af5232138
commit
f546c35ab2
@ -6,13 +6,15 @@
|
|||||||
|
|
||||||
AFBOOT_STM32_VERSION = v0.1
|
AFBOOT_STM32_VERSION = v0.1
|
||||||
AFBOOT_STM32_SITE = $(call github,mcoquelin-stm32,afboot-stm32,$(AFBOOT_STM32_VERSION))
|
AFBOOT_STM32_SITE = $(call github,mcoquelin-stm32,afboot-stm32,$(AFBOOT_STM32_VERSION))
|
||||||
|
AFBOOT_STM32_INSTALL_IMAGES = YES
|
||||||
|
AFBOOT_STM32_INSTALL_TARGET = NO
|
||||||
|
|
||||||
define AFBOOT_STM32_BUILD_CMDS
|
define AFBOOT_STM32_BUILD_CMDS
|
||||||
$(TARGET_MAKE_ENV) $(MAKE) -C $(@D) CROSS_COMPILE=$(TARGET_CROSS) all
|
$(TARGET_MAKE_ENV) $(MAKE) -C $(@D) CROSS_COMPILE=$(TARGET_CROSS) all
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define AFBOOT_STM32_INSTALL_TARGET_CMDS
|
define AFBOOT_STM32_INSTALL_IMAGES_CMDS
|
||||||
$(INSTALL) -m 0755 $(@D)/stm32*.bin $(BINARIES_DIR)
|
$(INSTALL) -m 0755 -t $(BINARIES_DIR) -D $(@D)/stm32*.bin
|
||||||
endef
|
endef
|
||||||
|
|
||||||
$(eval $(generic-package))
|
$(eval $(generic-package))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user