diff options
| author | Oleh Matiusha <omatiush@cisco.com> | 2024-03-27 17:16:16 +0000 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2024-04-04 14:05:03 +0100 |
| commit | e6da241f294ea0e5ecd7fb22def149fb5af1b356 (patch) | |
| tree | 5c368d7892db92367b13ff12af2a6e17603e4534 | |
| parent | cabeed4e6d31fd798ab9dac0313b88a35d1d904d (diff) | |
| download | poky-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>
| -rw-r--r-- | meta/recipes-support/gmp/gmp_6.3.0.bb | 10 |
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 | ||
| 32 | do_install:prepend:class-target() { | 32 | fix_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 | ||
| 39 | do_install:prepend:class-target() { | ||
| 40 | fix_absolute_paths | ||
| 41 | } | ||
| 42 | |||
| 43 | do_install:prepend:class-nativesdk() { | ||
| 44 | fix_absolute_paths | ||
| 45 | } | ||
| 46 | |||
| 39 | SSTATE_SCAN_FILES += "gmp.h" | 47 | SSTATE_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 |
