Fix most things when large file support is not configured.
authorManuel Novoa III <mjn3@codepoet.org>
Mon, 17 Nov 2003 01:31:38 +0000 (01:31 -0000)
committerManuel Novoa III <mjn3@codepoet.org>
Mon, 17 Nov 2003 01:31:38 +0000 (01:31 -0000)
Mostly submitted by Thomas Lundquist <lists@zelow.no>.

21 files changed:
make/bash.mk
make/busybox.mk
make/coreutils.mk
make/diffutils.mk
make/file.mk
make/findutils.mk
make/flex.mk
make/gawk.mk
make/grep.mk
make/hostap.mk
make/iproute2.mk
make/kernel-headers.mk
make/links.mk
make/make.mk
make/openssh.mk
make/patch.mk
make/sed.mk
make/strace.mk
make/tar.mk
make/uclibc.mk
make/wtools.mk

index 1b30dfc568deba9df383547ce3f45654c94ab84c..aca345232e29611723b93e7638dc0a73b4094a56 100644 (file)
@@ -43,6 +43,7 @@ $(BASH_DIR)/.configured: $(BASH_DIR)/.unpacked
                --mandir=/usr/man \
                --infodir=/usr/info \
                $(DISABLE_NLS) \
+               $(DISABLE_LARGEFILE) \
                --with-curses \
                --enable-alias \
        );
index 38c32035bf5e91f063a6b1cfdb5fa2123507c978..fcd6e234a0da5e8fd287b42865576ce8e1249ab1 100644 (file)
@@ -31,7 +31,9 @@ ifeq ($(USE_BUSYBOX_SNAPSHOT),true)
        sed -ie "s,^CROSS.*,CROSS=$(TARGET_CROSS)\n\
                PREFIX=$(TARGET_DIR),;" $(BUSYBOX_DIR)/Rules.mak
 ifeq ($(strip $(BUILD_WITH_LARGEFILE)),true)
-       sed -ie "s/^.*DOLFS.*/DOLFS=y/;" $(BUSYBOX_DIR)/.config
+       sed -ie "s/^.*CONFIG_LFS.*/CONFIG_LFS=y/;" $(BUSYBOX_DIR)/.config
+else
+       sed -ie "s/^.*CONFIG_LFS.*/CONFIG_LFS=n/;" $(BUSYBOX_DIR)/.config
 endif
        $(MAKE) CC=$(TARGET_CC) CROSS="$(TARGET_CROSS)" -C $(BUSYBOX_DIR) oldconfig
 else  # Not using snapshot
index 1a4f1c298560effa188e2bc9e1434ddb77dc87a1..cc5c6cc773df12e74542c30e6ef7608c924d661d 100644 (file)
@@ -40,6 +40,7 @@ $(COREUTILS_DIR)/.configured: $(COREUTILS_DIR)/.unpacked
                --mandir=/usr/man \
                --infodir=/usr/info \
                $(DISABLE_NLS) \
+               $(DISABLE_LARGEFILE) \
                --disable-rpath \
                --disable-dependency-tracking \
        );
index 823de91b3ebad569523d28fcd9a950926b2026ae..0019bd8d4452364c15866947d3f9348f7ffd2fe6 100644 (file)
@@ -38,6 +38,7 @@ $(DIFFUTILS_DIR)/.configured: $(DIFFUTILS_DIR)/.unpacked
                --mandir=/usr/man \
                --infodir=/usr/info \
                $(DISABLE_NLS) \
+               $(DISABLE_LARGEFILE) \
        );
        touch  $(DIFFUTILS_DIR)/.configured
 
index 471d92d7185153759be401bdf093371faa5d9b17..09044ea2d52b7c23ab9e80af776cb195271ab2bb 100644 (file)
@@ -39,6 +39,7 @@ $(FILE_DIR)/.configured: $(FILE_DIR)/.unpacked
                --mandir=/usr/man \
                --infodir=/usr/info \
                $(DISABLE_NLS) \
+               $(DISABLE_LARGEFILE) \
                --disable-fsect-man5 \
        );
        touch  $(FILE_DIR)/.configured
index b7716b2c783585ba0d8455f1698858da569e3b23..aaac14eaaaf6d818a517dfb598a4f8c0547153cb 100644 (file)
@@ -40,6 +40,7 @@ $(FINDUTILS_DIR)/.configured: $(FINDUTILS_DIR)/.unpacked
                --mandir=/usr/man \
                --infodir=/usr/info \
                $(DISABLE_NLS) \
