boot/afboot-stm32: create destination directory during installation
authorThomas Petazzoni <thomas.petazzoni@bootlin.com>
Sat, 8 Dec 2018 14:18:54 +0000 (15:18 +0100)
committerPeter Korsgaard <peter@korsgaard.com>
Sat, 8 Dec 2018 19:46:54 +0000 (20:46 +0100)
commitf546c35ab242919020584514063ad12da1d24c15
treea16561d6b0bc3a30bd19c566896a7a45ee8b342e
parent1af52321389f56cec4888389b2161cc1ee2bfaed
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>
boot/afboot-stm32/afboot-stm32.mk