diff options
author | Mark Hatle <mark.hatle@windriver.com> | 2012-11-15 15:26:09 -0600 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2012-12-06 12:30:31 +0000 |
commit | 487d58a98cd9fe4b368f0e7d119f8ff7ac852781 (patch) | |
tree | 9fd040fabd70a6520e614bba762490ed4831159f /meta/recipes-extended/cpio/cpio_v2.inc | |
parent | 268ede582e7b68854965b29a57e865b5fc7deb04 (diff) | |
download | openembedded-core-contrib-487d58a98cd9fe4b368f0e7d119f8ff7ac852781.tar.gz |
cpio: Split RMT from cpio
After the recent change of the libexecdir definition, the update-alternatives
for the libexec rmt broke. Fix this by moving rmt from libexec to /sbin. Also
split the rmt app from cpio as it's likely not useful to many users.
Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Diffstat (limited to 'meta/recipes-extended/cpio/cpio_v2.inc')
-rw-r--r-- | meta/recipes-extended/cpio/cpio_v2.inc | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/meta/recipes-extended/cpio/cpio_v2.inc b/meta/recipes-extended/cpio/cpio_v2.inc index 3b3402b536..30446b0ced 100644 --- a/meta/recipes-extended/cpio/cpio_v2.inc +++ b/meta/recipes-extended/cpio/cpio_v2.inc @@ -14,6 +14,8 @@ inherit autotools gettext S = "${WORKDIR}/cpio-${PV}" +EXTRA_OECONF += "DEFAULT_RMT_DIR=${base_sbindir}" + do_install () { autotools_do_install install -d ${D}${base_bindir}/ @@ -21,13 +23,18 @@ do_install () { rmdir ${D}${bindir}/ } +PACKAGES =+ "${PN}-rmt" + +FILES_${PN}-rmt = "${base_sbindir}/rmt*" + inherit update-alternatives ALTERNATIVE_PRIORITY = "100" -ALTERNATIVE_${PN} = "cpio rmt" +ALTERNATIVE_${PN} = "cpio" +ALTERNATIVE_${PN}-rmt = "rmt" ALTERNATIVE_LINK_NAME[cpio] = "${base_bindir}/cpio" ALTERNATIVE_PRIORITY[rmt] = "50" -ALTERNATIVE_LINK_NAME[rmt] = "${libexecdir}/rmt" +ALTERNATIVE_LINK_NAME[rmt] = "${base_sbindir}/rmt" |