]> git.ipfire.org Git - ipfire-3.x.git/commitdiff
Modified the uClibc toolchain and added new tools to it.
authorMichael Tremer <michael.tremer@ipfire.org>
Mon, 5 May 2008 17:42:31 +0000 (19:42 +0200)
committerMichael Tremer <michael.tremer@ipfire.org>
Mon, 5 May 2008 17:42:31 +0000 (19:42 +0200)
22 files changed:
config/busybox/.config
lfs/adjust-toolchain
lfs/cpio
lfs/e2fsprogs
lfs/gcc
lfs/glibc
lfs/kudzu
lfs/lzma
lfs/newt
lfs/parted
lfs/pciutils
lfs/pcre
lfs/popt
lfs/python
lfs/readline
lfs/slang
lfs/stage5
lfs/uClibc
lfs/udev
lfs/util-linux-ng
lfs/zlib
make.sh

index af3e259ad92907d2214fc71a842838ba1f9e273c..94a39b133347ad002dea9575d3dcd6e7229a6d8f 100644 (file)
@@ -1,7 +1,7 @@
 #
 # Automatically generated make config: don't edit
 # Busybox version: 1.10.0
-# Sat Apr 26 17:29:28 2008
+# Sun May  4 18:11:59 2008
 #
 CONFIG_HAVE_DOT_CONFIG=y
 
@@ -58,7 +58,7 @@ CONFIG_NO_DEBUG_LIB=y
 #
 # Installation Options
 #
-# CONFIG_INSTALL_NO_USR is not set
+CONFIG_INSTALL_NO_USR=y
 CONFIG_INSTALL_APPLET_SYMLINKS=y
 # CONFIG_INSTALL_APPLET_HARDLINKS is not set
 # CONFIG_INSTALL_APPLET_SCRIPT_WRAPPERS is not set
index 11c6b3e43032268ea87ab9ec0aa3dc72ead08275..4c8384a1454bae8d5a72f7917e56d65dbcfcefb7 100644 (file)
@@ -78,10 +78,10 @@ ifeq "$(STAGE)" "base"
 endif
 
 ifeq "$(STAGE)" "uclibc"
-       $(UCLIBC_TARGET)-gcc -dumpspecs \
-               > $$($(UCLIBC_TARGET)-gcc --print-file specs)
-       sed -e 's/%{shared:-lc}/%{!nointl: -lintl} &/' \
-               -i $$($(UCLIBC_TARGET)-gcc --print-file specs)
+       #$(UCLIBC_TARGET)-gcc -dumpspecs \
+       #       > $$($(UCLIBC_TARGET)-gcc --print-file specs)
+       #sed -e 's/%{shared:-lc}/%{!nointl: -lintl} &/' \
+       #       -i $$($(UCLIBC_TARGET)-gcc --print-file specs)
        mv -v $(UCLIBC_DIR)/$(UCLIBC_TARGET)/bin/{ld,ld-old}
        mv -v $(UCLIBC_DIR)/$(UCLIBC_TARGET)/bin/{ld-new,ld}
        ln -sfv ../$(UCLIBC_TARGET)/bin/ld \
index 49761993c0e074b5380e1a0611eff0680397ac26..55d86c974643a74b71f458689d27cf66e5627657 100644 (file)
--- a/lfs/cpio
+++ b/lfs/cpio
@@ -53,10 +53,24 @@ $(patsubst %,$(DIR_DL)/%,$(objects)) :
 $(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects))
        @$(PREBUILD)
        @rm -rf $(DIR_APP) && cd $(DIR_SRC) && tar jxf $(DIR_DL)/$(DL_FILE)
+
+ifeq "$(STAGE)" "ipfire"
        cd $(DIR_APP) && ./configure CPIO_MT_PROG=mt --prefix=/usr \
                                --bindir=/bin --libexecdir=/tmp \
                                --with-rmt=/usr/sbin/rmt
        cd $(DIR_APP) && make -j $(PARALLELISM)
        cd $(DIR_APP) && make install
+endif
+
+ifeq "$(STAGE)" "uclibc"
+       cd $(DIR_APP) && ./configure CPIO_MT_PROG=mt --prefix=/usr \
+                               --bindir=/bin --libexecdir=/tmp \
+                               --with-rmt=/usr/sbin/rmt \
+                               --build=$(IFS_TARGET) \
+                               --host=$(UCLIBC_TARGET)
+       cd $(DIR_APP) && make -j $(PARALLELISM)
+       cd $(DIR_APP) && make install DESTDIR=$(UCLIBC_DIR)
+endif
+
        @rm -rf $(DIR_APP)
        @$(POSTBUILD)
index a12e61d538c4bd60159f4f6884f9a270059ed7fd..0fbdf0c6f59c5b2ca1af17426eb53d4b590f4aa9 100644 (file)
 include Config
 
 PKG_NAME   = e2fsprogs
