[BusyBox] Pristine source builds

Larry Doolittle ldoolitt at recycle.lbl.gov
Mon Apr 19 12:26:27 UTC 2004


Five days ago, I wrote:
> I just tried to build busybox-1.00-pre10 in "pristine source"
> mode, and it looks totally broken. [chop]
> I'll plug away at it some, but I could use some help.

So now I have plugged away, and it still does look totally broken.
At this point I guess I suggest: 
  1. Apply the Rules.mak patch I posted, getting rid of BB_SRC_DIR,
     that doesn't work and falsely suggests that pristine source
     builds do work.
  2. Apply a couple of other innocuous patches that move in the
     right direction, like the attached scripts/config/Makefile
     patch that at least lets "make config" work on my box.
  3. Add the following statement somewhere in the documentation:

Busybox-1.00 does not support "pristine source" builds, where one or
more binary build trees are kept separate from, and without write
access to, the source tree.  This is a regression from 0.60.5.
We're working on it, and we'll put it in as soon as it works for us.
Contact Erik or Larry if you want to help develop or test this feature.

      - Larry


diff -urN foo/scripts/config/Makefile busybox-1.00-pre10-hacked/scripts/config/Makefile
--- foo/scripts/config/Makefile	2004-03-15 00:29:08.000000000 -0800
+++ busybox-1.00-pre10-hacked/scripts/config/Makefile	2004-04-18 15:48:38.000000000 -0700
@@ -2,8 +2,10 @@
 #
 # Copyright (C) 2002 Erik Andersen <andersen at codepoet.org>
 
-TOPDIR=../../
+TOPDIR:=../../
 include $(TOPDIR)Rules.mak
+VPATH=$(TOPDIR)scripts/config
+HOSTCFLAGS += -I$(TOPDIR)scripts/config
 
 all: ncurses conf mconf
 
@@ -72,16 +74,16 @@
 	$(HOSTCC) $(HOSTCFLAGS) -I. -c $< -o $@
 
 lex.zconf.c: lex.zconf.c_shipped
-	cp lex.zconf.c_shipped lex.zconf.c
+	cp $< $@
 
 zconf.tab.o: zconf.tab.c lex.zconf.c confdata.c expr.c symbol.c menu.c $(SHARED_DEPS)
 	$(HOSTCC) $(HOSTCFLAGS) -I. -c $< -o $@
 
 zconf.tab.c: zconf.tab.c_shipped
-	cp zconf.tab.c_shipped zconf.tab.c
+	cp $< $@
 
 zconf.tab.h: zconf.tab.h_shipped
-	cp zconf.tab.h_shipped zconf.tab.h
+	cp $< $@
 endif
 
 .PHONY: ncurses



More information about the busybox mailing list