aboutsummaryrefslogtreecommitdiff
path: root/package/sam-ba
diff options
context:
space:
mode:
authorGravatar Thomas Petazzoni <thomas.petazzoni@bootlin.com>2018-04-02 20:03:26 +0200
committerGravatar Thomas Petazzoni <thomas.petazzoni@bootlin.com>2018-04-02 20:04:19 +0200
commitbf4fc26f1ae8b516c4d1c4701625c3598af574e4 (patch)
tree1c4804854d0d3c8b9d7fc2001e4fed2a203fac84 /package/sam-ba
parent78b729291507a6a92abf43d388cc29d01c086876 (diff)
downloadbuildroot-bf4fc26f1ae8b516c4d1c4701625c3598af574e4.tar.gz
buildroot-bf4fc26f1ae8b516c4d1c4701625c3598af574e4.tar.bz2
sam-ba: create $(HOST_DIR)/bin before using it
If one runs "make host-sam-ba" from a clean build, sam-ba.mk cannot create its symbolic link because $(HOST_DIR)/bin doesn't exist. So let's create this directory. >>> host-sam-ba 2.16 Installing to host directory mkdir -p /buildroot/output/host/opt/sam-ba/ cp -a /buildroot/output/build/host-sam-ba-2.16/* /buildroot/output/host/opt/sam-ba/ ln -sf ../opt/sam-ba/sam-ba_64 /buildroot/output/host/bin/sam-ba ln: failed to create symbolic link '/buildroot/output/host/bin/sam-ba': No such file or directory make[1]: *** [package/pkg-generic.mk:234: /buildroot/output/build/host-sam-ba-2.16/.stamp_host_installed] Error 1 make: *** [Makefile:79: _all] Error 2 Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
Diffstat (limited to 'package/sam-ba')
-rw-r--r--package/sam-ba/sam-ba.mk1
1 files changed, 1 insertions, 0 deletions
diff --git a/package/sam-ba/sam-ba.mk b/package/sam-ba/sam-ba.mk
index 11dbb7eef0..0d36b0dc59 100644
--- a/package/sam-ba/sam-ba.mk
+++ b/package/sam-ba/sam-ba.mk
@@ -32,6 +32,7 @@ endif
define HOST_SAM_BA_INSTALL_CMDS
mkdir -p $(HOST_DIR)/opt/sam-ba/
cp -a $(@D)/* $(HOST_DIR)/opt/sam-ba/
+ mkdir -p $(HOST_DIR)/bin/
ln -sf ../opt/sam-ba/$(SAM_BA_BIN_NAME) $(HOST_DIR)/bin/sam-ba
endef