-VER        = 1.40.8
+VER        = 1.40.3
+
+## XXX - This was downgraded because uClibc leaks a function:
+## ../../lib/libuuid.so: undefined reference to `___tls_get_addr'
 
 THISAPP    = $(PKG_NAME)-$(VER)
 DL_FILE    = $(THISAPP).tar.gz
@@ -70,11 +73,18 @@ ifeq "$(STAGE)" "base"
 endif
 
 ifeq "$(STAGE)" "uclibc"
-       cd $(DIR_APP)/build && ../configure --prefix=/usr --with-root-prefix="" \
-               --enable-elf-shlibs --build=$(IFS_TARGET) --host=$(UCLIBC_TARGET)
+       cd $(DIR_APP)/build && ../configure --prefix=/usr \
+                                               --with-root-prefix="" \
+                                               --enable-elf-shlibs \
+                                               --build=$(IFS_TARGET) \
+                                               --host=$(UCLIBC_TARGET) \
+                                               --with-cc=$(UCLIBC_TARGET)-gcc \
+                                               --with-linker=$(UCLIBC_TARGET)-ld
        cd $(DIR_APP)/build && make -j $(PARALLELISM)
-       cd $(DIR_APP)/build && make install DESTDIR=$(UCLIBC_DIR)
-       cd $(DIR_APP)/build && make install-libs DESTDIR=$(UCLIBC_DIR)
+       cd $(DIR_APP)/build && make install install-libs DESTDIR=$(UCLIBC_DIR)
+       for lib in libblkid.so.1 libcom_err.so.2 libe2p.so.2 libext2fs.so.2 libss.so.2 libuuid.so.1; do \
+               ln -svf $$lib $(UCLIBC_DIR)/lib/$$(awk -F. '{ print $$1"."$$2 }' <<< $$lib) || exit 1; \
+       done
 endif
 
        @rm -rf $(DIR_APP)
diff --git a/lfs/gcc b/lfs/gcc
index 28fa2941740fd0eef49d210b7924a0f5daf94ad1..dbf9c5d9a9c8edefeae669da7cbbde8cbd7fc19b 100644 (file)
--- a/lfs/gcc
+++ b/lfs/gcc
@@ -275,6 +275,7 @@ ifeq "$(PASS)" "2"
                                                --enable-languages=c,c++ \
                                                --disable-multilib \
                                                --disable-libmudflap \
+                                               --disable-libgomp \
                                                --with-gnu-ld \
                                                --disable-nls
        cd $(DIR_SRC)/gcc-build && make -j $(PARALLELISM)
index 486b833de7f5a4065213096e78cc123450cd22cc..2af5c7d065b634a4e0b57db87ab8eb0c9d9e8731 100644 (file)
--- a/lfs/glibc
+++ b/lfs/glibc
@@ -99,6 +99,8 @@ ifeq "$(STAGE)" "base"
        
        # Locales
        -mkdir -pv /usr/lib/locale
+       localedef -i de_DE -f UTF-8 de_DE.UTF-8
+       localedef -i de_DE -f ISO-8859-1 de_DE
        localedef -i en_US -f UTF-8 en_US.UTF-8
        localedef -i en_US -f ISO-8859-1 en_US
        localedef -i en_GB -f UTF-8 en_GB.UTF-8
index 51f2c835e9678793a6729be7c9bc1703ed36b7b4..18cd20473fa4e1de39dfcb0ad96213504499269f 100644 (file)
--- a/lfs/kudzu
+++ b/lfs/kudzu
@@ -53,8 +53,28 @@ $(patsubst %,$(DIR_DL)/%,$(objects)) :
 $(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects))
        @$(PREBUILD)
        @rm -rf $(DIR_APP) && cd $(DIR_SRC) && tar zxf $(DIR_DL)/$(DL_FILE)
+
+ifeq "$(STAGE)" "ipfire"
        cd $(DIR_APP) && ARCH=$(MACHINE) RPM_OPT_FLAGS="$(CFLAGS) -I/usr/include" make #-j $(PARALLELISM)
        cd $(DIR_APP) && ARCH=$(MACHINE) RPM_OPT_FLAGS="$(CFLAGS)" make install
        cd $(DIR_APP) && ARCH=$(MACHINE) RPM_OPT_FLAGS="$(CFLAGS)" make install-program
