build system doesnt properly detect applet rebuild requirement
Denis Vlasenko
vda.linux at googlemail.com
Sat Feb 3 12:57:17 UTC 2007
On Saturday 03 February 2007 13:41, Bernhard Fischer wrote:
> On Sat, Feb 03, 2007 at 01:07:45PM +0100, Denis Vlasenko wrote:
> >On Saturday 03 February 2007 08:44, Mike Frysinger wrote:
> >> $ make distclean
> >> $ make allnoconfig
> >> $ make menuconfig
> >> -> enable dmesg, syslog, klogd, logger
> >> $ make
> >> $ nano .config
> >> -> disable syslog, klogd, logger
> >> $ make oldconfig
> >> $ make
> >> <link failure due to applets.o still wanting syslog/klogd/logger _main funcs>
> >> -mike
> >
> >Does this patch help?
>
> An IMHO cleaner approach would be the attached.
>
> Comments?
--- busybox_trunk/include/libbb.h (revision 17735)
+++ busybox_trunk/include/libbb.h (working copy)
+#include "autoconf.h"
#include "platform.h"
This will make every .c file depend on .config. Change just one
CONFIG_xxx and watch make rebuild everything.
-include/usage_compressed.h: $(srctree)/include/usage.h applets/usage
+include/usage_compressed.h: include/autoconf.h $(srctree)/include/usage.h applets/usage
Maybe this is needed. Or just .config instead of include/autoconf.h?
I admit I'm not good in Makefile hacking...
--
vda
More information about the busybox
mailing list