mirror of
https://git.yoctoproject.org/poky
synced 2026-02-12 03:33:02 +01:00
tar-replacement-native: relocate via NATIVE_PACKAGE_PATH_SUFFIX
Building tar-replacement-native as replacement of the host's tar in the standard path was meant to be done manually by a user in preparation for the regular bitbake run. Such a usage has been superseeded by installing the pre-compiled buildutils and might have been broken on hosts which need it by the sanity check for tar >= 1.26. Therefore tar-replacement-native_1.28.bb can be removed in favor of adapting the normal tar recipe such that it installs an opt-in binary under a different path. The special do_install logic is explicitly limited to class-target, instead of making it the default and disabling it (which would be the case for class-native and class-nativesdk). (From OE-Core rev: e6fee3ddb5600fc564243a96d6232b4ae097df32) Signed-off-by: Patrick Ohly <patrick.ohly@intel.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
a56d7e90ee
commit
3753b51a17
@@ -1,6 +0,0 @@
|
||||
require tar_${PV}.bb
|
||||
|
||||
inherit native
|
||||
|
||||
BPN = "tar"
|
||||
EXTRAINSTALL = ""
|
||||
@@ -16,16 +16,12 @@ EXTRA_OECONF += "DEFAULT_RMT_DIR=${base_sbindir}"
|
||||
# directory.
|
||||
acpaths = "-I ./m4"
|
||||
|
||||
EXTRAINSTALL = "do_install_extra"
|
||||
EXTRAINSTALL_class-nativesdk = ""
|
||||
|
||||
do_install () {
|
||||
autotools_do_install
|
||||
ln -s tar ${D}${bindir}/gtar
|
||||
${EXTRAINSTALL}
|
||||
}
|
||||
|
||||
do_install_extra () {
|
||||
do_install_append_class-target() {
|
||||
install -d ${D}${base_bindir}
|
||||
mv ${D}${bindir}/tar ${D}${base_bindir}/tar
|
||||
mv ${D}${bindir}/gtar ${D}${base_bindir}/gtar
|
||||
@@ -48,4 +44,7 @@ ALTERNATIVE_${PN}-rmt_class-nativesdk = ""
|
||||
ALTERNATIVE_LINK_NAME[tar] = "${base_bindir}/tar"
|
||||
ALTERNATIVE_LINK_NAME[rmt] = "${base_sbindir}/rmt"
|
||||
|
||||
BBCLASSEXTEND = "nativesdk"
|
||||
PROVIDES_append_class-native = " tar-replacement-native"
|
||||
NATIVE_PACKAGE_PATH_SUFFIX = "/${PN}"
|
||||
|
||||
BBCLASSEXTEND = "native nativesdk"
|
||||
|
||||
Reference in New Issue
Block a user