+endif
+
+ifeq "$(STAGE)" "uclibc"
+       cd $(DIR_APP) && sed -e "s/^AR = ar//" -e "s/^RANLIB = ranlib//" \
+               -i Makefile
+       cd $(DIR_APP) && sed -e "s@ln -s ../../sbin/kudzu \$$(usbindir)/kudzu@@" \
+               -i Makefile
+       cd $(DIR_APP) && \
+               ARCH=$(MACHINE) \
+               RPM_OPT_FLAGS="$(CFLAGS) -I$(UCLIBC_DIR)/usr/include" \
+               CC=$(UCLIBC_TARGET)-gcc \
+               AR=$(UCLIBC_TARGET)-ar \
+               RANLIB=$(UCLIBC_TARGET)-ranlib \
+               make -j $(PARALLELISM)
+       cd $(DIR_APP) && ARCH=$(MACHINE) RPM_OPT_FLAGS="$(CFLAGS)" make install DESTDIR=$(UCLIBC_DIR)
+       cd $(DIR_APP) && ARCH=$(MACHINE) RPM_OPT_FLAGS="$(CFLAGS)" make install-program DESTDIR=$(UCLIBC_DIR)
+endif
+
        @rm -rf $(DIR_APP)
        @$(POSTBUILD)
index acc2eafb1437c84b2d7d23bb4f8c8b5a3d611cdc..506b2fd0fde33c118f7f7b6e703634ae9da9c0a0 100644 (file)
--- a/lfs/lzma
+++ b/lfs/lzma
@@ -54,13 +54,26 @@ $(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects))
        @$(PREBUILD)
        @rm -rf $(DIR_SRC)/$(THISAPP) && mkdir $(DIR_SRC)/$(THISAPP)
        @cd $(DIR_SRC) && tar jxf $(DIR_DL)/$(DL_FILE) -C $(THISAPP)
-       
+
+ifeq "$(STAGE)" "ipfire"
        cd $(DIR_APP) && make -C CPP/7zip/Compress/LZMA_Alone \
                -f makefile.gcc -j $(PARALLELISM) CXX="g++ $(CXXFLAGS)" CXX_C="gcc $(CFLAGS)"
        
        install -m 755 \
                $(DIR_APP)/CPP/7zip/Compress/LZMA_Alone/lzma \
                /usr/bin/lzma_sdk
+endif
+
+ifeq "$(STAGE)" "uclibc"
+       cd $(DIR_APP) && make -C CPP/7zip/Compress/LZMA_Alone \
+               -f makefile.gcc -j $(PARALLELISM) \
+               CXX="$(UCLIBC_TARGET)-g++ $(CXXFLAGS)" \
+               CXX_C="$(UCLIBC_TARGET)-gcc $(CFLAGS)"
+
+       install -m 755 \
+               $(DIR_APP)/CPP/7zip/Compress/LZMA_Alone/lzma \
+               $(UCLIBC_DIR)/bin/lzma_sdk
+endif
 
        @rm -rf $(DIR_APP)
        @$(POSTBUILD)
index 299a6eaa524ab27881a7923ccbe88acb334eaf01..21aee164a81383c3e0fe261c89dd26685b187790 100644 (file)
--- a/lfs/newt
+++ b/lfs/newt
@@ -55,8 +55,23 @@ $(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects))
        @rm -rf $(DIR_APP) && cd $(DIR_SRC) && tar zxf $(DIR_DL)/$(DL_FILE)
        cd $(DIR_APP) && patch -Np1 < $(DIR_PATCHES)/$(THISAPP)-snack.patch
        cd $(DIR_APP) && patch -Np1 < $(DIR_PATCHES)/$(THISAPP)-whiptail.patch
-       cd $(DIR_APP) && ./configure --prefix=/usr --without-gpm-support --without-tcl
+
+ifeq "$(STAGE)" "ipfire"
+       cd $(DIR_APP) && ./configure --prefix=/usr --without-gpm-support \
+                                                       --without-tcl
        cd $(DIR_APP) && make -j $(PARALLELISM)
        cd $(DIR_APP) && make install
+endif
+
+ifeq "$(STAGE)" "uclibc"
+       cd $(DIR_APP) && ./configure --prefix=$(UCLIBC_DIR)/usr \
+                                                       --without-gpm-support \
+                                                       --without-tcl \
+                                                       --build=$(IFS_TARGET) \
+                                                       --host=$(UCLIBC_TARGET)
+       cd $(DIR_APP) && make -j $(PARALLELISM)
+       cd $(DIR_APP) && make install
+endif
+
        @rm -rf $(DIR_APP)
        @$(POSTBUILD)
index 7f6a0b1900a11a2310da12d5b4fe05654397c6e4..04da6c68fd7c76eab0ec1707e01e6b605e8df446 100644 (file)
@@ -56,16 +56,38 @@ $(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects))
        @$(PREBUILD)
        @rm -rf $(DIR_APP) $(DIR_SRC)/$(PYPARTED)
        @cd $(DIR_SRC) && tar jxf $(DIR_DL)/$(DL_FILE)
