Skip to contentSkip to conversation

grub_2.02.bb: improve reproducibility

PATCH New Juro Bystricky 1 participant 1 message Sep 25, 2017

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 grub_2.02.bb: improve reproducibility

Remove several build host references from modinfo.sh files.

---
 meta/recipes-bsp/grub/grub_2.02.bb | 7 +++++++
 1 file changed, 7 insertions(+)
meta/recipes-bsp/grub/grub_2.02.bb +7 -0
index 57c6559..b8055e7 100644
@@ -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"
Signature · 1 line
2.7.4