Patchwork grub git: workaround debugedit problems

login
register
mail settings
Submitter Koen Kooi
Date April 14, 2014, 8:03 a.m.
Message ID <1397462617-29584-1-git-send-email-koen.kooi@linaro.org>
Download mbox | patch
Permalink /patch/70569/
State Accepted
Commit edb5f34b79d2a3781dbe3d9d15287d067c731701
Headers show

Comments

Koen Kooi - April 14, 2014, 8:03 a.m.
Debugedit errors out on bare metal binaries. The first version of this patch limited it to 64 bit targets, but the problem now shows up on 32 bit targets (minnowboard) as well.

Signed-off-by: Koen Kooi <koen.kooi@linaro.org>
---
 meta/recipes-bsp/grub/grub_git.bb | 4 ++++
 1 file changed, 4 insertions(+)
Koen Kooi - April 25, 2014, 7:02 a.m.
This is in OE-core master now, can it please go into 'daisy' as well? As you can see from Martins reports, it doesn't build there due to this problem.

Op 14 apr. 2014, om 10:03 heeft Koen Kooi <koen.kooi@linaro.org> het volgende geschreven:

> Debugedit errors out on bare metal binaries. The first version of this patch limited it to 64 bit targets, but the problem now shows up on 32 bit targets (minnowboard) as well.
> 
> Signed-off-by: Koen Kooi <koen.kooi@linaro.org>
> ---
> meta/recipes-bsp/grub/grub_git.bb | 4 ++++
> 1 file changed, 4 insertions(+)
> 
> diff --git a/meta/recipes-bsp/grub/grub_git.bb b/meta/recipes-bsp/grub/grub_git.bb
> index 9b5d9bb..114cf77 100644
> --- a/meta/recipes-bsp/grub/grub_git.bb
> +++ b/meta/recipes-bsp/grub/grub_git.bb
> @@ -53,8 +53,12 @@ do_configure_prepend() {
> do_install_append () {
>     install -d ${D}${sysconfdir}/grub.d
>     install -m 0755 ${WORKDIR}/40_custom ${D}${sysconfdir}/grub.d/40_custom
> + 
> }
> 
> +# debugedit chokes on bare metal binaries
> +INHIBIT_PACKAGE_DEBUG_SPLIT = "1"
> +
> RDEPENDS_${PN} = "diffutils freetype"
> FILES_${PN}-dbg += "${libdir}/${BPN}/*/.debug"
> 
> -- 
> 1.9.0
> 
> -- 
> _______________________________________________
> Openembedded-core mailing list
> Openembedded-core@lists.openembedded.org
> http://lists.openembedded.org/mailman/listinfo/openembedded-core
>

Patch

diff --git a/meta/recipes-bsp/grub/grub_git.bb b/meta/recipes-bsp/grub/grub_git.bb
index 9b5d9bb..114cf77 100644
--- a/meta/recipes-bsp/grub/grub_git.bb
+++ b/meta/recipes-bsp/grub/grub_git.bb
@@ -53,8 +53,12 @@  do_configure_prepend() {
 do_install_append () {
     install -d ${D}${sysconfdir}/grub.d
     install -m 0755 ${WORKDIR}/40_custom ${D}${sysconfdir}/grub.d/40_custom
+ 
 }
 
+# debugedit chokes on bare metal binaries
+INHIBIT_PACKAGE_DEBUG_SPLIT = "1"
+
 RDEPENDS_${PN} = "diffutils freetype"
 FILES_${PN}-dbg += "${libdir}/${BPN}/*/.debug"