Skip to contentSkip to conversation

u-boot: Add missing dependency on swig

PATCH In review Marek Vasut 4 participants 10 messages Jul 11, 2018 – Jul 19, 2018

lore
Share & tools
lore
#0 lore raw

PATCH 1/4 u-boot: Add missing dependency on swig

The U-Boot build, in particular the pylibfdt, depends on swig-native. Add the missing dependency.

Cc Alexander Kanavin <[email protected]>
Cc Otavio Salvador <[email protected]>
Cc Richard Purdie <[email protected]>
Cc Ross Burton <[email protected]>
---
 meta/recipes-bsp/u-boot/u-boot_2018.05.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta/recipes-bsp/u-boot/u-boot_2018.05.bb +1 -1
index 37c21dcaa3..3cdec00cbd 100644
@@ -1,4 +1,4 @@
 require u-boot-common_${PV}.inc
 require u-boot.inc
 
-DEPENDS += "bc-native dtc-native"
+DEPENDS += "bc-native dtc-native swig-native"
Signature · 1 line
2.16.2
#3 lore raw

PATCH 4/4 qemux86*: Add U-Boot machine configuration

Add U-Boot machine configuration for the qemux86 and qemux86-64 to allow building U-Boot on those targets. This in turn allows the auto-updater to update the U-Boot recipe.

Cc Alexander Kanavin <[email protected]>
Cc Otavio Salvador <[email protected]>
Cc Richard Purdie <[email protected]>
Cc Ross Burton <[email protected]>
---
 meta/conf/machine/qemux86-64.conf | 2 ++
 meta/conf/machine/qemux86.conf    | 2 ++
 2 files changed, 4 insertions(+)
meta/conf/machine/qemux86-64.conf +2 -0
index 2330c7d86e..fd1f4142e9 100644
@@ -12,6 +12,8 @@ DEFAULTTUNE ?= "core2-64"
 require conf/machine/include/tune-core2.inc
 require conf/machine/include/qemuboot-x86.inc
 
+UBOOT_MACHINE ?= "qemu-x86_64_defconfig"
+
 KERNEL_IMAGETYPE = "bzImage"
 
 SERIAL_CONSOLES ?= "115200;ttyS0 115200;ttyS1"
meta/conf/machine/qemux86.conf +2 -0
index 811e3ef7cf..efcebb2782 100644
@@ -11,6 +11,8 @@ require conf/machine/include/qemu.inc
 require conf/machine/include/tune-i586.inc
 require conf/machine/include/qemuboot-x86.inc
 
+UBOOT_MACHINE ?= "qemu-x86_defconfig"
+
 KERNEL_IMAGETYPE = "bzImage"
 
 SERIAL_CONSOLES ?= "115200;ttyS0 115200;ttyS1"
Signature · 1 line
2.16.2
#2 lore raw

PATCH 3/4 u-boot: Upgrade to 2018.07 release

In reply to Marek Vasut

This upgrades the U-Boot from 2018.05 to 2018.07 release.

Cc Alexander Kanavin <[email protected]>
Cc Otavio Salvador <[email protected]>
Cc Richard Purdie <[email protected]>
Cc Ross Burton <[email protected]>
---
 .../u-boot/{u-boot-common_2018.05.inc => u-boot-common_2018.07.inc}   | 4 ++--
 .../u-boot/{u-boot-fw-utils_2018.05.bb => u-boot-fw-utils_2018.07.bb} | 0
 .../u-boot/{u-boot-mkimage_2018.05.bb => u-boot-mkimage_2018.07.bb}   | 0
 meta/recipes-bsp/u-boot/{u-boot_2018.05.bb => u-boot_2018.07.bb}      | 0
 4 files changed, 2 insertions(+), 2 deletions(-)
 rename meta/recipes-bsp/u-boot/{u-boot-common_2018.05.inc => u-boot-common_2018.07.inc} (68%)
 rename meta/recipes-bsp/u-boot/{u-boot-fw-utils_2018.05.bb => u-boot-fw-utils_2018.07.bb} (100%)
 rename meta/recipes-bsp/u-boot/{u-boot-mkimage_2018.05.bb => u-boot-mkimage_2018.07.bb} (100%)
 rename meta/recipes-bsp/u-boot/{u-boot_2018.05.bb => u-boot_2018.07.bb} (100%)
