aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFlorin Sarbu <florin.sarbu@windriver.com>2012-09-30 17:13:54 +0300
committerFlorin Sarbu <florin.sarbu@windriver.com>2012-09-30 17:13:54 +0300
commitb56ba3a2baf0ec639f1a73fac3f64af4b02dac59 (patch)
tree706b042c1c1220815b29d9776984d312ebd20d6e
parentf2151c2397b4862a626fa361df0f764a9f22845a (diff)
downloadmeta-ivi-b56ba3a2baf0ec639f1a73fac3f64af4b02dac59.tar.gz
meta-ivi-b56ba3a2baf0ec639f1a73fac3f64af4b02dac59.tar.bz2
meta-ivi-b56ba3a2baf0ec639f1a73fac3f64af4b02dac59.zip
bash: Add modified do_install_append so that bash binary goes into /usr/bin
Signed-off-by: Florin Sarbu <florin.sarbu@windriver.com>
-rw-r--r--recipes-extended/bash/bash_3.2.48.bbappend11
1 files changed, 10 insertions, 1 deletions
diff --git a/recipes-extended/bash/bash_3.2.48.bbappend b/recipes-extended/bash/bash_3.2.48.bbappend
index 2503aa0..d82d58b 100644
--- a/recipes-extended/bash/bash_3.2.48.bbappend
+++ b/recipes-extended/bash/bash_3.2.48.bbappend
@@ -2,4 +2,13 @@ bindir = "/usr/bin"
sbindir = "/usr/sbin"
ALTERNATIVE_LINK_NAME[sh] = "${bindir}/sh"
-ALTERNATIVE_TARGET[sh] = "${bindir}/bash" \ No newline at end of file
+ALTERNATIVE_TARGET[sh] = "${bindir}/bash"
+
+do_install_append () {
+ # Move /usr/bin/bash to /bin/bash, if need
+ if [ "${base_bindir}" != "${bindir}" ]; then
+ mkdir -p ${D}${bindir}
+ mv ${D}${base_bindir}/bash ${D}${bindir}
+ rmdir ${D}${base_bindir}
+ fi
+}