summaryrefslogtreecommitdiffstats
path: root/meta/recipes-support
diff options
context:
space:
mode:
authorOleh Matiusha <omatiush@cisco.com>2024-03-27 17:16:16 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2024-04-04 14:05:03 +0100
commite6da241f294ea0e5ecd7fb22def149fb5af1b356 (patch)
tree5c368d7892db92367b13ff12af2a6e17603e4534 /meta/recipes-support
parentcabeed4e6d31fd798ab9dac0313b88a35d1d904d (diff)
downloadpoky-e6da241f294ea0e5ecd7fb22def149fb5af1b356.tar.gz
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>
Diffstat (limited to 'meta/recipes-support')
-rw-r--r--meta/recipes-support/gmp/gmp_6.3.0.bb10
1 files changed, 9 insertions, 1 deletions
diff --git a/meta/recipes-support/gmp/gmp_6.3.0.bb b/meta/recipes-support/gmp/gmp_6.3.0.bb
index 3dbcd68b5c..fd4aec92fd 100644
--- a/meta/recipes-support/gmp/gmp_6.3.0.bb
+++ b/meta/recipes-support/gmp/gmp_6.3.0.bb
@@ -29,13 +29,21 @@ do_install:append() {
29 oe_multilib_header gmp.h 29 oe_multilib_header gmp.h
30} 30}
31 31
32do_install:prepend:class-target() { 32fix_absolute_paths () {
33 sed -i \ 33 sed -i \
34 -e "s|--sysroot=${STAGING_DIR_HOST}||g" \ 34 -e "s|--sysroot=${STAGING_DIR_HOST}||g" \
35 -e "s|${DEBUG_PREFIX_MAP}||g" \ 35 -e "s|${DEBUG_PREFIX_MAP}||g" \
36 ${B}/gmp.h 36 ${B}/gmp.h
37} 37}
38 38
39do_install:prepend:class-target() {
40 fix_absolute_paths
41}
42
43do_install:prepend:class-nativesdk() {
44 fix_absolute_paths
45}
46
39SSTATE_SCAN_FILES += "gmp.h" 47SSTATE_SCAN_FILES += "gmp.h"
40 48
41# Doesn't compile in MIPS16e mode due to use of hand-written 49# Doesn't compile in MIPS16e mode due to use of hand-written