meta/recipes-bsp/u-boot/u-boot-common_2018.07.inc renamed from meta/recipes-bsp/u-boot/u-boot-common_2018.05.inc +2 -2
similarity index 68%
rename from meta/recipes-bsp/u-boot/u-boot-common_2018.05.inc
rename to meta/recipes-bsp/u-boot/u-boot-common_2018.07.inc
index deec6e4890..d945253475 100644
@@ -3,12 +3,12 @@ SECTION = "bootloaders"
 DEPENDS += "flex-native bison-native"
 
 LICENSE = "GPLv2+"
-LIC_FILES_CHKSUM = "file://Licenses/README;md5=a2c678cfd4a4d97135585cad908541c6"
+LIC_FILES_CHKSUM = "file://Licenses/README;md5=30503fd321432fc713238f582193b78e"
 PE = "1"
 
 # We use the revision in order to avoid having to fetch it from the
 # repo during parse
-SRCREV = "890e79f2b1c26c5ba1a86d179706348aec7feef7"
+SRCREV = "8c5d4fd0ec222701598a27b26ab7265d4cee45a3"
 
 SRC_URI = "git://git.denx.de/u-boot.git"
 
meta/recipes-bsp/u-boot/u-boot-fw-utils_2018.07.bb renamed from meta/recipes-bsp/u-boot/u-boot-fw-utils_2018.05.bb +0 -0
similarity index 100%
rename from meta/recipes-bsp/u-boot/u-boot-fw-utils_2018.05.bb
rename to meta/recipes-bsp/u-boot/u-boot-fw-utils_2018.07.bb
meta/recipes-bsp/u-boot/u-boot-mkimage_2018.07.bb renamed from meta/recipes-bsp/u-boot/u-boot-mkimage_2018.05.bb +0 -0
similarity index 100%
rename from meta/recipes-bsp/u-boot/u-boot-mkimage_2018.05.bb
rename to meta/recipes-bsp/u-boot/u-boot-mkimage_2018.07.bb
meta/recipes-bsp/u-boot/u-boot_2018.07.bb renamed from meta/recipes-bsp/u-boot/u-boot_2018.05.bb +0 -0
similarity index 100%
rename from meta/recipes-bsp/u-boot/u-boot_2018.05.bb
rename to meta/recipes-bsp/u-boot/u-boot_2018.07.bb
Signature · 1 line
2.16.2
#1 lore raw

PATCH 2/4 u-boot: Add missing dependency on flex and bison native

In reply to Marek Vasut

The U-Boot build, in particular the Kconfig, depends on bison and flex native. Add the missing dependencies.

Cc Alexander Kanavin <[email protected]>
Cc Otavio Salvador <[email protected]>
Cc Richard Purdie <[email protected]>
Cc Ross Burton <[email protected]>
---
 meta/recipes-bsp/u-boot/u-boot-common_2018.05.inc  | 1 +
 meta/recipes-bsp/u-boot/u-boot-fw-utils_2018.05.bb | 2 +-
 meta/recipes-bsp/u-boot/u-boot-mkimage_2018.05.bb  | 2 +-
 3 files changed, 3 insertions(+), 2 deletions(-)
meta/recipes-bsp/u-boot/u-boot-common_2018.05.inc +1 -0
index 61566f5856..deec6e4890 100644
@@ -1,5 +1,6 @@
 HOMEPAGE = "http://www.denx.de/wiki/U-Boot/WebHome"
 SECTION = "bootloaders"
+DEPENDS += "flex-native bison-native"
 
 LICENSE = "GPLv2+"
 LIC_FILES_CHKSUM = "file://Licenses/README;md5=a2c678cfd4a4d97135585cad908541c6"
meta/recipes-bsp/u-boot/u-boot-fw-utils_2018.05.bb +1 -1
index 02887a138a..52c13e75d8 100644
@@ -1,7 +1,7 @@
 require u-boot-common_${PV}.inc
 
 SUMMARY = "U-Boot bootloader fw_printenv/setenv utilities"
-DEPENDS = "mtd-utils"
+DEPENDS += "mtd-utils"
 
 INSANE_SKIP_${PN} = "already-stripped"
 EXTRA_OEMAKE_class-target = 'CROSS_COMPILE=${TARGET_PREFIX} CC="${CC} ${CFLAGS} ${LDFLAGS}" HOSTCC="${BUILD_CC} ${BUILD_CFLAGS} ${BUILD_LDFLAGS}" V=1'
