Skip to contentSkip to conversation

u-boot-mkimage: Correct EXTRA_OEMAKE

PATCH Superseded Tom Rini 5 participants 12 messages Aug 17, 2012 – Aug 21, 2012

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore

Tom Rini

author
#0 lore raw

PATCH 1/5 u-boot-mkimage: Correct EXTRA_OEMAKE

- HOSTLD has never been used in U-Boot, drop.
- HOSTSTRIP has been valid for a long time for tools
- Same for HOSTCFLAGS / HOSTLDFLAGS

---
 meta/recipes-bsp/u-boot/u-boot-mkimage_2011.03.bb  |    4 ++--
 meta/recipes-bsp/u-boot/u-boot-mkimage_2011.06.bb  |    4 ++--
 .../u-boot/u-boot-mkimage_2012.04.01.bb            |    4 +++-
 3 files changed, 7 insertions(+), 5 deletions(-)
meta/recipes-bsp/u-boot/u-boot-mkimage_2011.03.bb +2 -2
index 34bae8e..9161f6c 100644
@@ -4,7 +4,7 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=1707d6db1d42237583f50183a5651ecb \
                     file://README;beginline=1;endline=22;md5=3a00ef51d3fc96e9d6c1bc4708ccd3b5"
 SECTION = "bootloader"
 
-PR = "r1"
+PR = "r2"
 
 SRC_URI = "ftp://ftp.denx.de/pub/u-boot/u-boot-${PV}.tar.bz2 \
            file://0001-Drop-config.h-include-in-tools-imximage.h.patch \
@@ -17,7 +17,7 @@ S = "${WORKDIR}/u-boot-${PV}"
 
 BBCLASSEXTEND = "native nativesdk"
 