-       cd $(DIR_APP) && ./configure --prefix=/usr --without-readline --disable-nls \
-               --disable-Werror --disable-dependency-tracking --disable-debug --with-gnu-ld
+
+ifeq "$(STAGE)" "ipfire"
+       cd $(DIR_APP) && ./configure --prefix=/usr \
+                                               --without-readline \
+                                               --disable-nls \
+                                               --disable-Werror \
+                                               --disable-dependency-tracking \
+                                               --disable-debug \
+                                               --with-gnu-ld
        cd $(DIR_APP) && make -j $(PARALLELISM)
        cd $(DIR_APP) && make install
+endif
+
+ifeq "$(STAGE)" "uclibc"
+       cd $(DIR_APP) && ./configure --prefix=/usr \
+                                               --build=$(IFS_TARGET) \
+                                               --host=$(UCLIBC_TARGET) \
+                                               --without-readline \
+                                               --disable-nls \
+                                               --disable-Werror \
+                                               --disable-dependency-tracking \
+                                               --disable-debug \
+                                               --with-gnu-ld
+       cd $(DIR_APP) && make -j $(PARALLELISM)
+       cd $(DIR_APP) && make install DESTDIR=$(UCLIBC_DIR)
        
        ### pyparted
        #
-       cd $(DIR_SRC) && tar jxf $(DIR_DL)/$(PYPARTED).tar.bz2
-       cd $(DIR_SRC)/$(PYPARTED) && make all install \
-               libdir=/usr/lib/python2.5/site-packages
+       #cd $(DIR_SRC) && tar jxf $(DIR_DL)/$(PYPARTED).tar.bz2
+       #cd $(DIR_SRC)/$(PYPARTED) && make all install \
+       #       libdir=$(UCLIBC_DIR)/usr/lib/python2.5/site-packages
+endif
        
        @rm -rf $(DIR_APP) $(DIR_SRC)/$(PYPARTED)
        @$(POSTBUILD)
index 06d151919853dbc60058f59e7654f2841190b802..3f54d70c8053206cbea4278722d803bece27807a 100644 (file)
@@ -56,10 +56,24 @@ $(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects))
        cd $(DIR_APP) && sed -i 's/null ;/null 2>\&1 ;/' update-pciids.sh
        cd $(DIR_APP) && patch -Np1 -i $(DIR_PATCHES)/$(THISAPP)-sata.patch
        cd $(DIR_APP) && patch -Np1 -i $(DIR_PATCHES)/$(THISAPP)-devicetype.patch