meta/recipes-bsp/u-boot/u-boot-mkimage_2018.05.bb +1 -1
index 1c008be96e..08bff1d161 100644
@@ -1,7 +1,7 @@
 require u-boot-common_${PV}.inc
 
 SUMMARY = "U-Boot bootloader image creation tool"
-DEPENDS = "openssl"
+DEPENDS += "openssl"
 
 EXTRA_OEMAKE_class-target = 'CROSS_COMPILE="${TARGET_PREFIX}" CC="${CC} ${CFLAGS} ${LDFLAGS}" HOSTCC="${BUILD_CC} ${BUILD_CFLAGS} ${BUILD_LDFLAGS}" STRIP=true V=1'
 EXTRA_OEMAKE_class-native = 'CC="${BUILD_CC} ${BUILD_CFLAGS} ${BUILD_LDFLAGS}" HOSTCC="${BUILD_CC} ${BUILD_CFLAGS} ${BUILD_LDFLAGS}" STRIP=true V=1'
Signature · 1 line
2.16.2
#4 lore raw
In reply to Marek Vasut

Doesn't it add dependency on python as well?

It was failing before RSS when swig-native was autodetected in sysroot:
https://www.mail-archive.com/[email protected]/msg38214.html
https://lists.yoctoproject.org/pipermail/yocto/2017-October/038347.html
IIRC it fails to build only when the Python.h is also missing on host, which makes it even worse.

Quoted 32 lines · Marek Vasut

The U-Boot build, in particular the pylibfdt, depends on swig-native. Add the missing dependency.

Cc Alexander Kanavin <[email protected]>
Cc Otavio Salvador <[email protected]>
Cc Richard Purdie <[email protected]>
Cc Ross Burton <[email protected]>
---
 meta/recipes-bsp/u-boot/u-boot_2018.05.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta/recipes-bsp/u-boot/u-boot_2018.05.bb +1 -2
index 37c21dcaa3..3cdec00cbd 100644
@@ -1,4 +1,4 @@
 require u-boot-common_${PV}.inc
 require u-boot.inc
 
-DEPENDS += "bc-native dtc-native"
+DEPENDS += "bc-native dtc-native swig-native"
--

2.16.2

--
_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-core

#6 lore raw
In reply to Marek Vasut
Quoted 2 lines · Marek Vasut

The U-Boot build, in particular the pylibfdt, depends on swig-native. Add the missing dependency.

If pylibfdt isn't usually needed (which it cant be, if swig is an optional build dependency which isn't on my machines, or the autobuilders, right?) can we just disable the building of pylibfdt instead?

Ross

#5 lore raw
In reply to Martin Jansa
Quoted 1 line · Martin Jansa

Doesn't it add dependency on python as well?

It does as python is needed too.

Quoted 1 line

It was failing before RSS when swig-native was autodetected in sysroot:

RSS ?

Quoted 4 lines

https://www.mail-archive.com/[email protected]/msg38214.html
https://lists.yoctoproject.org/pipermail/yocto/2017-October/038347.html
IIRC it fails to build only when the Python.h is also missing on host, which makes it even worse.

Can you check if it still fails with this patchset ? I believe this problem you linked is fixed in upstream now, but let's see. I could never replicate the problem myself.

Quoted 43 lines

On Wed, Jul 11, 2018 at 5:10 PM Marek Vasut <[email protected] <mailto:[email protected]>> wrote:

    The U-Boot build, in particular the pylibfdt, depends on swig-native.
    Add the missing dependency.

    Signed-off-by: Marek Vasut <[email protected] <mailto:[email protected]>>
    Cc: Alexander Kanavin <[email protected]
    <mailto:[email protected]>>
    Cc: Otavio Salvador <[email protected]
    <mailto:[email protected]>>
    Cc: Richard Purdie <[email protected]
    <mailto:[email protected]>>
    Cc: Ross Burton <[email protected] <mailto:[email protected]>>
    ---
     meta/recipes-bsp/u-boot/u-boot_2018.05.bb
    <http://u-boot_2018.05.bb> | 2 +-
     1 file changed, 1 insertion(+), 1 deletion(-)

    diff --git a/meta/recipes-bsp/u-boot/u-boot_2018.05.bb
    <http://u-boot_2018.05.bb>
    b/meta/recipes-bsp/u-boot/u-boot_2018.05.bb <http://u-boot_2018.05.bb>
    index 37c21dcaa3..3cdec00cbd 100644
    --- a/meta/recipes-bsp/u-boot/u-boot_2018.05.bb
    <http://u-boot_2018.05.bb>
    +++ b/meta/recipes-bsp/u-boot/u-boot_2018.05.bb
    <http://u-boot_2018.05.bb>
    @@ -1,4 +1,4 @@
     require u-boot-common_${PV}.inc
     require u-boot.inc

    -DEPENDS += "bc-native dtc-native"
    +DEPENDS += "bc-native dtc-native swig-native"
    -- 
    2.16.2

    -- 
    _______________________________________________
    Openembedded-core mailing list
    [email protected]
    <mailto:[email protected]>
    http://lists.openembedded.org/mailman/listinfo/openembedded-core
