mirror of
https://git.yoctoproject.org/poky
synced 2026-01-29 21:08:42 +01:00
acl: Strip build host tool details from installed ptest file
Adopt the PTEST_BUILD_HOST_FILES mechanism to strip build host paths from the installed builddefs file. Also strip the record of the build host rpm version. (From OE-Core rev: 800953bcd4ce9c4e4f768bc0de504b91d5be99cb) Signed-off-by: Douglas Royds <douglas.royds@taitradio.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
fc5d914379
commit
ea9f050cbc
@@ -39,15 +39,12 @@ do_install_append() {
|
||||
|
||||
inherit ptest
|
||||
|
||||
PTEST_BUILD_HOST_FILES = "builddefs"
|
||||
PTEST_BUILD_HOST_PATTERN = "^RPM"
|
||||
do_install_ptest() {
|
||||
tar -c --exclude=nfs test/ | ( cd ${D}${PTEST_PATH} && tar -xf - )
|
||||
install -d ${D}${PTEST_PATH}/include
|
||||
install -m 644 ${S}/include/builddefs ${S}/include/buildmacros ${S}/include/buildrules ${D}${PTEST_PATH}/include/
|
||||
# Remove any build host references
|
||||
sed -e "s:--sysroot=${STAGING_DIR_TARGET}::g" \
|
||||
-e 's:${HOSTTOOLS_DIR}/::g' \
|
||||
-e 's:${RECIPE_SYSROOT_NATIVE}::g' \
|
||||
-i ${D}${PTEST_PATH}/include/builddefs
|
||||
}
|
||||
|
||||
RDEPENDS_${PN}-ptest = "acl bash coreutils perl perl-module-filehandle perl-module-getopt-std perl-module-posix shadow"
|
||||
|
||||
Reference in New Issue
Block a user