summaryrefslogtreecommitdiffstats
path: root/meta/recipes-extended/cpio
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-extended/cpio')
-rw-r--r--meta/recipes-extended/cpio/cpio_v2.inc8
1 files changed, 5 insertions, 3 deletions
diff --git a/meta/recipes-extended/cpio/cpio_v2.inc b/meta/recipes-extended/cpio/cpio_v2.inc
index 93de4bb92b..8520ff267c 100644
--- a/meta/recipes-extended/cpio/cpio_v2.inc
+++ b/meta/recipes-extended/cpio/cpio_v2.inc
@@ -18,9 +18,11 @@ EXTRA_OECONF += "DEFAULT_RMT_DIR=${base_sbindir}"
18 18
19do_install () { 19do_install () {
20 autotools_do_install 20 autotools_do_install
21 install -d ${D}${base_bindir}/ 21 if [ "${base_bindir}" != "${bindir}" ]; then
22 mv "${D}${bindir}/cpio" "${D}${base_bindir}/cpio" 22 install -d ${D}${base_bindir}/
23 rmdir ${D}${bindir}/ 23 mv "${D}${bindir}/cpio" "${D}${base_bindir}/cpio"
24 rmdir ${D}${bindir}/
25 fi
24} 26}
25 27
26PACKAGES =+ "${PN}-rmt" 28PACKAGES =+ "${PN}-rmt"