BusyBox features not working
Using the latest master, building for qemuarm with the default local.conf, I find that the various configurations set by DISTRO_FEATURES are not being propagated into the build of busybox. In particular, there is no networking support :-(
$ grep IPV tmp/work/armv5te-poky-linux-gnueabi/busybox-1.18.4-r5/busybox-1.18.4/.config # CONFIG_FEATURE_IPV6 is not set # CONFIG_FEATURE_PREFER_IPV4_ADDRESS is not set # CONFIG_FEATURE_IFUPDOWN_IPV4 is not set # CONFIG_FEATURE_IFUPDOWN_IPV6 is not set
This is supposed to work because "ipv6" and "ipv4" are now in ${DISTRO_FEATURES_LIBC}, but that doesn't seem to be reflected by the build.
If I set this explicitly in my local.conf, e.g.
DISTRO_FEATURES = "alsa ipv4 ${DISTRO_FEATURES_LIBC}"
I then get the correct options built.
I know that ${DISTRO_FEATURES_LIBC} is set (at least the default) as without it, my builds break horribly.
Any ideas what's going on here?
Signature · 4 lines
------------------------------------------------------------ Gary Thomas | Consulting for the MLB Associates | Embedded world ------------------------------------------------------------
Quoted 13 lines · Gary Thomas
Using the latest master, building for qemuarm with the default local.conf, I find that the various configurations set by
DISTRO_FEATURESare not being propagated into the build of busybox. In particular, there is no networking support :-($ grep IPV tmp/work/armv5te-poky-linux-gnueabi/busybox-1.18.4-r5/busybox-1.18.4/.config # CONFIG_FEATURE_IPV6 is not set # CONFIG_FEATURE_PREFER_IPV4_ADDRESS is not set # CONFIG_FEATURE_IFUPDOWN_IPV4 is not set # CONFIG_FEATURE_IFUPDOWN_IPV6 is not setThis is supposed to work because "ipv6" and "ipv4" are now in ${DISTRO_FEATURES_LIBC}, but that doesn't seem to be reflected by the build.
Quoted 9 lines
If I set this explicitly in my local.conf, e.g.
DISTRO_FEATURES= "alsa ipv4 ${DISTRO_FEATURES_LIBC}" I then get the correct options built.I know that ${DISTRO_FEATURES_LIBC} is set (at least the default) as without it, my builds break horribly.
Any ideas what's going on here?
Weird. I just ran through this, first with the default value for DISTRO_FEATURES, then with the same value but 'ipv4' placed at the front of that list. If 'ipv4' is somewhere in the middle, busybox is not configured correctly. If it's at the front, it works properly.
A full log of these steps is attached.
What could possibly cause this behaviour?
Note: I printed the value of DISTRO_FEATURES by modifying base.bbclass. Is there an easier way to see the value of such variables being used by the recipes? I gave the bitbake manual a look, but didn't find any hints...
Signature · 4 lines
------------------------------------------------------------ Gary Thomas | Consulting for the MLB Associates | Embedded world ------------------------------------------------------------
[gthomas@titan qemu_latest]$ bitbake busybox -c configure
Loading cache: 100% |###################################################################################| ETA: 00:00:00 Loaded 1039 entries from dependency cache.
OE Build Configuration:
BB_VERSION = "1.13.2" TARGET_ARCH = "arm" TARGET_OS = "linux-gnueabi" MACHINE = "qemuarm" DISTRO = "poky" DISTRO_VERSION = "1.0+snapshot-20110712" TARGET_FPU = "soft" DISTRO_FEATURES = "alsa bluetooth ext2 irda pcmcia usbgadget usbhost wifi nfs zeroconf pci 3g ipv4 ipv6 libc-backtrace libc-big-macros libc-bsd libc-cxx-tests libc-catgets libc-charsets libc-crypt libc-crypt-ufc libc-db-aliases libc-envz libc-fcvt libc-fmtmsg libc-fstab libc-ftraverse libc-getlogin libc-idn libc-inet libc-inet-anl libc-libm libc-libm-big libc-locales libc-locale-code libc-memusage libc-nis libc-nsswitch libc-rcmd libc-rtld-debug libc-spawn libc-streams libc-sunrpc libc-utmp libc-utmpx libc-wordexp libc-posix-clang-wchar libc-posix-regexp libc-posix-regexp-glibc libc-posix-wchar-io largefile"
meta
meta-yocto = "local_master:f974868cadf74d0cf8380b2c6a4152d2fa4590b5"
NOTE: Resolving any missing task queue dependencies
NOTE: preferred version 2.21 of binutils-cross not available (for item virtual/arm-poky-linux-gnueabi-binutils)
NOTE: Preparing runqueue
NOTE: Executing SetScene Tasks
NOTE: Executing RunQueue Tasks
NOTE: Running task 226 of 244 (ID: 2, /home/local/poky-amltd/meta/recipes-core/busybox/busybox_1.18.4.bb, do_fetch)
NOTE: package busybox-1.18.4-r5: task do_fetch: Started
NOTE: package busybox-1.18.4-r5: task do_fetch: Succeeded
NOTE: Running task 242 of 244 (ID: 0, /home/local/poky-amltd/meta/recipes-core/busybox/busybox_1.18.4.bb, do_unpack)
NOTE: package busybox-1.18.4-r5: task do_unpack: Started
NOTE: package busybox-1.18.4-r5: task do_unpack: Succeeded
NOTE: Running task 243 of 244 (ID: 1, /home/local/poky-amltd/meta/recipes-core/busybox/busybox_1.18.4.bb, do_patch)
NOTE: package busybox-1.18.4-r5: task do_patch: Started
NOTE: package busybox-1.18.4-r5: task do_patch: Succeeded
NOTE: Running task 244 of 244 (ID: 3, /home/local/poky-amltd/meta/recipes-core/busybox/busybox_1.18.4.bb, do_configure)
NOTE: package busybox-1.18.4-r5: task do_configure: Started
NOTE: package busybox-1.18.4-r5: task do_configure: Succeeded
NOTE: Tasks Summary: Attempted 244 tasks of which 240 didn't need to be rerun and 0 failed.
[gthomas@titan qemu_latest]$ grep IPV tmp/work/armv5te-poky-linux-gnueabi/busybox-1.18.4-r5/busybox-1.18.4/.config # CONFIG_FEATURE_IPV6 is not set
# CONFIG_FEATURE_PREFER_IPV4_ADDRESS is not set
# CONFIG_FEATURE_IFUPDOWN_IPV4 is not set
# CONFIG_FEATURE_IFUPDOWN_IPV6 is not set
[gthomas@titan qemu_latest]$ emacs conf/local.conf
[gthomas@titan qemu_latest]$ bitbake busybox -c cleansstate
NOTE: Out of date cache found, rebuilding...
Parsing recipes: 100% |#################################################################################| Time: 00:01:30 Parsing of 805 .bb files complete (0 cached, 805 parsed). 1038 targets, 34 skipped, 0 masked, 0 errors.
OE Build Configuration:
BB_VERSION = "1.13.2" TARGET_ARCH = "arm" TARGET_OS = "linux-gnueabi" MACHINE = "qemuarm" DISTRO = "poky" DISTRO_VERSION = "1.0+snapshot-20110712" TARGET_FPU = "soft" DISTRO_FEATURES = "ipv4 alsa bluetooth ext2 irda pcmcia usbgadget usbhost wifi nfs zeroconf pci 3g ipv4 ipv6 libc-backtrace libc-big-macros libc-bsd libc-cxx-tests libc-catgets libc-charsets libc-crypt libc-crypt-ufc libc-db-aliases libc-envz libc-fcvt libc-fmtmsg libc-fstab libc-ftraverse libc-getlogin libc-idn libc-inet libc-inet-anl libc-libm libc-libm-big libc-locales libc-locale-code libc-memusage libc-nis libc-nsswitch libc-rcmd libc-rtld-debug libc-spawn libc-streams libc-sunrpc libc-utmp libc-utmpx libc-wordexp libc-posix-clang-wchar libc-posix-regexp libc-posix-regexp-glibc libc-posix-wchar-io largefile"
meta
meta-yocto = "local_master:f974868cadf74d0cf8380b2c6a4152d2fa4590b5"
NOTE: Resolving any missing task queue dependencies
NOTE: preferred version 2.21 of binutils-cross not available (for item virtual/arm-poky-linux-gnueabi-binutils)
NOTE: Preparing runqueue
NOTE: Executing RunQueue Tasks
NOTE: Running task 1 of 2 (ID: 0, /home/local/poky-amltd/meta/recipes-core/busybox/busybox_1.18.4.bb, do_clean)
NOTE: package busybox-1.18.4-r5: task do_clean: Started
NOTE: package busybox-1.18.4-r5: task do_clean: Succeeded
NOTE: Running task 2 of 2 (ID: 1, /home/local/poky-amltd/meta/recipes-core/busybox/busybox_1.18.4.bb, do_cleansstate)
NOTE: package busybox-1.18.4-r5: task do_cleansstate: Started
NOTE: package busybox-1.18.4-r5: task do_cleansstate: Succeeded
NOTE: Tasks Summary: Attempted 2 tasks of which 0 didn't need to be rerun and 0 failed.
[gthomas@titan qemu_latest]$ bitbake busybox -c configure
Loading cache: 100% |###################################################################################| ETA: 00:00:00 Loaded 1039 entries from dependency cache.
OE Build Configuration:
BB_VERSION = "1.13.2" TARGET_ARCH = "arm" TARGET_OS = "linux-gnueabi" MACHINE = "qemuarm" DISTRO = "poky" DISTRO_VERSION = "1.0+snapshot-20110712" TARGET_FPU = "soft" DISTRO_FEATURES = "ipv4 alsa bluetooth ext2 irda pcmcia usbgadget usbhost wifi nfs zeroconf pci 3g ipv4 ipv6 libc-backtrace libc-big-macros libc-bsd libc-cxx-tests libc-catgets libc-charsets libc-crypt libc-crypt-ufc libc-db-aliases libc-envz libc-fcvt libc-fmtmsg libc-fstab libc-ftraverse libc-getlogin libc-idn libc-inet libc-inet-anl libc-libm libc-libm-big libc-locales libc-locale-code libc-memusage libc-nis libc-nsswitch libc-rcmd libc-rtld-debug libc-spawn libc-streams libc-sunrpc libc-utmp libc-utmpx libc-wordexp libc-posix-clang-wchar libc-posix-regexp libc-posix-regexp-glibc libc-posix-wchar-io largefile"
meta
meta-yocto = "local_master:f974868cadf74d0cf8380b2c6a4152d2fa4590b5"
NOTE: Resolving any missing task queue dependencies
NOTE: preferred version 2.21 of binutils-cross not available (for item virtual/arm-poky-linux-gnueabi-binutils)
NOTE: Preparing runqueue
NOTE: Executing SetScene Tasks
NOTE: Executing RunQueue Tasks
NOTE: Running task 226 of 244 (ID: 2, /home/local/poky-amltd/meta/recipes-core/busybox/busybox_1.18.4.bb, do_fetch)
NOTE: package busybox-1.18.4-r5: task do_fetch: Started
NOTE: package busybox-1.18.4-r5: task do_fetch: Succeeded
NOTE: Running task 242 of 244 (ID: 0, /home/local/poky-amltd/meta/recipes-core/busybox/busybox_1.18.4.bb, do_unpack)
NOTE: package busybox-1.18.4-r5: task do_unpack: Started
NOTE: package busybox-1.18.4-r5: task do_unpack: Succeeded
NOTE: Running task 243 of 244 (ID: 1, /home/local/poky-amltd/meta/recipes-core/busybox/busybox_1.18.4.bb, do_patch)
NOTE: package busybox-1.18.4-r5: task do_patch: Started
NOTE: package busybox-1.18.4-r5: task do_patch: Succeeded
NOTE: Running task 244 of 244 (ID: 3, /home/local/poky-amltd/meta/recipes-core/busybox/busybox_1.18.4.bb, do_configure)
NOTE: package busybox-1.18.4-r5: task do_configure: Started
NOTE: package busybox-1.18.4-r5: task do_configure: Succeeded
NOTE: Tasks Summary: Attempted 244 tasks of which 240 didn't need to be rerun and 0 failed.
[gthomas@titan qemu_latest]$ grep IPV tmp/work/armv5te-poky-linux-gnueabi/busybox-1.18.4-r5/busybox-1.18.4/.config # CONFIG_FEATURE_IPV6 is not set
# CONFIG_FEATURE_PREFER_IPV4_ADDRESS is not setCONFIG_FEATURE_IFUPDOWN_IPV4=y
# CONFIG_FEATURE_IFUPDOWN_IPV6 is not set
Quoted 4 lines · On Tuesday 12 July 2011 13:48:30 Gary Thomas wrote:
Weird. I just ran through this, first with the default value for
DISTRO_FEATURES, then with the same value but 'ipv4' placed at the front of that list. If 'ipv4' is somewhere in the middle, busybox is not configured correctly. If it's at the front, it works properly.
Hmm, a quick test shows that you're right, it doesn't seem to be working as expected. Not sure what's going on yet but I will investigate further.
Quoted 3 lines
Note: I printed the value of
DISTRO_FEATURESby modifying base.bbclass. Is there an easier way to see the value of such variables being used by the recipes? I gave the bitbake manual a look, but didn't find any hints...
The option you want is -e, for example:
bitbake -e busybox | grep DISTRO_FEATURES
or, to be more strict:
bitbake -e busybox | grep ^DISTRO_FEATURES
Cheers,
Paul
Signature · 2 lines
Paul Eggleton Intel Open Source Technology Centre
Quoted 8 lines · On Tuesday 12 July 2011 14:12:20 Paul Eggleton wrote:
Quoted 4 lines · On Tuesday 12 July 2011 13:48:30 Gary Thomas wrote:
Weird. I just ran through this, first with the default value for
DISTRO_FEATURES, then with the same value but 'ipv4' placed at the front of that list. If 'ipv4' is somewhere in the middle, busybox is not configured correctly. If it's at the front, it works properly.Hmm, a quick test shows that you're right, it doesn't seem to be working as expected. Not sure what's going on yet but I will investigate further.
OK, so the answer is it's not fully expanding DISTRO_FEATURES in busybox.inc, thus nothing in DISTRO_FEATURES_LIBC is found. I'll send a patch to fix this (to oe-core).
Thanks for pointing this out!
Cheers,
Paul
Signature · 2 lines
Paul Eggleton Intel Open Source Technology Centre