-EXTRA_OEMAKE = 'HOSTCC="${CC}" HOSTLD="${LD}" HOSTSTRIP=true'
+EXTRA_OEMAKE = 'HOSTCC="${CC}" HOSTCFLAGS="${CFLAGS} HOSTLDFLAGS="${LDFLAGS}" HOSTSTRIP=true'
 
 do_compile () {
   oe_runmake tools
meta/recipes-bsp/u-boot/u-boot-mkimage_2011.06.bb +2 -2
index 3ca0c2c..2a83323 100644
@@ -4,7 +4,7 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=1707d6db1d42237583f50183a5651ecb \
                     file://README;beginline=1;endline=22;md5=5ba4218ac89af7846802d0348df3fb90"
 SECTION = "bootloader"
 
-PR = "r0"
+PR = "r1"
 
 SRC_URI = "ftp://ftp.denx.de/pub/u-boot/u-boot-${PV}.tar.bz2"
 
@@ -15,7 +15,7 @@ S = "${WORKDIR}/u-boot-${PV}"
 
 BBCLASSEXTEND = "native nativesdk"
 
-EXTRA_OEMAKE = 'HOSTCC="${CC}" HOSTLD="${LD}" HOSTLDFLAGS="${LDFLAGS}" HOSTSTRIP=true'
+EXTRA_OEMAKE = 'HOSTCC="${CC}" HOSTCFLAGS="${CFLAGS} HOSTLDFLAGS="${LDFLAGS}" HOSTSTRIP=true'
 
 do_compile () {
   oe_runmake tools
meta/recipes-bsp/u-boot/u-boot-mkimage_2012.04.01.bb +3 -1
index aa107fe..4d05202 100644
@@ -3,6 +3,8 @@ LICENSE = "GPLv2+"
 LIC_FILES_CHKSUM = "file://COPYING;md5=1707d6db1d42237583f50183a5651ecb"
 SECTION = "bootloader"
 
+PR = "r1"
+
 # This is needs to be validated among supported BSP's before we can
 # make it default
 DEFAULT_PREFERENCE = "-1"
@@ -18,7 +20,7 @@ SRC_URI = "git://git.denx.de/u-boot.git;branch=master;protocol=git"
 
 S = "${WORKDIR}/git"
 
-EXTRA_OEMAKE = 'HOSTCC="${CC}" HOSTLD="${LD}" HOSTLDFLAGS="${LDFLAGS}" HOSTSTRIP=true'
+EXTRA_OEMAKE = 'HOSTCC="${CC}" HOSTCFLAGS="${CFLAGS} HOSTLDFLAGS="${LDFLAGS}" HOSTSTRIP=true'
 
 do_compile () {
   oe_runmake tools
Signature · 1 line
1.7.9.5
author
#1 lore raw

PATCH 2/5 u-boot-fw-utils: Correct EXTRA_OEMAKE

- HOSTCFLAGS / HOSTLDFLAGS have been valid for a long time for tools/env
- HOSTSTRIP will be needed in the future, does no harm to be correct now.

---
 meta/recipes-bsp/u-boot/u-boot-fw-utils_2011.06.bb |    4 ++--
 .../u-boot/u-boot-fw-utils_2012.04.01.bb           |    4 +++-
 2 files changed, 5 insertions(+), 3 deletions(-)
meta/recipes-bsp/u-boot/u-boot-fw-utils_2011.06.bb +2 -2
index 7c4df1a..99eef15 100644
@@ -6,7 +6,7 @@ SECTION = "bootloader"
 
 DEPENDS = "mtd-utils"
 
-PR = "r1"
+PR = "r2"
 
 SRC_URI = "ftp://ftp.denx.de/pub/u-boot/u-boot-${PV}.tar.bz2"
 
@@ -15,7 +15,7 @@ SRC_URI[sha256sum] = "362ddb935885da98cf461eba08f31e3e59d0c4ada6cb2fa15596f43af3
 
 S = "${WORKDIR}/u-boot-${PV}"
 
-EXTRA_OEMAKE = 'HOSTCC="${CC}"'
+EXTRA_OEMAKE = 'HOSTCC="${CC}" HOSTCFLAGS="${CFLAGS} HOSTLDFLAGS="${LDFLAGS}" HOSTSTRIP=true'
 
 do_compile () {
   oe_runmake env
meta/recipes-bsp/u-boot/u-boot-fw-utils_2012.04.01.bb +3 -1
index fe3422a..364f8a5 100644
@@ -5,6 +5,8 @@ SECTION = "bootloader"
 
 DEPENDS = "mtd-utils"
 
+PR = "r1"
+
 # This is needs to be validated among supported BSP's before we can
 # make it default
 DEFAULT_PREFERENCE = "-1"
@@ -20,7 +22,7 @@ SRC_URI = "git://git.denx.de/u-boot.git;branch=master;protocol=git"
 
 S = "${WORKDIR}/git"
 
-EXTRA_OEMAKE = 'HOSTCC="${CC}"'
+EXTRA_OEMAKE = 'HOSTCC="${CC}" HOSTCFLAGS="${CFLAGS} HOSTLDFLAGS="${LDFLAGS}" HOSTSTRIP=true'
 
 do_compile () {
   oe_runmake env
Signature · 1 line
1.7.9.5
author
#7 lore raw

PATCH 3/5 u-boot-fw-utils: Update to v2012.07

In reply to Tom Rini
---
 .../u-boot/u-boot-fw-utils_2012.04.01.bb           |   35 --------------------
 meta/recipes-bsp/u-boot/u-boot-fw-utils_2012.07.bb |   33 ++++++++++++++++++
 2 files changed, 33 insertions(+), 35 deletions(-)
 delete mode 100644 meta/recipes-bsp/u-boot/u-boot-fw-utils_2012.04.01.bb
 create mode 100644 meta/recipes-bsp/u-boot/u-boot-fw-utils_2012.07.bb
meta/recipes-bsp/u-boot/u-boot-fw-utils_2012.04.01.bb deleted +0 -35
deleted file mode 100644
index 364f8a5..0000000
@@ -1,35 +0,0 @@
-DESCRIPTION = "U-boot bootloader fw_printenv/setenv utils"
-LICENSE = "GPLv2+"
-LIC_FILES_CHKSUM = "file://COPYING;md5=1707d6db1d42237583f50183a5651ecb"
-SECTION = "bootloader"
-
-DEPENDS = "mtd-utils"
-
-PR = "r1"
-
-# This is needs to be validated among supported BSP's before we can
-# make it default
-DEFAULT_PREFERENCE = "-1"
-
-# This revision corresponds to the tag "v2012.04.01"
-# We use the revision in order to avoid having to fetch it from the
-# repo during parse
-SRCREV = "415d386877df49eb051b85ef74fa59a16dc17c7d"
-
-PV = "v2012.04.01+git${SRCPV}"
-
-SRC_URI = "git://git.denx.de/u-boot.git;branch=master;protocol=git"
-
-S = "${WORKDIR}/git"
-
-EXTRA_OEMAKE = 'HOSTCC="${CC}" HOSTCFLAGS="${CFLAGS} HOSTLDFLAGS="${LDFLAGS}" HOSTSTRIP=true'
-
-do_compile () {
-  oe_runmake env
-}
-
-do_install () {
-  install -d ${D}${base_sbindir}
-  install -m 755 ${S}/tools/env/fw_printenv ${D}${base_sbindir}/fw_printenv
-  install -m 755 ${S}/tools/env/fw_printenv ${D}${base_sbindir}/fw_setenv
-}
meta/recipes-bsp/u-boot/u-boot-fw-utils_2012.07.bb new file +33 -0
new file mode 100644
index 0000000..8ec8ac1
@@ -0,0 +1,33 @@
+DESCRIPTION = "U-boot bootloader fw_printenv/setenv utils"
+LICENSE = "GPLv2+"
+LIC_FILES_CHKSUM = "file://COPYING;md5=1707d6db1d42237583f50183a5651ecb"
+SECTION = "bootloader"
+
+DEPENDS = "mtd-utils"
+
+# This is needs to be validated among supported BSP's before we can
+# make it default
+DEFAULT_PREFERENCE = "-1"
+
+# This revision corresponds to the tag "v2012.07"
+# We use the revision in order to avoid having to fetch it from the
+# repo during parse
+SRCREV = "190649fb4309d1bc0fe7732fd0f951cb6440f935"
+
+PV = "v2012.07+git${SRCPV}"
+
+SRC_URI = "git://git.denx.de/u-boot.git;branch=master;protocol=git"
+
+S = "${WORKDIR}/git"
+
+EXTRA_OEMAKE = 'HOSTCC="${CC}" HOSTCFLAGS="${CFLAGS} HOSTLDFLAGS="${LDFLAGS}" HOSTSTRIP=true'
+
+do_compile () {
+  oe_runmake env
+}
+
+do_install () {
+  install -d ${D}${base_sbindir}
+  install -m 755 ${S}/tools/env/fw_printenv ${D}${base_sbindir}/fw_printenv
+  install -m 755 ${S}/tools/env/fw_printenv ${D}${base_sbindir}/fw_setenv
+}
Signature · 1 line
1.7.9.5
author
#11 lore raw

PATCH 5/5 u-boot: Update to v2012.07

In reply to Tom Rini
---
 meta/recipes-bsp/u-boot/u-boot_2012.04.01.bb |   29 --------------------------
 meta/recipes-bsp/u-boot/u-boot_2012.07.bb    |   29 ++++++++++++++++++++++++++
 2 files changed, 29 insertions(+), 29 deletions(-)
 delete mode 100644 meta/recipes-bsp/u-boot/u-boot_2012.04.01.bb
 create mode 100644 meta/recipes-bsp/u-boot/u-boot_2012.07.bb
meta/recipes-bsp/u-boot/u-boot_2012.04.01.bb deleted +0 -29
deleted file mode 100644
index c4ec50d..0000000
@@ -1,29 +0,0 @@
-require u-boot.inc
-
-# This is needs to be validated among supported BSP's before we can
-# make it default
-DEFAULT_PREFERENCE = "-1"
-
-# To build u-boot for your machine, provide the following lines in
-# your machine config, replacing the assignments as appropriate for
-# your machine.
-# UBOOT_MACHINE = "omap3_beagle_config"
-# UBOOT_ENTRYPOINT = "0x80008000"
-# UBOOT_LOADADDRESS = "0x80008000"
-
-LICENSE = "GPLv2+"
-LIC_FILES_CHKSUM = "file://COPYING;md5=1707d6db1d42237583f50183a5651ecb"
-
-# This revision corresponds to the tag "v2012.04.01"
-# We use the revision in order to avoid having to fetch it from the
-# repo during parse
-SRCREV = "415d386877df49eb051b85ef74fa59a16dc17c7d"
-
-PV = "v2012.04.01+git${SRCPV}"
-PR = "r1"
-
-SRC_URI = "git://git.denx.de/u-boot.git;branch=master;protocol=git"
-
-S = "${WORKDIR}/git"
-
-PACKAGE_ARCH = "${MACHINE_ARCH}"
meta/recipes-bsp/u-boot/u-boot_2012.07.bb new file +29 -0
new file mode 100644
index 0000000..91f32e6
@@ -0,0 +1,29 @@
+require u-boot.inc
+
+# This is needs to be validated among supported BSP's before we can
+# make it default
+DEFAULT_PREFERENCE = "-1"
+
+# To build u-boot for your machine, provide the following lines in
+# your machine config, replacing the assignments as appropriate for
+# your machine.
+# UBOOT_MACHINE = "omap3_beagle_config"
+# UBOOT_ENTRYPOINT = "0x80008000"
+# UBOOT_LOADADDRESS = "0x80008000"
+
+LICENSE = "GPLv2+"
+LIC_FILES_CHKSUM = "file://COPYING;md5=1707d6db1d42237583f50183a5651ecb"
+
+# This revision corresponds to the tag "v2012.07"
+# We use the revision in order to avoid having to fetch it from the
+# repo during parse
+SRCREV = "190649fb4309d1bc0fe7732fd0f951cb6440f935"
+
+PV = "v2012.07+git${SRCPV}"
+PR = "r1"
+
+SRC_URI = "git://git.denx.de/u-boot.git;branch=master;protocol=git"
+
+S = "${WORKDIR}/git"
+
+PACKAGE_ARCH = "${MACHINE_ARCH}"
Signature · 1 line
1.7.9.5
author
#8 lore raw

PATCH 4/5 u-boot-mkimage: Update to v2012.07

In reply to Tom Rini
---
 .../u-boot/u-boot-mkimage_2012.04.01.bb            |   35 --------------------
 meta/recipes-bsp/u-boot/u-boot-mkimage_2012.07.bb  |   33 ++++++++++++++++++
 2 files changed, 33 insertions(+), 35 deletions(-)
 delete mode 100644 meta/recipes-bsp/u-boot/u-boot-mkimage_2012.04.01.bb
 create mode 100644 meta/recipes-bsp/u-boot/u-boot-mkimage_2012.07.bb
meta/recipes-bsp/u-boot/u-boot-mkimage_2012.04.01.bb deleted +0 -35
deleted file mode 100644
index 4d05202..0000000
@@ -1,35 +0,0 @@
-DESCRIPTION = "U-boot bootloader mkimage tool"
-LICENSE = "GPLv2+"
-LIC_FILES_CHKSUM = "file://COPYING;md5=1707d6db1d42237583f50183a5651ecb"
-SECTION = "bootloader"
-
-PR = "r1"
-
-# This is needs to be validated among supported BSP's before we can
-# make it default
-DEFAULT_PREFERENCE = "-1"
-
-# This revision corresponds to the tag "v2012.04.01"
-# We use the revision in order to avoid having to fetch it from the
-# repo during parse
-SRCREV = "415d386877df49eb051b85ef74fa59a16dc17c7d"
-
-PV = "v2012.04.01+git${SRCPV}"
-
-SRC_URI = "git://git.denx.de/u-boot.git;branch=master;protocol=git"
-
-S = "${WORKDIR}/git"
-
-EXTRA_OEMAKE = 'HOSTCC="${CC}" HOSTCFLAGS="${CFLAGS} HOSTLDFLAGS="${LDFLAGS}" HOSTSTRIP=true'
-
-do_compile () {
-  oe_runmake tools
-}
-
-do_install () {
-  install -d ${D}${bindir}
-  install -m 0755 tools/mkimage ${D}${bindir}/uboot-mkimage
-  ln -sf uboot-mkimage ${D}${bindir}/mkimage
-}
-
-BBCLASSEXTEND = "native nativesdk"
meta/recipes-bsp/u-boot/u-boot-mkimage_2012.07.bb new file +33 -0
new file mode 100644
index 0000000..d30a648
@@ -0,0 +1,33 @@
+DESCRIPTION = "U-boot bootloader mkimage tool"
+LICENSE = "GPLv2+"
+LIC_FILES_CHKSUM = "file://COPYING;md5=1707d6db1d42237583f50183a5651ecb"
+SECTION = "bootloader"
+
+# This is needs to be validated among supported BSP's before we can
+# make it default
+DEFAULT_PREFERENCE = "-1"
+
+# This revision corresponds to the tag "v2012.07"
+# We use the revision in order to avoid having to fetch it from the
+# repo during parse
+SRCREV = "190649fb4309d1bc0fe7732fd0f951cb6440f935"
+
+PV = "v2012.07+git${SRCPV}"
+
+SRC_URI = "git://git.denx.de/u-boot.git;branch=master;protocol=git"
+
+S = "${WORKDIR}/git"
+
+EXTRA_OEMAKE = 'HOSTCC="${CC}" HOSTCFLAGS="${CFLAGS} HOSTLDFLAGS="${LDFLAGS}" HOSTSTRIP=true'
+
+do_compile () {
+  oe_runmake tools
+}
+
+do_install () {
+  install -d ${D}${bindir}
+  install -m 0755 tools/mkimage ${D}${bindir}/uboot-mkimage
+  ln -sf uboot-mkimage ${D}${bindir}/mkimage
+}
+
+BBCLASSEXTEND = "native nativesdk"
Signature · 1 line
1.7.9.5
#9 lore raw

Re: [PATCH 4/5] u-boot-mkimage: Update to v2012.07

Quoted 79 lines · Tom Rini
---
  .../u-boot/u-boot-mkimage_2012.04.01.bb            |   35 --------------------
  meta/recipes-bsp/u-boot/u-boot-mkimage_2012.07.bb  |   33 ++++++++++++++++++
  2 files changed, 33 insertions(+), 35 deletions(-)

delete mode 100644 meta/recipes-bsp/u-boot/u-boot-mkimage_2012.04.01.bb create mode 100644 meta/recipes-bsp/u-boot/u-boot-mkimage_2012.07.bb

meta/recipes-bsp/u-boot/u-boot-mkimage_2012.04.01.bb deleted +0 -35
deleted file mode 100644
index 4d05202..0000000
@@ -1,35 +0,0 @@
-DESCRIPTION = "U-boot bootloader mkimage tool"
-LICENSE = "GPLv2+"
-LIC_FILES_CHKSUM = "file://COPYING;md5=1707d6db1d42237583f50183a5651ecb"
-SECTION = "bootloader"
-
-PR = "r1"
-
-# This is needs to be validated among supported BSP's before we can
-# make it default
-DEFAULT_PREFERENCE = "-1"
-
-# This revision corresponds to the tag "v2012.04.01"
-# We use the revision in order to avoid having to fetch it from the
-# repo during parse
-SRCREV = "415d386877df49eb051b85ef74fa59a16dc17c7d"
-
-PV = "v2012.04.01+git${SRCPV}"
-
-SRC_URI = "git://git.denx.de/u-boot.git;branch=master;protocol=git"
-
-S = "${WORKDIR}/git"
-
-EXTRA_OEMAKE = 'HOSTCC="${CC}" HOSTCFLAGS="${CFLAGS} HOSTLDFLAGS="${LDFLAGS}" HOSTSTRIP=true'
-
-do_compile () {
-  oe_runmake tools
-}
-
-do_install () {
-  install -d ${D}${bindir}
-  install -m 0755 tools/mkimage ${D}${bindir}/uboot-mkimage
-  ln -sf uboot-mkimage ${D}${bindir}/mkimage
-}
-
-BBCLASSEXTEND = "native nativesdk"
meta/recipes-bsp/u-boot/u-boot-mkimage_2012.07.bb new file +23 -0
new file mode 100644
index 0000000..d30a648
@@ -0,0 +1,33 @@
+DESCRIPTION = "U-boot bootloader mkimage tool"
+LICENSE = "GPLv2+"
+LIC_FILES_CHKSUM = "file://COPYING;md5=1707d6db1d42237583f50183a5651ecb"
+SECTION = "bootloader"
+
+# This is needs to be validated among supported BSP's before we can
+# make it default
+DEFAULT_PREFERENCE = "-1"
+
+# This revision corresponds to the tag "v2012.07"
+# We use the revision in order to avoid having to fetch it from the
+# repo during parse
+SRCREV = "190649fb4309d1bc0fe7732fd0f951cb6440f935"
+
+PV = "v2012.07+git${SRCPV}"
+
+SRC_URI = "git://git.denx.de/u-boot.git;branch=master;protocol=git"
+
+S = "${WORKDIR}/git"
+
+EXTRA_OEMAKE = 'HOSTCC="${CC}" HOSTCFLAGS="${CFLAGS} HOSTLDFLAGS="${LDFLAGS}" HOSTSTRIP=true'
+
+do_compile () {

meta/recipes-bsp/u-boot/u-boot-mkimage_2012.07.bb line 33

Quoted 10 lines
meta/recipes-bsp/u-boot/u-boot-mkimage_2012.07.bb new file +10 -0
+  oe_runmake tools
+}
+
+do_install () {
+  install -d ${D}${bindir}
+  install -m 0755 tools/mkimage ${D}${bindir}/uboot-mkimage
+  ln -sf uboot-mkimage ${D}${bindir}/mkimage
+}
+
+BBCLASSEXTEND = "native nativesdk"

Seems to be an issue with this:

Quoted 8 lines

ERROR: Function failed: do_install (see /srv/ssd/sgw_ab/yocto-autobuilder/yocto-slave/nightly-world/build/build/tmp/work/i586-poky-linux/u-boot-mkimage-2011.06-r1/temp/log.do_install.61586 for further information)
ERROR: Logfile of failure stored in: /srv/ssd/sgw_ab/yocto-autobuilder/yocto-slave/nightly-world/build/build/tmp/work/i586-poky-linux/u-boot-mkimage-2011.06-r1/temp/log.do_install.61586 Log data follows:

| DEBUG: Executing shell function do_install
| install: cannot stat `tools/mkimage': No such file or directory
| ERROR: Function failed: do_install (see /srv/ssd/sgw_ab/yocto-autobuilder/yocto-slave/nightly-world/build/build/tmp/work/i586-poky-linux/u-boot-mkimage-2011.06-r1/temp/log.do_install.61586 for further information)

NOTE: package u-boot-mkimage-2011.06-r1: task do_install: Failed
ERROR: Task 3190 (/srv/ssd/sgw_ab/yocto-autobuilder/yocto-slave/nightly-world/build/meta/recipes-bsp/u-boot/u-boot-mkimage_2011.06.bb, do_install) failed with exit code '1'

Sau!

#2 lore raw

Re: [PATCH 2/5] u-boot-fw-utils: Correct EXTRA_OEMAKE

In reply to Tom Rini
Quoted 47 lines · Tom Rini

- HOSTCFLAGS / HOSTLDFLAGS have been valid for a long time for tools/env
- HOSTSTRIP will be needed in the future, does no harm to be correct now.

---
  meta/recipes-bsp/u-boot/u-boot-fw-utils_2011.06.bb |    4 ++--
  .../u-boot/u-boot-fw-utils_2012.04.01.bb           |    4 +++-
  2 files changed, 5 insertions(+), 3 deletions(-)
meta/recipes-bsp/u-boot/u-boot-fw-utils_2011.06.bb +2 -2
index 7c4df1a..99eef15 100644
@@ -6,7 +6,7 @@ SECTION = "bootloader"
 
  DEPENDS = "mtd-utils"
 
-PR = "r1"
+PR = "r2"
 
  SRC_URI = "ftp://ftp.denx.de/pub/u-boot/u-boot-${PV}.tar.bz2"
 
@@ -15,7 +15,7 @@ SRC_URI[sha256sum] = "362ddb935885da98cf461eba08f31e3e59d0c4ada6cb2fa15596f43af3
 
  S = "${WORKDIR}/u-boot-${PV}"
 
-EXTRA_OEMAKE = 'HOSTCC="${CC}"'
+EXTRA_OEMAKE = 'HOSTCC="${CC}" HOSTCFLAGS="${CFLAGS} HOSTLDFLAGS="${LDFLAGS}" HOSTSTRIP=true'
 
  do_compile () {
    oe_runmake env
meta/recipes-bsp/u-boot/u-boot-fw-utils_2012.04.01.bb +2 -0
index fe3422a..364f8a5 100644
@@ -5,6 +5,8 @@ SECTION = "bootloader"
 
  DEPENDS = "mtd-utils"
 
+PR = "r1"
+
  # This is needs to be validated among supported BSP's before we can
  # make it default
  DEFAULT_PREFERENCE = "-1"

meta/recipes-bsp/u-boot/u-boot-fw-utils_2012.04.01.bb SRC_URI = "git://git.denx.de/u-boot.git;branch=master;protocol=git" · line 28

Quoted 8 lines
meta/recipes-bsp/u-boot/u-boot-fw-utils_2012.04.01.bb +1 -1
@@ -20,7 +22,7 @@ SRC_URI = "git://git.denx.de/u-boot.git;branch=master;protocol=git"
 
  S = "${WORKDIR}/git"
 
-EXTRA_OEMAKE = 'HOSTCC="${CC}"'
+EXTRA_OEMAKE = 'HOSTCC="${CC}" HOSTCFLAGS="${CFLAGS} HOSTLDFLAGS="${LDFLAGS}" HOSTSTRIP=true'
 
  do_compile () {
    oe_runmake env

This had a failure also:

Quoted 8 lines

ERROR: Function failed: do_install (see /srv/ssd/sgw_ab/yocto-autobuilder/yocto-slave/nightly-world/build/build/tmp/work/i586-poky-linux/u-boot-fw-utils-2011.06-r2/temp/log.do_install.69452 for further information)
ERROR: Logfile of failure stored in: /srv/ssd/sgw_ab/yocto-autobuilder/yocto-slave/nightly-world/build/build/tmp/work/i586-poky-linux/u-boot-fw-utils-2011.06-r2/temp/log.do_install.69452 Log data follows:

| DEBUG: Executing shell function do_install
| install: cannot stat `/srv/ssd/sgw_ab/yocto-autobuilder/yocto-slave/nightly-world/build/build/tmp/work/i586-poky-linux/u-boot-fw-utils-2011.06-r2/u-boot-2011.06/tools/env/fw_printenv': No such file or directory
| ERROR: Function failed: do_install (see /srv/ssd/sgw_ab/yocto-autobuilder/yocto-slave/nightly-world/build/build/tmp/work/i586-poky-linux/u-boot-fw-utils-2011.06-r2/temp/log.do_install.69452 for further information)

NOTE: package u-boot-fw-utils-2011.06-r2: task do_install: Failed
ERROR: Task 2755 (/srv/ssd/sgw_ab/yocto-autobuilder/yocto-slave/nightly-world/build/meta/recipes-bsp/u-boot/u-boot-fw-utils_2011.06.bb, do_install) failed with exit code '1'

Sau!

#10 lore raw

Re: [PATCH 4/5] u-boot-mkimage: Update to v2012.07

In reply to Saul Wold
Quoted 10 lines · Saul Wold
Quoted 10 lines

Log data follows:

| DEBUG: Executing shell function do_install
| install: cannot stat `tools/mkimage': No such file or directory
| ERROR: Function failed: do_install (see

/srv/ssd/sgw_ab/yocto-autobuilder/yocto-slave/nightly-world/build/build/tmp/work/i586-poky-linux/u-boot-mkimage-2011.06-r1/temp/log.do_install.61586 for further information)
NOTE: package u-boot-mkimage-2011.06-r1: task do_install: Failed
ERROR: Task 3190 (/srv/ssd/sgw_ab/yocto-autobuilder/yocto-slave/nightly-world/build/meta/recipes-bsp/u-boot/u-boot-mkimage_2011.06.bb, do_install) failed with exit code '1'

This is not the same version; Tom has send 2012.07 and you're building 2011.06 ;-)

Signature · 3 lines
Otavio Salvador                             O.S. Systems
E-mail: [email protected]  http://www.ossystems.com.br
Mobile: +55 53 9981-7854              http://projetos.ossystems.com.br
#3 lore raw

Re: [PATCH 2/5] u-boot-fw-utils: Correct EXTRA_OEMAKE

In reply to Saul Wold
Quoted 53 lines · Saul Wold
Quoted 52 lines · Tom Rini

- HOSTCFLAGS / HOSTLDFLAGS have been valid for a long time for tools/env
- HOSTSTRIP will be needed in the future, does no harm to be correct now.

---
 meta/recipes-bsp/u-boot/u-boot-fw-utils_2011.06.bb |    4 ++--
 .../u-boot/u-boot-fw-utils_2012.04.01.bb           |    4 +++-
 2 files changed, 5 insertions(+), 3 deletions(-)
meta/recipes-bsp/u-boot/u-boot-fw-utils_2011.06.bb +2 -2
index 7c4df1a..99eef15 100644
@@ -6,7 +6,7 @@ SECTION = "bootloader"
 
 DEPENDS = "mtd-utils"
 
-PR = "r1"
+PR = "r2"
 
 SRC_URI = "ftp://ftp.denx.de/pub/u-boot/u-boot-${PV}.tar.bz2"
 
@@ -15,7 +15,7 @@ SRC_URI[sha256sum] = "362ddb935885da98cf461eba08f31e3e59d0c4ada6cb2fa15596f43af3
 
 S = "${WORKDIR}/u-boot-${PV}"
 
-EXTRA_OEMAKE = 'HOSTCC="${CC}"'
+EXTRA_OEMAKE = 'HOSTCC="${CC}" HOSTCFLAGS="${CFLAGS} HOSTLDFLAGS="${LDFLAGS}" HOSTSTRIP=true'
 
 do_compile () {
   oe_runmake env
meta/recipes-bsp/u-boot/u-boot-fw-utils_2012.04.01.bb +3 -1
index fe3422a..364f8a5 100644
@@ -5,6 +5,8 @@ SECTION = "bootloader"
 
 DEPENDS = "mtd-utils"
 
+PR = "r1"
+
 # This is needs to be validated among supported BSP's before we can
 # make it default
 DEFAULT_PREFERENCE = "-1"
@@ -20,7 +22,7 @@ SRC_URI = "git://git.denx.de/u-boot.git;branch=master;protocol=git"
 
 S = "${WORKDIR}/git"
 
-EXTRA_OEMAKE = 'HOSTCC="${CC}"'
+EXTRA_OEMAKE = 'HOSTCC="${CC}" HOSTCFLAGS="${CFLAGS} HOSTLDFLAGS="${LDFLAGS}" HOSTSTRIP=true'
 
Quoted 15 lines

meta/recipes-bsp/u-boot/u-boot-fw-utils_2012.04.01.bb SRC_URI = "git://git.denx.de/u-boot.git;branch=master;protocol=git" · line 28

Quoted 3 lines
meta/recipes-bsp/u-boot/u-boot-fw-utils_2012.04.01.bb +0 -0
 do_compile () {
   oe_runmake env

This had a failure also:

Quoted 8 lines

ERROR: Function failed: do_install (see /srv/ssd/sgw_ab/yocto-autobuilder/yocto-slave/nightly-world/build/build/tmp/work/i586-poky-linux/u-boot-fw-utils-2011.06-r2/temp/log.do_install.69452 for further information)
ERROR: Logfile of failure stored in: /srv/ssd/sgw_ab/yocto-autobuilder/yocto-slave/nightly-world/build/build/tmp/work/i586-poky-linux/u-boot-fw-utils-2011.06-r2/temp/log.do_install.69452 Log data follows:

| DEBUG: Executing shell function do_install
| install: cannot stat `/srv/ssd/sgw_ab/yocto-autobuilder/yocto-slave/nightly-world/build/build/tmp/work/i586-poky-linux/u-boot-fw-utils-2011.06-r2/u-boot-2011.06/tools/env/fw_printenv': No such file or directory
| ERROR: Function failed: do_install (see /srv/ssd/sgw_ab/yocto-autobuilder/yocto-slave/nightly-world/build/build/tmp/work/i586-poky-linux/u-boot-fw-utils-2011.06-r2/temp/log.do_install.69452 for further information)

NOTE: package u-boot-fw-utils-2011.06-r2: task do_install: Failed
ERROR: Task 2755 (/srv/ssd/sgw_ab/yocto-autobuilder/yocto-slave/nightly-world/build/meta/recipes-bsp/u-boot/u-boot-fw-utils_2011.06.bb, do_install) failed with exit code '1'

I have to admit that since these were trivial changes I didn't try and build them. But oe-core doesn't build anymore. Doing:
git pull
git reset --hard origin/master
rm -rf build/conf build/tmp*
. oe-init-build-env
bitbake core-image-sato

Fails and can't give me a log. Can you pastebin the compile logs? Thanks!

Signature · 1 line
Tom
#4 lore raw

Re: [PATCH 2/5] u-boot-fw-utils: Correct EXTRA_OEMAKE

Quoted 23 lines · Tom Rini
Quoted 22 lines · Saul Wold
Quoted 21 lines · Tom Rini

- HOSTCFLAGS / HOSTLDFLAGS have been valid for a long time for tools/env
- HOSTSTRIP will be needed in the future, does no harm to be correct now.

---
  meta/recipes-bsp/u-boot/u-boot-fw-utils_2011.06.bb |    4 ++--
  .../u-boot/u-boot-fw-utils_2012.04.01.bb           |    4 +++-
  2 files changed, 5 insertions(+), 3 deletions(-)
meta/recipes-bsp/u-boot/u-boot-fw-utils_2011.06.bb +1 -1
index 7c4df1a..99eef15 100644
@@ -6,7 +6,7 @@ SECTION = "bootloader"
 
  DEPENDS = "mtd-utils"
 
-PR = "r1"
+PR = "r2"
 
Quoted 8 lines
Quoted 8 lines

meta/recipes-bsp/u-boot/u-boot-fw-utils_2011.06.bb SRC_URI[sha256sum] = "362ddb935885da98cf461eba08f31e3e59d0c4ada6cb2fa15596f43af3 · line 18

Quoted 8 lines
meta/recipes-bsp/u-boot/u-boot-fw-utils_2011.06.bb +1 -1
  SRC_URI = "ftp://ftp.denx.de/pub/u-boot/u-boot-${PV}.tar.bz2"
 
@@ -15,7 +15,7 @@ SRC_URI[sha256sum] = "362ddb935885da98cf461eba08f31e3e59d0c4ada6cb2fa15596f43af3
 
  S = "${WORKDIR}/u-boot-${PV}"
 
-EXTRA_OEMAKE = 'HOSTCC="${CC}"'
+EXTRA_OEMAKE = 'HOSTCC="${CC}" HOSTCFLAGS="${CFLAGS} HOSTLDFLAGS="${LDFLAGS}" HOSTSTRIP=true'

Ah, finally here it is ----------------------------------^

Missing a "!

Sau!

Quoted 47 lines
Quoted 23 lines
Quoted 23 lines
meta/recipes-bsp/u-boot/u-boot-fw-utils_2011.06.bb +0 -0
  do_compile () {
    oe_runmake env
meta/recipes-bsp/u-boot/u-boot-fw-utils_2012.04.01.bb +3 -1
index fe3422a..364f8a5 100644
@@ -5,6 +5,8 @@ SECTION = "bootloader"
 
  DEPENDS = "mtd-utils"
 
+PR = "r1"
+
  # This is needs to be validated among supported BSP's before we can
  # make it default
  DEFAULT_PREFERENCE = "-1"
@@ -20,7 +22,7 @@ SRC_URI = "git://git.denx.de/u-boot.git;branch=master;protocol=git"
 
  S = "${WORKDIR}/git"
 
-EXTRA_OEMAKE = 'HOSTCC="${CC}"'
+EXTRA_OEMAKE = 'HOSTCC="${CC}" HOSTCFLAGS="${CFLAGS} HOSTLDFLAGS="${LDFLAGS}" HOSTSTRIP=true'
 
Quoted 15 lines

meta/recipes-bsp/u-boot/u-boot-fw-utils_2012.04.01.bb SRC_URI = "git://git.denx.de/u-boot.git;branch=master;protocol=git" · line 28

Quoted 3 lines
meta/recipes-bsp/u-boot/u-boot-fw-utils_2012.04.01.bb +0 -0
  do_compile () {
    oe_runmake env

This had a failure also:

Quoted 8 lines

ERROR: Function failed: do_install (see /srv/ssd/sgw_ab/yocto-autobuilder/yocto-slave/nightly-world/build/build/tmp/work/i586-poky-linux/u-boot-fw-utils-2011.06-r2/temp/log.do_install.69452 for further information)
ERROR: Logfile of failure stored in: /srv/ssd/sgw_ab/yocto-autobuilder/yocto-slave/nightly-world/build/build/tmp/work/i586-poky-linux/u-boot-fw-utils-2011.06-r2/temp/log.do_install.69452 Log data follows:

| DEBUG: Executing shell function do_install
| install: cannot stat `/srv/ssd/sgw_ab/yocto-autobuilder/yocto-slave/nightly-world/build/build/tmp/work/i586-poky-linux/u-boot-fw-utils-2011.06-r2/u-boot-2011.06/tools/env/fw_printenv': No such file or directory
| ERROR: Function failed: do_install (see /srv/ssd/sgw_ab/yocto-autobuilder/yocto-slave/nightly-world/build/build/tmp/work/i586-poky-linux/u-boot-fw-utils-2011.06-r2/temp/log.do_install.69452 for further information)

NOTE: package u-boot-fw-utils-2011.06-r2: task do_install: Failed
ERROR: Task 2755 (/srv/ssd/sgw_ab/yocto-autobuilder/yocto-slave/nightly-world/build/meta/recipes-bsp/u-boot/u-boot-fw-utils_2011.06.bb, do_install) failed with exit code '1'

I have to admit that since these were trivial changes I didn't try and build them. But oe-core doesn't build anymore. Doing:
git pull
git reset --hard origin/master
rm -rf build/conf build/tmp*
. oe-init-build-env
bitbake core-image-sato

Quoted 1 line

Fails and can't give me a log. Can you pastebin the compile logs?

Finally the compile log, sorry had other fires I was fighting, seems the make is doing nothing!

Quoted 8 lines

DEBUG: Executing shell function do_compile
NOTE: make -j 6 HOSTCC=arm-poky-linux-gnueabi-gcc -march=armv7-a -fno-tree-vectorize -mthumb-interwork -mfloat-abi=softfp -mfpu=neon -mtune=cortex-a8 --sysroot=/intel/poky/builds/world/tmp/sysroots/beagleboard HOSTCFLAGS= -O2 -pipe -g -feliminate-unused-debug-types HOSTLDFLAGS=-Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed HOSTSTRIP=true tools

	make -j 6 HOSTCC=arm-poky-linux-gnueabi-gcc -march=armv7-a -fno-tree-vectorize -mthumb-interwork -mfloat-abi=softfp -mfpu=neon -mtune=cortex-a8 --sysroot=/intel/poky/builds/world/tmp/sysroots/beagleboard HOSTCFLAGS= -O2 -pipe -g -feliminate-unused-debug-types HOSTLDFLAGS=-Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed HOSTSTRIP=true tools

DEBUG: Shell function do_compile finished

Thanks!

#5 lore raw

Re: [PATCH 2/5] u-boot-fw-utils: Correct EXTRA_OEMAKE

Quoted 1 line · Saul Wold

HOSTCFLAGS="${CFLAGS}

needs a closing quote

#6 lore raw

Re: [PATCH 2/5] u-boot-fw-utils: Correct EXTRA_OEMAKE

Quoted 4 lines · Khem Raj
Quoted 1 line · Saul Wold

HOSTCFLAGS="${CFLAGS}

needs a closing quote

Good spotting, both of you. But I can't test a v2 as the problem of nothing being buildable on just oe-core still remains. Of course, I'll happily don another brown paper bag atop my current one, just point me at what I've got wrong :)

Signature · 1 line
Tom