Fix most things when large file support is not configured.
Mostly submitted by Thomas Lundquist <lists@zelow.no>.
This commit is contained in:
parent
8162065d96
commit
50e1da8698
@ -43,6 +43,7 @@ $(BASH_DIR)/.configured: $(BASH_DIR)/.unpacked
|
|||||||
--mandir=/usr/man \
|
--mandir=/usr/man \
|
||||||
--infodir=/usr/info \
|
--infodir=/usr/info \
|
||||||
$(DISABLE_NLS) \
|
$(DISABLE_NLS) \
|
||||||
|
$(DISABLE_LARGEFILE) \
|
||||||
--with-curses \
|
--with-curses \
|
||||||
--enable-alias \
|
--enable-alias \
|
||||||
);
|
);
|
||||||
|
@ -31,7 +31,9 @@ ifeq ($(USE_BUSYBOX_SNAPSHOT),true)
|
|||||||
sed -ie "s,^CROSS.*,CROSS=$(TARGET_CROSS)\n\
|
sed -ie "s,^CROSS.*,CROSS=$(TARGET_CROSS)\n\
|
||||||
PREFIX=$(TARGET_DIR),;" $(BUSYBOX_DIR)/Rules.mak
|
PREFIX=$(TARGET_DIR),;" $(BUSYBOX_DIR)/Rules.mak
|
||||||
ifeq ($(strip $(BUILD_WITH_LARGEFILE)),true)
|
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
|
endif
|
||||||
$(MAKE) CC=$(TARGET_CC) CROSS="$(TARGET_CROSS)" -C $(BUSYBOX_DIR) oldconfig
|
$(MAKE) CC=$(TARGET_CC) CROSS="$(TARGET_CROSS)" -C $(BUSYBOX_DIR) oldconfig
|
||||||
else # Not using snapshot
|
else # Not using snapshot
|
||||||
|
@ -40,6 +40,7 @@ $(COREUTILS_DIR)/.configured: $(COREUTILS_DIR)/.unpacked
|
|||||||
--mandir=/usr/man \
|
--mandir=/usr/man \
|
||||||
--infodir=/usr/info \
|
--infodir=/usr/info \
|
||||||
$(DISABLE_NLS) \
|
$(DISABLE_NLS) \
|
||||||
|
$(DISABLE_LARGEFILE) \
|
||||||
--disable-rpath \
|
--disable-rpath \
|
||||||
--disable-dependency-tracking \
|
--disable-dependency-tracking \
|
||||||
);
|
);
|
||||||
|
@ -38,6 +38,7 @@ $(DIFFUTILS_DIR)/.configured: $(DIFFUTILS_DIR)/.unpacked
|
|||||||
--mandir=/usr/man \
|
--mandir=/usr/man \
|
||||||
--infodir=/usr/info \
|
--infodir=/usr/info \
|
||||||
$(DISABLE_NLS) \
|
$(DISABLE_NLS) \
|
||||||
|
$(DISABLE_LARGEFILE) \
|
||||||
);
|
);
|
||||||
touch $(DIFFUTILS_DIR)/.configured
|
touch $(DIFFUTILS_DIR)/.configured
|
||||||
|
|
||||||
|
@ -39,6 +39,7 @@ $(FILE_DIR)/.configured: $(FILE_DIR)/.unpacked
|
|||||||
--mandir=/usr/man \
|
--mandir=/usr/man \
|
||||||
--infodir=/usr/info \
|
--infodir=/usr/info \
|
||||||
$(DISABLE_NLS) \
|
$(DISABLE_NLS) \
|
||||||
|
$(DISABLE_LARGEFILE) \
|
||||||
--disable-fsect-man5 \
|
--disable-fsect-man5 \
|
||||||
);
|
);
|
||||||
touch $(FILE_DIR)/.configured
|
touch $(FILE_DIR)/.configured
|
||||||
|
@ -40,6 +40,7 @@ $(FINDUTILS_DIR)/.configured: $(FINDUTILS_DIR)/.unpacked
|
|||||||
--mandir=/usr/man \
|
--mandir=/usr/man \
|
||||||
--infodir=/usr/info \
|
--infodir=/usr/info \
|
||||||
$(DISABLE_NLS) \
|
$(DISABLE_NLS) \
|
||||||
|
$(DISABLE_LARGEFILE) \
|
||||||
);
|
);
|
||||||
touch $(FINDUTILS_DIR)/.configured
|
touch $(FINDUTILS_DIR)/.configured
|
||||||
|
|
||||||
|
@ -43,6 +43,7 @@ $(FLEX_DIR)/.configured: $(FLEX_DIR)/.unpacked
|
|||||||
--mandir=/usr/man \
|
--mandir=/usr/man \
|
||||||
--infodir=/usr/info \
|
--infodir=/usr/info \
|
||||||
$(DISABLE_NLS) \
|
$(DISABLE_NLS) \
|
||||||
|
$(DISABLE_LARGEFILE) \
|
||||||
);
|
);
|
||||||
touch $(FLEX_DIR)/.configured
|
touch $(FLEX_DIR)/.configured
|
||||||
|
|
||||||
|
@ -39,6 +39,7 @@ $(GAWK_DIR)/.configured: $(GAWK_DIR)/.unpacked
|
|||||||
--mandir=/usr/man \
|
--mandir=/usr/man \
|
||||||
--infodir=/usr/info \
|
--infodir=/usr/info \
|
||||||
$(DISABLE_NLS) \
|
$(DISABLE_NLS) \
|
||||||
|
$(DISABLE_LARGEFILE) \
|
||||||
);
|
);
|
||||||
touch $(GAWK_DIR)/.configured
|
touch $(GAWK_DIR)/.configured
|
||||||
|
|
||||||
|
@ -38,6 +38,7 @@ $(GNUGREP_DIR)/.configured: $(GNUGREP_DIR)/.unpacked
|
|||||||
--mandir=/usr/man \
|
--mandir=/usr/man \
|
||||||
--infodir=/usr/info \
|
--infodir=/usr/info \
|
||||||
$(DISABLE_NLS) \
|
$(DISABLE_NLS) \
|
||||||
|
$(DISABLE_LARGEFILE) \
|
||||||
--disable-perl-regexp \
|
--disable-perl-regexp \
|
||||||
--without-included-regex \
|
--without-included-regex \
|
||||||
);
|
);
|
||||||
|
@ -24,11 +24,11 @@ $(HOSTAP_DIR)/.configured: $(HOSTAP_DIR)/.unpacked
|
|||||||
touch $(HOSTAP_DIR)/.configured
|
touch $(HOSTAP_DIR)/.configured
|
||||||
|
|
||||||
$(HOSTAP_DIR)/driver/modules/hostap.o: $(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) 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)
|
$(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)
|
$(MAKE) -C $(HOSTAP_DIR) plx KERNEL_PATH=$(LINUX_SOURCE_DIR) CC=$(TARGET_CC) CFLAGS="$(TARGET_CFLAGS)"
|
||||||
$(MAKE) -C $(HOSTAP_DIR)/utils CC=$(TARGET_CC)
|
$(MAKE) -C $(HOSTAP_DIR)/utils CC=$(TARGET_CC) CFLAGS="$(TARGET_CFLAGS)"
|
||||||
$(MAKE) -C $(HOSTAP_DIR)/hostapd CC=$(TARGET_CC)
|
$(MAKE) -C $(HOSTAP_DIR)/hostapd CC=$(TARGET_CC) CFLAGS="$(TARGET_CFLAGS)"
|
||||||
touch -c $(HOSTAP_DIR)/driver/modules/hostap.o
|
touch -c $(HOSTAP_DIR)/driver/modules/hostap.o
|
||||||
|
|
||||||
$(HOSTAP_TARGET_MODULE_DIR)/hostap.o: $(HOSTAP_DIR)/driver/modules/hostap.o
|
$(HOSTAP_TARGET_MODULE_DIR)/hostap.o: $(HOSTAP_DIR)/driver/modules/hostap.o
|
||||||
|
@ -40,7 +40,7 @@ $(IPROUTE2_DIR)/.configured: $(IPROUTE2_DIR)/.unpacked
|
|||||||
touch $(IPROUTE2_DIR)/.configured
|
touch $(IPROUTE2_DIR)/.configured
|
||||||
|
|
||||||
$(IPROUTE2_DIR)/tc/tc: $(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
|
$(TARGET_DIR)/usr/sbin/tc: $(IPROUTE2_DIR)/tc/tc
|
||||||
# Copy The tc binary
|
# Copy The tc binary
|
||||||
|
@ -9,7 +9,7 @@
|
|||||||
ifneq ($(filter $(TARGETS),kernel-headers),)
|
ifneq ($(filter $(TARGETS),kernel-headers),)
|
||||||
|
|
||||||
LINUX_SITE:=http://www.uclibc.org/downloads/toolchain
|
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
|
LINUX_DIR:=$(BUILD_DIR)/linux
|
||||||
|
|
||||||
# Used by pcmcia-cs and others
|
# Used by pcmcia-cs and others
|
||||||
|
@ -4,8 +4,8 @@
|
|||||||
#
|
#
|
||||||
#############################################################
|
#############################################################
|
||||||
LINKS_SITE:=http://artax.karlin.mff.cuni.cz/~mikulas/vyplody/links/download/no-ssl
|
LINKS_SITE:=http://artax.karlin.mff.cuni.cz/~mikulas/vyplody/links/download/no-ssl
|
||||||
LINKS_SOURCE:=links-0.97pre9-no-ssl.tar.gz
|
LINKS_SOURCE:=links-0.99pre9-no-ssl.tar.gz
|
||||||
LINKS_DIR:=$(BUILD_DIR)/links-0.97pre9-no-ssl
|
LINKS_DIR:=$(BUILD_DIR)/links-0.99pre9-no-ssl
|
||||||
|
|
||||||
$(DL_DIR)/$(LINKS_SOURCE):
|
$(DL_DIR)/$(LINKS_SOURCE):
|
||||||
$(WGET) -P $(DL_DIR) $(LINKS_SITE)/$(LINKS_SOURCE)
|
$(WGET) -P $(DL_DIR) $(LINKS_SITE)/$(LINKS_SOURCE)
|
||||||
|
@ -38,6 +38,7 @@ $(GNUMAKE_DIR)/.configured: $(GNUMAKE_DIR)/.unpacked
|
|||||||
--mandir=/usr/man \
|
--mandir=/usr/man \
|
||||||
--infodir=/usr/info \
|
--infodir=/usr/info \
|
||||||
$(DISABLE_NLS) \
|
$(DISABLE_NLS) \
|
||||||
|
$(DISABLE_LARGEFILE) \
|
||||||
);
|
);
|
||||||
touch $(GNUMAKE_DIR)/.configured
|
touch $(GNUMAKE_DIR)/.configured
|
||||||
|
|
||||||
|
@ -39,7 +39,9 @@ $(OPENSSH_DIR)/.configured: $(OPENSSH_DIR)/.unpacked
|
|||||||
--includedir=$(STAGING_DIR)/include \
|
--includedir=$(STAGING_DIR)/include \
|
||||||
--disable-lastlog --disable-utmp \
|
--disable-lastlog --disable-utmp \
|
||||||
--disable-utmpx --disable-wtmp --disable-wtmpx \
|
--disable-utmpx --disable-wtmp --disable-wtmpx \
|
||||||
--without-x $(DISABLE_NLS) \
|
--without-x \
|
||||||
|
$(DISABLE_NLS) \
|
||||||
|
$(DISABLE_LARGEFILE) \
|
||||||
);
|
);
|
||||||
touch $(OPENSSH_DIR)/.configured
|
touch $(OPENSSH_DIR)/.configured
|
||||||
|
|
||||||
|
@ -38,6 +38,7 @@ $(GNUPATCH_DIR)/.configured: $(GNUPATCH_DIR)/.unpacked
|
|||||||
--mandir=/usr/man \
|
--mandir=/usr/man \
|
||||||
--infodir=/usr/info \
|
--infodir=/usr/info \
|
||||||
$(DISABLE_NLS) \
|
$(DISABLE_NLS) \
|
||||||
|
$(DISABLE_LARGEFILE) \
|
||||||
);
|
);
|
||||||
touch $(GNUPATCH_DIR)/.configured
|
touch $(GNUPATCH_DIR)/.configured
|
||||||
|
|
||||||
|
@ -9,6 +9,9 @@ SED_CAT:=zcat
|
|||||||
SED_DIR:=$(BUILD_DIR)/sed-3.02
|
SED_DIR:=$(BUILD_DIR)/sed-3.02
|
||||||
SED_BINARY:=sed/sed
|
SED_BINARY:=sed/sed
|
||||||
SED_TARGET_BINARY:=bin/sed
|
SED_TARGET_BINARY:=bin/sed
|
||||||
|
ifeq ($(strip $(BUILD_WITH_LARGEFILE)),true)
|
||||||
|
SED_CPPFLAGS=-D_FILE_OFFSET_BITS=64
|
||||||
|
endif
|
||||||
|
|
||||||
$(DL_DIR)/$(SED_SOURCE):
|
$(DL_DIR)/$(SED_SOURCE):
|
||||||
$(WGET) -P $(DL_DIR) $(SED_SITE)/$(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; \
|
(cd $(SED_DIR); rm -rf config.cache; \
|
||||||
$(TARGET_CONFIGURE_OPTS) \
|
$(TARGET_CONFIGURE_OPTS) \
|
||||||
CFLAGS="$(TARGET_CFLAGS)" \
|
CFLAGS="$(TARGET_CFLAGS)" \
|
||||||
|
CPPFLAGS="$(SED_CFLAGS)" \
|
||||||
./configure \
|
./configure \
|
||||||
--target=$(GNU_TARGET_NAME) \
|
--target=$(GNU_TARGET_NAME) \
|
||||||
--host=$(GNU_TARGET_NAME) \
|
--host=$(GNU_TARGET_NAME) \
|
||||||
|
@ -37,6 +37,7 @@ $(STRACE_DIR)/.configured: $(STRACE_DIR)/.unpacked
|
|||||||
--mandir=/usr/man \
|
--mandir=/usr/man \
|
||||||
--infodir=/usr/info \
|
--infodir=/usr/info \
|
||||||
$(DISABLE_NLS) \
|
$(DISABLE_NLS) \
|
||||||
|
$(DISABLE_LARGEFILE) \
|
||||||
);
|
);
|
||||||
touch $(STRACE_DIR)/.configured
|
touch $(STRACE_DIR)/.configured
|
||||||
|
|
||||||
|
@ -38,6 +38,7 @@ $(GNUTAR_DIR)/.configured: $(GNUTAR_DIR)/.unpacked
|
|||||||
--mandir=/usr/man \
|
--mandir=/usr/man \
|
||||||
--infodir=/usr/info \
|
--infodir=/usr/info \
|
||||||
$(DISABLE_NLS) \
|
$(DISABLE_NLS) \
|
||||||
|
$(DISABLE_LARGEFILE) \
|
||||||
);
|
);
|
||||||
touch $(GNUTAR_DIR)/.configured
|
touch $(GNUTAR_DIR)/.configured
|
||||||
|
|
||||||
|
@ -54,8 +54,14 @@ endif
|
|||||||
$(UCLIBC_DIR)/.config
|
$(UCLIBC_DIR)/.config
|
||||||
sed -ie 's,^SHARED_LIB_LOADER_PREFIX=.*,SHARED_LIB_LOADER_PREFIX=\"/lib\",g' \
|
sed -ie 's,^SHARED_LIB_LOADER_PREFIX=.*,SHARED_LIB_LOADER_PREFIX=\"/lib\",g' \
|
||||||
$(UCLIBC_DIR)/.config
|
$(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
|
$(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 \
|
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' \
|
sed -ie 's,.*HAS_FPU.*,HAS_FPU=n\nUCLIBC_HAS_FLOATS=y\nUCLIBC_HAS_SOFT_FLOAT=y,g' \
|
||||||
$(UCLIBC_DIR)/.config; \
|
$(UCLIBC_DIR)/.config; \
|
||||||
|
@ -19,7 +19,8 @@ $(WTOOLS_BUILD_DIR)/.configured: $(WTOOLS_BUILD_DIR)/.unpacked
|
|||||||
touch $(WTOOLS_BUILD_DIR)/.configured
|
touch $(WTOOLS_BUILD_DIR)/.configured
|
||||||
|
|
||||||
$(WTOOLS_BUILD_DIR)/iwconfig: $(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
|
$(TARGET_DIR)/sbin/iwconfig: $(WTOOLS_BUILD_DIR)/iwconfig
|
||||||
# Copy The Wireless Tools
|
# Copy The Wireless Tools
|
||||||
|
Loading…
Reference in New Issue
Block a user