[gnome-continuous-yocto/gnomeostree-3.28-rocko: 8176/8267] grub_2.02.bb: improve reproducibility



commit 02f64e5db85abea708dc6c384acc8b37f1521f23
Author: Juro Bystricky <juro bystricky intel com>
Date:   Mon Sep 25 16:36:08 2017 -0700

    grub_2.02.bb: improve reproducibility
    
    Remove several build host references from modinfo.sh files.
    
    (From OE-Core rev: cf4abc5eebdb5f88fefe3fb633bfdc1d2a94f9e3)
    
    Signed-off-by: Juro Bystricky <juro bystricky intel com>
    Signed-off-by: Ross Burton <ross burton intel com>
    Signed-off-by: Armin Kuster <akuster mvista com>
    Signed-off-by: Richard Purdie <richard purdie linuxfoundation org>

 meta/recipes-bsp/grub/grub_2.02.bb |    7 +++++++
 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 57c6559..b8055e7 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"


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]