buildrootschalter/package/busybox
Thomas De Schampheleire eedfc7121c busybox: copy config file from configure iso extract step
The three typical packages that use .config files in buildroot copy the
config file at different times in the build process:

    busybox copies its .config from the post-extract hook.
    linux copies its .config in the configure_cmds.
    uclibc copies its .config from the post-patch hook.

Copying the .config file from the configure step is the only way to properly
support an OVERRIDE_SRCDIR that does not yet have the .config file, because
the extract and patch steps are skipped in that case.

For example, when setting a BUSYBOX_OVERRIDE_SRCDIR to a cleanly extracted
busybox tarball:

$ make busybox-dirclean busybox
rm -Rf [..]/output/build/busybox-custom
>>> busybox custom Syncing from source dir
>>> /home/tdescham/repo/contrib/busybox-1.21.1
rsync -au --exclude .svn --exclude .git --exclude .hg --exclude .bzr
            --exclude CVS /home/tdescham/repo/contrib/busybox-1.21.1/
            [..]/output/build/busybox-custom
>>> busybox custom Configuring
/bin/sed -i -e "/\\<CONFIG_NOMMU\\>/d"
                            [..]/output/build/busybox-custom/.config
/bin/sed: can't read [..]/output/build/busybox-custom/.config:
                                            No such file or directory
make: *** [[..]/output/build/busybox-custom/.stamp_configured] Error 2

This patch modifies busybox.mk to copy the config file from the configure
step instead, as linux is doing, and fixing the described scenario.

This fixes bug #5030: https://bugs.busybox.net/show_bug.cgi?id=5030

Signed-off-by: Thomas De Schampheleire <thomas.de.schampheleire@gmail.com>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
2014-02-14 21:36:37 +01:00
..
1.19.4 busybox: move patches to new model 2013-04-23 08:59:23 +02:00
1.20.2 busybox: move patches to new model 2013-04-23 08:59:23 +02:00
1.21.1 busybox: add patches to fix build with the musl C library 2013-10-09 16:03:22 +02:00
1.22.1 busybox: 1.22.1: correct ash patch 2014-01-23 12:47:19 +01:00
busybox-1.19.x.config
busybox-1.20.x.config busybox: add new 1.20.0, remove deprecated, mark 1.18.x deprecated 2012-04-29 10:51:14 +02:00
busybox-1.21.x.config busybox: add 1.21.x series 2013-01-21 23:38:24 +01:00
busybox-1.22.x.config busybox 1.22.x: disable touch -h 2014-01-02 09:44:55 +01:00
busybox.mk busybox: copy config file from configure iso extract step 2014-02-14 21:36:37 +01:00
Config.in busybox: bump 1.22 series to 1.22.1 2014-01-20 22:20:31 +01:00
mdev.conf
S01logging busybox: minor fixes to S01logging bootscript 2013-11-06 12:00:41 +01:00
S10mdev busybox: register mdev as hotplug helper when selected 2013-07-28 16:32:07 +02:00
S15watchdog busybox: add watchdog daemon startup script 2012-05-06 22:43:52 +02:00
udhcpc.script busybox: udhcpc script: suppress useless error message 2014-01-16 09:14:34 +01:00