u-boot: update to 2015.01
PATCH 1/1 u-boot: update to 2015.01
From: Denys Dmytriyenko <[email protected]>
---
...2014.07.bb => u-boot-fw-utils-cross_2015.01.bb} | 11 ++++---
.../0001-tools-env-fix-build-error.patch | 36 ++++++++++++++++++++++
...utils_2014.07.bb => u-boot-fw-utils_2015.01.bb} | 12 +++++---
...kimage_2014.07.bb => u-boot-mkimage_2015.01.bb} | 20 ++++++------
meta/recipes-bsp/u-boot/u-boot.inc | 2 +-
.../{u-boot_2014.07.bb => u-boot_2015.01.bb} | 6 ++--
6 files changed, 62 insertions(+), 25 deletions(-)
rename meta/recipes-bsp/u-boot/{u-boot-fw-utils-cross_2014.07.bb => u-boot-fw-utils-cross_2015.01.bb} (76%)
create mode 100644 meta/recipes-bsp/u-boot/u-boot-fw-utils/0001-tools-env-fix-build-error.patch
rename meta/recipes-bsp/u-boot/{u-boot-fw-utils_2014.07.bb => u-boot-fw-utils_2015.01.bb} (69%)
rename meta/recipes-bsp/u-boot/{u-boot-mkimage_2014.07.bb => u-boot-mkimage_2015.01.bb} (45%)
rename meta/recipes-bsp/u-boot/{u-boot_2014.07.bb => u-boot_2015.01.bb} (50%)meta/recipes-bsp/u-boot/u-boot-fw-utils-cross_2015.01.bb renamed from meta/recipes-bsp/u-boot/u-boot-fw-utils-cross_2014.07.bb +6 -5
@@ -1,17 +1,18 @@ SUMMARY = "U-Boot bootloader fw_printenv/setenv utilities" LICENSE = "GPLv2+" -LIC_FILES_CHKSUM = "file://Licenses/README;md5=025bf9f768cbcb1a165dbe1a110babfb" +LIC_FILES_CHKSUM = "file://Licenses/README;md5=c7383a594871c03da76b3707929d2919" SECTION = "bootloader" DEPENDS = "mtd-utils" -# This revision corresponds to the tag "v2014.07" +# This revision corresponds to the tag "v2015.01" # We use the revision in order to avoid having to fetch it from the # repo during parse -SRCREV = "524123a70761110c5cf3ccc5f52f6d4da071b959" +SRCREV = "92fa7f53f1f3f03296f8ffb14bdf1baefab83368" -PV = "v2014.07+git${SRCPV}" +PV = "v2015.01+git${SRCPV}" -SRC_URI = "git://git.denx.de/u-boot.git;branch=master;protocol=git" +SRC_URI = "git://git.denx.de/u-boot.git;branch=master;protocol=git \ + file://0001-tools-env-fix-build-error.patch" S = "${WORKDIR}/git"
meta/recipes-bsp/u-boot/u-boot-fw-utils/0001-tools-env-fix-build-error.patch new file +36 -0
@@ -0,0 +1,36 @@ +From ee2d75513452aa6d5306fd380104adc8a2f6d8f2 Mon Sep 17 00:00:00 2001 +From: Masahiro Yamada <[email protected]> +Date: Wed, 3 Dec 2014 10:22:50 +0900 +Subject: [PATCH] tools: env: fix build error + +Since CONFIG_SYS_ARCH, CONFIG_SYS_CPU, ... were moved to Kconfig, +tools/env/fw_printenv fails to build if CONFIG_ENV_VARS_UBOOT_CONFIG +is defined. +(I do not think this is the right way to fix the problem, but +for now I do not have enough time to take a close look.) + +Upstream-Status: Submitted [http://patchwork.ozlabs.org/patch/417192/] + +Signed-off-by: Masahiro Yamada <[email protected]> +Reported-by: Denys Dmytriyenko <[email protected]> +--- + tools/env/fw_env.c | 3 +++ + 1 file changed, 3 insertions(+) + +diff --git a/tools/env/fw_env.c b/tools/env/fw_env.c +index 1173eea..698fe51 100644 +--- a/tools/env/fw_env.c ++++ b/tools/env/fw_env.c +@@ -8,6 +8,9 @@ + * SPDX-License-Identifier: GPL-2.0+ + */ + ++/* FIXME: Do not include this */ ++#include <linux/kconfig.h> ++ + #include <errno.h> + #include <env_flags.h> + #include <fcntl.h> +-- +2.2.0 +
meta/recipes-bsp/u-boot/u-boot-fw-utils_2015.01.bb renamed from meta/recipes-bsp/u-boot/u-boot-fw-utils_2014.07.bb +7 -5
@@ -1,21 +1,23 @@ SUMMARY = "U-Boot bootloader fw_printenv/setenv utilities" LICENSE = "GPLv2+" -LIC_FILES_CHKSUM = "file://Licenses/README;md5=025bf9f768cbcb1a165dbe1a110babfb" +LIC_FILES_CHKSUM = "file://Licenses/README;md5=c7383a594871c03da76b3707929d2919" SECTION = "bootloader" DEPENDS = "mtd-utils" -# This revision corresponds to the tag "v2014.07" +# This revision corresponds to the tag "v2015.01" # We use the revision in order to avoid having to fetch it from the # repo during parse -SRCREV = "524123a70761110c5cf3ccc5f52f6d4da071b959" +SRCREV = "92fa7f53f1f3f03296f8ffb14bdf1baefab83368" -PV = "v2014.07+git${SRCPV}" +PV = "v2015.01+git${SRCPV}" -SRC_URI = "git://git.denx.de/u-boot.git;branch=master;protocol=git" +SRC_URI = "git://git.denx.de/u-boot.git;branch=master;protocol=git \ + file://0001-tools-env-fix-build-error.patch" S = "${WORKDIR}/git" INSANE_SKIP_${PN} = "already-stripped" +EXTRA_OEMAKE = 'CROSS_COMPILE=${TARGET_PREFIX} CC="${CC}"' inherit uboot-config
meta/recipes-bsp/u-boot/u-boot-mkimage_2015.01.bb renamed from meta/recipes-bsp/u-boot/u-boot-mkimage_2014.07.bb +9 -11
@@ -1,28 +1,26 @@ SUMMARY = "U-Boot bootloader image creation tool" LICENSE = "GPLv2+" -LIC_FILES_CHKSUM = "file://Licenses/README;md5=025bf9f768cbcb1a165dbe1a110babfb" +LIC_FILES_CHKSUM = "file://Licenses/README;md5=c7383a594871c03da76b3707929d2919" SECTION = "bootloader" -# This revision corresponds to the tag "v2014.07" +DEPENDS = "openssl" + +# This revision corresponds to the tag "v2015.01" # We use the revision in order to avoid having to fetch it from the # repo during parse -SRCREV = "524123a70761110c5cf3ccc5f52f6d4da071b959" +SRCREV = "92fa7f53f1f3f03296f8ffb14bdf1baefab83368" -PV = "v2014.07+git${SRCPV}" +PV = "v2015.01+git${SRCPV}" 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 = 'CROSS_COMPILE="${TARGET_PREFIX}" CC="${CC}" STRIP=true' do_compile () { - # Make sure the recompile is OK - rm -f ${B}/tools/.depend - - make HOSTCC="${BUILD_CC}" HOSTLD="${BUILD_LD}" HOSTLDFLAGS="${BUILD_LDFLAGS}" HOSTSTRIP=true dot-config=0 scripts_basic - sed 's/^tools-only: scripts_basic /tools-only: /' -i Makefile - oe_runmake tools-only + oe_runmake sandbox_defconfig + oe_runmake cross_tools NO_SDL=1 } do_install () {
meta/recipes-bsp/u-boot/u-boot.inc +1 -1
@@ -4,7 +4,7 @@ SECTION = "bootloaders" PROVIDES = "virtual/bootloader" LICENSE = "GPLv2+" -LIC_FILES_CHKSUM = "file://Licenses/README;md5=025bf9f768cbcb1a165dbe1a110babfb" +LIC_FILES_CHKSUM = "file://Licenses/README;md5=c7383a594871c03da76b3707929d2919" SRC_URI = "git://git.denx.de/u-boot.git;branch=master"
meta/recipes-bsp/u-boot/u-boot_2015.01.bb renamed from meta/recipes-bsp/u-boot/u-boot_2014.07.bb +3 -3
@@ -2,8 +2,8 @@ require u-boot.inc DEPENDS += "dtc-native" -# This revision corresponds to the tag "v2014.07" +# This revision corresponds to the tag "v2015.01" # We use the revision in order to avoid having to fetch it from the repo during parse -SRCREV = "524123a70761110c5cf3ccc5f52f6d4da071b959" +SRCREV = "92fa7f53f1f3f03296f8ffb14bdf1baefab83368" -PV = "v2014.07+git${SRCPV}" +PV = "v2015.01+git${SRCPV}"
Signature · 1 line
2.2.0
Ping.
Quoted 211 lines · Denys Dmytriyenko
From: Denys Dmytriyenko <[email protected]>
Signed-off-by Denys Dmytriyenko <[email protected]>--- ...2014.07.bb => u-boot-fw-utils-cross_2015.01.bb} | 11 ++++--- .../0001-tools-env-fix-build-error.patch | 36 ++++++++++++++++++++++ ...utils_2014.07.bb => u-boot-fw-utils_2015.01.bb} | 12 +++++--- ...kimage_2014.07.bb => u-boot-mkimage_2015.01.bb} | 20 ++++++------ meta/recipes-bsp/u-boot/u-boot.inc | 2 +- .../{u-boot_2014.07.bb => u-boot_2015.01.bb} | 6 ++-- 6 files changed, 62 insertions(+), 25 deletions(-) rename meta/recipes-bsp/u-boot/{u-boot-fw-utils-cross_2014.07.bb => u-boot-fw-utils-cross_2015.01.bb} (76%) create mode 100644 meta/recipes-bsp/u-boot/u-boot-fw-utils/0001-tools-env-fix-build-error.patch rename meta/recipes-bsp/u-boot/{u-boot-fw-utils_2014.07.bb => u-boot-fw-utils_2015.01.bb} (69%) rename meta/recipes-bsp/u-boot/{u-boot-mkimage_2014.07.bb => u-boot-mkimage_2015.01.bb} (45%) rename meta/recipes-bsp/u-boot/{u-boot_2014.07.bb => u-boot_2015.01.bb} (50%)meta/recipes-bsp/u-boot/u-boot-fw-utils-cross_2015.01.bb renamed from meta/recipes-bsp/u-boot/u-boot-fw-utils-cross_2014.07.bb +6
-5@@ -1,17 +1,18 @@ SUMMARY = "U-Boot bootloader fw_printenv/setenv utilities" LICENSE = "GPLv2+" -LIC_FILES_CHKSUM = "file://Licenses/README;md5=025bf9f768cbcb1a165dbe1a110babfb" +LIC_FILES_CHKSUM = "file://Licenses/README;md5=c7383a594871c03da76b3707929d2919" SECTION = "bootloader" DEPENDS = "mtd-utils" -# This revision corresponds to the tag "v2014.07" +# This revision corresponds to the tag "v2015.01" # We use the revision in order to avoid having to fetch it from the # repo during parse -SRCREV = "524123a70761110c5cf3ccc5f52f6d4da071b959" +SRCREV = "92fa7f53f1f3f03296f8ffb14bdf1baefab83368" -PV = "v2014.07+git${SRCPV}" +PV = "v2015.01+git${SRCPV}" -SRC_URI = "git://git.denx.de/u-boot.git;branch=master;protocol=git" +SRC_URI = "git://git.denx.de/u-boot.git;branch=master;protocol=git \ + file://0001-tools-env-fix-build-error.patch" S = "${WORKDIR}/git"meta/recipes-bsp/u-boot/u-boot-fw-utils/0001-tools-env-fix-build-error.patch new file +36
-0@@ -0,0 +1,36 @@ +From ee2d75513452aa6d5306fd380104adc8a2f6d8f2 Mon Sep 17 00:00:00 2001 +From: Masahiro Yamada <[email protected]> +Date: Wed, 3 Dec 2014 10:22:50 +0900 +Subject: [PATCH] tools: env: fix build error + +Since CONFIG_SYS_ARCH, CONFIG_SYS_CPU, ... were moved to Kconfig, +tools/env/fw_printenv fails to build if CONFIG_ENV_VARS_UBOOT_CONFIG +is defined. +(I do not think this is the right way to fix the problem, but +for now I do not have enough time to take a close look.) + +Upstream-Status: Submitted [http://patchwork.ozlabs.org/patch/417192/] + +Signed-off-by: Masahiro Yamada <[email protected]> +Reported-by: Denys Dmytriyenko <[email protected]> +--- + tools/env/fw_env.c | 3 +++ + 1 file changed, 3 insertions(+) + +diff --git a/tools/env/fw_env.c b/tools/env/fw_env.c +index 1173eea..698fe51 100644 +--- a/tools/env/fw_env.c ++++ b/tools/env/fw_env.c +@@ -8,6 +8,9 @@ + * SPDX-License-Identifier: GPL-2.0+ + */ + ++/* FIXME: Do not include this */ ++#include <linux/kconfig.h> ++ + #include <errno.h> + #include <env_flags.h> + #include <fcntl.h> +-- +2.2.0 +meta/recipes-bsp/u-boot/u-boot-fw-utils_2015.01.bb renamed from meta/recipes-bsp/u-boot/u-boot-fw-utils_2014.07.bb +7
-5@@ -1,21 +1,23 @@ SUMMARY = "U-Boot bootloader fw_printenv/setenv utilities" LICENSE = "GPLv2+" -LIC_FILES_CHKSUM = "file://Licenses/README;md5=025bf9f768cbcb1a165dbe1a110babfb" +LIC_FILES_CHKSUM = "file://Licenses/README;md5=c7383a594871c03da76b3707929d2919" SECTION = "bootloader" DEPENDS = "mtd-utils" -# This revision corresponds to the tag "v2014.07" +# This revision corresponds to the tag "v2015.01" # We use the revision in order to avoid having to fetch it from the # repo during parse -SRCREV = "524123a70761110c5cf3ccc5f52f6d4da071b959" +SRCREV = "92fa7f53f1f3f03296f8ffb14bdf1baefab83368" -PV = "v2014.07+git${SRCPV}" +PV = "v2015.01+git${SRCPV}" -SRC_URI = "git://git.denx.de/u-boot.git;branch=master;protocol=git" +SRC_URI = "git://git.denx.de/u-boot.git;branch=master;protocol=git \ + file://0001-tools-env-fix-build-error.patch" S = "${WORKDIR}/git" INSANE_SKIP_${PN} = "already-stripped" +EXTRA_OEMAKE = 'CROSS_COMPILE=${TARGET_PREFIX} CC="${CC}"' inherit uboot-configmeta/recipes-bsp/u-boot/u-boot-mkimage_2015.01.bb renamed from meta/recipes-bsp/u-boot/u-boot-mkimage_2014.07.bb +9
-11@@ -1,28 +1,26 @@ SUMMARY = "U-Boot bootloader image creation tool" LICENSE = "GPLv2+" -LIC_FILES_CHKSUM = "file://Licenses/README;md5=025bf9f768cbcb1a165dbe1a110babfb" +LIC_FILES_CHKSUM = "file://Licenses/README;md5=c7383a594871c03da76b3707929d2919" SECTION = "bootloader" -# This revision corresponds to the tag "v2014.07" +DEPENDS = "openssl" + +# This revision corresponds to the tag "v2015.01" # We use the revision in order to avoid having to fetch it from the # repo during parse -SRCREV = "524123a70761110c5cf3ccc5f52f6d4da071b959" +SRCREV = "92fa7f53f1f3f03296f8ffb14bdf1baefab83368" -PV = "v2014.07+git${SRCPV}" +PV = "v2015.01+git${SRCPV}" 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 = 'CROSS_COMPILE="${TARGET_PREFIX}" CC="${CC}" STRIP=true' do_compile () { - # Make sure the recompile is OK - rm -f ${B}/tools/.depend - - make HOSTCC="${BUILD_CC}" HOSTLD="${BUILD_LD}" HOSTLDFLAGS="${BUILD_LDFLAGS}" HOSTSTRIP=true dot-config=0 scripts_basic - sed 's/^tools-only: scripts_basic /tools-only: /' -i Makefile - oe_runmake tools-only + oe_runmake sandbox_defconfig + oe_runmake cross_tools NO_SDL=1 } do_install () {meta/recipes-bsp/u-boot/u-boot.inc +1
-1@@ -4,7 +4,7 @@ SECTION = "bootloaders" PROVIDES = "virtual/bootloader" LICENSE = "GPLv2+" -LIC_FILES_CHKSUM = "file://Licenses/README;md5=025bf9f768cbcb1a165dbe1a110babfb" +LIC_FILES_CHKSUM = "file://Licenses/README;md5=c7383a594871c03da76b3707929d2919" SRC_URI = "git://git.denx.de/u-boot.git;branch=master"meta/recipes-bsp/u-boot/u-boot_2015.01.bb renamed from meta/recipes-bsp/u-boot/u-boot_2014.07.bb +3
-3@@ -2,8 +2,8 @@ require u-boot.inc DEPENDS += "dtc-native" -# This revision corresponds to the tag "v2014.07" +# This revision corresponds to the tag "v2015.01" # We use the revision in order to avoid having to fetch it from the repo during parse -SRCREV = "524123a70761110c5cf3ccc5f52f6d4da071b959" +SRCREV = "92fa7f53f1f3f03296f8ffb14bdf1baefab83368" -PV = "v2014.07+git${SRCPV}" +PV = "v2015.01+git${SRCPV}"Signature · 7 lines
2.2.0 -- _______________________________________________ Openembedded-core mailing list [email protected] http://lists.openembedded.org/mailman/listinfo/openembedded-core
Quoted 3 lines · Denys Dmytriyenko
From: Denys Dmytriyenko <[email protected]>
Signed-off-by Denys Dmytriyenko <[email protected]>
...
Quoted 7 lines
+++
b/meta/recipes-bsp/u-boot/u-boot-fw-utils/0001-tools-env-fix-build-error.patchmeta/recipes-bsp/u-boot/u-boot-fw-utils/0001-tools-env-fix-build-error.patch new file +5
-0@@ -0,0 +1,36 @@ +From ee2d75513452aa6d5306fd380104adc8a2f6d8f2 Mon Sep 17 00:00:00 2001 +From: Masahiro Yamada <[email protected]> +Date: Wed, 3 Dec 2014 10:22:50 +0900 +Subject: [PATCH] tools: env: fix build error +
meta/recipes-bsp/u-boot/u-boot-fw-utils/0001-tools-env-fix-build-error.patch line 15
Quoted 10 lines
meta/recipes-bsp/u-boot/u-boot-fw-utils/0001-tools-env-fix-build-error.patch new file +10
-0+Since CONFIG_SYS_ARCH, CONFIG_SYS_CPU, ... were moved to Kconfig, +tools/env/fw_printenv fails to build if CONFIG_ENV_VARS_UBOOT_CONFIG +is defined. +(I do not think this is the right way to fix the problem, but +for now I do not have enough time to take a close look.) + +Upstream-Status: Submitted [http://patchwork.ozlabs.org/patch/417192/] + +Signed-off-by: Masahiro Yamada <[email protected]> +Reported-by: Denys Dmytriyenko <[email protected]>
Is it necessary? In meta-fsl-arm we don't have this patch and get the tools built.
Signature · 3 lines
Otavio Salvador O.S. Systems http://www.ossystems.com.br http://code.ossystems.com.br Mobile: +55 (53) 9981-7854 Mobile: +1 (347) 903-9750
Quoted 17 lines · Otavio Salvador
Quoted 3 lines · Denys Dmytriyenko
From: Denys Dmytriyenko <[email protected]>
Signed-off-by Denys Dmytriyenko <[email protected]>...
Quoted 12 lines
+++
b/meta/recipes-bsp/u-boot/u-boot-fw-utils/0001-tools-env-fix-build-error.patchmeta/recipes-bsp/u-boot/u-boot-fw-utils/0001-tools-env-fix-build-error.patch new file +10
-0@@ -0,0 +1,36 @@ +From ee2d75513452aa6d5306fd380104adc8a2f6d8f2 Mon Sep 17 00:00:00 2001 +From: Masahiro Yamada <[email protected]> +Date: Wed, 3 Dec 2014 10:22:50 +0900 +Subject: [PATCH] tools: env: fix build error + +Since CONFIG_SYS_ARCH, CONFIG_SYS_CPU, ... were moved to Kconfig, +tools/env/fw_printenv fails to build if CONFIG_ENV_VARS_UBOOT_CONFIG +is defined. +(I do not think this is the right way to fix the problem, but +for now I do not have enough time to take a close look.)
Quoted 8 lines
meta/recipes-bsp/u-boot/u-boot-fw-utils/0001-tools-env-fix-build-error.patch line 15
Quoted 5 lines
meta/recipes-bsp/u-boot/u-boot-fw-utils/0001-tools-env-fix-build-error.patch new file +5
-0+ +Upstream-Status: Submitted [http://patchwork.ozlabs.org/patch/417192/] + +Signed-off-by: Masahiro Yamada <[email protected]> +Reported-by: Denys Dmytriyenko <[email protected]>Is it necessary? In meta-fsl-arm we don't have this patch and get the tools built.
Really? The patch above is rather self-explanatory. The issue was confirmed by U-boot maintainers and the workaround provided by one of the core developers. I'm not familiar with meta-fsl-arm, but I guess you can grep your platform's defconfig to see if CONFIG_ENV_VARS_UBOOT_CONFIG and others are defined and whether your platforms are affected or not. It does affect our platforms (among many others), including beaglebone.
Signature · 1 line
Denys
Quoted 27 lines · Denys Dmytriyenko
Quoted 17 lines · Otavio Salvador
Quoted 3 lines · Denys Dmytriyenko
From: Denys Dmytriyenko <[email protected]>
Signed-off-by Denys Dmytriyenko <[email protected]>...
Quoted 12 lines
+++
b/meta/recipes-bsp/u-boot/u-boot-fw-utils/0001-tools-env-fix-build-error.patchmeta/recipes-bsp/u-boot/u-boot-fw-utils/0001-tools-env-fix-build-error.patch new file +10
-0@@ -0,0 +1,36 @@ +From ee2d75513452aa6d5306fd380104adc8a2f6d8f2 Mon Sep 17 00:00:00 2001 +From: Masahiro Yamada <[email protected]> +Date: Wed, 3 Dec 2014 10:22:50 +0900 +Subject: [PATCH] tools: env: fix build error + +Since CONFIG_SYS_ARCH, CONFIG_SYS_CPU, ... were moved to Kconfig, +tools/env/fw_printenv fails to build if CONFIG_ENV_VARS_UBOOT_CONFIG +is defined. +(I do not think this is the right way to fix the problem, but +for now I do not have enough time to take a close look.)Quoted 8 lines
meta/recipes-bsp/u-boot/u-boot-fw-utils/0001-tools-env-fix-build-error.patch line 15
Quoted 5 lines
meta/recipes-bsp/u-boot/u-boot-fw-utils/0001-tools-env-fix-build-error.patch new file +5
-0+ +Upstream-Status: Submitted [http://patchwork.ozlabs.org/patch/417192/] + +Signed-off-by: Masahiro Yamada <[email protected]> +Reported-by: Denys Dmytriyenko <[email protected]>Is it necessary? In meta-fsl-arm we don't have this patch and get the tools built.
Quoted 6 lines
Really? The patch above is rather self-explanatory. The issue was confirmed by U-boot maintainers and the workaround provided by one of the core developers. I'm not familiar with meta-fsl-arm, but I guess you can grep your platform's defconfig to see if
CONFIG_ENV_VARS_UBOOT_CONFIGand others are defined and whether your platforms are affected or not. It does affect our platforms (among many others), including beaglebone.
I think this is for the cross tool only.
Signature · 3 lines
Otavio Salvador O.S. Systems http://www.ossystems.com.br http://code.ossystems.com.br Mobile: +55 (53) 9981-7854 Mobile: +1 (347) 903-9750
Denys, I tested your patch and It seems not to be working for u-boot-fw-utils-cross
$ bitbake u-boot-fw-utils-cross Loading cache: 100% |########################################################################################################################################################################| ETA: 00:00:00 Loaded 1921 entries from dependency cache. Parsing recipes: 100% |######################################################################################################################################################################| Time: 00:00:00 Parsing of 1451 .bb files complete (1450 cached, 1 parsed). 1914 targets, 85 skipped, 0 masked, 0 errors. NOTE: Resolving any missing task queue dependencies
Build Configuration:
BB_VERSION = "1.25.0" BUILD_SYS = "x86_64-linux" NATIVELSBSTRING = "Ubuntu-14.04" TARGET_SYS = "arm-poky-linux-gnueabi" MACHINE = "beaglebone" DISTRO = "poky" DISTRO_VERSION = "1.7" TUNE_FEATURES = "arm armv7a vfp neon callconvention-hard cortexa8" TARGET_FPU = "vfp-neon"
meta
meta-yocto
meta-yocto-bsp = "master:45d090024d7b88c434fef2e88317946449e32c2c"
meta-oe = "mymaster:5b4413ccf329a981bee976c9fcde5d2872f0defb"
NOTE: Preparing RunQueue
NOTE: Executing SetScene Tasks
NOTE: Executing RunQueue Tasks
ERROR: Function failed: do_compile (log file is located at /home/rapphil/work/poky/build/tmp/work/beaglebone-poky-linux-gnueabi/u-boot-fw-utils-cross/v2015.01+gitAUTOINC+92fa7f53f1-r0/temp/log.do_compile.31549)
ERROR: Logfile of failure stored in:/home/rapphil/work/poky/build/tmp/work/beaglebone-poky-linux-gnueabi/u-boot-fw-utils-cross/v2015.01+gitAUTOINC+92fa7f53f1-r0/temp/log.do_compile.31549 Log data follows:
| DEBUG: Executing shell function do_compile
| NOTE: make -j 4 CROSS_COMPILE=arm-poky-linux-gnueabi-
CC=arm-poky-linux-gnueabi-gcc -march=armv7-a -mfloat-abi=hard
-mfpu=neon -mtune=cortex-a8 am335x_evm_config
| HOSTCC scripts/basic/fixdep | HOSTCC scripts/kconfig/conf.o | HOSTCC scripts/kconfig/zconf.tab.o | HOSTLD scripts/kconfig/conf | # | # configuration written to .config | # | # | # configuration written to spl/.config | # | NOTE: make -j 4 CROSS_COMPILE=arm-poky-linux-gnueabi- CC=arm-poky-linux-gnueabi-gcc -march=armv7-a -mfloat-abi=hard -mfpu=neon -mtune=cortex-a8 env | scripts/kconfig/conf --silentoldconfig Kconfig | scripts/kconfig/conf --silentoldconfig Kconfig | CHK include/config.h | GEN include/autoconf.mk | GEN include/autoconf.mk.dep | GEN spl/include/autoconf.mk | HOSTCC tools/env/fw_env.o | HOSTCC tools/env/fw_env_main.o | HOSTCC tools/env/crc32.o | HOSTCC tools/env/ctype.o | tools/env/fw_env_main.c:30:19: fatal error: fcntl.h: No such file or directory | #include <fcntl.h> | ^ | compilation terminated. | In file included from tools/env/crc32.c:1:0: | tools/env/../../lib/crc32.c:12:23: fatal error: arpa/inet.h: No such file or directory | #include <arpa/inet.h> | ^ | compilation terminated. | make[1]: *** [tools/env/fw_env_main.o] Error 1 | make[1]: *** Waiting for unfinished jobs.... | make[1]: *** [tools/env/crc32.o] Error 1 | tools/env/fw_env.c:16:19: fatal error: fcntl.h: No such file or directory | #include <fcntl.h> | ^ | compilation terminated. | make[1]: *** [tools/env/fw_env.o] Error 1 | make: *** [env] Error 2 | ERROR: oe_runmake failed | WARNING: exit code 1 from a shell command. | ERROR: Function failed: do_compile (log file is located at
/home/rapphil/work/poky/build/tmp/work/beaglebone-poky-linux-gnueabi/u-boot-fw-utils-cross/v2015.01+gitAUTOINC+92fa7f53f1-r0/temp/log.do_compile.31549)
ERROR: Task 6 (/home/rapphil/work/poky/meta/recipes-bsp/u-boot/u-boot-fw-utils-cross_2015.01.bb,do_compile) failed with exit code '1'
NOTE: Tasks Summary: Attempted 658 tasks of which 656 didn't need to
be rerun and 1 failed.
No currently running tasks (658 of 661)
Summary: 1 task failed:
/home/rapphil/work/poky/meta/recipes-bsp/u-boot/u-boot-fw-utils-cross_2015.01.bb,do_compile
Quoted 46 lines · Otavio Salvador
Quoted 27 lines · Denys Dmytriyenko
Quoted 17 lines · Otavio Salvador
Quoted 3 lines · Denys Dmytriyenko
From: Denys Dmytriyenko <[email protected]>
Signed-off-by Denys Dmytriyenko <[email protected]>...
Quoted 12 lines
+++
b/meta/recipes-bsp/u-boot/u-boot-fw-utils/0001-tools-env-fix-build-error.patchmeta/recipes-bsp/u-boot/u-boot-fw-utils/0001-tools-env-fix-build-error.patch new file +10
-0@@ -0,0 +1,36 @@ +From ee2d75513452aa6d5306fd380104adc8a2f6d8f2 Mon Sep 17 00:00:00 2001 +From: Masahiro Yamada <[email protected]> +Date: Wed, 3 Dec 2014 10:22:50 +0900 +Subject: [PATCH] tools: env: fix build error + +Since CONFIG_SYS_ARCH, CONFIG_SYS_CPU, ... were moved to Kconfig, +tools/env/fw_printenv fails to build if CONFIG_ENV_VARS_UBOOT_CONFIG +is defined. +(I do not think this is the right way to fix the problem, but +for now I do not have enough time to take a close look.)Quoted 8 lines
meta/recipes-bsp/u-boot/u-boot-fw-utils/0001-tools-env-fix-build-error.patch line 15
Quoted 5 lines
meta/recipes-bsp/u-boot/u-boot-fw-utils/0001-tools-env-fix-build-error.patch new file +5
-0+ +Upstream-Status: Submitted [http://patchwork.ozlabs.org/patch/417192/] + +Signed-off-by: Masahiro Yamada <[email protected]> +Reported-by: Denys Dmytriyenko <[email protected]>Is it necessary? In meta-fsl-arm we don't have this patch and get the tools built.
Quoted 6 lines
Really? The patch above is rather self-explanatory. The issue was confirmed by U-boot maintainers and the workaround provided by one of the core developers. I'm not familiar with meta-fsl-arm, but I guess you can grep your platform's defconfig to see if
CONFIG_ENV_VARS_UBOOT_CONFIGand others are defined and whether your platforms are affected or not. It does affect our platforms (among many others), including beaglebone.I think this is for the cross tool only.
--
Otavio SalvadorO.S. Systems
http://www.ossystems.com.br http://code.ossystems.com.br
Mobile: +55 (53) 9981-7854 Mobile: +1 (347) 903-9750
--
_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-core
Quoted 2 lines · Raphael Philipe
Denys, I tested your patch and It seems not to be working for u-boot-fw-utils-cross
Did the old version work for you?
Quoted 144 lines
$ bitbake u-boot-fw-utils-cross Loading cache: 100% |########################################################################################################################################################################| ETA: 00:00:00 Loaded 1921 entries from dependency cache. Parsing recipes: 100% |######################################################################################################################################################################| Time: 00:00:00 Parsing of 1451 .bb files complete (1450 cached, 1 parsed). 1914 targets, 85 skipped, 0 masked, 0 errors. NOTE: Resolving any missing task queue dependenciesBuild Configuration:
BB_VERSION = "1.25.0" BUILD_SYS = "x86_64-linux" NATIVELSBSTRING = "Ubuntu-14.04" TARGET_SYS = "arm-poky-linux-gnueabi" MACHINE = "beaglebone" DISTRO = "poky" DISTRO_VERSION = "1.7" TUNE_FEATURES = "arm armv7a vfp neon callconvention-hard cortexa8" TARGET_FPU = "vfp-neon"meta
meta-yocto
meta-yocto-bsp = "master:45d090024d7b88c434fef2e88317946449e32c2c"
meta-oe = "mymaster:5b4413ccf329a981bee976c9fcde5d2872f0defb"NOTE: Preparing RunQueue
NOTE: Executing SetScene Tasks
NOTE: Executing RunQueue Tasks
ERROR: Function failed:do_compile(log file is located at/home/rapphil/work/poky/build/tmp/work/beaglebone-poky-linux-gnueabi/u-boot-fw-utils-cross/v2015.01+gitAUTOINC+92fa7f53f1-r0/temp/log.do_compile.31549)
ERROR: Logfile of failure stored in:/home/rapphil/work/poky/build/tmp/work/beaglebone-poky-linux-gnueabi/u-boot-fw-utils-cross/v2015.01+gitAUTOINC+92fa7f53f1-r0/temp/log.do_compile.31549Log data follows:
| DEBUG: Executing shell functiondo_compile
| NOTE: make -j 4 CROSS_COMPILE=arm-poky-linux-gnueabi-
CC=arm-poky-linux-gnueabi-gcc -march=armv7-a -mfloat-abi=hard
-mfpu=neon -mtune=cortex-a8am335x_evm_config| HOSTCC scripts/basic/fixdep | HOSTCC scripts/kconfig/conf.o | HOSTCC scripts/kconfig/zconf.tab.o | HOSTLD scripts/kconfig/conf | # | # configuration written to .config | # | # | # configuration written to spl/.config | # | NOTE: make -j 4 CROSS_COMPILE=arm-poky-linux-gnueabi- CC=arm-poky-linux-gnueabi-gcc -march=armv7-a -mfloat-abi=hard -mfpu=neon -mtune=cortex-a8 env | scripts/kconfig/conf --silentoldconfig Kconfig | scripts/kconfig/conf --silentoldconfig Kconfig | CHK include/config.h | GEN include/autoconf.mk | GEN include/autoconf.mk.dep | GEN spl/include/autoconf.mk | HOSTCC tools/env/fw_env.o | HOSTCC tools/env/fw_env_main.o | HOSTCC tools/env/crc32.o | HOSTCC tools/env/ctype.o | tools/env/fw_env_main.c:30:19: fatal error: fcntl.h: No such file or directory | #include <fcntl.h> | ^ | compilation terminated. | In file included from tools/env/crc32.c:1:0: | tools/env/../../lib/crc32.c:12:23: fatal error: arpa/inet.h: No such file or directory | #include <arpa/inet.h> | ^ | compilation terminated. | make[1]: *** [tools/env/fw_env_main.o] Error 1 | make[1]: *** Waiting for unfinished jobs.... | make[1]: *** [tools/env/crc32.o] Error 1 | tools/env/fw_env.c:16:19: fatal error: fcntl.h: No such file or directory | #include <fcntl.h> | ^ | compilation terminated. | make[1]: *** [tools/env/fw_env.o] Error 1 | make: *** [env] Error 2 | ERROR: oe_runmake failed | WARNING: exit code 1 from a shell command. | ERROR: Function failed: do_compile (log file is located at
/home/rapphil/work/poky/build/tmp/work/beaglebone-poky-linux-gnueabi/u-boot-fw-utils-cross/v2015.01+gitAUTOINC+92fa7f53f1-r0/temp/log.do_compile.31549)
ERROR: Task 6 (/home/rapphil/work/poky/meta/recipes-bsp/u-boot/u-boot-fw-utils-cross_2015.01.bb,do_compile) failed with exit code '1'
NOTE: Tasks Summary: Attempted 658 tasks of which 656 didn't need to
be rerun and 1 failed.
No currently running tasks (658 of 661)Summary: 1 task failed:
/home/rapphil/work/poky/meta/recipes-bsp/u-boot/u-boot-fw-utils-cross_2015.01.bb,do_compileQuoted 46 lines · Otavio Salvador
Quoted 27 lines · Denys Dmytriyenko
Quoted 17 lines · Otavio Salvador
Quoted 3 lines · Denys Dmytriyenko
From: Denys Dmytriyenko <[email protected]>
Signed-off-by Denys Dmytriyenko <[email protected]>...
Quoted 12 lines
+++
b/meta/recipes-bsp/u-boot/u-boot-fw-utils/0001-tools-env-fix-build-error.patchmeta/recipes-bsp/u-boot/u-boot-fw-utils/0001-tools-env-fix-build-error.patch new file +10
-0@@ -0,0 +1,36 @@ +From ee2d75513452aa6d5306fd380104adc8a2f6d8f2 Mon Sep 17 00:00:00 2001 +From: Masahiro Yamada <[email protected]> +Date: Wed, 3 Dec 2014 10:22:50 +0900 +Subject: [PATCH] tools: env: fix build error + +Since CONFIG_SYS_ARCH, CONFIG_SYS_CPU, ... were moved to Kconfig, +tools/env/fw_printenv fails to build if CONFIG_ENV_VARS_UBOOT_CONFIG +is defined. +(I do not think this is the right way to fix the problem, but +for now I do not have enough time to take a close look.)Quoted 8 lines
meta/recipes-bsp/u-boot/u-boot-fw-utils/0001-tools-env-fix-build-error.patch line 15
Quoted 5 lines
meta/recipes-bsp/u-boot/u-boot-fw-utils/0001-tools-env-fix-build-error.patch new file +5
-0+ +Upstream-Status: Submitted [http://patchwork.ozlabs.org/patch/417192/] + +Signed-off-by: Masahiro Yamada <[email protected]> +Reported-by: Denys Dmytriyenko <[email protected]>Is it necessary? In meta-fsl-arm we don't have this patch and get the tools built.
Quoted 6 lines
Really? The patch above is rather self-explanatory. The issue was confirmed by U-boot maintainers and the workaround provided by one of the core developers. I'm not familiar with meta-fsl-arm, but I guess you can grep your platform's defconfig to see if
CONFIG_ENV_VARS_UBOOT_CONFIGand others are defined and whether your platforms are affected or not. It does affect our platforms (among many others), including beaglebone.I think this is for the cross tool only.
--
Otavio SalvadorO.S. Systems
http://www.ossystems.com.br http://code.ossystems.com.br
Mobile: +55 (53) 9981-7854 Mobile: +1 (347) 903-9750
--
_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-core
I just checked 2014.07, and it does not work too. Same output.
Sorry,am I missing something?
Quoted 151 lines · Denys Dmytriyenko
Quoted 2 lines · Raphael Philipe
Denys, I tested your patch and It seems not to be working for u-boot-fw-utils-cross
Did the old version work for you?
Quoted 144 lines
$ bitbake u-boot-fw-utils-cross Loading cache: 100% |########################################################################################################################################################################| ETA: 00:00:00 Loaded 1921 entries from dependency cache. Parsing recipes: 100% |######################################################################################################################################################################| Time: 00:00:00 Parsing of 1451 .bb files complete (1450 cached, 1 parsed). 1914 targets, 85 skipped, 0 masked, 0 errors. NOTE: Resolving any missing task queue dependenciesBuild Configuration:
BB_VERSION = "1.25.0" BUILD_SYS = "x86_64-linux" NATIVELSBSTRING = "Ubuntu-14.04" TARGET_SYS = "arm-poky-linux-gnueabi" MACHINE = "beaglebone" DISTRO = "poky" DISTRO_VERSION = "1.7" TUNE_FEATURES = "arm armv7a vfp neon callconvention-hard cortexa8" TARGET_FPU = "vfp-neon"meta
meta-yocto
meta-yocto-bsp = "master:45d090024d7b88c434fef2e88317946449e32c2c"
meta-oe = "mymaster:5b4413ccf329a981bee976c9fcde5d2872f0defb"NOTE: Preparing RunQueue
NOTE: Executing SetScene Tasks
NOTE: Executing RunQueue Tasks
ERROR: Function failed:do_compile(log file is located at/home/rapphil/work/poky/build/tmp/work/beaglebone-poky-linux-gnueabi/u-boot-fw-utils-cross/v2015.01+gitAUTOINC+92fa7f53f1-r0/temp/log.do_compile.31549)
ERROR: Logfile of failure stored in:/home/rapphil/work/poky/build/tmp/work/beaglebone-poky-linux-gnueabi/u-boot-fw-utils-cross/v2015.01+gitAUTOINC+92fa7f53f1-r0/temp/log.do_compile.31549Log data follows:
| DEBUG: Executing shell functiondo_compile
| NOTE: make -j 4 CROSS_COMPILE=arm-poky-linux-gnueabi-
CC=arm-poky-linux-gnueabi-gcc -march=armv7-a -mfloat-abi=hard
-mfpu=neon -mtune=cortex-a8am335x_evm_config| HOSTCC scripts/basic/fixdep | HOSTCC scripts/kconfig/conf.o | HOSTCC scripts/kconfig/zconf.tab.o | HOSTLD scripts/kconfig/conf | # | # configuration written to .config | # | # | # configuration written to spl/.config | # | NOTE: make -j 4 CROSS_COMPILE=arm-poky-linux-gnueabi- CC=arm-poky-linux-gnueabi-gcc -march=armv7-a -mfloat-abi=hard -mfpu=neon -mtune=cortex-a8 env | scripts/kconfig/conf --silentoldconfig Kconfig | scripts/kconfig/conf --silentoldconfig Kconfig | CHK include/config.h | GEN include/autoconf.mk | GEN include/autoconf.mk.dep | GEN spl/include/autoconf.mk | HOSTCC tools/env/fw_env.o | HOSTCC tools/env/fw_env_main.o | HOSTCC tools/env/crc32.o | HOSTCC tools/env/ctype.o | tools/env/fw_env_main.c:30:19: fatal error: fcntl.h: No such file or directory | #include <fcntl.h> | ^ | compilation terminated. | In file included from tools/env/crc32.c:1:0: | tools/env/../../lib/crc32.c:12:23: fatal error: arpa/inet.h: No such file or directory | #include <arpa/inet.h> | ^ | compilation terminated. | make[1]: *** [tools/env/fw_env_main.o] Error 1 | make[1]: *** Waiting for unfinished jobs.... | make[1]: *** [tools/env/crc32.o] Error 1 | tools/env/fw_env.c:16:19: fatal error: fcntl.h: No such file or directory | #include <fcntl.h> | ^ | compilation terminated. | make[1]: *** [tools/env/fw_env.o] Error 1 | make: *** [env] Error 2 | ERROR: oe_runmake failed | WARNING: exit code 1 from a shell command. | ERROR: Function failed: do_compile (log file is located at
/home/rapphil/work/poky/build/tmp/work/beaglebone-poky-linux-gnueabi/u-boot-fw-utils-cross/v2015.01+gitAUTOINC+92fa7f53f1-r0/temp/log.do_compile.31549)
ERROR: Task 6 (/home/rapphil/work/poky/meta/recipes-bsp/u-boot/u-boot-fw-utils-cross_2015.01.bb,do_compile) failed with exit code '1'
NOTE: Tasks Summary: Attempted 658 tasks of which 656 didn't need to
be rerun and 1 failed.
No currently running tasks (658 of 661)Summary: 1 task failed:
/home/rapphil/work/poky/meta/recipes-bsp/u-boot/u-boot-fw-utils-cross_2015.01.bb,do_compileQuoted 46 lines · Otavio Salvador
Quoted 27 lines · Denys Dmytriyenko
Quoted 17 lines · Otavio Salvador
Quoted 3 lines · Denys Dmytriyenko
From: Denys Dmytriyenko <[email protected]>
Signed-off-by Denys Dmytriyenko <[email protected]>...
Quoted 12 lines
+++
b/meta/recipes-bsp/u-boot/u-boot-fw-utils/0001-tools-env-fix-build-error.patchmeta/recipes-bsp/u-boot/u-boot-fw-utils/0001-tools-env-fix-build-error.patch new file +10
-0@@ -0,0 +1,36 @@ +From ee2d75513452aa6d5306fd380104adc8a2f6d8f2 Mon Sep 17 00:00:00 2001 +From: Masahiro Yamada <[email protected]> +Date: Wed, 3 Dec 2014 10:22:50 +0900 +Subject: [PATCH] tools: env: fix build error + +Since CONFIG_SYS_ARCH, CONFIG_SYS_CPU, ... were moved to Kconfig, +tools/env/fw_printenv fails to build if CONFIG_ENV_VARS_UBOOT_CONFIG +is defined. +(I do not think this is the right way to fix the problem, but +for now I do not have enough time to take a close look.)Quoted 8 lines
meta/recipes-bsp/u-boot/u-boot-fw-utils/0001-tools-env-fix-build-error.patch line 15
Quoted 5 lines
meta/recipes-bsp/u-boot/u-boot-fw-utils/0001-tools-env-fix-build-error.patch new file +5
-0+ +Upstream-Status: Submitted [http://patchwork.ozlabs.org/patch/417192/] + +Signed-off-by: Masahiro Yamada <[email protected]> +Reported-by: Denys Dmytriyenko <[email protected]>Is it necessary? In meta-fsl-arm we don't have this patch and get the tools built.
Quoted 6 lines
Really? The patch above is rather self-explanatory. The issue was confirmed by U-boot maintainers and the workaround provided by one of the core developers. I'm not familiar with meta-fsl-arm, but I guess you can grep your platform's defconfig to see if
CONFIG_ENV_VARS_UBOOT_CONFIGand others are defined and whether your platforms are affected or not. It does affect our platforms (among many others), including beaglebone.I think this is for the cross tool only.
--
Otavio SalvadorO.S. Systems
http://www.ossystems.com.br http://code.ossystems.com.br
Mobile: +55 (53) 9981-7854 Mobile: +1 (347) 903-9750
--
_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-core
Quoted 3 lines · Raphael Philipe
I just checked 2014.07, and it does not work too. Same output.
Sorry,am I missing something?
Looks like host-specific issue - it calls HOSTCC in there.
Quoted 153 lines · Denys Dmytriyenko
Quoted 151 lines · Raphael Philipe
Quoted 2 lines
Denys, I tested your patch and It seems not to be working for u-boot-fw-utils-cross
Did the old version work for you?
Quoted 144 lines
$ bitbake u-boot-fw-utils-cross Loading cache: 100% |########################################################################################################################################################################| ETA: 00:00:00 Loaded 1921 entries from dependency cache. Parsing recipes: 100% |######################################################################################################################################################################| Time: 00:00:00 Parsing of 1451 .bb files complete (1450 cached, 1 parsed). 1914 targets, 85 skipped, 0 masked, 0 errors. NOTE: Resolving any missing task queue dependenciesBuild Configuration:
BB_VERSION = "1.25.0" BUILD_SYS = "x86_64-linux" NATIVELSBSTRING = "Ubuntu-14.04" TARGET_SYS = "arm-poky-linux-gnueabi" MACHINE = "beaglebone" DISTRO = "poky" DISTRO_VERSION = "1.7" TUNE_FEATURES = "arm armv7a vfp neon callconvention-hard cortexa8" TARGET_FPU = "vfp-neon"meta
meta-yocto
meta-yocto-bsp = "master:45d090024d7b88c434fef2e88317946449e32c2c"
meta-oe = "mymaster:5b4413ccf329a981bee976c9fcde5d2872f0defb"NOTE: Preparing RunQueue
NOTE: Executing SetScene Tasks
NOTE: Executing RunQueue Tasks
ERROR: Function failed:do_compile(log file is located at/home/rapphil/work/poky/build/tmp/work/beaglebone-poky-linux-gnueabi/u-boot-fw-utils-cross/v2015.01+gitAUTOINC+92fa7f53f1-r0/temp/log.do_compile.31549)
ERROR: Logfile of failure stored in:/home/rapphil/work/poky/build/tmp/work/beaglebone-poky-linux-gnueabi/u-boot-fw-utils-cross/v2015.01+gitAUTOINC+92fa7f53f1-r0/temp/log.do_compile.31549Log data follows:
| DEBUG: Executing shell functiondo_compile
| NOTE: make -j 4 CROSS_COMPILE=arm-poky-linux-gnueabi-
CC=arm-poky-linux-gnueabi-gcc -march=armv7-a -mfloat-abi=hard
-mfpu=neon -mtune=cortex-a8am335x_evm_config| HOSTCC scripts/basic/fixdep | HOSTCC scripts/kconfig/conf.o | HOSTCC scripts/kconfig/zconf.tab.o | HOSTLD scripts/kconfig/conf | # | # configuration written to .config | # | # | # configuration written to spl/.config | # | NOTE: make -j 4 CROSS_COMPILE=arm-poky-linux-gnueabi- CC=arm-poky-linux-gnueabi-gcc -march=armv7-a -mfloat-abi=hard -mfpu=neon -mtune=cortex-a8 env | scripts/kconfig/conf --silentoldconfig Kconfig | scripts/kconfig/conf --silentoldconfig Kconfig | CHK include/config.h | GEN include/autoconf.mk | GEN include/autoconf.mk.dep | GEN spl/include/autoconf.mk | HOSTCC tools/env/fw_env.o | HOSTCC tools/env/fw_env_main.o | HOSTCC tools/env/crc32.o | HOSTCC tools/env/ctype.o | tools/env/fw_env_main.c:30:19: fatal error: fcntl.h: No such file or directory | #include <fcntl.h> | ^ | compilation terminated. | In file included from tools/env/crc32.c:1:0: | tools/env/../../lib/crc32.c:12:23: fatal error: arpa/inet.h: No such file or directory | #include <arpa/inet.h> | ^ | compilation terminated. | make[1]: *** [tools/env/fw_env_main.o] Error 1 | make[1]: *** Waiting for unfinished jobs.... | make[1]: *** [tools/env/crc32.o] Error 1 | tools/env/fw_env.c:16:19: fatal error: fcntl.h: No such file or directory | #include <fcntl.h> | ^ | compilation terminated. | make[1]: *** [tools/env/fw_env.o] Error 1 | make: *** [env] Error 2 | ERROR: oe_runmake failed | WARNING: exit code 1 from a shell command. | ERROR: Function failed: do_compile (log file is located at
/home/rapphil/work/poky/build/tmp/work/beaglebone-poky-linux-gnueabi/u-boot-fw-utils-cross/v2015.01+gitAUTOINC+92fa7f53f1-r0/temp/log.do_compile.31549)
ERROR: Task 6 (/home/rapphil/work/poky/meta/recipes-bsp/u-boot/u-boot-fw-utils-cross_2015.01.bb,do_compile) failed with exit code '1'
NOTE: Tasks Summary: Attempted 658 tasks of which 656 didn't need to
be rerun and 1 failed.
No currently running tasks (658 of 661)Summary: 1 task failed:
/home/rapphil/work/poky/meta/recipes-bsp/u-boot/u-boot-fw-utils-cross_2015.01.bb,do_compileQuoted 46 lines · Otavio Salvador
Quoted 27 lines · Denys Dmytriyenko
Quoted 17 lines · Otavio Salvador
Quoted 3 lines · Denys Dmytriyenko
From: Denys Dmytriyenko <[email protected]>
Signed-off-by Denys Dmytriyenko <[email protected]>...
Quoted 12 lines
+++
b/meta/recipes-bsp/u-boot/u-boot-fw-utils/0001-tools-env-fix-build-error.patch(quoted diff) +10
-0@@ -0,0 +1,36 @@ +From ee2d75513452aa6d5306fd380104adc8a2f6d8f2 Mon Sep 17 00:00:00 2001 +From: Masahiro Yamada <[email protected]> +Date: Wed, 3 Dec 2014 10:22:50 +0900 +Subject: [PATCH] tools: env: fix build error + +Since CONFIG_SYS_ARCH, CONFIG_SYS_CPU, ... were moved to Kconfig, +tools/env/fw_printenv fails to build if CONFIG_ENV_VARS_UBOOT_CONFIG +is defined. +(I do not think this is the right way to fix the problem, but +for now I do not have enough time to take a close look.)Quoted 8 lines
Review line 15
Quoted 5 lines
(quoted diff) +5
-0+ +Upstream-Status: Submitted [http://patchwork.ozlabs.org/patch/417192/] + +Signed-off-by: Masahiro Yamada <[email protected]> +Reported-by: Denys Dmytriyenko <[email protected]>Is it necessary? In meta-fsl-arm we don't have this patch and get the tools built.
Quoted 6 lines
Really? The patch above is rather self-explanatory. The issue was confirmed by U-boot maintainers and the workaround provided by one of the core developers. I'm not familiar with meta-fsl-arm, but I guess you can grep your platform's defconfig to see if
CONFIG_ENV_VARS_UBOOT_CONFIGand others are defined and whether your platforms are affected or not. It does affect our platforms (among many others), including beaglebone.I think this is for the cross tool only.
--
Otavio SalvadorO.S. Systems
http://www.ossystems.com.br http://code.ossystems.com.br
Mobile: +55 (53) 9981-7854 Mobile: +1 (347) 903-9750
--
_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-core
Instead of HOSTCC, what is called in your log.do_compile ?
Maybe it is a Yocto bug. My Linux distro is supported though.
http://www.yoctoproject.org/docs/1.7/ref-manual/ref-manual.html#detailed-supported-distros.
Quoted 161 lines · Denys Dmytriyenko
Quoted 3 lines · Raphael Philipe
I just checked 2014.07, and it does not work too. Same output.
Sorry,am I missing something?
Looks like host-specific issue - it calls HOSTCC in there.
Quoted 153 lines · Denys Dmytriyenko
Quoted 151 lines · Raphael Philipe
Quoted 2 lines
Denys, I tested your patch and It seems not to be working for u-boot-fw-utils-cross
Did the old version work for you?
Quoted 144 lines
$ bitbake u-boot-fw-utils-cross Loading cache: 100% |########################################################################################################################################################################| ETA: 00:00:00 Loaded 1921 entries from dependency cache. Parsing recipes: 100% |######################################################################################################################################################################| Time: 00:00:00 Parsing of 1451 .bb files complete (1450 cached, 1 parsed). 1914 targets, 85 skipped, 0 masked, 0 errors. NOTE: Resolving any missing task queue dependenciesBuild Configuration:
BB_VERSION = "1.25.0" BUILD_SYS = "x86_64-linux" NATIVELSBSTRING = "Ubuntu-14.04" TARGET_SYS = "arm-poky-linux-gnueabi" MACHINE = "beaglebone" DISTRO = "poky" DISTRO_VERSION = "1.7" TUNE_FEATURES = "arm armv7a vfp neon callconvention-hard cortexa8" TARGET_FPU = "vfp-neon"meta
meta-yocto
meta-yocto-bsp = "master:45d090024d7b88c434fef2e88317946449e32c2c"
meta-oe = "mymaster:5b4413ccf329a981bee976c9fcde5d2872f0defb"NOTE: Preparing RunQueue
NOTE: Executing SetScene Tasks
NOTE: Executing RunQueue Tasks
ERROR: Function failed:do_compile(log file is located at/home/rapphil/work/poky/build/tmp/work/beaglebone-poky-linux-gnueabi/u-boot-fw-utils-cross/v2015.01+gitAUTOINC+92fa7f53f1-r0/temp/log.do_compile.31549)
ERROR: Logfile of failure stored in:/home/rapphil/work/poky/build/tmp/work/beaglebone-poky-linux-gnueabi/u-boot-fw-utils-cross/v2015.01+gitAUTOINC+92fa7f53f1-r0/temp/log.do_compile.31549Log data follows:
| DEBUG: Executing shell functiondo_compile
| NOTE: make -j 4 CROSS_COMPILE=arm-poky-linux-gnueabi-
CC=arm-poky-linux-gnueabi-gcc -march=armv7-a -mfloat-abi=hard
-mfpu=neon -mtune=cortex-a8am335x_evm_config| HOSTCC scripts/basic/fixdep | HOSTCC scripts/kconfig/conf.o | HOSTCC scripts/kconfig/zconf.tab.o | HOSTLD scripts/kconfig/conf | # | # configuration written to .config | # | # | # configuration written to spl/.config | # | NOTE: make -j 4 CROSS_COMPILE=arm-poky-linux-gnueabi- CC=arm-poky-linux-gnueabi-gcc -march=armv7-a -mfloat-abi=hard -mfpu=neon -mtune=cortex-a8 env | scripts/kconfig/conf --silentoldconfig Kconfig | scripts/kconfig/conf --silentoldconfig Kconfig | CHK include/config.h | GEN include/autoconf.mk | GEN include/autoconf.mk.dep | GEN spl/include/autoconf.mk | HOSTCC tools/env/fw_env.o | HOSTCC tools/env/fw_env_main.o | HOSTCC tools/env/crc32.o | HOSTCC tools/env/ctype.o | tools/env/fw_env_main.c:30:19: fatal error: fcntl.h: No such file or directory | #include <fcntl.h> | ^ | compilation terminated. | In file included from tools/env/crc32.c:1:0: | tools/env/../../lib/crc32.c:12:23: fatal error: arpa/inet.h: No such file or directory | #include <arpa/inet.h> | ^ | compilation terminated. | make[1]: *** [tools/env/fw_env_main.o] Error 1 | make[1]: *** Waiting for unfinished jobs.... | make[1]: *** [tools/env/crc32.o] Error 1 | tools/env/fw_env.c:16:19: fatal error: fcntl.h: No such file or directory | #include <fcntl.h> | ^ | compilation terminated. | make[1]: *** [tools/env/fw_env.o] Error 1 | make: *** [env] Error 2 | ERROR: oe_runmake failed | WARNING: exit code 1 from a shell command. | ERROR: Function failed: do_compile (log file is located at
/home/rapphil/work/poky/build/tmp/work/beaglebone-poky-linux-gnueabi/u-boot-fw-utils-cross/v2015.01+gitAUTOINC+92fa7f53f1-r0/temp/log.do_compile.31549)
ERROR: Task 6 (/home/rapphil/work/poky/meta/recipes-bsp/u-boot/u-boot-fw-utils-cross_2015.01.bb,do_compile) failed with exit code '1'
NOTE: Tasks Summary: Attempted 658 tasks of which 656 didn't need to
be rerun and 1 failed.
No currently running tasks (658 of 661)Summary: 1 task failed:
/home/rapphil/work/poky/meta/recipes-bsp/u-boot/u-boot-fw-utils-cross_2015.01.bb,do_compileQuoted 46 lines · Otavio Salvador
Quoted 27 lines · Denys Dmytriyenko
Quoted 17 lines · Otavio Salvador
Quoted 3 lines · Denys Dmytriyenko
From: Denys Dmytriyenko <[email protected]>
Signed-off-by Denys Dmytriyenko <[email protected]>...
Quoted 12 lines
+++
b/meta/recipes-bsp/u-boot/u-boot-fw-utils/0001-tools-env-fix-build-error.patch(quoted diff) +10
-0@@ -0,0 +1,36 @@ +From ee2d75513452aa6d5306fd380104adc8a2f6d8f2 Mon Sep 17 00:00:00 2001 +From: Masahiro Yamada <[email protected]> +Date: Wed, 3 Dec 2014 10:22:50 +0900 +Subject: [PATCH] tools: env: fix build error + +Since CONFIG_SYS_ARCH, CONFIG_SYS_CPU, ... were moved to Kconfig, +tools/env/fw_printenv fails to build if CONFIG_ENV_VARS_UBOOT_CONFIG +is defined. +(I do not think this is the right way to fix the problem, but +for now I do not have enough time to take a close look.)Quoted 8 lines
Review line 15
Quoted 5 lines
(quoted diff) +5
-0+ +Upstream-Status: Submitted [http://patchwork.ozlabs.org/patch/417192/] + +Signed-off-by: Masahiro Yamada <[email protected]> +Reported-by: Denys Dmytriyenko <[email protected]>Is it necessary? In meta-fsl-arm we don't have this patch and get the tools built.
Quoted 6 lines
Really? The patch above is rather self-explanatory. The issue was confirmed by U-boot maintainers and the workaround provided by one of the core developers. I'm not familiar with meta-fsl-arm, but I guess you can grep your platform's defconfig to see if
CONFIG_ENV_VARS_UBOOT_CONFIGand others are defined and whether your platforms are affected or not. It does affect our platforms (among many others), including beaglebone.I think this is for the cross tool only.
--
Otavio SalvadorO.S. Systems
http://www.ossystems.com.br http://code.ossystems.com.br
Mobile: +55 (53) 9981-7854 Mobile: +1 (347) 903-9750
--
_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-core
Quoted 28 lines · Otavio Salvador
Quoted 27 lines · Denys Dmytriyenko
Quoted 25 lines · Otavio Salvador
Quoted 3 lines · Denys Dmytriyenko
From: Denys Dmytriyenko <[email protected]>
Signed-off-by Denys Dmytriyenko <[email protected]>...
Quoted 7 lines
+++
b/meta/recipes-bsp/u-boot/u-boot-fw-utils/0001-tools-env-fix-build-error.patchmeta/recipes-bsp/u-boot/u-boot-fw-utils/0001-tools-env-fix-build-error.patch new file +5
-0@@ -0,0 +1,36 @@ +From ee2d75513452aa6d5306fd380104adc8a2f6d8f2 Mon Sep 17 00:00:00 2001 +From: Masahiro Yamada <[email protected]> +Date: Wed, 3 Dec 2014 10:22:50 +0900 +Subject: [PATCH] tools: env: fix build error +meta/recipes-bsp/u-boot/u-boot-fw-utils/0001-tools-env-fix-build-error.patch line 15
Quoted 10 lines
meta/recipes-bsp/u-boot/u-boot-fw-utils/0001-tools-env-fix-build-error.patch new file +10
-0+Since CONFIG_SYS_ARCH, CONFIG_SYS_CPU, ... were moved to Kconfig, +tools/env/fw_printenv fails to build if CONFIG_ENV_VARS_UBOOT_CONFIG +is defined. +(I do not think this is the right way to fix the problem, but +for now I do not have enough time to take a close look.) + +Upstream-Status: Submitted [http://patchwork.ozlabs.org/patch/417192/] + +Signed-off-by: Masahiro Yamada <[email protected]> +Reported-by: Denys Dmytriyenko <[email protected]>Is it necessary? In meta-fsl-arm we don't have this patch and get the tools built.
Quoted 8 lines
Quoted 6 lines
Really? The patch above is rather self-explanatory. The issue was confirmed by U-boot maintainers and the workaround provided by one of the core developers. I'm not familiar with meta-fsl-arm, but I guess you can grep your platform's defconfig to see if
CONFIG_ENV_VARS_UBOOT_CONFIGand others are defined and whether your platforms are affected or not. It does affect our platforms (among many others), including beaglebone.I think this is for the cross tool only.
Versus what?
Signature · 1 line
Denys
Hey Denys, I tested u-boot-fw-utils-cross_2014.07.bb in Ubuntu 12.04 and got the same error .
Can you confirm that this recipe works for you?
Quoted 47 lines · Denys Dmytriyenko
Quoted 28 lines · Otavio Salvador
Quoted 27 lines · Denys Dmytriyenko
Quoted 25 lines · Otavio Salvador
Quoted 3 lines · Denys Dmytriyenko
From: Denys Dmytriyenko <[email protected]>
Signed-off-by Denys Dmytriyenko <[email protected]>...
Quoted 7 lines
+++
b/meta/recipes-bsp/u-boot/u-boot-fw-utils/0001-tools-env-fix-build-error.patchmeta/recipes-bsp/u-boot/u-boot-fw-utils/0001-tools-env-fix-build-error.patch new file +5
-0@@ -0,0 +1,36 @@ +From ee2d75513452aa6d5306fd380104adc8a2f6d8f2 Mon Sep 17 00:00:00 2001 +From: Masahiro Yamada <[email protected]> +Date: Wed, 3 Dec 2014 10:22:50 +0900 +Subject: [PATCH] tools: env: fix build error +meta/recipes-bsp/u-boot/u-boot-fw-utils/0001-tools-env-fix-build-error.patch line 15
Quoted 10 lines
meta/recipes-bsp/u-boot/u-boot-fw-utils/0001-tools-env-fix-build-error.patch new file +10
-0+Since CONFIG_SYS_ARCH, CONFIG_SYS_CPU, ... were moved to Kconfig, +tools/env/fw_printenv fails to build if CONFIG_ENV_VARS_UBOOT_CONFIG +is defined. +(I do not think this is the right way to fix the problem, but +for now I do not have enough time to take a close look.) + +Upstream-Status: Submitted [http://patchwork.ozlabs.org/patch/417192/] + +Signed-off-by: Masahiro Yamada <[email protected]> +Reported-by: Denys Dmytriyenko <[email protected]>Is it necessary? In meta-fsl-arm we don't have this patch and get the tools built.
Quoted 8 lines
Quoted 6 lines
Really? The patch above is rather self-explanatory. The issue was confirmed by U-boot maintainers and the workaround provided by one of the core developers. I'm not familiar with meta-fsl-arm, but I guess you can grep your platform's defconfig to see if
CONFIG_ENV_VARS_UBOOT_CONFIGand others are defined and whether your platforms are affected or not. It does affect our platforms (among many others), including beaglebone.I think this is for the cross tool only.
Versus what?
--
Denys
--
_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-core
Quoted 5 lines · Raphael Philipe
Hey Denys, I tested u-boot-fw-utils-cross_2014.07.bb in Ubuntu 12.04 and got the same error .
Can you confirm that this recipe works for you?
I can confirm that it doesn't work on the autobuilder:
Didn't we discuss exactly this thing a few months ago?
Ross
Quoted 3 lines · Ross
Quoted 1 line · Raphael Philipe
Hey Denys, I tested u-boot-fw-utils-cross_2014.07.bb in Ubuntu 12.04
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Quoted 8 lines
Quoted 4 lines
and got the same error .
Can you confirm that this recipe works for you?
I can confirm that it doesn't work on the autobuilder:
Ross,
Please note that he's talking about current 2014.07 version, not the update! Can you confirm that it works or fails on the autobuilder?
Quoted 1 line
Didn't we discuss exactly this thing a few months ago?
If you are talking about u-boot-fw-utils-cross specifically, then no, I don't recall. Please provide a link.
But I think you are mistaking it with u-boot-mkimage recipe...
Signature · 1 line
Denys
Quoted 4 lines · Denys Dmytriyenko
Please note that he's talking about current 2014.07 version, not the update!
Can you confirm that it works or fails on the autobuilder?
Sorry, got lost in the thread. The old version works fine, the upgrade breaks.
Ross
Ross,
Is u-boot-fw-utils-cross that you are talking about?
Quoted 12 lines · Ross
Quoted 4 lines · Denys Dmytriyenko
Please note that he's talking about current 2014.07 version, not the update!
Can you confirm that it works or fails on the autobuilder?Sorry, got lost in the thread. The old version works fine, the upgrade breaks.
Ross
Quoted 9 lines · Ross
Quoted 4 lines · Denys Dmytriyenko
Please note that he's talking about current 2014.07 version, not the update!
Can you confirm that it works or fails on the autobuilder?Sorry, got lost in the thread. The old version works fine, the upgrade breaks.
That's not the case for the rest of us, unfortunately...
I'm suspecting sstate got something to do with the fact that it still works for the old version on autobuilder.
Let me emphasise it - this specific u-boot-fw-utils-cross recipe used to build fine, but now fails in the same exact way regardless of the version, either current 2014.07 or the updated 2015.01.
So, it seems to me that fixing it is rather out of scope of this version update patch... :)
I'm thinking of 2 short-term workarounds - don't update this particular recipe to the new version; or remove it altogether. I'm sure Otavio wouldn't be happy either way, but fixing it should probably be a separate effort...
Signature · 1 line
Denys
Quoted 21 lines · Denys Dmytriyenko
Quoted 9 lines · Ross
Quoted 4 lines · Denys Dmytriyenko
Please note that he's talking about current 2014.07 version, not the update!
Can you confirm that it works or fails on the autobuilder?Sorry, got lost in the thread. The old version works fine, the upgrade breaks.
That's not the case for the rest of us, unfortunately...
I'm suspecting sstate got something to do with the fact that it still works for the old version on autobuilder.
Let me emphasise it - this specific u-boot-fw-utils-cross recipe used to build fine, but now fails in the same exact way regardless of the version, either current 2014.07 or the updated 2015.01.
Quoted 6 lines
So, it seems to me that fixing it is rather out of scope of this version update patch... :)
I'm thinking of 2 short-term workarounds - don't update this particular recipe to the new version; or remove it altogether. I'm sure Otavio wouldn't be happy either way, but fixing it should probably be a separate effort...
We should have denied the update on previous versions. It has been broken by your update to 2014.07:
Author: Denys Dmytriyenko <[email protected]> Date: Tue Sep 16 19:10:01 2014 -0400
u-boot: update to version 2014.07
u-boot doesn't really support building its tools for the target, as they are built with HOSTCC compiler, which is also used to compile fixdep utility that gets executed during the build. Since it might be beneficial to have a target version of mkimage, let's hack it to build fixdep in a separate step.
and this has not been checked if it kept building at that time.
So I'm ok with this update to go and you work in fix it in a follow up patch, but drop it is not acceptable. It has a clear use case.
Signature · 3 lines
Otavio Salvador O.S. Systems http://www.ossystems.com.br http://code.ossystems.com.br Mobile: +55 (53) 9981-7854 Mobile: +1 (347) 903-9750
Quoted 42 lines · Otavio Salvador
Quoted 21 lines · Denys Dmytriyenko
Quoted 9 lines · Ross
Quoted 4 lines · Denys Dmytriyenko
Please note that he's talking about current 2014.07 version, not the update!
Can you confirm that it works or fails on the autobuilder?Sorry, got lost in the thread. The old version works fine, the upgrade breaks.
That's not the case for the rest of us, unfortunately...
I'm suspecting sstate got something to do with the fact that it still works for the old version on autobuilder.
Let me emphasise it - this specific u-boot-fw-utils-cross recipe used to build fine, but now fails in the same exact way regardless of the version, either current 2014.07 or the updated 2015.01.
Quoted 6 lines
So, it seems to me that fixing it is rather out of scope of this version update patch... :)
I'm thinking of 2 short-term workarounds - don't update this particular recipe to the new version; or remove it altogether. I'm sure Otavio wouldn't be happy either way, but fixing it should probably be a separate effort...
We should have denied the update on previous versions. It has been broken by your update to 2014.07:
Author: Denys Dmytriyenko <[email protected]> Date: Tue Sep 16 19:10:01 2014 -0400u-boot: update to version 2014.07
u-boot doesn't really support building its tools for the target, as they are built with HOSTCC compiler, which is also used to compile fixdep utility that gets executed during the build. Since it might be beneficial to have a target version of mkimage, let's hack it to build fixdep in a separate step.
Quoted 5 lines
Signed-off-by Denys Dmytriyenko <[email protected]>Signed-off-by Ross Burton <[email protected]>Signed-off-by Richard Purdie <[email protected]>and this has not been checked if it kept building at that time.
Yes, it was building that time! And Ross has proof of that with autobuilder logs. He wouldn't have accepted it if autobuilder was breaking. It was breaking on another recipe and I fixed that. But fw-utils-cross was fine.
Quoted 2 lines
So I'm ok with this update to go and you work in fix it in a follow up patch, but drop it is not acceptable. It has a clear use case.
If it has such a clear use case, how do you use it when it's broken?
Signature · 1 line
Denys
Quoted 54 lines · Denys Dmytriyenko
Quoted 42 lines · Otavio Salvador
Quoted 21 lines · Denys Dmytriyenko
Quoted 9 lines · Ross
Quoted 4 lines · Denys Dmytriyenko
Please note that he's talking about current 2014.07 version, not the update!
Can you confirm that it works or fails on the autobuilder?Sorry, got lost in the thread. The old version works fine, the upgrade breaks.
That's not the case for the rest of us, unfortunately...
I'm suspecting sstate got something to do with the fact that it still works for the old version on autobuilder.
Let me emphasise it - this specific u-boot-fw-utils-cross recipe used to build fine, but now fails in the same exact way regardless of the version, either current 2014.07 or the updated 2015.01.
Quoted 6 lines
So, it seems to me that fixing it is rather out of scope of this version update patch... :)
I'm thinking of 2 short-term workarounds - don't update this particular recipe to the new version; or remove it altogether. I'm sure Otavio wouldn't be happy either way, but fixing it should probably be a separate effort...
We should have denied the update on previous versions. It has been broken by your update to 2014.07:
Author: Denys Dmytriyenko <[email protected]> Date: Tue Sep 16 19:10:01 2014 -0400u-boot: update to version 2014.07
u-boot doesn't really support building its tools for the target, as they are built with HOSTCC compiler, which is also used to compile fixdep utility that gets executed during the build. Since it might be beneficial to have a target version of mkimage, let's hack it to build fixdep in a separate step.
Quoted 5 lines
Signed-off-by Denys Dmytriyenko <[email protected]>Signed-off-by Ross Burton <[email protected]>Signed-off-by Richard Purdie <[email protected]>and this has not been checked if it kept building at that time.
Yes, it was building that time! And Ross has proof of that with autobuilder logs. He wouldn't have accepted it if autobuilder was breaking. It was breaking on another recipe and I fixed that. But fw-utils-cross was fine.
Quoted 4 lines
Quoted 2 lines
So I'm ok with this update to go and you work in fix it in a follow up patch, but drop it is not acceptable. It has a clear use case.
If it has such a clear use case, how do you use it when it's broken?
Well a non commonly used one? I didn't expect often use would be a trade metric here but ...
Signature · 3 lines
Otavio Salvador O.S. Systems http://www.ossystems.com.br http://code.ossystems.com.br Mobile: +55 (53) 9981-7854 Mobile: +1 (347) 903-9750
Quoted 4 lines · Raphael Philipe
Hey Denys, I tested u-boot-fw-utils-cross_2014.07.bb in Ubuntu 12.04 and got the same error .
Can you confirm that this recipe works for you?
Ok, trying to bisect the breakage of the current 2014.07 version of fw-utils-cross now:
Poky snapshot from mid-September, when 2014.07 update patch was submitted and when it was validated by the autobuilder - still works fine.
Since it was a feature freeze time before the release, the patch was not accepted and was queued for later.
Poky snapshot from mid-November, when the patch was finally applied - the build breaks. Again, it may not be showing the issue on the autobuilder due to an earlier successful sstate.
So, somewhere in between a change was introduced that breaks fw-utils-cross. BTW, neither 2014.07 update nor 2015.01 change anything to the way fw-utils-cross gets built.
Signature · 1 line
Denys
Quoted 15 lines · Denys Dmytriyenko
Quoted 4 lines · Raphael Philipe
Hey Denys, I tested u-boot-fw-utils-cross_2014.07.bb in Ubuntu 12.04 and got the same error .
Can you confirm that this recipe works for you?
Ok, trying to bisect the breakage of the current 2014.07 version of fw-utils-cross now:
Poky snapshot from mid-September, when 2014.07 update patch was submitted and when it was validated by the autobuilder - still works fine.
Since it was a feature freeze time before the release, the patch was not accepted and was queued for later.
Quoted 7 lines
Poky snapshot from mid-November, when the patch was finally applied - the build breaks. Again, it may not be showing the issue on the autobuilder due to an earlier successful sstate.
So, somewhere in between a change was introduced that breaks fw-utils-cross. BTW, neither 2014.07 update nor 2015.01 change anything to the way fw-utils-cross gets built.
Heh, and the commit that breaks (on purpose!) building 2014.07 version of u-boot-fw-utils-cross is the one from Richard (which does make sense):
gcc: poison default sysroot path
Various pieces of the code assume that the --sysroot option gets passed into the compiler tools. By having a "sane" default, we don't always spot when this occurs and this can later show up as breakage in sstate, or in usage of the external toolchain.
We've long since talked about poisoning the default such that it will break unless the correct option is specified. This patch does just that.
If this patch causes something to fail to build, it most likely means the various compiler flags and commands are not correctly being passed through to the underlying piece of software and that there is a real problem that needs fixing, its not the fault of this patch.
http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=678e8798ebe0f4fd1bd347db136f1499b8fe00c9
Signature · 1 line
Denys
Quoted 36 lines · Denys Dmytriyenko
Quoted 35 lines · Otavio Salvador
Quoted 33 lines · Denys Dmytriyenko
Quoted 17 lines · Otavio Salvador
Quoted 3 lines · Denys Dmytriyenko
From: Denys Dmytriyenko <[email protected]>
Signed-off-by Denys Dmytriyenko <[email protected]>...
Quoted 12 lines
+++
b/meta/recipes-bsp/u-boot/u-boot-fw-utils/0001-tools-env-fix-build-error.patchmeta/recipes-bsp/u-boot/u-boot-fw-utils/0001-tools-env-fix-build-error.patch new file +10
-0@@ -0,0 +1,36 @@ +From ee2d75513452aa6d5306fd380104adc8a2f6d8f2 Mon Sep 17 00:00:00 2001 +From: Masahiro Yamada <[email protected]> +Date: Wed, 3 Dec 2014 10:22:50 +0900 +Subject: [PATCH] tools: env: fix build error + +Since CONFIG_SYS_ARCH, CONFIG_SYS_CPU, ... were moved to Kconfig, +tools/env/fw_printenv fails to build if CONFIG_ENV_VARS_UBOOT_CONFIG +is defined. +(I do not think this is the right way to fix the problem, but +for now I do not have enough time to take a close look.)Quoted 8 lines
meta/recipes-bsp/u-boot/u-boot-fw-utils/0001-tools-env-fix-build-error.patch line 15
Quoted 5 lines
meta/recipes-bsp/u-boot/u-boot-fw-utils/0001-tools-env-fix-build-error.patch new file +5
-0+ +Upstream-Status: Submitted [http://patchwork.ozlabs.org/patch/417192/] + +Signed-off-by: Masahiro Yamada <[email protected]> +Reported-by: Denys Dmytriyenko <[email protected]>Is it necessary? In meta-fsl-arm we don't have this patch and get the tools built.
Really? The patch above is rather self-explanatory. The issue was confirmed by U-boot maintainers and the workaround provided by one of the core developers. I'm not familiar with meta-fsl-arm, but I guess you can grep your platform's defconfig to see if
CONFIG_ENV_VARS_UBOOT_CONFIGand others are defined and whether your platforms are affected or not. It does affect our platforms (among many others), including beaglebone.
Quoted 3 lines
Quoted 1 line
I think this is for the cross tool only.
Versus what?
Otavio,
Please clarify what exactly you meant with the statement above? Thanks.
Signature · 1 line
Denys
Quoted 37 lines · Denys Dmytriyenko
Quoted 36 lines · Denys Dmytriyenko
Quoted 35 lines · Otavio Salvador
Quoted 33 lines · Denys Dmytriyenko
Quoted 17 lines · Otavio Salvador
Quoted 3 lines · Denys Dmytriyenko
From: Denys Dmytriyenko <[email protected]>
Signed-off-by Denys Dmytriyenko <[email protected]>...
Quoted 12 lines
+++
b/meta/recipes-bsp/u-boot/u-boot-fw-utils/0001-tools-env-fix-build-error.patchmeta/recipes-bsp/u-boot/u-boot-fw-utils/0001-tools-env-fix-build-error.patch new file +10
-0@@ -0,0 +1,36 @@ +From ee2d75513452aa6d5306fd380104adc8a2f6d8f2 Mon Sep 17 00:00:00 2001 +From: Masahiro Yamada <[email protected]> +Date: Wed, 3 Dec 2014 10:22:50 +0900 +Subject: [PATCH] tools: env: fix build error + +Since CONFIG_SYS_ARCH, CONFIG_SYS_CPU, ... were moved to Kconfig, +tools/env/fw_printenv fails to build if CONFIG_ENV_VARS_UBOOT_CONFIG +is defined. +(I do not think this is the right way to fix the problem, but +for now I do not have enough time to take a close look.)Quoted 8 lines
meta/recipes-bsp/u-boot/u-boot-fw-utils/0001-tools-env-fix-build-error.patch line 15
Quoted 5 lines
meta/recipes-bsp/u-boot/u-boot-fw-utils/0001-tools-env-fix-build-error.patch new file +5
-0+ +Upstream-Status: Submitted [http://patchwork.ozlabs.org/patch/417192/] + +Signed-off-by: Masahiro Yamada <[email protected]> +Reported-by: Denys Dmytriyenko <[email protected]>Is it necessary? In meta-fsl-arm we don't have this patch and get the tools built.
Really? The patch above is rather self-explanatory. The issue was confirmed by U-boot maintainers and the workaround provided by one of the core developers. I'm not familiar with meta-fsl-arm, but I guess you can grep your platform's defconfig to see if
CONFIG_ENV_VARS_UBOOT_CONFIGand others are defined and whether your platforms are affected or not. It does affect our platforms (among many others), including beaglebone.
Quoted 5 lines
Quoted 3 lines
Quoted 1 line
I think this is for the cross tool only.
Versus what?
Please clarify what exactly you meant with the statement above? Thanks.
The fw-utils require the machine configuration, right? So it depends on the machine to be setup before running the build. This is the reason it ends being a cross and not a native tool.
I think your patch does address part of the issue. We now need to figure what has been lost when moving to the kbuild system.
I can try to help to debug it if you want...
Signature · 3 lines
Otavio Salvador O.S. Systems http://www.ossystems.com.br http://code.ossystems.com.br Mobile: +55 (53) 9981-7854 Mobile: +1 (347) 903-9750
Quoted 38 lines · Otavio Salvador
Quoted 37 lines · Denys Dmytriyenko
Quoted 36 lines · Denys Dmytriyenko
Quoted 35 lines · Otavio Salvador
Quoted 33 lines · Denys Dmytriyenko
Quoted 17 lines · Otavio Salvador
Quoted 3 lines · Denys Dmytriyenko
From: Denys Dmytriyenko <[email protected]>
Signed-off-by Denys Dmytriyenko <[email protected]>...
Quoted 12 lines
+++
b/meta/recipes-bsp/u-boot/u-boot-fw-utils/0001-tools-env-fix-build-error.patch(quoted diff) +10
-0@@ -0,0 +1,36 @@ +From ee2d75513452aa6d5306fd380104adc8a2f6d8f2 Mon Sep 17 00:00:00 2001 +From: Masahiro Yamada <[email protected]> +Date: Wed, 3 Dec 2014 10:22:50 +0900 +Subject: [PATCH] tools: env: fix build error + +Since CONFIG_SYS_ARCH, CONFIG_SYS_CPU, ... were moved to Kconfig, +tools/env/fw_printenv fails to build if CONFIG_ENV_VARS_UBOOT_CONFIG +is defined. +(I do not think this is the right way to fix the problem, but +for now I do not have enough time to take a close look.)Quoted 8 lines
Review line 15
Quoted 5 lines
(quoted diff) +5
-0+ +Upstream-Status: Submitted [http://patchwork.ozlabs.org/patch/417192/] + +Signed-off-by: Masahiro Yamada <[email protected]> +Reported-by: Denys Dmytriyenko <[email protected]>Is it necessary? In meta-fsl-arm we don't have this patch and get the tools built.
Really? The patch above is rather self-explanatory. The issue was confirmed by U-boot maintainers and the workaround provided by one of the core developers. I'm not familiar with meta-fsl-arm, but I guess you can grep your platform's defconfig to see if
CONFIG_ENV_VARS_UBOOT_CONFIGand others are defined and whether your platforms are affected or not. It does affect our platforms (among many others), including beaglebone.
Quoted 7 lines
Quoted 5 lines
Quoted 3 lines
Quoted 1 line
I think this is for the cross tool only.
Versus what?
Please clarify what exactly you meant with the statement above? Thanks.
The fw-utils require the machine configuration, right?
Right.
Quoted 1 line
So it depends on the machine to be setup before running the build.
Correct.
Quoted 1 line
This is the reason it ends being a cross and not a native tool.
Well, partially correct. There are 2 versions of fw-utils recipe - target and cross. There is no native version of fw-utils and logically it doesn't even make sense.
Now, for both of the target and cross recipes we need the machine config:
do_compile () {
oe_runmake ${UBOOT_MACHINE}
oe_runmake env
}So, your statement that the patch above is only needed for the cross is incorrect or misleading.
Quoted 2 lines
I think your patch does address part of the issue. We now need to figure what has been lost when moving to the kbuild system.
The patch above is not mine, but comes from U-boot core developer who was instrumental in kbuild migration - Masahiro Yamada. There's currently no proper fix for the issue and the suggested workaround is a hack, but it is sufficient and safe enough to get the tools built, which is what we need. And since it may not be safe for the rest of U-boot, I only apply it to fw-utils recipes.
Quoted 1 line
I can try to help to debug it if you want...
You are more than welcome to lend a hand to U-boot developers in debugging and finding a proper fix for the problem... ;)
Signature · 1 line
Denys