+               $(DISABLE_LARGEFILE) \
        );
        touch  $(FINDUTILS_DIR)/.configured
 
index 31ed8161f217d2d664c7660b7b3e855050305060..a29fa5875ebecad59fc132503a2b89daccb73813 100644 (file)
@@ -43,6 +43,7 @@ $(FLEX_DIR)/.configured: $(FLEX_DIR)/.unpacked
                --mandir=/usr/man \
                --infodir=/usr/info \
                $(DISABLE_NLS) \
+               $(DISABLE_LARGEFILE) \
        );
        touch  $(FLEX_DIR)/.configured
 
index f3a1a1d8e9532bcfdcae6e7cfc0f36e55c67fa0c..523b0479bbd0716eeff0fe4478cdc31f6ff0642d 100644 (file)
@@ -39,6 +39,7 @@ $(GAWK_DIR)/.configured: $(GAWK_DIR)/.unpacked
                --mandir=/usr/man \
                --infodir=/usr/info \
                $(DISABLE_NLS) \
+               $(DISABLE_LARGEFILE) \
        );
        touch  $(GAWK_DIR)/.configured
 
index bca1984e243b4bcf61e79b0c3876ff232f6c146c..8fccf5be046c602a6c1ede345ca3cf4483a23831 100644 (file)
@@ -38,6 +38,7 @@ $(GNUGREP_DIR)/.configured: $(GNUGREP_DIR)/.unpacked
                --mandir=/usr/man \
                --infodir=/usr/info \
                $(DISABLE_NLS) \
+               $(DISABLE_LARGEFILE) \
                --disable-perl-regexp \
                --without-included-regex \
        );
index 3edcf9a35438247da444299d7644b866abcfd666..e2c49f7d950ad3f730e85def7b4cf37dc177886e 100644 (file)
@@ -24,11 +24,11 @@ $(HOSTAP_DIR)/.configured: $(HOSTAP_DIR)/.unpacked
        touch  $(HOSTAP_DIR)/.configured
 
 $(HOSTAP_DIR)/driver/modules/hostap.o: $(HOSTAP_DIR)/.configured
-       $(MAKE) -C $(HOSTAP_DIR) pccard KERNEL_PATH=$(LINUX_SOURCE_DIR) CC=$(TARGET_CC)
-       $(MAKE) -C $(HOSTAP_DIR) pci KERNEL_PATH=$(LINUX_SOURCE_DIR) CC=$(TARGET_CC)
-       $(MAKE) -C $(HOSTAP_DIR) plx KERNEL_PATH=$(LINUX_SOURCE_DIR) CC=$(TARGET_CC)
-       $(MAKE) -C $(HOSTAP_DIR)/utils CC=$(TARGET_CC)
-       $(MAKE) -C $(HOSTAP_DIR)/hostapd CC=$(TARGET_CC) 
+       $(MAKE) -C $(HOSTAP_DIR) pccard KERNEL_PATH=$(LINUX_SOURCE_DIR) CC=$(TARGET_CC) CFLAGS="$(TARGET_CFLAGS)"
+       $(MAKE) -C $(HOSTAP_DIR) pci KERNEL_PATH=$(LINUX_SOURCE_DIR) CC=$(TARGET_CC) CFLAGS="$(TARGET_CFLAGS)"
+       $(MAKE) -C $(HOSTAP_DIR) plx KERNEL_PATH=$(LINUX_SOURCE_DIR) CC=$(TARGET_CC) CFLAGS="$(TARGET_CFLAGS)"
+       $(MAKE) -C $(HOSTAP_DIR)/utils CC=$(TARGET_CC) CFLAGS="$(TARGET_CFLAGS)"
+       $(MAKE) -C $(HOSTAP_DIR)/hostapd CC=$(TARGET_CC) CFLAGS="$(TARGET_CFLAGS)"
        touch -c $(HOSTAP_DIR)/driver/modules/hostap.o
 
 $(HOSTAP_TARGET_MODULE_DIR)/hostap.o: $(HOSTAP_DIR)/driver/modules/hostap.o
index ba49864b799d8709a11ec1433ee9b07e208ee083..a048393b622096dbf3462ffee721b4b9b4857012 100644 (file)
@@ -40,7 +40,7 @@ $(IPROUTE2_DIR)/.configured: $(IPROUTE2_DIR)/.unpacked
        touch  $(IPROUTE2_DIR)/.configured
 
 $(IPROUTE2_DIR)/tc/tc: $(IPROUTE2_DIR)/.configured
