[Buildroot] BR2_PACKAGE_BUSYBOX_CONFIG ignored

Peter Korsgaard peter at korsgaard.com
Fri May 14 14:59:50 UTC 2021


>>>>> "David" == David Laight <david.laight at aculab.com> writes:

 > AFAICT the filename passed in BR2_PACKAGE_BUSYBOX_CONFIG is ignored and the
 > .config file in output/build/busybox-1.33.0 is always read and then
 > rewritten.

 > There is a lot of makefile 'goop' to read through, so I'm not sure how it is
 > expected to get passed through.
 > A quick look at the busybox config sources seemed to imply that NULL was
 > passed in as the old config file name - so it always looked for a default
 > (.config or /dev/null).

What makes you think it doesn't work?

make BR2_PACKAGE_BUSYBOX_CONFIG=/tmp/no-such-file busybox-configure
for f in /tmp/no-such-file ; do if [ ! -f "${f}" ]; then printf "Kconfig file or fragment '%s' for '%s' does not exist\n" "${f}" "busybox"; exit 1; fi; done
Kconfig file or fragment '/tmp/no-such-file' for 'busybox' does not exist
make[1]: *** [package/busybox/busybox.mk:409: /tmp/no-such-file] Error 1

echo -e 'CONFIG_BRCTL=y\n# CONFIG_HTTPD is not set' > /tmp/config
make BR2_PACKAGE_BUSYBOX_CONFIG=/tmp/config busybox-configure
..
make busybox-menuconfig
..
[*] brctl (4.7 kb)
[ ] httpd (32 kb)

-- 
Bye, Peter Korsgaard



More information about the buildroot mailing list