diff mbox

[2/2] u-boot/u-boot-tools: Fix compile on newer 32-bit distros

Message ID f9a46c1aba941f351af8434f09d17426497ffa81.1361952867.git.christian.braunersorensen@prevas.dk
State Accepted
Delegated to: Esben Haabendal
Headers show

Commit Message

christian.braunersorensen@prevas.dk Feb. 27, 2013, 8:15 a.m. UTC
From: Jacob Barsøe Kjærgaard <jacob.kjaergaard@prevas.dk>

---
 recipes/u-boot/u-boot-tools.inc | 8 ++++++++
 1 file changed, 8 insertions(+)

Comments

Esben Haabendal March 4, 2013, 10:55 a.m. UTC | #1
<christian.braunersorensen@prevas.dk> writes:

> From: Jacob Barsøe Kjærgaard <jacob.kjaergaard@prevas.dk>
>
> ---
>  recipes/u-boot/u-boot-tools.inc | 8 ++++++++
>  1 file changed, 8 insertions(+)
>
> diff --git a/recipes/u-boot/u-boot-tools.inc b/recipes/u-boot/u-boot-tools.inc
> index f0f0e9b..482f334 100644
> --- a/recipes/u-boot/u-boot-tools.inc
> +++ b/recipes/u-boot/u-boot-tools.inc
> @@ -24,6 +24,13 @@ do_configure () {
>  
>  MAKE_TARGETS = "tools-all"
>  
> +do_compile[prefuncs] += "do_compile_fix_gdb_include_path"
> +
> +do_compile_fix_gdb_include_path() {
> +    sed 's#\(BFD_ROOT_DIR =\).*#\1 ${HOST_SYSROOT}${includedir}#' -i ${S}/config.mk
> +}
> +
> +

Extra blank line.

>  do_compile () {
>      oe_runmake ${MAKE_TARGETS}
>  }
> @@ -53,3 +60,4 @@ AUTO_PACKAGE_UTILS = "${U_BOOT_TOOLS}"
>  PACKAGES =+ "${PN}-env"
>  FILES_${PN}-env = "${bindir}/fw_*env"
>  PROVIDES_${PN}-env = "util/fw_printenv util/fw_setenv"
> +

Stray blank line.

Merged to master with surplus blank lines removed.

/Esben
diff mbox

Patch

diff --git a/recipes/u-boot/u-boot-tools.inc b/recipes/u-boot/u-boot-tools.inc
index f0f0e9b..482f334 100644
--- a/recipes/u-boot/u-boot-tools.inc
+++ b/recipes/u-boot/u-boot-tools.inc
@@ -24,6 +24,13 @@  do_configure () {
 
 MAKE_TARGETS = "tools-all"
 
+do_compile[prefuncs] += "do_compile_fix_gdb_include_path"
+
+do_compile_fix_gdb_include_path() {
+    sed 's#\(BFD_ROOT_DIR =\).*#\1 ${HOST_SYSROOT}${includedir}#' -i ${S}/config.mk
+}
+
+
 do_compile () {
     oe_runmake ${MAKE_TARGETS}
 }
@@ -53,3 +60,4 @@  AUTO_PACKAGE_UTILS = "${U_BOOT_TOOLS}"
 PACKAGES =+ "${PN}-env"
 FILES_${PN}-env = "${bindir}/fw_*env"
 PROVIDES_${PN}-env = "util/fw_printenv util/fw_setenv"
+