-       $(MAKE) -C $(IPROUTE2_DIR) KERNEL_INCLUDE=$(LINUX_SOURCE_DIR)/include CC=$(TARGET_CC)
+       $(MAKE) -C $(IPROUTE2_DIR) KERNEL_INCLUDE=$(LINUX_SOURCE_DIR)/include CC=$(TARGET_CC) AR=$(TARGET_AR)
 
 $(TARGET_DIR)/usr/sbin/tc: $(IPROUTE2_DIR)/tc/tc
        # Copy The tc binary
index 183823e478b9fd70ed225e27e9a4a535c7ff33fd..e2630e116858c3bb2b4a0fb4a54ae72e8b33e02f 100644 (file)
@@ -9,7 +9,7 @@
 ifneq ($(filter $(TARGETS),kernel-headers),)
 
 LINUX_SITE:=http://www.uclibc.org/downloads/toolchain
-LINUX_SOURCE:=kernel-headers-2.4.21.tar.bz2
+LINUX_SOURCE:=kernel-headers-2.2.12.tar.bz2
 LINUX_DIR:=$(BUILD_DIR)/linux
 
 # Used by pcmcia-cs and others
index 732fd83396104fec259056823f20a45c5f71dd64..28c5a9cc404511eea89f18002110cf800fe2bcda 100644 (file)
@@ -4,8 +4,8 @@
 #
 #############################################################
 LINKS_SITE:=http://artax.karlin.mff.cuni.cz/~mikulas/vyplody/links/download/no-ssl
-LINKS_SOURCE:=links-0.97pre9-no-ssl.tar.gz
-LINKS_DIR:=$(BUILD_DIR)/links-0.97pre9-no-ssl
+LINKS_SOURCE:=links-0.99pre9-no-ssl.tar.gz
+LINKS_DIR:=$(BUILD_DIR)/links-0.99pre9-no-ssl
 
 $(DL_DIR)/$(LINKS_SOURCE):
        $(WGET) -P $(DL_DIR) $(LINKS_SITE)/$(LINKS_SOURCE)
index 07edd1ea90408a3d32ac864f15f066ddd762bf32..ec508fed3b47bdbf9f6417258ab4cab38e028e22 100644 (file)
@@ -38,6 +38,7 @@ $(GNUMAKE_DIR)/.configured: $(GNUMAKE_DIR)/.unpacked
                --mandir=/usr/man \
                --infodir=/usr/info \
                $(DISABLE_NLS) \
+               $(DISABLE_LARGEFILE) \
        );
        touch  $(GNUMAKE_DIR)/.configured
 
index 98ba9d280efb21d6d1087306c076143453a3df7d..97fcd161e87f6b0a14c91efb7e21110f5835a325 100644 (file)
@@ -39,7 +39,9 @@ $(OPENSSH_DIR)/.configured: $(OPENSSH_DIR)/.unpacked
                --includedir=$(STAGING_DIR)/include \
                --disable-lastlog --disable-utmp \
                --disable-utmpx --disable-wtmp --disable-wtmpx \
-               --without-x $(DISABLE_NLS) \
+               --without-x \
+               $(DISABLE_NLS) \
+               $(DISABLE_LARGEFILE) \
        );
        touch  $(OPENSSH_DIR)/.configured
 
index dd5383f30c6293bea438cf72cac1a61a706511ea..a206c9ceb7bd7c4a158e5e95eb9d1da23285f094 100644 (file)
@@ -38,6 +38,7 @@ $(GNUPATCH_DIR)/.configured: $(GNUPATCH_DIR)/.unpacked
                --mandir=/usr/man \
                --infodir=/usr/info \
                $(DISABLE_NLS) \
+               $(DISABLE_LARGEFILE) \
        );
        touch  $(GNUPATCH_DIR)/.configured
 
index 58f3221c4ea17e2c15c4b1653c5dcacb552fa5ba..c643f5b17422af166c4e3fc8a61f30c1c09efeca 100644 (file)
@@ -9,6 +9,9 @@ SED_CAT:=zcat
 SED_DIR:=$(BUILD_DIR)/sed-3.02
 SED_BINARY:=sed/sed
 SED_TARGET_BINARY:=bin/sed
