From: Michael Tremer Date: Mon, 15 Jun 2009 07:31:46 +0000 (+0200) Subject: Added cpio to toolchain. X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=26d8d58c124756c80a3102b755550dd3e6c09d7d;p=ipfire-3.x.git Added cpio to toolchain. --- diff --git a/lfs/cpio b/lfs/cpio index 45fe5822e..57bddd2ab 100644 --- a/lfs/cpio +++ b/lfs/cpio @@ -67,7 +67,9 @@ info: install: $(OBJECT) -package: +packages: $(PACKAGES) + +$(PACKAGES): $(OBJECT) @$(DO_PACKAGE) $(objects): @@ -80,6 +82,17 @@ $(objects): $(OBJECT): $(objects) @$(PREBUILD) @rm -rf $(DIR_APP) && cd $(DIR_SRC) && $(EXTRACTOR) $(DIR_DL)/$(DL_FILE) + +ifeq "$(STAGE)" "toolchain" + cd $(DIR_APP) && LDFLAGS="-z muldefs" \ + ./configure \ + $(CONFIGURE_ARCH) \ + --prefix=$(TOOLS_DIR) + cd $(DIR_APP) && make $(PARALLELISMFLAGS) + cd $(DIR_APP) && make install +endif + +ifeq "$(STAGE)" "base" cd $(DIR_APP) && LDFLAGS="-z muldefs" \ CPIO_MT_PROG=mt \ ./configure \ @@ -90,5 +103,7 @@ $(OBJECT): $(objects) --with-rmt=/usr/sbin/rmt cd $(DIR_APP) && make $(PARALLELISMFLAGS) cd $(DIR_APP) && make install +endif + @rm -rf $(DIR_APP) @$(POSTBUILD)