aboutsummaryrefslogtreecommitdiffstats
path: root/meta/recipes-bsp
diff options
context:
space:
mode:
authorJuro Bystricky <juro.bystricky@intel.com>2017-09-25 16:36:08 -0700
committerRichard Purdie <richard.purdie@linuxfoundation.org>2017-11-08 22:23:43 +0000
commit391ceb68ba0be36009893bc9ab8a937a985052a9 (patch)
tree852850fb113c9b2c9b53237581d38c67caf5ea16 /meta/recipes-bsp
parent22d1ec2aa77e289813e0f3b516abdc8cdbc512d9 (diff)
downloadopenembedded-core-contrib-391ceb68ba0be36009893bc9ab8a937a985052a9.tar.gz
grub_2.02.bb: improve reproducibility
Remove several build host references from modinfo.sh files. Signed-off-by: Juro Bystricky <juro.bystricky@intel.com> Signed-off-by: Ross Burton <ross.burton@intel.com>
Diffstat (limited to 'meta/recipes-bsp')
-rw-r--r--meta/recipes-bsp/grub/grub_2.02.bb7
1 files changed, 7 insertions, 0 deletions
diff --git a/meta/recipes-bsp/grub/grub_2.02.bb b/meta/recipes-bsp/grub/grub_2.02.bb
index 57c65593654..b8055e7537b 100644
--- a/meta/recipes-bsp/grub/grub_2.02.bb
+++ b/meta/recipes-bsp/grub/grub_2.02.bb
@@ -8,6 +8,13 @@ FILES_grub-editenv = "${bindir}/grub-editenv"
do_install_append () {
install -d ${D}${sysconfdir}/grub.d
+ # Remove build host references...
+ find "${D}" -name modinfo.sh -type f -exec \
+ sed -i \
+ -e 's,--sysroot=${STAGING_DIR_TARGET},,g' \
+ -e 's|${DEBUG_PREFIX_MAP}||g' \
+ -e 's:${RECIPE_SYSROOT_NATIVE}::g' \
+ {} +
}
INSANE_SKIP_${PN} = "arch"