gmp: improve reproducibility

nativesdk-gmp package contains host references in output packages.
remove them.

(From OE-Core rev: 7b072b46bd0d0442066189ecf098b56e50ea77b1)

Signed-off-by: Oleh Matiusha <omatiush@cisco.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Oleh Matiusha
2024-03-27 17:16:16 +00:00
committed by Richard Purdie
parent cabeed4e6d
commit e6da241f29

View File

@@ -29,13 +29,21 @@ do_install:append() {
oe_multilib_header gmp.h
}
do_install:prepend:class-target() {
fix_absolute_paths () {
sed -i \
-e "s|--sysroot=${STAGING_DIR_HOST}||g" \
-e "s|${DEBUG_PREFIX_MAP}||g" \
${B}/gmp.h
}
do_install:prepend:class-target() {
fix_absolute_paths
}
do_install:prepend:class-nativesdk() {
fix_absolute_paths
}
SSTATE_SCAN_FILES += "gmp.h"
# Doesn't compile in MIPS16e mode due to use of hand-written