Signature · 2 lines
Best regards,
Marek Vasut
#7 lore raw
In reply to Burton, Ross
Quoted 8 lines · Ross
Quoted 2 lines · Marek Vasut

The U-Boot build, in particular the pylibfdt, depends on swig-native. Add the missing dependency.

If pylibfdt isn't usually needed (which it cant be, if swig is an optional build dependency which isn't on my machines, or the autobuilders, right?) can we just disable the building of pylibfdt instead?

Why do you think libpyfdt isn't usually needed ?

Why do you think swig is optional dependency ?

Quoted 2 lines

Ross

Signature · 2 lines
Best regards,
Marek Vasut
#8 lore raw
Quoted 6 lines · Marek Vasut
Quoted 5 lines · Ross
Quoted 3 lines · Marek Vasut

The U-Boot build, in particular the pylibfdt, depends on swig- native.
Add the missing dependency.

Quoted 8 lines
Quoted 4 lines

If pylibfdt isn't usually needed (which it cant be, if swig is an optional build dependency which isn't on my machines, or the autobuilders, right?) can we just disable the building of pylibfdt instead?

Why do you think libpyfdt isn't usually needed ?

Why do you think swig is optional dependency ?

I encountered this same issue and was able to track it down. The problem is that u-boot is building pylibfdt using the host Python instead of using python-native provided by bitbake. pylibfdt is a non- optional dependency for several u-boot configurations, in my case qemu- x86 and qemu-x84_64.

I pushed a patch to the mailing list that I think fixes this: http://li
sts.openembedded.org/pipermail/openembedded-core/2018-July/153115.html

Quoted 8 lines
Quoted 3 lines

Ross

Signature · 2 lines
Best regards,
Marek Vasut
#9 lore raw

FWIW: my do_compile_prepend hack to stop autodetecting swig from sysroot (in pre-RSS - recipe specific sysroots in Yocto 2.2) stopped working in 2017.07 version where it was moved from tools/Makefile:
https://github.com/u-boot/u-boot/commit/727f153629719c93f9c5df6e391fdfee32377ca7#diff-c9b3e9a4c86396781af56d6bdfc8c9f3

It was still building without swig I belive until 2018.07 version which doesn't use "$(if $(shell which swig 2> /dev/null)" to check for native swig anymore since:
https://github.com/u-boot/u-boot/commit/15b97f5c5e6d88e0560c6928f3acd01c999a494d#diff-c9b3e9a4c86396781af56d6bdfc8c9f3

Thanks Joshua for the fix.

Quoted 39 lines · Joshua Watt
Quoted 6 lines · Marek Vasut
Quoted 5 lines · Ross
Quoted 3 lines · Marek Vasut

The U-Boot build, in particular the pylibfdt, depends on swig- native.
Add the missing dependency.

Quoted 8 lines
Quoted 4 lines

If pylibfdt isn't usually needed (which it cant be, if swig is an optional build dependency which isn't on my machines, or the autobuilders, right?) can we just disable the building of pylibfdt instead?

Why do you think libpyfdt isn't usually needed ?

Why do you think swig is optional dependency ?

I encountered this same issue and was able to track it down. The problem is that u-boot is building pylibfdt using the host Python instead of using python-native provided by bitbake. pylibfdt is a non- optional dependency for several u-boot configurations, in my case qemu- x86 and qemu-x84_64.

I pushed a patch to the mailing list that I think fixes this: http://li
sts.openembedded.org/pipermail/openembedded-core/2018-July/153115.html

Quoted 8 lines
Quoted 3 lines

Ross

--
Best regards,
Marek Vasut

--
_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-core