+ifeq ($(strip $(BUILD_WITH_LARGEFILE)),true)
+SED_CPPFLAGS=-D_FILE_OFFSET_BITS=64
+endif
 
 $(DL_DIR)/$(SED_SOURCE):
         $(WGET) -P $(DL_DIR) $(SED_SITE)/$(SED_SOURCE)
@@ -23,6 +26,7 @@ $(SED_DIR)/.configured: $(SED_DIR)/.unpacked
        (cd $(SED_DIR); rm -rf config.cache; \
                $(TARGET_CONFIGURE_OPTS) \
                CFLAGS="$(TARGET_CFLAGS)" \
+               CPPFLAGS="$(SED_CFLAGS)" \
                ./configure \
                --target=$(GNU_TARGET_NAME) \
                --host=$(GNU_TARGET_NAME) \
index 833366bfedef192808ede2aa6c28451563ace91e..196068629d41d0673f90da5d6de1db6beef988d7 100644 (file)
@@ -37,6 +37,7 @@ $(STRACE_DIR)/.configured: $(STRACE_DIR)/.unpacked
                --mandir=/usr/man \
                --infodir=/usr/info \
                $(DISABLE_NLS) \
+               $(DISABLE_LARGEFILE) \
        );
        touch  $(STRACE_DIR)/.configured
 
index 5e61a6b66aedcc91aac6860b820ab106325e8d0d..c777b58ad25c427f853791919906cc68606062de 100644 (file)
@@ -38,6 +38,7 @@ $(GNUTAR_DIR)/.configured: $(GNUTAR_DIR)/.unpacked
                --mandir=/usr/man \
                --infodir=/usr/info \
                $(DISABLE_NLS) \
+               $(DISABLE_LARGEFILE) \
        );
        touch  $(GNUTAR_DIR)/.configured
 
index 5c0952b109ae85bbc6fe2ec885f7deb2e558ab38..4c4bc855c219822869819828bd8b5db6d72e9207 100644 (file)
@@ -54,8 +54,14 @@ endif
                $(UCLIBC_DIR)/.config
        sed -ie 's,^SHARED_LIB_LOADER_PREFIX=.*,SHARED_LIB_LOADER_PREFIX=\"/lib\",g' \
                $(UCLIBC_DIR)/.config
-       sed -ie 's,.*UCLIBC_HAS_WCHAR.*,UCLIBC_HAS_WCHAR=y\nUCLIBC_HAS_LOCALE=n,g' \
+ifeq ($(strip $(BUILD_WITH_LARGEFILE)),true)
+       sed -ie "s/^.*UCLIBC_HAS_LFS.*/UCLIBC_HAS_LFS=y/;" \
                $(UCLIBC_DIR)/.config
+else
+       sed -ie "s/^.*UCLIBC_HAS_LFS.*/UCLIBC_HAS_LFS=n/;" \
+               $(UCLIBC_DIR)/.config
+endif
+       sed -ie 's,.*UCLIBC_HAS_WCHAR.*,UCLIBC_HAS_WCHAR=y,g' $(UCLIBC_DIR)/.config
        if [ -n "$(strip $(TARGET_SOFT_FLOAT))" ] ; then \
                sed -ie 's,.*HAS_FPU.*,HAS_FPU=n\nUCLIBC_HAS_FLOATS=y\nUCLIBC_HAS_SOFT_FLOAT=y,g' \
                        $(UCLIBC_DIR)/.config; \
index 4289c962c4cba9ddbc000046ad99e4e1f83d8720..4050b1dafa132a454a7f5c5e5af74e8095f99170 100644 (file)
@@ -19,7 +19,8 @@ $(WTOOLS_BUILD_DIR)/.configured: $(WTOOLS_BUILD_DIR)/.unpacked
        touch  $(WTOOLS_BUILD_DIR)/.configured
 
 $(WTOOLS_BUILD_DIR)/iwconfig: $(WTOOLS_BUILD_DIR)/.configured
-       $(MAKE) -C $(WTOOLS_BUILD_DIR) KERNEL_SRC=$(BUILD_DIR)/linux CC=$(TARGET_CC)
+       $(MAKE) -C $(WTOOLS_BUILD_DIR) KERNEL_SRC=$(BUILD_DIR)/linux \
+               CC=$(TARGET_CC) CFLAGS="$(TARGET_CFLAGS)"
 
 $(TARGET_DIR)/sbin/iwconfig: $(WTOOLS_BUILD_DIR)/iwconfig
        # Copy The Wireless Tools