Rework things to ensure we are cross compiling. Teach problematic
authorEric Andersen <andersen@codepoet.org>
Tue, 4 Mar 2003 19:16:19 +0000 (19:16 -0000)
committerEric Andersen <andersen@codepoet.org>
Tue, 4 Mar 2003 19:16:19 +0000 (19:16 -0000)
apps like openssh to cross compile.  This eliminates the need for
the magic ld-uClibc.so.0 symlink in /lib

52 files changed:
Makefile
README
make/autoconf.mk
make/automake.mk
make/bash.mk
make/berkeleydb.mk
make/bison.mk
make/bridge.mk
make/coreutils.mk
make/dhcp_relay.mk
make/diffutils.mk
make/ed.mk
make/file.mk
make/findutils.mk
make/flex.mk
make/gawk.mk
make/gcc_target.mk
make/gdb.mk
make/gdbserver.mk
make/grep.mk
make/hostap.mk
make/jpeg.mk
make/libglib12.mk
make/libtool.mk
make/links.mk
make/linux.mk
make/lrzsz.mk
make/m4.mk
make/make.mk
make/mke2fs.mk
make/ncurses.mk
make/newt.mk
make/ntp.mk
make/openssh.mk
make/openssl.mk
make/patch.mk
make/pciutils.mk
make/pcmcia.mk
make/pppd.mk
make/rxvt.mk
make/sed.mk
make/socat.mk
make/strace.mk
make/system-linux.mk
make/tar.mk
make/tn5250.mk
make/uclibc_toolchain.mk
make/uclibc_toolchain_2_95.mk
make/user-mode-linux.mk
make/valgrind.mk
sources/openssh.patch [new file with mode: 0644]
sources/openssl.patch

index ae8561ec79cf3e1db7ebc13f60558d6b5d579a51..0c075a682fdc611206f5e4b43298e9f2bbdabb09 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -167,6 +167,15 @@ HOST_ARCH:=$(shell $(HOSTCC) -dumpmachine | sed -e s'/-.*//' \
        -e 's/cris.*/cris/' \
        )
 GNU_HOST_NAME:=$(HOST_ARCH)-pc-linux-gnu
+TARGET_CONFIGURE_OPTS=PATH=$(TARGET_PATH) \
+               AR=$(TARGET_CROSS)ar \
+               AS=$(TARGET_CROSS)as \
+               LD=$(TARGET_CROSS)ld \
+               NM=$(TARGET_CROSS)nm \
+               CC=$(TARGET_CROSS)gcc \
+               GCC=$(TARGET_CROSS)gcc \
+               CXX=$(TARGET_CROSS)g++ \
+               RANLIB=$(TARGET_CROSS)ranlib
 
 all:   world
 
diff --git a/README b/README
index 533db7340e15cb9356642ab091530d3023084908..e0cf6efbe14e0a17ac60a73d7f1d0422957d0fce 100644 (file)
--- a/README
+++ b/README
@@ -27,19 +27,3 @@ Have fun!
 Please feed suggestions, bug reports, insults, and bribes back to:
        Erik Andersen <andersen@codepoet.org>
 
