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

Thomas Petazzoni thomas.petazzoni at bootlin.com
Sun Apr 21 10:32:23 UTC 2019


commit: https://git.buildroot.net/buildroot/commit/?id=01a0bd3f739ce1284a89641b7f41705c57b5bd04
branch: https://git.buildroot.net/buildroot/commit/?id=refs/heads/master

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>
---
 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