[BusyBox] new config system bugs

Bradley A. Barrett brad at patton.com
Wed Dec 11 14:23:25 UTC 2002


Two bugs I've encountered with the new config/build system (using 20021211 
snapshot):

1) The cross-compiler prefix set in menuconfig is applied only to $(CC) and 
not to $(STRIP) or $(AR).  In my case this means that busybox is built with 
mipsel-linux-gcc (my cross-compiler) but stripped with the host strip which 
doesn't understand elf32-tradlittlemips format (rather than 
mipsel-linux-strip which does).  The host ar is used rather than 
mipsel-linux-ar, but this does not cause a problem.

I found changing line 43 of Rules.mak from:
STRIP          := $(CROSS)strip
to:
STRIP          = $(CROSS)strip
correctly adds the cross prefix.  Only this one change is necessary, but I 
suspect the cross prefix should be applied to all the tools listed in this 
section of Rules.mak.  Can someone confirm this is the right approach though?

2) Small dependency issue.  busybox should depend on ".depend", not "depend".

Patch for busybox/Makefile:
--- busybox/Makefile    Mon Dec  9 16:16:39 2002
+++ busybox-dev-20021211/Makefile       Wed Dec 11 15:58:07 2002
@@ -39,7 +39,7 @@
 -include .config.cmd
 include $(patsubst %,%/Makefile.in, $(DIRS))

-busybox: depend $(libraries-y)
+busybox: .depend $(libraries-y)
        $(CC) $(LDFLAGS) -o $@ $(libraries-y) $(LIBRARIES)
        $(STRIPCMD) $@



Brad



More information about the busybox mailing list