-       cd $(DIR_APP) && make PREFIX=/usr $(MAKETUNING)
+
+ifeq "$(STAGE)" "ipfire"
+       cd $(DIR_APP) && make OPT=$(CLFLAGS) PREFIX=/usr -j $(PARALLELISM)
        cd $(DIR_APP) && make PREFIX=/usr install
        install -v -m 755 -d /usr/include/pci
        cd $(DIR_APP) && install -v -m 644 lib/libpci.a /usr/lib
        cd $(DIR_APP) && install -v -m 644 lib/*.h /usr/include/pci
+endif
+
+ifeq "$(STAGE)" "uclibc"
+       cd $(DIR_APP) && sed -e "s/^\tar/\t$(UCLIBC_TARGET)-ar/" \
+               -e "s/^\tranlib/\t$(UCLIBC_TARGET)-ranlib/" -i lib/Makefile
+       cd $(DIR_APP)/lib && ./configure /usr/share $(VER) $(UCLIBC_TARGET) $(KVER)
+       cd $(DIR_APP)/lib && make OPT=$(CLFLAGS) PREFIX=$(UCLIBC_DIR)/usr \
+               HOST=$(UCLIBC_TARGET) CC=$(UCLIBC_TARGET)-gcc -j $(PARALLELISM)
+       install -v -m 755 -d $(UCLIBC_DIR)/usr/include/pci
+       cd $(DIR_APP) && install -v -m 644 lib/libpci.a $(UCLIBC_DIR)/usr/lib
+       cd $(DIR_APP) && install -v -m 644 lib/*.h $(UCLIBC_DIR)/usr/include/pci
+endif
        @rm -rf $(DIR_APP)
        @$(POSTBUILD)
index 212dc906e1a2381719a6679dfe7a413c69b48eba..ddb7b50f265d7e40d2302eba75c8077360223561 100644 (file)
--- a/lfs/pcre
+++ b/lfs/pcre
@@ -54,15 +54,27 @@ $(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects))
        @$(PREBUILD)
        @rm -rf $(DIR_APP) && cd $(DIR_SRC) && tar jxf $(DIR_DL)/$(DL_FILE)
        cd $(DIR_APP) && patch -Np1 -i $(DIR_PATCHES)/$(THISAPP)-abi_breakage-1.patch
-       cd $(DIR_APP) && ./configure    --prefix=/usr \
-                                                                                                                               --docdir=/usr/share/doc/pcre-$(VER) \
-                                                                                                                               --enable-utf8 \
-                                                                                                                               --enable-pcregrep-libz \
-                                                                                                                               --enable-pcregrep-libbz2
-       
+
+ifeq "$(STAGE)" "base"
+       cd $(DIR_APP) && ./configure --prefix=/usr \
+                                               --docdir=/usr/share/doc/pcre-$(VER) \
+                                               --enable-utf8 \
+                                               --enable-pcregrep-libz \
+                                               --enable-pcregrep-libbz2
        cd $(DIR_APP) && make -j $(PARALLELISM)
        cd $(DIR_APP) && make install
        mv -v /usr/lib/libpcre.so.* /lib/
        ln -v -sf ../../lib/libpcre.so.0 /usr/lib/libpcre.so
+endif
+
+ifeq "$(STAGE)" "uclibc"
+       cd $(DIR_APP) && ./configure --prefix=/usr \
+                                               --enable-utf8 \
+                                               --build=$(IFS_TARGET) \
+                                               --host=$(UCLIBC_TARGET)
+       cd $(DIR_APP) && make -j $(PARALLELISM)
+       cd $(DIR_APP) && make install DESTDIR=$(UCLIBC_DIR)
+endif
+
        @rm -rf $(DIR_APP)
        @$(POSTBUILD)
index 7e543ecc14678c04390094b236d45d18f757122c..4064f272c4b8c3600681f2cb27315796d713ef49 100644 (file)
--- a/lfs/popt
+++ b/lfs/popt
@@ -54,8 +54,24 @@ $(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects))
        @$(PREBUILD)
        @rm -rf $(DIR_APP) && cd $(DIR_SRC) && tar zxf $(DIR_DL)/$(DL_FILE)
        cd $(DIR_APP) && sed -i -e "/*origOptString ==/c 0)" popt.c
+
+ifeq "$(STAGE)" "ipfire"
        cd $(DIR_APP) && ./configure --prefix=/usr
        cd $(DIR_APP) && make -j $(PARALLELISM)
        cd $(DIR_APP) && make install
+endif
+
+ifeq "$(STAGE)" "uclibc"
+       cd $(DIR_APP) && \
+               CC=$(UCLIBC_TARGET)-gcc \
+               AR=$(UCLIBC_TARGET)-ar \
+               AS=$(UCLIBC_TARGET)-as \
+               LD=$(UCLIBC_TARGET)-ld \
+               RANLIB=$(UCLIBC_TARGET)-ranlib \
+               ./configure --prefix=/usr
+       cd $(DIR_APP) && make -j $(PARALLELISM)
+       cd $(DIR_APP) && make install DESTDIR=$(UCLIBC_DIR)
+endif
+
        @rm -rf $(DIR_APP)
        @$(POSTBUILD)
index 055ae6cb36ee06a56e8e66ee19a121cb8b4ec9a7..4c9f52f6956946bc8c78bc9a2fb513c151ee5524 100644 (file)
@@ -37,7 +37,9 @@ TARGET     = $(DIR_INFO)/$(STAGE_ORDER)_$(STAGE)/$(THISAPP)
 # Top-level Rules
 ###############################################################################
 
-objects = $(DL_FILE) $(THISAPP)-gdbm-1.patch
+objects = $(DL_FILE) $(THISAPP)-gdbm-1.patch \
+       $(THISAPP)-crosscompile-1.patch \
+       $(THISAPP)-crosscompile-2.patch
 
 install: $(TARGET)
 
@@ -53,11 +55,39 @@ $(patsubst %,$(DIR_DL)/%,$(objects)) :
 $(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects))
        @$(PREBUILD)
        @rm -rf $(DIR_APP) && cd $(DIR_SRC) && tar jxf $(DIR_DL)/$(DL_FILE)
+
+ifeq "$(STAGE)" "ipfire"
        cd $(DIR_APP) && patch -Np1 -i $(DIR_PATCHES)/$(THISAPP)-gdbm-1.patch
        cd $(DIR_APP) && OPT="$(CFLAGS)" ./configure --prefix=/usr \
-                                                                                                                                                                                        --enable-shared \
-                                                                                                                                                                                        --disable-ipv6
+                                                --enable-shared \
+                                                --disable-ipv6
        cd $(DIR_APP) && make -j $(PARALLELISM)
        cd $(DIR_APP) && make install
+endif
+
+ifeq "$(STAGE)" "uclibc"
+       cd $(DIR_APP) && patch -Np0 -i $(DIR_PATCHES)/$(THISAPP)-crosscompile-1.patch
+       cd $(DIR_APP) && patch -Np1 -i $(DIR_PATCHES)/$(THISAPP)-crosscompile-2.patch
+       cd $(DIR_APP) && ./configure
+       cd $(DIR_APP) && make -j $(PARALLELISM) python Parser/pgen
+       cd $(DIR_APP) && mv -vf python hostpython
+       cd $(DIR_APP) && mv -vf Parser/pgen Parser/hostpgen
+       cd $(DIR_APP) && make distclean
+       cd $(DIR_APP) && sed -i -e '/^HOSTPYTHON/s:=.*:=./hostpython:' \
+                               -e '/^HOSTPGEN/s:=.*:=./Parser/hostpgen:' \
+                               Makefile.pre.in
+       -rm -rf $(DIR_APP)/Lib/test $(UCLIBC_DIR)/usr/lib/python2.5/test
+       cd $(DIR_APP) && OPT="$(CFLAGS)" ./configure --prefix=/usr \
+                                               --build=$(IFS_TARGET) \
+                                               --host=$(UCLIBC_TARGET) \
+                                               --enable-shared \
+                                               --disable-ipv6 \
+                                               --with-cxx=no
+       cd $(DIR_APP) && make -j $(PARALLELISM) \
+               HOSTPYTHON=./hostpython HOSTPGEN=./Parser/hostpgen
+       cd $(DIR_APP) && make install DESTDIR=$(UCLIBC_DIR) \
+               HOSTPYTHON=./hostpython HOSTPGEN=./Parser/hostpgen
+endif
+
        @rm -rf $(DIR_APP)
        @$(POSTBUILD)
index 9b898e6e113d484aa3df7a8a1893a55728c1c489..186dce36909cf0169b6c6ed958bdd8c59af48cd8 100644 (file)
@@ -56,7 +56,8 @@ $(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects))
        cd $(DIR_APP) && sed -i '/MV.*old/d' Makefile.in
        cd $(DIR_APP) && sed -i '/{OLDSUFF}/c:' support/shlib-install
        cd $(DIR_APP) && patch -Np1 -i $(DIR_PATCHES)/$(THISAPP)-fixes-5.patch
-       
+
+ifeq "$(STAGE)" "base"
        cd $(DIR_APP) && ./configure --prefix=/usr --libdir=/lib
        
        cd $(DIR_APP) && make -j $(PARALLELISM) SHLIB_LIBS=-lncurses
@@ -66,5 +67,19 @@ $(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects))
        rm -fv /lib/lib{readline,history}.so
        ln -sfv ../../lib/libreadline.so.5 /usr/lib/libreadline.so
        ln -sfv ../../lib/libhistory.so.5 /usr/lib/libhistory.so
+endif
+
+ifeq "$(STAGE)" "uclibc"
+       cd $(DIR_APP) && \
+               CC=$(UCLIBC_TARGET)-gcc \
+               AR=$(UCLIBC_TARGET)-ar \
+               AS=$(UCLIBC_TARGET)-as \
+               LD=$(UCLIBC_TARGET)-ld \
+               RANLIB=$(UCLIBC_TARGET)-ranlib \
+               ./configure --prefix=/
+       cd $(DIR_APP) && make -j $(PARALLELISM) SHLIB_LIBS=-lncurses
+       cd $(DIR_APP) && make install DESTDIR=$(UCLIBC_DIR)
+endif
+
        @rm -rf $(DIR_APP)
        @$(POSTBUILD)
index 4cf83c2ea54a726b4f3d87e3bdbe1a9752927b8e..e2e34a2bb957ceeb2975e42d3c1773912b080d45 100644 (file)
--- a/lfs/slang
+++ b/lfs/slang
@@ -37,7 +37,7 @@ TARGET     = $(DIR_INFO)/$(STAGE_ORDER)_$(STAGE)/$(THISAPP)
 # Top-level Rules
 ###############################################################################
 
-objects = $(DL_FILE)
+objects = $(DL_FILE) $(THISAPP)-uclibc-1.patch
 
 install: $(TARGET)
 
@@ -53,10 +53,26 @@ $(patsubst %,$(DIR_DL)/%,$(objects)) :
 $(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects))
        @$(PREBUILD)
        @rm -rf $(DIR_APP) && cd $(DIR_SRC) && tar jxf $(DIR_DL)/$(DL_FILE)
+
+ifeq "$(STAGE)" "ipfire"
        cd $(DIR_APP) && ./configure --prefix=/usr --sysconfdir=/etc
        cd $(DIR_APP) && make -j $(PARALLELISM)
        cd $(DIR_APP) && make install_doc_dir=/usr/share/doc/slang-$(VER) \
                SLSH_DOC_DIR=/usr/share/doc/slang-$(VER)/slsh install-all
        chmod -v 755 /usr/lib/libslang.so.$(VER) /usr/lib/slang/v2/modules/*.so
+endif
+
+ifeq "$(STAGE)" "uclibc"
+       cd $(DIR_APP) && patch -Np1 -i $(DIR_DL)/$(THISAPP)-uclibc-1.patch
+       cd $(DIR_APP) && ./configure --prefix=/usr --sysconfdir=/etc \
+                                               --with-png=no \
+                                               --build=$(IFS_TARGET) \
+                                               --host=$(UCLIBC_TARGET)
+       cd $(DIR_APP)/src && make -j $(PARALLELISM)
+       cd $(DIR_APP)/src && make DESTDIR=$(UCLIBC_DIR) install-all
+       -chmod -v 755 $(UCLIBC_DIR)/usr/lib/libslang.so.$(VER) \
+               $(UCLIBC_DIR)/usr/lib/slang/v2/modules/*.so
+endif
+
        @rm -rf $(DIR_APP)
        @$(POSTBUILD)
index 390c2d7f03e6632d20f79b89e9dc1369783ee901..aad1316da35904ecd620d51277fce3668a416069 100644 (file)
@@ -52,4 +52,7 @@ $(TARGET) :
        ln -svf ../lib /usr/$(UCLIBC_TARGET)/$(UCLIBC_TARGET)/lib
        ln -svf usr/$(UCLIBC_TARGET)/lib /ulib
        ln -svf lib /usr/$(UCLIBC_TARGET)/ulib
+       ln -svf . $(UCLIBC_DIR)/usr
+       #ln -svf ../bin $(UCLIBC_DIR)/usr/bin
+       #ln -svf ../sbin $(UCLIBC_DIR)/usr/sbin
        @$(POSTBUILD)
index 2ec0e1102da134a132eb0af9318518c997689d2e..2f9d01750ae52591c39cf7b5bf165ed36f35ea2b 100644 (file)
@@ -57,8 +57,8 @@ $(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects))
        @rm -rf $(DIR_APP) && cd $(DIR_SRC) && tar jxf $(DIR_DL)/$(DL_FILE)
        
        ## Copy configuration
-       cp -fv $(DIR_CONF)/$(PKG_NAME)/.config $(DIR_APP)/.config
-       cp -fv $(DIR_DL)/$(LOCALE_FILE) $(DIR_APP)/extra/locale
+       cp -f $(DIR_CONF)/$(PKG_NAME)/.config $(DIR_APP)/.config
+       cp -f $(DIR_DL)/$(LOCALE_FILE) $(DIR_APP)/extra/locale
 
 ifeq "$(PASS)" "0"
        rm -vf $(DIR_APP)/.config
@@ -76,7 +76,7 @@ ifneq "$(PASS)" "0" # Do this on pass 1 and 2
                -e "s@.*KERNEL_SOURCE.*@KERNEL_SOURCE=\"$(UCLIBC_DIR)\"@g" \
                -i .config
        cd $(DIR_APP) && make CROSS=$(UCLIBC_TARGET)- all -j $(PARALLELISM)
-       rm -fvr $(DIR_APP)/include/{asm,asm-generic,linux}
+       rm -fr $(DIR_APP)/include/{asm,asm-generic,linux}
        cd $(DIR_APP) && make install
 endif
 
@@ -84,9 +84,7 @@ ifeq "$(PASS)" "2"
        cd $(DIR_APP) && make headers
        cd $(DIR_APP) && make CC="gcc -Wl,--dynamic-linker,$(UCLIBC_LINKER) /ulib/libc.so.0" \
                -C utils
-       make -C utils install
-       mv -vf $(UCLIBC_DIR)/sbin/ldconfig $(UCLIBC_DIR)/bin
-       rm -rvf $(UCLIBC_DIR)/sbin/
+       mv -f $(DIR_APP)/utils/ldconfig $(UCLIBC_DIR)/bin
 endif
 
        @rm -rf $(DIR_APP)
index 9af1f2786ea8f43846d14b2bd11c12e7d28dafa6..471ae4c3b057a0462314553670738036823d8312 100644 (file)
--- a/lfs/udev
+++ b/lfs/udev
@@ -84,7 +84,7 @@ ifeq "$(STAGE)" "uclibc"
        cd $(DIR_APP) && make DESTDIR=$(INSTALLER_DIR) EXTRAS="`echo extras/*/`" \
                CROSS_COMPILE=$(UCLIBC_TARGET)- install
        
-       cd $(DIR_APP) && cp -v etc/udev/rules.d/[0-9]* $(INSTALLER_DIR)/etc/udev/rules.d/
+       cd $(DIR_APP) && cp -vf etc/udev/rules.d/[0-9]* $(INSTALLER_DIR)/etc/udev/rules.d/
        
        cd $(DIR_APP)/$(PKG_NAME)-config-$(CONFVER) && make install DESTDIR=$(INSTALLER_DIR)
 endif
index 0052ddaec7888c344b77f674994a657e89d32e6a..d6b547873e942ff4f9e9476b436ba2f474ad1ac6 100644 (file)
@@ -73,7 +73,7 @@ endif
 ifeq "$(STAGE)" "uclibc"
        cd $(DIR_APP) && ./configure            --build=$(IFS_TARGET) \
                                                --host=$(UCLIBC_TARGET)
-       cd $(DIR_APP) && make -j $(PARALLELISM)
+       cd $(DIR_APP) && make -C disk-utils mkswap -j $(PARALLELISM)
        cd $(DIR_APP) && cp -vf disk-utils/mkswap $(UCLIBC_DIR)/sbin/mkswap
 endif
 
index 6515668af9c8e0ba666f2851d6666739eebc92c1..1d47c9e05becd052d3c74265809e89572b90f667 100644 (file)
--- a/lfs/zlib
+++ b/lfs/zlib
@@ -56,6 +56,7 @@ $(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects))
        @$(PREBUILD)
        @rm -rf $(DIR_APP) && cd $(DIR_SRC) && tar zxf $(DIR_DL)/$(DL_FILE)
 
+ifeq "$(STAGE)" "base"
        cd $(DIR_APP) && ./configure --prefix=/usr --shared --libdir=/lib
        cd $(DIR_APP) && make -j $(PARALLELISM)
        cd $(DIR_APP) && make install
@@ -69,6 +70,20 @@ $(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects))
        cd $(DIR_APP) && make install
        
        chmod -v 644 /usr/lib/libz.a
-       
+endif
+
+ifeq "$(STAGE)" "uclibc"
+       cd $(DIR_APP) && CC=$(UCLIBC_TARGET)-gcc ./configure --prefix=/usr \
+                                                       --shared \
+                                                       --libdir=/lib
+       cd $(DIR_APP) && make -j $(PARALLELISM)
+       cd $(DIR_APP) && install -v -m 644 zlib.h zconf.h \
+               $(UCLIBC_DIR)/usr/include
+       cd $(DIR_APP) && install -v -m 755 libz.so.$(VER) \
+               $(UCLIBC_DIR)/usr/lib
+       ln -svf libz.so.$(VER) $(UCLIBC_DIR)/usr/lib/libz.so.1
+       ln -svf libz.so.$(VER) $(UCLIBC_DIR)/usr/lib/libz.so
+endif
+
        @rm -rf $(DIR_APP)
        @$(POSTBUILD)
diff --git a/make.sh b/make.sh
index 395eb723c11c17ed63f3b5657b5293d20cf27eb2..a0218efb1289ea428902ab9f1e474d61ab581b8f 100755 (executable)
--- a/make.sh
+++ b/make.sh
@@ -59,7 +59,7 @@ toolchain_build() {
        fi
        
        toolchain_make binutils                         PASS=1
-       toolchain_make gcc                                                                                                      PASS=1
+       toolchain_make gcc                              PASS=1
        toolchain_make glibc
        toolchain_make adjust-toolchain
        
@@ -67,7 +67,7 @@ toolchain_build() {
                toolchain_make tcl
                toolchain_make expect
                toolchain_make dejagnu
-               toolchain_make gcc                                                                                              PASS=2
+               toolchain_make gcc                      PASS=2
                toolchain_make binutils                 PASS=2
        fi
        
@@ -216,9 +216,9 @@ ipfire_build() {
        
        ### Building some general stuff
        #   STAGE 2
-       ipfire_make pam                                                                                                                                                 PASS=1
+       ipfire_make pam                                 PASS=1
        ipfire_make shadow
-       ipfire_make pam                                                                                                                                                 PASS=2
+       ipfire_make pam                                 PASS=2
        ipfire_make slang
        ipfire_make newt
        ipfire_make cyrus-sasl
@@ -419,11 +419,23 @@ uclibc_build() {
        ipfire_make gcc                 PASS=2
        ipfire_make uClibc              PASS=2
        ipfire_make gettext             PASS=2
-       ipfire_make busybox
        ipfire_make udev
+       ipfire_make pciutils
+       ipfire_make zlib
        ipfire_make ncurses
-       #ipfire_make e2fsprogs
-       #ipfire_make util-linux-ng
+       ipfire_make pcre
+       ipfire_make popt
+       ipfire_make readline
+       ipfire_make e2fsprogs
+       ipfire_make util-linux-ng
+       ipfire_make parted
+       ipfire_make python
+       ipfire_make kudzu
+       ipfire_make slang
+       ipfire_make newt
+       ipfire_make cpio
+       ipfire_make lzma
+       ipfire_make busybox
 }
 
 ################################################################################