diff options
Diffstat (limited to 'yocto-poky/meta/recipes-extended/cpio/cpio_v2.inc')
-rw-r--r-- | yocto-poky/meta/recipes-extended/cpio/cpio_v2.inc | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/yocto-poky/meta/recipes-extended/cpio/cpio_v2.inc b/yocto-poky/meta/recipes-extended/cpio/cpio_v2.inc index 93de4bb92..8520ff267 100644 --- a/yocto-poky/meta/recipes-extended/cpio/cpio_v2.inc +++ b/yocto-poky/meta/recipes-extended/cpio/cpio_v2.inc @@ -18,9 +18,11 @@ EXTRA_OECONF += "DEFAULT_RMT_DIR=${base_sbindir}" do_install () { autotools_do_install - install -d ${D}${base_bindir}/ - mv "${D}${bindir}/cpio" "${D}${base_bindir}/cpio" - rmdir ${D}${bindir}/ + if [ "${base_bindir}" != "${bindir}" ]; then + install -d ${D}${base_bindir}/ + mv "${D}${bindir}/cpio" "${D}${base_bindir}/cpio" + rmdir ${D}${bindir}/ + fi } PACKAGES =+ "${PN}-rmt" |