aboutsummaryrefslogtreecommitdiff
path: root/package/sam-ba
diff options
context:
space:
mode:
authorGravatar Joshua Henderson <joshua.henderson@microchip.com>2018-03-22 09:24:26 -0700
committerGravatar Thomas Petazzoni <thomas.petazzoni@bootlin.com>2018-03-25 22:23:12 +0200
commitb3b5608b47525799b0601d45939d3bae545fd124 (patch)
tree478ef6070964dc024a8e020a3fa02c064fb6f4f9 /package/sam-ba
parent76e6837cd670449740f21015a406d722e089a084 (diff)
downloadbuildroot-b3b5608b47525799b0601d45939d3bae545fd124.tar.gz
buildroot-b3b5608b47525799b0601d45939d3bae545fd124.tar.bz2
sam-ba: fix sam-ba symbolic link
Following the removal of $(HOST_DIR)/usr, the symbolic link from $(HOST_DIR)/bin/sam-ba/ to $(HOST_DIR)/opt/sam-ba/sam-ba was broken, so we fix this. In addition, sam-ba being prebuilt, it comes in two separates binaries, one for x86 and the other for x86_64, so we take this into account as well. Signed-off-by: Joshua Henderson <joshua.henderson@microchip.com> [Thomas: - add spaces around = signs - rework commit log.] Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
Diffstat (limited to 'package/sam-ba')
-rw-r--r--package/sam-ba/sam-ba.mk8
1 files changed, 7 insertions, 1 deletions
diff --git a/package/sam-ba/sam-ba.mk b/package/sam-ba/sam-ba.mk
index 244ede3ef1..a7941459c7 100644
--- a/package/sam-ba/sam-ba.mk
+++ b/package/sam-ba/sam-ba.mk
@@ -23,10 +23,16 @@ endef
# then create a symbolic link from $(HOST_DIR)/bin to the
# application binary, for easier usage.
+ifeq ($(HOSTARCH),x86_64)
+SAM_BA_BIN_NAME = sam-ba_64
+else
+SAM_BA_BIN_NAME = sam-ba
+endif
+
define HOST_SAM_BA_INSTALL_CMDS
mkdir -p $(HOST_DIR)/opt/sam-ba/
cp -a $(@D)/* $(HOST_DIR)/opt/sam-ba/
- ln -sf ../../opt/sam-ba/sam-ba $(HOST_DIR)/bin/sam-ba
+ ln -sf ../opt/sam-ba/$(SAM_BA_BIN_NAME) $(HOST_DIR)/bin/sam-ba
endef
$(eval $(host-generic-package))