[Buildroot] [git commit branch/2019.02.x] package/yaffs2utils: create $(HOST_DIR)/bin before installation

Peter Korsgaard peter at korsgaard.com
Fri Apr 26 12:42:12 UTC 2019


commit: https://git.buildroot.net/buildroot/commit/?id=71149c2afa5e22e0a3e584ac1bc2acec8ad13d1e
branch: https://git.buildroot.net/buildroot/commit/?id=refs/heads/2019.02.x

The yaffs2utils Makefile uses plain "cp", which fails when
$(HOST_DIR)/bin doesn't exist. Fix that by creationg $(HOST_DIR)/bin
beforehand.

Fixes:

  https://gitlab.com/buildroot.org/buildroot/-/jobs/199339624

Signed-off-by: Thomas Petazzoni <thomas.petazzoni at bootlin.com>
(cherry picked from commit 01a0bd3f739ce1284a89641b7f41705c57b5bd04)
Signed-off-by: Peter Korsgaard <peter at korsgaard.com>
---
 package/yaffs2utils/yaffs2utils.mk | 1 +
 1 file changed, 1 insertion(+)

diff --git a/package/yaffs2utils/yaffs2utils.mk b/package/yaffs2utils/yaffs2utils.mk
index c2a87eac7b..d3a8bdc9d2 100644
--- a/package/yaffs2utils/yaffs2utils.mk
+++ b/package/yaffs2utils/yaffs2utils.mk
@@ -15,6 +15,7 @@ define HOST_YAFFS2UTILS_BUILD_CMDS
 endef
 
 define HOST_YAFFS2UTILS_INSTALL_CMDS
+	mkdir -p $(HOST_DIR)/bin
 	$(HOST_MAKE_ENV) $(MAKE) -C $(@D) INSTALLDIR=$(HOST_DIR)/bin install
 endef
 


More information about the buildroot mailing list