-
-
-NOTE:
-
-    For './configure' to behave itself with certain applications, you may need
-    to create a symlink under "/lib" on your system that points to the uClibc
-    shared library loader in the staging directory.  For example, on my system
-
-        $ cd /lib
-       $ sudo ln -s /home/andersen/buildroot/build/staging_dir/lib/ld-uClibc.so.0 ld-uClibc.so.0
-
-    If you don't use sudo, run 'su -' to become root when making the link.  If
-    you aren't root it won't work.  The reason for this symlink, is it allows
-    './configure' to actually execute the test applications it compiles against
-    uClibc during the configuration process....
-
index fe11b2c7d866797bb56518e35d46a243cb03474f..2332f546a12696e64d336a7410d443acab48cd6a 100644 (file)
@@ -21,9 +21,11 @@ $(AUTOCONF_DIR)/.unpacked: $(DL_DIR)/$(AUTOCONF_SOURCE)
 
 $(AUTOCONF_DIR)/.configured: $(AUTOCONF_DIR)/.unpacked
        (cd $(AUTOCONF_DIR); rm -rf config.cache; \
-               PATH=$(TARGET_PATH) CC=$(TARGET_CC) EMACS="no" \
+               $(TARGET_CONFIGURE_OPTS) EMACS="no" \
                ./configure \
                --target=$(GNU_TARGET_NAME) \
+               --host=$(GNU_TARGET_NAME) \
+               --build=$(GNU_HOST_NAME) \
                --prefix=/usr \
                --exec-prefix=/usr \
                --bindir=/usr/bin \
index 6d4bbaa7d673c92413dfe26bfc42ee3eee0ad6fe..4231a9d8d5d5cc88e804585f9187711ca34b51b6 100644 (file)
@@ -21,9 +21,11 @@ $(AUTOMAKE_DIR)/.unpacked: $(DL_DIR)/$(AUTOMAKE_SOURCE)
 
 $(AUTOMAKE_DIR)/.configured: $(AUTOMAKE_DIR)/.unpacked
        (cd $(AUTOMAKE_DIR); rm -rf config.cache; \
-               PATH=$(TARGET_PATH) CC=$(TARGET_CC) \
+               $(TARGET_CONFIGURE_OPTS) \
                ./configure \
                --target=$(GNU_TARGET_NAME) \
+               --host=$(GNU_TARGET_NAME) \
+               --build=$(GNU_HOST_NAME) \
                --prefix=/usr \
                --exec-prefix=/usr \
                --bindir=/usr/bin \
index da4c733ec30d8a5b6fa57e2c178bde9d5808abc7..23370612a55cb8fc9eaaaa357b9895776be07f88 100644 (file)
@@ -21,10 +21,13 @@ $(BASH_DIR)/.unpacked: $(DL_DIR)/$(BASH_SOURCE)
 
 $(BASH_DIR)/.configured: $(BASH_DIR)/.unpacked
        (cd $(BASH_DIR); rm -rf config.cache; \
-               PATH=$(TARGET_PATH) CC=$(TARGET_CC) CC_FOR_BUILD=$(HOSTCC) \
+               $(TARGET_CONFIGURE_OPTS) CC_FOR_BUILD=$(HOSTCC) \
+               ac_cv_func_setvbuf_reversed=no \
+               bash_cv_have_mbstate_t=yes \
                ./configure \
                --target=$(GNU_TARGET_NAME) \
                --host=$(GNU_TARGET_NAME) \
+               --build=$(GNU_HOST_NAME) \
                --prefix=/usr \
                --exec-prefix=/usr \
                --bindir=/usr/bin \
@@ -46,6 +49,7 @@ $(BASH_DIR)/$(BASH_BINARY): $(BASH_DIR)/.configured
 
 $(TARGET_DIR)/$(BASH_TARGET_BINARY): $(BASH_DIR)/$(BASH_BINARY)
        $(MAKE) DESTDIR=$(TARGET_DIR) CC=$(TARGET_CC) -C $(BASH_DIR) install
+       rm -f $(TARGET_DIR)/bin/bash*
        mv $(TARGET_DIR)/usr/bin/bash* $(TARGET_DIR)/bin/
        (cd $(TARGET_DIR)/bin; ln -fs bash sh)
        rm -rf $(TARGET_DIR)/share/locale $(TARGET_DIR)/usr/info \
index 9029fc3630030adb47c07fc267cf34a48358269e..3d75334875767f2f4e6383f7aa3bc62f44715643 100644 (file)
@@ -19,9 +19,11 @@ $(DB_DIR)/.dist: $(DL_DIR)/$(DB_SOURCE)
 
 $(DB_DIR)/.configured: $(DB_DIR)/.dist
        (cd $(DB_DIR)/build_unix; rm -rf config.cache; \
-               PATH=$(TARGET_PATH) CC=$(TARGET_CC) \
+               $(TARGET_CONFIGURE_OPTS) \
                ../dist/configure \
                --target=$(GNU_TARGET_NAME) \
+               --host=$(GNU_TARGET_NAME) \
+               --build=$(GNU_HOST_NAME) \
                --prefix=/usr \
                --exec-prefix=/usr \
                --bindir=/usr/bin \
index c38396530f7559befb245c3a8084126ca010f844..2803cdccb042d5bf95f1a46e74378d38ff3d6364 100644 (file)
@@ -21,9 +21,11 @@ $(BISON_DIR)/.unpacked: $(DL_DIR)/$(BISON_SOURCE)
 
 $(BISON_DIR)/.configured: $(BISON_DIR)/.unpacked
        (cd $(BISON_DIR); rm -rf config.cache; \
-               PATH=$(TARGET_PATH) CC=$(TARGET_CC) \
+               $(TARGET_CONFIGURE_OPTS) \
                ./configure \
                --target=$(GNU_TARGET_NAME) \
+               --host=$(GNU_TARGET_NAME) \
+               --build=$(GNU_HOST_NAME) \
                --prefix=/usr \
                --exec-prefix=/usr \
                --bindir=/usr/bin \
index f84b1b46f0a0cd1c85607720c65d84068a4343b3..b26726a3eedf887e17620af578599c878455dd09 100644 (file)
@@ -18,7 +18,7 @@ $(BRIDGE_BUILD_DIR)/.unpacked: $(DL_DIR)/$(BRIDGE_SOURCE)
 
 $(BRIDGE_BUILD_DIR)/.configured: $(BRIDGE_BUILD_DIR)/.unpacked
        (cd $(BRIDGE_BUILD_DIR); rm -rf config.cache; \
-                PATH=$(TARGET_PATH) CC=$(TARGET_CC) \
+               $(TARGET_CONFIGURE_OPTS) \
                 ./configure \
                --with-linux-headers=$(BUILD_DIR)/linux \
        );
index ebfd11b9aeffa7746f7107f8bb337b93a9203e1e..2ec01ae92b0f62ec5fb2f487b46a214176c42050 100644 (file)
@@ -23,9 +23,11 @@ $(COREUTILS_DIR)/.unpacked: $(DL_DIR)/$(COREUTILS_SOURCE)
 
 $(COREUTILS_DIR)/.configured: $(COREUTILS_DIR)/.unpacked
        (cd $(COREUTILS_DIR); rm -rf config.cache; \
-               PATH=$(TARGET_PATH) CC=$(TARGET_CC) \
+               $(TARGET_CONFIGURE_OPTS) \
                ./configure \
                --target=$(GNU_TARGET_NAME) \
+               --host=$(GNU_TARGET_NAME) \
+               --build=$(GNU_HOST_NAME) \
                --prefix=/usr \
                --exec-prefix=/usr \
                --bindir=/usr/bin \
@@ -38,6 +40,10 @@ $(COREUTILS_DIR)/.configured: $(COREUTILS_DIR)/.unpacked
                --infodir=/usr/info \
                --disable-nls \
        );
+       #Fix up the max number of open files per process, which apparently 
+       # is not set when cross compiling
+       perl -i -p -e 's,.*UTILS_OPEN_MAX.*,#define UTILS_OPEN_MAX 1019,g' \
+               $(COREUTILS_DIR)/config.h
        touch  $(COREUTILS_DIR)/.configured
 
 $(COREUTILS_DIR)/$(COREUTILS_BINARY): $(COREUTILS_DIR)/.configured
index 31651ef8cfbbbfc8a324c4ce5a265e224980d9ed..8252b4aebd82a00ff6a8ab31f8fbdf43e46751bc 100644 (file)
@@ -23,7 +23,7 @@ $(DHCP_RELAY_DIR)/.unpacked: $(DL_DIR)/$(DHCP_RELAY_SOURCE)
        touch $(DHCP_RELAY_DIR)/.unpacked
 
 $(DHCP_RELAY_DIR)/.configured: $(DHCP_RELAY_DIR)/.unpacked
-       (cd $(DHCP_RELAY_DIR); PATH=$(TARGET_PATH) CC=$(TARGET_CC) ./configure );
+       (cd $(DHCP_RELAY_DIR); $(TARGET_CONFIGURE_OPTS) ./configure );
        touch  $(DHCP_RELAY_DIR)/.configured
 
 $(DHCP_RELAY_DIR)/$(DHCP_RELAY_BINARY): $(DHCP_RELAY_DIR)/.configured
index daff147dede08bfd9f56de972c3119117a16a5af..2778d60607d6732c156331bcd52b6a5e58b1a66a 100644 (file)
@@ -21,9 +21,11 @@ $(DIFFUTILS_DIR)/.unpacked: $(DL_DIR)/$(DIFFUTILS_SOURCE)
 
 $(DIFFUTILS_DIR)/.configured: $(DIFFUTILS_DIR)/.unpacked
        (cd $(DIFFUTILS_DIR); rm -rf config.cache; \
-               PATH=$(TARGET_PATH) CC=$(TARGET_CC) \
+               $(TARGET_CONFIGURE_OPTS) \
                ./configure \
                --target=$(GNU_TARGET_NAME) \
+               --host=$(GNU_TARGET_NAME) \
+               --build=$(GNU_HOST_NAME) \
                --prefix=/usr \
                --exec-prefix=/usr \
                --bindir=/usr/bin \
index 323e9dc117de2793eb7df6ed28937c48bb9db45d..f1108e34d29e05c096f0aa178f0164060060132c 100644 (file)
@@ -26,9 +26,11 @@ $(ED_DIR)/.unpacked: $(DL_DIR)/$(ED_SOURCE) $(DL_DIR)/$(ED_PATCH)
 
 $(ED_DIR)/.configured: $(ED_DIR)/.unpacked
        (cd $(ED_DIR); rm -rf config.cache; \
-               PATH=$(TARGET_PATH) CC=$(TARGET_CC) \
+               $(TARGET_CONFIGURE_OPTS) \
                ./configure \
                --target=$(GNU_TARGET_NAME) \
+               --host=$(GNU_TARGET_NAME) \
+               --build=$(GNU_HOST_NAME) \
                --prefix=/usr \
                --exec-prefix=/usr \
                --disable-nls \
index ab9fc863cb87a34ed1fc125078a5a1bb88976248..cd7301debff6298c905a8ba009a7aad7c8b1d5e2 100644 (file)
@@ -17,13 +17,17 @@ file-source: $(DL_DIR)/$(FILE_SOURCE)
 
 $(FILE_DIR)/.unpacked: $(DL_DIR)/$(FILE_SOURCE)
        $(FILE_CAT) $(DL_DIR)/$(FILE_SOURCE) | tar -C $(BUILD_DIR) -xvf -
+       # Use the system file utility, not the one we just built
+       perl -pi -e "s,\./file,file,g" $(FILE_DIR)/Makefile.in $(FILE_DIR)/Makefile.am
        touch $(FILE_DIR)/.unpacked
 
 $(FILE_DIR)/.configured: $(FILE_DIR)/.unpacked
        (cd $(FILE_DIR); rm -rf config.cache; \
-               PATH=$(TARGET_PATH) CC=$(TARGET_CC) \
+               $(TARGET_CONFIGURE_OPTS) \
                ./configure \
                --target=$(GNU_TARGET_NAME) \
+               --host=$(GNU_TARGET_NAME) \
+               --build=$(GNU_HOST_NAME) \
                --prefix=/usr \
                --exec-prefix=/usr \
                --bindir=/usr/bin \
index 540965e5ea013ffd3bd871d3b53cb6823bdb0626..ca204c19bf9e8afcd6e0a1b77f011457f4eb4303 100644 (file)
@@ -18,15 +18,16 @@ findutils-source: $(DL_DIR)/$(FINDUTILS_SOURCE)
 $(FINDUTILS_DIR)/.unpacked: $(DL_DIR)/$(FINDUTILS_SOURCE)
        $(FINDUTILS_CAT) $(DL_DIR)/$(FINDUTILS_SOURCE) | tar -C $(BUILD_DIR) -xvf -
        mv $(FINDUTILS_DIR).orig $(FINDUTILS_DIR)
-       (cd $(FINDUTILS_DIR); perl -i -p -e "s,# define mbstate_t int,# define mbstate_t int\n\
-               # define wchar_t char,;" $(FINDUTILS_DIR)/lib/quotearg.c)
        touch $(FINDUTILS_DIR)/.unpacked
 
 $(FINDUTILS_DIR)/.configured: $(FINDUTILS_DIR)/.unpacked
        (cd $(FINDUTILS_DIR); rm -rf config.cache; \
-               PATH=$(TARGET_PATH) CC=$(TARGET_CC) \
+               $(TARGET_CONFIGURE_OPTS) \
+               ac_cv_func_setvbuf_reversed=no \
                ./configure \
                --target=$(GNU_TARGET_NAME) \
+               --host=$(GNU_TARGET_NAME) \
+               --build=$(GNU_HOST_NAME) \
                --prefix=/usr \
                --exec-prefix=/usr \
                --bindir=/usr/bin \
index d37a9f7fe15b1a1ad5f3549e552912accc9e4b81..aa2f8573dea79b31deaad1b1441b28731839a4b1 100644 (file)
@@ -26,9 +26,11 @@ $(FLEX_DIR)/.unpacked: $(DL_DIR)/$(FLEX_SOURCE) $(DL_DIR)/$(FLEX_PATCH)
 
 $(FLEX_DIR)/.configured: $(FLEX_DIR)/.unpacked
        (cd $(FLEX_DIR); autoconf; rm -rf config.cache; \
-               PATH=$(TARGET_PATH) CC=$(TARGET_CC) \
+               $(TARGET_CONFIGURE_OPTS) \
                ./configure \
                --target=$(GNU_TARGET_NAME) \
+               --host=$(GNU_TARGET_NAME) \
+               --build=$(GNU_HOST_NAME) \
                --prefix=/usr \
                --exec-prefix=/usr \
                --bindir=/usr/bin \
index 691dff4a761bbffc81d69d6bfcee9a5066d87a9b..3a2831e46d403b04be3b25cb2a1a8fc7373d9eda 100644 (file)
@@ -21,9 +21,12 @@ $(GAWK_DIR)/.unpacked: $(DL_DIR)/$(GAWK_SOURCE)
 
 $(GAWK_DIR)/.configured: $(GAWK_DIR)/.unpacked
        (cd $(GAWK_DIR); rm -rf config.cache; \
-               PATH=$(TARGET_PATH) CC=$(TARGET_CC) \
+               $(TARGET_CONFIGURE_OPTS) \
+               ac_cv_func_getpgrp_void=yes \
                ./configure \
                --target=$(GNU_TARGET_NAME) \
+               --host=$(GNU_TARGET_NAME) \
+               --build=$(GNU_HOST_NAME) \
                --prefix=/usr \
                --exec-prefix=/usr \
                --bindir=/usr/bin \
index 56ca6b47cb83381885ba28f3040a4289e1472c0c..1fc0977bc3bc84772f54440d0798e2c82fd993e9 100644 (file)
@@ -89,12 +89,19 @@ $(BINUTILS_DIR2)/.configured: $(BINUTILS_DIR2_DEPENDS)
        mkdir -p $(TARGET_DIR)/usr/include
        mkdir -p $(TARGET_DIR)/usr/$(GNU_TARGET_NAME)/
        (cd $(TARGET_DIR)/usr/$(GNU_TARGET_NAME); ln -fs ../include sys-include)
-       (cd $(BINUTILS_DIR2); PATH=$(TARGET_PATH) AR=$(TARGET_CROSS)ar \
-               RANLIB=$(TARGET_CROSS)ranlib LD=$(TARGET_CROSS)ld NM=$(TARGET_CROSS)nm \
-               CC=$(TARGET_CROSS)gcc \
+       (cd $(BINUTILS_DIR2); $(TARGET_CONFIGURE_OPTS) \
+               AR_FOR_TARGET=$(TARGET_CROSS)ar \
+               AS_FOR_TARGET=$(TARGET_CROSS)as \
+               LD_FOR_TARGET=$(TARGET_CROSS)ld \
+               NM_FOR_TARGET=$(TARGET_CROSS)nm \
+               CC_FOR_TARGET=$(TARGET_CROSS)gcc \
+               GCC_FOR_TARGET=$(TARGET_CROSS)gcc \
+               CXX_FOR_TARGET=$(TARGET_CROSS)g++ \
+               RANLIB_FOR_TARGET=$(TARGET_CROSS)ranlib \
                $(BINUTILS_DIR)/configure \
                --target=$(GNU_TARGET_NAME) \
                --host=$(GNU_TARGET_NAME) \
+               --build=$(GNU_HOST_NAME) \
                --prefix=/usr \
                --exec-prefix=/usr \
                --bindir=/usr/bin \
@@ -114,18 +121,10 @@ $(BINUTILS_DIR2)/.configured: $(BINUTILS_DIR2_DEPENDS)
        touch $(BINUTILS_DIR2)/.configured
 
 $(BINUTILS_DIR2)/binutils/objdump: $(BINUTILS_DIR2)/.configured
-       $(MAKE) AR=$(TARGET_CROSS)ar \
-               RANLIB=$(TARGET_CROSS)ranlib LD=$(TARGET_CROSS)ld \
-               CC=$(TARGET_CROSS)gcc GCC_FOR_TARGET=$(TARGET_CROSS)gcc \
-               CC_FOR_TARGET=$(TARGET_CROSS)gcc tooldir=/usr -C $(BINUTILS_DIR2)
+       $(MAKE) tooldir=/usr -C $(BINUTILS_DIR2)
 
 $(TARGET_DIR)/usr/bin/ld: $(BINUTILS_DIR2)/binutils/objdump 
-       CC=$(HOSTCC) GCC_FOR_TARGET=$(TARGET_CROSS)gcc \
-           AR_FOR_TARGET=$(TARGET_CROSS)ar RANLIB_FOR_TARGET=$(TARGET_CROSS)ranlib \
-           LD_FOR_TARGET=$(TARGET_CROSS)ld NM_FOR_TARGET=$(TARGET_CROSS)nm \
-           CC_FOR_TARGET=$(TARGET_CROSS)gcc \
-           $(MAKE) \
-           tooldor=/usr \
+       $(MAKE) \
            prefix=$(TARGET_DIR)/usr \
            exec_prefix=$(TARGET_DIR)/usr \
            bindir=$(TARGET_DIR)/usr/bin \
@@ -141,7 +140,7 @@ $(TARGET_DIR)/usr/bin/ld: $(BINUTILS_DIR2)/binutils/objdump
            includedir=$(TARGET_DIR)/usr/include \
            gxx_include_dir=$(TARGET_DIR)/usr/include/c++ \
            toolexecdir=$(TARGET_DIR)/lib/gcc-lib/$(GNU_TARGET_NAME) \
-           -C $(BINUTILS_DIR2) install;
+       -C $(BINUTILS_DIR2) install;
        rm -rf $(TARGET_DIR)/share/locale $(TARGET_DIR)/usr/info \
                $(TARGET_DIR)/usr/man $(TARGET_DIR)/usr/share/doc
        -$(STRIP) $(TARGET_DIR)/usr/$(GNU_TARGET_NAME)/bin/*
@@ -287,18 +286,19 @@ $(GCC_BUILD_DIR3)/.configured: $(GCC_BUILD_DIR3)/.gcc_build_hacks
        mkdir -p $(TARGET_DIR)/usr/$(GNU_TARGET_NAME)
        (cd $(TARGET_DIR)/usr/$(GNU_TARGET_NAME); ln -fs ../include)
        (cd $(TARGET_DIR)/usr/$(GNU_TARGET_NAME); ln -fs ../include sys-include)
-       (cd $(GCC_BUILD_DIR3); PATH=$(TARGET_PATH) \
-               AS=$(TARGET_CROSS)as \
-               LD=$(TARGET_CROSS)ld \
-               AR=$(TARGET_CROSS)ar \
-               NM=$(TARGET_CROSS)nm \
-               CC=$(TARGET_CROSS)gcc \
-               GCC=$(TARGET_CROSS)gcc \
-               CXX=$(TARGET_CROSS)c++ \
-               RANLIB=$(TARGET_CROSS)ranlib \
+       (cd $(GCC_BUILD_DIR3); $(TARGET_CONFIGURE_OPTS) \
+               AR_FOR_TARGET=$(TARGET_CROSS)ar \
+               AS_FOR_TARGET=$(TARGET_CROSS)as \
+               LD_FOR_TARGET=$(TARGET_CROSS)ld \
+               NM_FOR_TARGET=$(TARGET_CROSS)nm \
+               CC_FOR_TARGET=$(TARGET_CROSS)gcc \
+               GCC_FOR_TARGET=$(TARGET_CROSS)gcc \
+               CXX_FOR_TARGET=$(TARGET_CROSS)g++ \
+               RANLIB_FOR_TARGET=$(TARGET_CROSS)ranlib \
                $(GCC_DIR)/configure \
                --target=$(GNU_TARGET_NAME) \
                --host=$(GNU_TARGET_NAME) \
+               --build=$(GNU_HOST_NAME) \
                --prefix=/usr \
                --exec-prefix=/usr \
                --bindir=/usr/bin \
@@ -322,28 +322,11 @@ $(GCC_BUILD_DIR3)/.configured: $(GCC_BUILD_DIR3)/.gcc_build_hacks
        touch $(GCC_BUILD_DIR3)/.configured
 
 $(GCC_BUILD_DIR3)/.compiled: $(GCC_BUILD_DIR3)/.configured
-           AS=$(TARGET_CROSS)as \
-           LD=$(TARGET_CROSS)ld \
-           AR=$(TARGET_CROSS)ar \
-           NM=$(TARGET_CROSS)nm \
-           CC=$(TARGET_CROSS)gcc \
-           GCC=$(TARGET_CROSS)gcc \
-           CXX=$(TARGET_CROSS)g++ \
-           RANLIB=$(TARGET_CROSS)ranlib \
-           $(MAKE) -C $(GCC_BUILD_DIR3)
+       $(MAKE) -C $(GCC_BUILD_DIR3)
        touch $(GCC_BUILD_DIR3)/.compiled
 
 $(TARGET_DIR)/usr/bin/gcc: $(GCC_BUILD_DIR3)/.compiled
-           $(MAKE) \
-           CC=$(TARGET_CROSS)gcc \
-           AS=$(TARGET_CROSS)as \
-           LD=$(TARGET_CROSS)ld \
-           AR=$(TARGET_CROSS)ar \
-           NM=$(TARGET_CROSS)nm \
-           CC=$(TARGET_CROSS)gcc \
-           GCC=$(TARGET_CROSS)gcc \
-           CXX=$(TARGET_CROSS)g++ \
-           RANLIB=$(TARGET_CROSS)ranlib \
+       $(MAKE) \
            prefix=$(TARGET_DIR)/usr \
            exec_prefix=$(TARGET_DIR)/usr \
            bindir=$(TARGET_DIR)/usr/bin \
index 0cbcd92972e28a957fb2bd940bdeed31c5e1c913..e696b65ec840a4c02a53dc991b2d6067b4a5095f 100644 (file)
@@ -19,10 +19,7 @@ $(GDB_DIR)/.unpacked: $(DL_DIR)/$(GDB_SOURCE) $(GDB_PATCH)
 
 $(GDB_DIR)/.configured: $(GDB_DIR)/.unpacked
        (cd $(GDB_DIR); rm -rf config.cache; \
-               AR=$(TARGET_CROSS)ar \
-               AS=$(TARGET_CROSS)as LD=$(TARGET_CROSS)ld \
-               RANLIB=$(TARGET_CROSS)ranlib NM=$(TARGET_CROSS)nm \
-               PATH=$(TARGET_PATH) CC=$(TARGET_CC) \
+               $(TARGET_CONFIGURE_OPTS) \
                ./configure \
                --target=$(GNU_TARGET_NAME) \
                --host=$(GNU_TARGET_NAME) \
index bafd4d9e1792bfe3298bd856c6000a064766bfaa..103184cefcbbfd0356a425ac621a4c1cf42d074a 100644 (file)
@@ -12,12 +12,10 @@ GDB_WDIR:=$(BUILD_DIR)/gdbserver
 $(GDB_WDIR)/.configured: $(GDB_DIR)/.unpacked
        mkdir -p $(GDB_WDIR)
        (cd $(GDB_WDIR); rm -rf config.cache; \
-               AR=$(TARGET_CROSS)ar \
-               AS=$(TARGET_CROSS)as LD=$(TARGET_CROSS)ld \
-               RANLIB=$(TARGET_CROSS)ranlib NM=$(TARGET_CROSS)nm \
-               PATH=$(TARGET_PATH) CC=$(TARGET_CC) \
+               $(TARGET_CONFIGURE_OPTS) \
                $(GDB_DIR)/gdb/gdbserver/configure \
                --target=$(GNU_TARGET_NAME) \
+               --host=$(GNU_TARGET_NAME) \
                --prefix=/usr \
                --exec-prefix=/usr \
                --bindir=/usr/bin \
index 7073322f08d9c4012f896ef830b2978c7f1688fb..88dbbbe4abae276ad0c3c650bbe58cd45bc5e94a 100644 (file)
@@ -21,9 +21,11 @@ $(GNUGREP_DIR)/.unpacked: $(DL_DIR)/$(GNUGREP_SOURCE)
 
 $(GNUGREP_DIR)/.configured: $(GNUGREP_DIR)/.unpacked
        (cd $(GNUGREP_DIR); rm -rf config.cache; \
-               PATH=$(TARGET_PATH) CC=$(TARGET_CC) \
+               $(TARGET_CONFIGURE_OPTS) \
                ./configure \
                --target=$(GNU_TARGET_NAME) \
+               --host=$(GNU_TARGET_NAME) \
+               --build=$(GNU_HOST_NAME) \
                --prefix=/usr \
                --exec-prefix=/usr \
                --bindir=/usr/bin \
@@ -36,6 +38,7 @@ $(GNUGREP_DIR)/.configured: $(GNUGREP_DIR)/.unpacked
                --infodir=/usr/info \
                --disable-nls \
                --disable-perl-regexp \
+               --without-included-regex \
        );
        touch  $(GNUGREP_DIR)/.configured
 
index 8edd3444b87703851a9b1b433ccc0fe270a20825..89532b3dacde7cb00d7d8bd69a912311e1776e2f 100644 (file)
@@ -24,7 +24,7 @@ $(HOSTAP_BUILD_DIR)/.configured: $(HOSTAP_BUILD_DIR)/.unpacked
        touch  $(HOSTAP_BUILD_DIR)/.configured
 
 $(HOSTAP_BUILD_DIR)/driver/modules/hostap.o: $(HOSTAP_BUILD_DIR)/.configured
-       $(MAKE) -C $(HOSTAP_BUILD_DIR) pccard KERNEL_PATH=$(BUILD_DIR)/linux CC=$(TARGET_CC)
+       $(MAKE) -C $(HOSTAP_BUILD_DIR) pccard KERNEL_PATH=$(LINUX_SOURCE_DIR) CC=$(TARGET_CC)
        $(MAKE) -C $(HOSTAP_BUILD_DIR)/utils CC=$(TARGET_CC)
        $(MAKE) -C $(HOSTAP_BUILD_DIR)/hostapd CC=$(TARGET_CC) 
        touch -c $(HOSTAP_BUILD_DIR)/driver/modules/hostap.o
index 34e985e5d158e51e5b550e683372a51b51292881..fa15569e67a069dc8c54fe85f4cb6d92e90aabee 100644 (file)
@@ -37,9 +37,11 @@ $(JPEG_DIR)/.unpacked: $(DL_DIR)/$(JPEG_SOURCE)
 $(JPEG_DIR)/.configured: $(JPEG_DIR)/.unpacked
        zcat $(DL_DIR)/$(JPEG_SOURCE) | tar -C $(BUILD_DIR) -xvf -
        (cd $(JPEG_DIR); rm -rf config.cache; \
-               PATH=$(TARGET_PATH) CC=$(TARGET_CC) \
+               $(TARGET_CONFIGURE_OPTS) \
                ./configure \
                --target=$(GNU_TARGET_NAME) \
+               --host=$(GNU_TARGET_NAME) \
+               --build=$(GNU_HOST_NAME) \
                --prefix=/usr \
                --exec-prefix=/usr \
                --bindir=/usr/bin \
index 07218e4c30e096898ffce662cf17ec40548e7c4c..fee7f3b288aec73d48ce99e42df248665af05dc1 100644 (file)
@@ -20,9 +20,11 @@ $(LIBGLIB12_DIR)/.unpacked: $(DL_DIR)/$(LIBGLIB12_SOURCE)
 
 $(LIBGLIB12_DIR)/.configured: $(LIBGLIB12_DIR)/.unpacked
        (cd $(LIBGLIB12_DIR); rm -rf config.cache; \
-               PATH=$(TARGET_PATH) CC=$(TARGET_CC) \
+               $(TARGET_CONFIGURE_OPTS) \
                ./configure \
                --target=$(GNU_TARGET_NAME) \
+               --host=$(GNU_TARGET_NAME) \
+               --build=$(GNU_HOST_NAME) \
                --prefix=/usr \
                --exec-prefix=/usr \
                --bindir=/usr/bin \
index 126b720d8476f574336e3f53db6c22ab22b39752..e924da9ea2afb8ce88fb1b84dfdc4e7a58f76151 100644 (file)
@@ -21,9 +21,11 @@ $(LIBTOOL_DIR)/.unpacked: $(DL_DIR)/$(LIBTOOL_SOURCE)
 
 $(LIBTOOL_DIR)/.configured: $(LIBTOOL_DIR)/.unpacked
        (cd $(LIBTOOL_DIR); rm -rf config.cache; \
-               PATH=$(TARGET_PATH) CC=$(TARGET_CC) \
+               $(TARGET_CONFIGURE_OPTS) \
                ./configure \
                --target=$(GNU_TARGET_NAME) \
+               --host=$(GNU_TARGET_NAME) \
+               --build=$(GNU_HOST_NAME) \
                --prefix=/usr \
                --exec-prefix=/usr \
                --bindir=/usr/bin \
index d664cc8f353854c7f63899de87ecd146ffb1123e..a54e4b0af68bcfb7409336d150eb041ce7f207ae 100644 (file)
@@ -18,9 +18,11 @@ $(LINKS_DIR)/.unpacked: $(DL_DIR)/$(LINKS_SOURCE)
 
 $(LINKS_DIR)/.configured: $(LINKS_DIR)/.unpacked
        (cd $(LINKS_DIR); rm -rf config.cache; \
-               PATH=$(TARGET_PATH) CC=$(TARGET_CC) \
+               $(TARGET_CONFIGURE_OPTS) \
                ./configure \
                --target=$(GNU_TARGET_NAME) \
+               --host=$(GNU_TARGET_NAME) \
+               --build=$(GNU_HOST_NAME) \
                --prefix=/usr \
                --exec-prefix=/usr \
                --bindir=/usr/bin \
index ca97b72691360d05a7f9291f0d84f364b3cb1fc3..8a25ee145cbf8e233ab78984dc2f696531195718 100644 (file)
@@ -36,6 +36,9 @@ LINUX_SOURCE=linux-$(DOWNLOAD_LINUX_VERSION).tar.bz2
 LINUX_SITE=ftp://ftp.kernel.org/pub/linux/kernel/v2.4
 LINUX_KCONFIG=$(SOURCE_DIR)/linux.config
 LINUX_KERNEL=$(BUILD_DIR)/buildroot-kernel
+# Used by pcmcia-cs and others
+LINUX_SOURCE_DIR=$(LINUX_DIR)
+
 
 $(DL_DIR)/$(LINUX_SOURCE):
         $(WGET) -P $(DL_DIR) $(LINUX_SITE)/$(LINUX_SOURCE)
index a212052ba190912bb326c44cfcd1c45013c50e21..3fedaa90c034facc326424369d8999c05d07a8f8 100644 (file)
@@ -36,9 +36,11 @@ $(LRZSZ_DIR)/.unpacked: $(DL_DIR)/$(LRZSZ_SOURCE)
 
 $(LRZSZ_DIR)/.configured: $(LRZSZ_DIR)/.unpacked
        (cd $(LRZSZ_DIR); rm -rf config.cache; \
-               PATH=$(TARGET_PATH) CC=$(TARGET_CC) \
+               $(TARGET_CONFIGURE_OPTS) \
                ./configure \
                --target=$(GNU_TARGET_NAME) \
+               --host=$(GNU_TARGET_NAME) \
+               --build=$(GNU_HOST_NAME) \
                --prefix=/usr \
                --exec-prefix=/usr \
                --bindir=/usr/bin \
index e435386e921c499c058b2f2b36ba30c38cfc51f3..1ee543024b3899b1f9b07700683db65f0203ead9 100644 (file)
@@ -21,9 +21,11 @@ $(M4_DIR)/.unpacked: $(DL_DIR)/$(M4_SOURCE)
 
 $(M4_DIR)/.configured: $(M4_DIR)/.unpacked
        (cd $(M4_DIR); rm -rf config.cache; \
-               PATH=$(TARGET_PATH) CC=$(TARGET_CC) \
+               $(TARGET_CONFIGURE_OPTS) \
                ./configure \
                --target=$(GNU_TARGET_NAME) \
+               --host=$(GNU_TARGET_NAME) \
+               --build=$(GNU_HOST_NAME) \
                --prefix=/usr \
                --exec-prefix=/usr \
        );
index 08240d937c62e142ce808342d1f8e67c4657dd61..fdf3dc1be087c8c9c5ff6c5e5be33eeaa78338b9 100644 (file)
@@ -21,9 +21,11 @@ $(GNUMAKE_DIR)/.unpacked: $(DL_DIR)/$(GNUMAKE_SOURCE)
 
 $(GNUMAKE_DIR)/.configured: $(GNUMAKE_DIR)/.unpacked
        (cd $(GNUMAKE_DIR); rm -rf config.cache; \
-               PATH=$(TARGET_PATH) CC=$(TARGET_CC) \
+               $(TARGET_CONFIGURE_OPTS) \
                ./configure \
                --target=$(GNU_TARGET_NAME) \
+               --host=$(GNU_TARGET_NAME) \
+               --build=$(GNU_HOST_NAME) \
                --prefix=/usr \
                --exec-prefix=/usr \
                --bindir=/usr/bin \
index 589da672b8bce865cc572201706b6f1efeb76fb3..759d86528941b838d9cac1dc9e29d50da4b86114 100644 (file)
@@ -21,9 +21,11 @@ $(MKE2FS_DIR)/.unpacked: $(DL_DIR)/$(MKE2FS_SOURCE)
 
 $(MKE2FS_DIR)/.configured: $(MKE2FS_DIR)/.unpacked
        (cd $(MKE2FS_DIR); rm -rf config.cache; \
-               PATH=$(TARGET_PATH) CC=$(TARGET_CC) \
+               $(TARGET_CONFIGURE_OPTS) \
                ./configure \
                --target=$(GNU_TARGET_NAME) \
+               --host=$(GNU_TARGET_NAME) \
+               --build=$(GNU_HOST_NAME) \
                --with-cc=$(TARGET_CC) \
                --with-linker=$(TARGET_CROSS)ld \
                --prefix=/usr \
index 4c91fc5c97d8532d48b2c27c19e5987e645276e1..7cc79473870df46ac8729d60e5a3df4b449e5250 100644 (file)
@@ -5,7 +5,7 @@
 #
 #############################################################
 # Copyright (C) 2002 by Ken Restivo <ken@246gt.com>
-# $Id: ncurses.mk,v 1.22 2003/02/12 12:43:15 andersen Exp $
+# $Id: ncurses.mk,v 1.23 2003/03/04 19:16:18 andersen Exp $
 #
 # This program is free software; you can redistribute it and/or modify
 # it under the terms of the GNU Library General Public License as
@@ -39,10 +39,12 @@ $(NCURSES_DIR)/.dist: $(DL_DIR)/$(NCURSES_SOURCE)
 
 $(NCURSES_DIR)/.configured: $(NCURSES_DIR)/.dist
        (cd $(NCURSES_DIR); rm -rf config.cache; \
-               PATH=$(TARGET_PATH) BUILD_CC=$(HOSTCC) \
-               HOSTCC=$(HOSTCC) CC=$(TARGET_CC) \
+               BUILD_CC=$(HOSTCC) HOSTCC=$(HOSTCC) \
+               $(TARGET_CONFIGURE_OPTS) \
                ./configure \
                --target=$(GNU_TARGET_NAME) \
+               --host=$(GNU_TARGET_NAME) \
+               --build=$(GNU_HOST_NAME) \
                --prefix=/usr \
                --exec-prefix=/usr \
                --bindir=/usr/bin \
index d8208ac29ab5166ac04a493835c87b65ee18b888..04c5c8b7c844febeb0561534c06f652a56ac6182 100644 (file)
@@ -23,9 +23,11 @@ $(NEWT_DIR)/.source: $(DL_DIR)/$(NEWT_SOURCE)
 
 $(NEWT_DIR)/.configured: $(NEWT_DIR)/.source
        (cd $(NEWT_DIR); rm -rf config.cache; \
-               PATH=$(TARGET_PATH) CC=$(TARGET_CC) \
+               $(TARGET_CONFIGURE_OPTS) \
                ./configure \
                --target=$(GNU_TARGET_NAME) \
+               --host=$(GNU_TARGET_NAME) \
+               --build=$(GNU_HOST_NAME) \
                --prefix=/usr \
                --exec-prefix=/usr \
                --bindir=/usr/bin \
index e7c820aeb878c622146bbc2cff41fae1375d99d5..5b3b94fb9f850185a46ebc5c5454967c96bf9ca8 100644 (file)
@@ -24,9 +24,11 @@ $(NTP_DIR)/.unpacked: $(DL_DIR)/$(NTP_SOURCE)
 
 $(NTP_DIR)/.configured: $(NTP_DIR)/.unpacked
        (cd $(NTP_DIR); rm -rf config.cache; \
-               PATH=$(TARGET_PATH) CC=$(TARGET_CC) \
+               $(TARGET_CONFIGURE_OPTS) \
                ./configure \
                --target=$(GNU_TARGET_NAME) \
+               --host=$(GNU_TARGET_NAME) \
+               --build=$(GNU_HOST_NAME) \
                --prefix=/usr \
                --exec-prefix=/usr \
                --bindir=/usr/bin \
index 21a04c2a7bf8ff16198e6a81ff1f2101064e9805..af7b1299498407319651621766f5821ef753dca0 100644 (file)
@@ -7,24 +7,29 @@
 OPENSSH_SITE:=ftp://ftp.tux.org/bsd/openbsd/OpenSSH/portable/
 OPENSSH_DIR:=$(BUILD_DIR)/openssh-3.5p1
 OPENSSH_SOURCE:=openssh-3.5p1.tar.gz
+OPENSSH_PATCH:=$(SOURCE_DIR)/openssh.patch
 
 $(DL_DIR)/$(OPENSSH_SOURCE):
        $(WGET) -P $(DL_DIR) $(OPENSSH_SITE)/$(OPENSSH_SOURCE)
 
-$(OPENSSH_DIR)/.unpacked: $(DL_DIR)/$(OPENSSH_SOURCE)
+$(OPENSSH_DIR)/.unpacked: $(DL_DIR)/$(OPENSSH_SOURCE) $(OPENSSH_PATCH)
        zcat $(DL_DIR)/$(OPENSSH_SOURCE) | tar -C $(BUILD_DIR) -xvf -
+       cat $(OPENSSH_PATCH) | patch -p1 -d $(OPENSSH_DIR)
        touch  $(OPENSSH_DIR)/.unpacked
 
 $(OPENSSH_DIR)/.configured: $(OPENSSH_DIR)/.unpacked
-       (cd $(OPENSSH_DIR); rm -rf config.cache; \
-               PATH=$(TARGET_PATH) CC=$(TARGET_CC) \
+       (cd $(OPENSSH_DIR); rm -rf config.cache; autoconf; \
+               $(TARGET_CONFIGURE_OPTS) \
+               LD=$(TARGET_CROSS)gcc \
                ./configure \
                --target=$(GNU_TARGET_NAME) \
+               --host=$(GNU_TARGET_NAME) \
+               --build=$(GNU_HOST_NAME) \
                --prefix=/usr \
                --exec-prefix=/usr \
                --bindir=/usr/bin \
                --sbindir=/usr/sbin \
-               --libexecdir=/usr/lib \
+               --libexecdir=/usr/sbin \
                --sysconfdir=/etc \
                --datadir=/usr/share \
                --localstatedir=/var \
index 5bb67fca6b8936e72b80d77804a408b6f6248a64..a2416d26afc5c27a0f0864a3b703c4bc87b0242e 100644 (file)
@@ -6,8 +6,8 @@
 
 # TARGETS
 OPENSSL_SITE:=http://www.openssl.org/source
-OPENSSL_SOURCE:=openssl-0.9.7.tar.gz
-OPENSSL_DIR:=$(BUILD_DIR)/openssl-0.9.7
+OPENSSL_SOURCE:=openssl-0.9.7a.tar.gz
+OPENSSL_DIR:=$(BUILD_DIR)/openssl-0.9.7a
 OPENSSL_PATCH=$(SOURCE_DIR)/openssl.patch
 
 $(DL_DIR)/$(OPENSSL_SOURCE):
index 4f7329f6b1318381c616dff65c032b6ccc2ff691..e8ceec1ad6f28d622ccc592b7732a5637379d8d7 100644 (file)
@@ -21,9 +21,11 @@ $(GNUPATCH_DIR)/.unpacked: $(DL_DIR)/$(GNUPATCH_SOURCE)
 
 $(GNUPATCH_DIR)/.configured: $(GNUPATCH_DIR)/.unpacked
        (cd $(GNUPATCH_DIR); rm -rf config.cache; \
-               PATH=$(TARGET_PATH) CC=$(TARGET_CC) \
+               $(TARGET_CONFIGURE_OPTS) \
                ./configure \
                --target=$(GNU_TARGET_NAME) \
+               --host=$(GNU_TARGET_NAME) \
+               --build=$(GNU_HOST_NAME) \
                --prefix=/usr \
                --exec-prefix=/usr \
                --bindir=/usr/bin \
index 8daf033f7bc3e919d1fdf6d9d4fdfed2b87a7e4b..ede63c12afb5ba3a83e12940efdb60f87f2bbf48 100644 (file)
@@ -28,9 +28,11 @@ $(PCIUTILS_DIR)/.unpacked: $(DL_DIR)/$(PCIUTILS_SOURCE) $(DL_DIR)/$(PCIIDS_SOURC
 
 $(PCIUTILS_DIR)/.configured: $(PCIUTILS_DIR)/.unpacked
        (cd $(PCIUTILS_DIR); rm -rf config.cache; \
-               PATH=$(TARGET_PATH) CC=$(TARGET_CC) \
+               $(TARGET_CONFIGURE_OPTS) \
                ./configure \
                --target=$(GNU_TARGET_NAME) \
+               --host=$(GNU_TARGET_NAME) \
+               --build=$(GNU_HOST_NAME) \
                --prefix=/usr \
                --exec-prefix=/usr \
                --bindir=/usr/bin \
index 7dcc6f897f300931634ae4ca5412981b0c59e240..bf94fed85844dfd4856cb7c2a782077644ec0dd5 100644 (file)
@@ -41,7 +41,7 @@ $(PCMCIA_DIR)/.patched: $(PCMCIA_DIR)/.unpacked
        touch $(PCMCIA_DIR)/.patched
 
 $(PCMCIA_DIR)/.configured: $(PCMCIA_DIR)/.patched
-       ( cd $(PCMCIA_DIR) ; ./Configure --kernel=$(LINUX_DIR) --noprompt \
+       ( cd $(PCMCIA_DIR) ; ./Configure --kernel=$(LINUX_SOURCE_DIR) --noprompt \
                --rcdir=/etc --arch=$(ARCH) --trust --srctree --nocardbus \
                --sysv --kcc=$(HOSTCC) --ucc=$(TARGET_CC) --ld=$(TARGET_CROSS)ld \
                --target=$(TARGET_DIR))
index 81fa87b51be6a717176ff8122c4b6063b014e047..6622543a9f5f4ce902e3f327c6867a6d88f8e5ef 100644 (file)
@@ -26,9 +26,11 @@ $(PPPD_DIR)/.unpacked: $(DL_DIR)/$(PPPD_SOURCE)
 
 $(PPPD_DIR)/.configured: $(PPPD_DIR)/.unpacked
        (cd $(PPPD_DIR); rm -rf config.cache; \
-               PATH=$(TARGET_PATH) CC=$(TARGET_CC) \
+               $(TARGET_CONFIGURE_OPTS) \
                ./configure \
                --target=$(GNU_TARGET_NAME) \
+               --host=$(GNU_TARGET_NAME) \
+               --build=$(GNU_HOST_NAME) \
                --prefix=/usr \
                --exec-prefix=/usr \
                --bindir=/usr/bin \
index 0d6e9732b442b6d2a03f5a685821c5927db628e1..a63354703853f6d84ef5848f8408ae26cc3a6e8b 100644 (file)
@@ -38,9 +38,11 @@ $(RXVT_DIR)/.unpacked: $(DL_DIR)/$(RXVT_SOURCE)
 
 $(RXVT_DIR)/.configured: $(RXVT_DIR)/.unpacked
        (cd $(RXVT_DIR); rm -rf config.cache; \
-               PATH=$(TARGET_PATH) CC=$(TARGET_CC) \
+               $(TARGET_CONFIGURE_OPTS) \
                ./configure \
                --target=$(GNU_TARGET_NAME) \
+               --host=$(GNU_TARGET_NAME) \
+               --build=$(GNU_HOST_NAME) \
                --prefix=/usr/X11R6 \
                --mandir=/usr/man \
                --infodir=/usr/info \
index 1b0b66577c79c3b7d5a109172e3304ecadbfcf4c..9220682de120a315fad45aa2459f98c7e5e0668b 100644 (file)
@@ -21,9 +21,11 @@ $(SED_DIR)/.unpacked: $(DL_DIR)/$(SED_SOURCE)
 
 $(SED_DIR)/.configured: $(SED_DIR)/.unpacked
        (cd $(SED_DIR); rm -rf config.cache; \
-               PATH=$(TARGET_PATH) CC=$(TARGET_CC) \
+               $(TARGET_CONFIGURE_OPTS) \
                ./configure \
                --target=$(GNU_TARGET_NAME) \
+               --host=$(GNU_TARGET_NAME) \
+               --build=$(GNU_HOST_NAME) \
                --prefix=/usr \
                --exec-prefix=/usr \
                --bindir=/usr/bin \
index 92344d07ca58ab92f4eb834f5c52d9a42b1977c2..35bc6326f5f387f7a567765d5341762a575b0443 100644 (file)
@@ -27,9 +27,11 @@ $(SOCAT_WORKDIR)/Makefile: $(SOCAT_DIR)/.unpacked
        rm -f $(SOCAT_WORKDIR)/Makefile
        mkdir -p $(SOCAT_WORKDIR)
        (cd $(SOCAT_WORKDIR); rm -rf config.cache; \
-               PATH=$(TARGET_PATH) CC=$(TARGET_CC) \
+               $(TARGET_CONFIGURE_OPTS) \
                $(SOCAT_DIR)/configure \
                --target=$(GNU_TARGET_NAME) \
+               --host=$(GNU_TARGET_NAME) \
+               --build=$(GNU_HOST_NAME) \
                --prefix=/usr \
                --exec-prefix=/usr \
                --bindir=/usr/bin \
index fdca1ee0d085e02407e53de6fa554fc185f57ef7..ae4fe3d3ec73717c58ef320183795259b219a158 100644 (file)
@@ -20,10 +20,11 @@ $(STRACE_DIR)/.unpacked: $(DL_DIR)/$(STRACE_SOURCE)
 
 $(STRACE_DIR)/.configured: $(STRACE_DIR)/.unpacked
        (cd $(STRACE_DIR); rm -rf config.cache; \
-               PATH=$(TARGET_PATH) CC=$(TARGET_CC) \
+               $(TARGET_CONFIGURE_OPTS) \
                ./configure \
                --target=$(GNU_TARGET_NAME) \
                --host=$(GNU_TARGET_NAME) \
+               --build=$(GNU_HOST_NAME) \
                --prefix=/usr \
                --exec-prefix=/usr \
                --bindir=/usr/bin \
index 9b92f083fd52cc0d91a1ccbe7df397c98cd40d99..6098cc6bc49c8be2794a129dbae00cb3283464c8 100644 (file)
@@ -17,10 +17,26 @@ ifneq ($(filter $(TARGETS),system-linux),)
 LINUX_SOURCE=/usr/src/linux
 LINUX_DIR=$(BUILD_DIR)/linux
 LINUX_KERNEL=$(BUILD_DIR)/buildroot-kernel
+# Used by pcmcia-cs and others
+LINUX_SOURCE_DIR=$(LINUX_SOURCE)
 
 $(LINUX_DIR)/.configured:
-       mkdir -p $(LINUX_DIR)
-       (cd $(LINUX_DIR); ln -s $(LINUX_SOURCE)/include)
+       mkdir -p $(LINUX_DIR)/include
+       (cd $(LINUX_DIR)/include; \
+       for i in $(LINUX_SOURCE)/include/*; do ln -sf $$i ; done; \
+       rm -f asm; \
+       if [ "$(ARCH)" = "powerpc" ];then \
+           ln -fs asm-ppc asm; \
+       elif [ "$(ARCH)" = "mips" ];then \
+           ln -fs asm-mips asm; \
+       elif [ "$(ARCH)" = "mipsel" ];then \
+           ln -fs asm-mips asm; \
+       elif [ "$(ARCH)" = "cris" ];then \
+           ln -fs asm-cris asm; \
+       else ln -fs asm-$(ARCH) asm; \
+       fi)
+       cp $(LINUX_SOURCE)/Makefile $(LINUX_DIR)/
+       cp $(LINUX_SOURCE)/Rules.make $(LINUX_DIR)/
        touch $(LINUX_DIR)/.configured
 
 $(LINUX_KERNEL): $(LINUX_DIR)/.configured
@@ -28,13 +44,13 @@ $(LINUX_KERNEL): $(LINUX_DIR)/.configured
 $(STAGING_DIR)/include/linux/version.h: $(LINUX_DIR)/.configured
        mkdir -p $(STAGING_DIR)/include
        rm -rf $(STAGING_DIR)/include/linux
-       cp -dpa $(LINUX_SOURCE)/include/linux $(STAGING_DIR)/include/
+       cp -dpa $(LINUX_DIR)/include/linux $(STAGING_DIR)/include/
        rm -rf $(STAGING_DIR)/include/asm
        mkdir -p $(STAGING_DIR)/include/asm
-       cp -dpa $(LINUX_SOURCE)/include/asm/* $(STAGING_DIR)/include/asm/
+       cp -dpa $(LINUX_DIR)/include/asm/* $(STAGING_DIR)/include/asm/
        rm -rf $(STAGING_DIR)/include/scsi
        mkdir -p $(STAGING_DIR)/include/scsi
-       cp -dpa $(LINUX_SOURCE)/include/scsi/* $(STAGING_DIR)/include/scsi
+       cp -dpa $(LINUX_DIR)/include/scsi/* $(STAGING_DIR)/include/scsi
        touch -c $(STAGING_DIR)/include/linux/version.h
 
 system-linux: $(STAGING_DIR)/include/linux/version.h
index 168f2543bac9a205da3c09fa8e0dee076ad07d4f..a0213dd0aab40c5f8b9fe050b17ce9cfc7e9c09c 100644 (file)
@@ -21,9 +21,11 @@ $(GNUTAR_DIR)/.unpacked: $(DL_DIR)/$(GNUTAR_SOURCE)
 
 $(GNUTAR_DIR)/.configured: $(GNUTAR_DIR)/.unpacked
        (cd $(GNUTAR_DIR); rm -rf config.cache; \
-               PATH=$(TARGET_PATH) CC=$(TARGET_CC) \
+               $(TARGET_CONFIGURE_OPTS) \
                ./configure \
                --target=$(GNU_TARGET_NAME) \
+               --host=$(GNU_TARGET_NAME) \
+               --build=$(GNU_HOST_NAME) \
                --prefix=/usr \
                --exec-prefix=/usr \
                --bindir=/usr/bin \
index d37d4f47422159f4b9c05ff1c8b2cefc10fba985..e443a4f4d746657773a8e8d39e1edb6f4417117b 100644 (file)
@@ -11,9 +11,11 @@ $(TN5250_DIR)/.dist: $(DL_DIR)/$(TN5250_SOURCE)
 
 $(TN5250_DIR)/.configured: $(TN5250_DIR)/.dist
        (cd $(TN5250_DIR); rm -rf config.cache; \
-               PATH=$(TARGET_PATH) CC=$(TARGET_CC) \
+               $(TARGET_CONFIGURE_OPTS) \
                ./configure \
                --target=$(GNU_TARGET_NAME) \
+               --host=$(GNU_TARGET_NAME) \
+               --build=$(GNU_HOST_NAME) \
                --prefix=/usr \
                --exec-prefix=/usr \
                --bindir=/usr/bin \
index 008d06ae7d5f7c05025a2007a34e5f5a10dc41e1..2027d7dd3f020fdeadfc10394a2144970a50f12d 100644 (file)
@@ -137,6 +137,8 @@ $(BINUTILS_DIR1)/.configured: $(BINUTILS_DIR)/.patched
        (cd $(BINUTILS_DIR1); CC=$(HOSTCC) \
                $(BINUTILS_DIR)/configure \
                --target=$(GNU_TARGET_NAME) \
+               --host=$(GNU_HOST_NAME) \
+               --build=$(GNU_HOST_NAME) \
                --prefix=$(STAGING_DIR) \
                --exec-prefix=$(STAGING_DIR) \
                --bindir=$(STAGING_DIR)/bin \
@@ -248,6 +250,8 @@ $(GCC_BUILD_DIR1)/.configured: $(GCC_DIR)/.gcc_build_hacks
                RANLIB=$(TARGET_CROSS)ranlib CC=$(HOSTCC) \
                $(GCC_DIR)/configure \
                --target=$(GNU_TARGET_NAME) \
+               --host=$(GNU_HOST_NAME) \
+               --build=$(GNU_HOST_NAME) \
                --prefix=$(STAGING_DIR) \
                --exec-prefix=$(STAGING_DIR) \
                --bindir=$(STAGING_DIR)/bin \
@@ -401,6 +405,8 @@ $(GCC_BUILD_DIR2)/.configured: $(GCC_DIR)/.g++_build_hacks
                NM=$(TARGET_CROSS)nm CC=$(HOSTCC) \
                $(GCC_DIR)/configure \
                --target=$(GNU_TARGET_NAME) \
+               --host=$(GNU_HOST_NAME) \
+               --build=$(GNU_HOST_NAME) \
                --prefix=$(STAGING_DIR) \
                --exec-prefix=$(STAGING_DIR) \
                --bindir=$(STAGING_DIR)/bin \
index b0d8d9c658c1bec8b99e5c04d6b1648b812de4a7..3335d0483d1eda7a148ddf99bb8908b99da7ad00 100644 (file)
@@ -145,6 +145,8 @@ $(BINUTILS_DIR1)/.configured: $(BINUTILS_DIR)/.patched
        (cd $(BINUTILS_DIR1); CC=$(HOSTCC) \
                $(BINUTILS_DIR)/configure \
                --target=$(GNU_TARGET_NAME) \
+               --host=$(GNU_HOST_NAME) \
+               --build=$(GNU_HOST_NAME) \
                --prefix=$(STAGING_DIR) \
                --exec-prefix=$(STAGING_DIR) \
                --bindir=$(STAGING_DIR)/bin \
@@ -267,6 +269,8 @@ $(GCC_BUILD_DIR1)/.configured: $(GCC_DIR)/.gcc_build_hacks
                RANLIB=$(TARGET_CROSS)ranlib CC=$(HOSTCC) \
                $(GCC_DIR)/configure \
                --target=$(GNU_TARGET_NAME) \
+               --host=$(GNU_HOST_NAME) \
+               --build=$(GNU_HOST_NAME) \
                --prefix=$(STAGING_DIR) \
                --exec-prefix=$(STAGING_DIR) \
                --bindir=$(STAGING_DIR)/bin \
@@ -456,6 +460,8 @@ $(GCC_BUILD_DIR2)/.configured: $(GCC_DIR)/.g++_build_hacks
                NM=$(TARGET_CROSS)nm CC=$(HOSTCC) \
                $(GCC_DIR)/configure \
                --target=$(GNU_TARGET_NAME) \
+               --host=$(GNU_HOST_NAME) \
+               --build=$(GNU_HOST_NAME) \
                --prefix=$(STAGING_DIR) \
                --exec-prefix=$(STAGING_DIR) \
                --bindir=$(STAGING_DIR)/bin \
index 04ee8df346ce60dc3c84c5ba27672609a4d80ecc..33139127863c3bd56d53627f8128e29bed1f03fd 100644 (file)
@@ -13,6 +13,8 @@ LINUX_PATCH_1:=uml-patch-$(LINUX_VERSION)-45.bz2
 LINUX_PATCH_1_SITE:=http://telia.dl.sourceforge.net/sourceforge/user-mode-linux
 LINUX_KCONFIG=$(SOURCE_DIR)/linux-uml.config
 LINUX_KERNEL=$(BASE_DIR)/UMlinux
+# Used by pcmcia-cs and others
+LINUX_SOURCE_DIR=$(LINUX_DIR)
 
 $(DL_DIR)/$(LINUX_SOURCE):
        $(WGET) -P $(DL_DIR) $(LINUX_SITE)/$(LINUX_SOURCE)
index 54c09ac28526f758b4794539d3444297efeaf27b..f076369456e87171d12a3fe92d942a558d1498ce 100644 (file)
@@ -22,9 +22,11 @@ $(VALGRIND_DIR)/.patched: $(VALGRIND_DIR)/.unpacked
 
 $(VALGRIND_DIR)/.configured: $(VALGRIND_DIR)/.patched
        (cd $(VALGRIND_DIR); rm -rf config.cache; \
-               PATH=$(TARGET_PATH) CC=$(TARGET_CC) \
+               $(TARGET_CONFIGURE_OPTS) \
                ./configure \
                --target=$(GNU_TARGET_NAME) \
+               --host=$(GNU_TARGET_NAME) \
+               --build=$(GNU_HOST_NAME) \
                --prefix=/usr \
                --exec-prefix=/usr \
                --bindir=/usr/bin \
diff --git a/sources/openssh.patch b/sources/openssh.patch
new file mode 100644 (file)
index 0000000..2fe19e3
--- /dev/null
@@ -0,0 +1,135 @@
+diff -urN openssh-3.5p1.orig/configure.ac openssh-3.5p1/configure.ac
+--- openssh-3.5p1.orig/configure.ac    2002-09-25 18:38:47.000000000 -0600
++++ openssh-3.5p1/configure.ac 2003-03-04 04:54:47.000000000 -0700
+@@ -504,6 +504,9 @@
+       [
+               AC_MSG_RESULT(no)
+               AC_DEFINE(BROKEN_ONE_BYTE_DIRENT_D_NAME)
++      ],
++      [AC_MSG_RESULT(yes)
++      AC_MSG_WARN([Cannot run test when crosscompiling, defaulted to yes.])
+       ]
+ )
+@@ -535,6 +538,9 @@
+                               [
+                                       AC_MSG_RESULT(no)
+                                       AC_MSG_ERROR([** Incomplete or missing s/key libraries.])
++                              ],
++                              [AC_MSG_RESULT(yes)
++                              AC_MSG_WARN([Cannot run test when crosscompiling, defaulted to yes.])
+                               ])
+               fi
+       ]
+@@ -676,6 +682,9 @@
+                       AC_MSG_RESULT(no)
+                       AC_DEFINE(BROKEN_SNPRINTF)
+                       AC_MSG_WARN([****** Your snprintf() function is broken, complain to your vendor])
++              ],
++              [AC_MSG_RESULT(yes)
++              AC_MSG_WARN([Cannot run test when crosscompiling, defaulted to yes.])
+               ]
+       )
+ fi
+@@ -810,6 +819,10 @@
+       [
+               AC_MSG_RESULT(not found)
+               AC_MSG_ERROR(OpenSSL version header not found.)
++      ],
++      [
++              ssl_header_ver="90700f (OpenSSL 0.9.7a 19 Feb 2003)"
++              AC_MSG_WARN([Cannot run test when crosscompiling, defaulted to $ssl_header_ver])
+       ]
+ )
+@@ -843,6 +856,10 @@
+       [
+               AC_MSG_RESULT(not found)
+               AC_MSG_ERROR(OpenSSL library not found.)
++      ],
++      [
++              ssl_library_ver="90700f (OpenSSL 0.9.7a 19 Feb 2003)"
++              AC_MSG_WARN([Cannot run test when crosscompiling, defaulted to $ssl_library_ver])
+       ]
+ )
+@@ -860,6 +877,10 @@
+       [
+               AC_MSG_RESULT(no)
+               AC_MSG_ERROR(Your OpenSSL headers do not match your library)
++      ],
++      [
++              AC_MSG_RESULT(yes)
++              AC_MSG_WARN([Cannot run test when crosscompiling, defaulted to yes.])
+       ]
+ )
+@@ -889,6 +910,11 @@
+               # Default to use of the rand helper if OpenSSL doesn't
+               # seed itself
+               USE_RAND_HELPER=yes
++      ],
++      [
++              OPENSSL_SEEDS_ITSELF=yes
++              AC_MSG_RESULT(yes)
++              AC_MSG_WARN([Cannot run test when crosscompiling, defaulted to yes.])
+       ]
+ )
+@@ -1475,7 +1501,8 @@
+ #else
+ main() { exit(0); }
+ #endif
+-              ], [ true ], [ AC_DEFINE(BROKEN_SNPRINTF) ]
++              ], [ true ], [ AC_DEFINE(BROKEN_SNPRINTF) ],
++              [ true ]
+       )
+ fi
+ AC_SUBST(NO_SFTP)
+@@ -1596,6 +1623,7 @@
+ }
+               ],
+               [ ac_cv_have_accrights_in_msghdr="yes" ],
++              [ ac_cv_have_accrights_in_msghdr="no" ],
+               [ ac_cv_have_accrights_in_msghdr="no" ]
+       )
+ ])
+@@ -1620,7 +1648,8 @@
+ }
+               ],
+               [ ac_cv_have_control_in_msghdr="yes" ],
+-              [ ac_cv_have_control_in_msghdr="no" ]
++              [ ac_cv_have_control_in_msghdr="no" ],
++              [ ac_cv_have_control_in_msghdr="yes" ]
+       )
+ ])
+ if test "x$ac_cv_have_control_in_msghdr" = "xyes" ; then
+@@ -1931,13 +1960,14 @@
+               )
+       fi
+ fi
++if test "$cross_compiling" != yes; then
+ AC_CHECK_FILE("/dev/ptc", 
+       [
+               AC_DEFINE_UNQUOTED(HAVE_DEV_PTS_AND_PTC)
+               have_dev_ptc=1
+       ]
+ )
+-
++fi
+ # Options from here on. Some of these are preset by platform above
+ AC_ARG_WITH(mantype,
+       [  --with-mantype=man|cat|doc  Set man page type],
+diff -urN openssh-3.5p1.orig/sshd_config openssh-3.5p1/sshd_config
+--- openssh-3.5p1.orig/sshd_config     2002-09-26 21:21:58.000000000 -0600
++++ openssh-3.5p1/sshd_config  2003-03-04 04:42:03.000000000 -0700
+@@ -89,5 +89,8 @@
+ #Banner /some/path
+ #VerifyReverseMapping no
++ClientAliveInterval 15
++ClientAliveCountMax 4
++
+ # override default of no subsystems
+-Subsystem     sftp    /usr/libexec/sftp-server
++Subsystem     sftp    /usr/sbin/sftp-server
index 0be796513770e095757d7ffb154dc1ec1bf24ca7..341f47e60fca513833510a918e7bcc2f654b1b9b 100644 (file)
  #else
  # define      LOAD                    ld
  # define      X(i)                    [%i1+i*4]
---- openssl-0.9.7.orig/crypto/md5/md5.h
-+++ openssl-0.9.7/crypto/md5/md5.h
-@@ -78,7 +78,7 @@
- #if defined(OPENSSL_SYS_WIN16) || defined(__LP32__)
- #define MD5_LONG unsigned long
--#elif defined(OENSSL_SYS_CRAY) || defined(__ILP64__)
-+#elif defined(OPENSSL_SYS_CRAY) || defined(__ILP64__)
- #define MD5_LONG unsigned long
- #define MD5_LONG_LOG2 3
- /*
 --- openssl-0.9.7.orig/crypto/opensslconf.h
 +++ openssl-0.9.7/crypto/opensslconf.h
 @@ -4,17 +4,38 @@
  #endif
  
  /* These default values were supplied by
---- openssl-0.9.7.orig/crypto/ui/ui_util.c
-+++ openssl-0.9.7/crypto/ui/ui_util.c
-@@ -78,12 +78,14 @@
-       if (ui)
-               {
-               ok = UI_add_input_string(ui,prompt,0,buf,0,size-1);
--              if (ok == 0 && verify)
-+              if (ok >= 0 && verify)
-                       ok = UI_add_verify_string(ui,prompt,0,buff,0,size-1,
-                               buf);
--              if (ok == 0)
-+              if (ok >= 0)
-                       ok=UI_process(ui);
-               UI_free(ui);
-               }
-+      if (ok > 0)
-+              ok = 0;
-       return(ok);
-       }
 --- openssl-0.9.7.orig/ssl/ssl_algs.c
 +++ openssl-0.9.7/ssl/ssl_algs.c
 @@ -109,3 +109,8 @@