Mostly submitted by Thomas Lundquist <lists@zelow.no>.
--mandir=/usr/man \
--infodir=/usr/info \
$(DISABLE_NLS) \
+ $(DISABLE_LARGEFILE) \
--with-curses \
--enable-alias \
);
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
--mandir=/usr/man \
--infodir=/usr/info \
$(DISABLE_NLS) \
+ $(DISABLE_LARGEFILE) \
--disable-rpath \
--disable-dependency-tracking \
);
--mandir=/usr/man \
--infodir=/usr/info \
$(DISABLE_NLS) \
+ $(DISABLE_LARGEFILE) \
);
touch $(DIFFUTILS_DIR)/.configured
--mandir=/usr/man \
--infodir=/usr/info \
$(DISABLE_NLS) \
+ $(DISABLE_LARGEFILE) \
--disable-fsect-man5 \
);
touch $(FILE_DIR)/.configured
--mandir=/usr/man \
--infodir=/usr/info \
$(DISABLE_NLS) \
+ $(DISABLE_LARGEFILE) \
);
touch $(FINDUTILS_DIR)/.configured
--mandir=/usr/man \
--infodir=/usr/info \
$(DISABLE_NLS) \
+ $(DISABLE_LARGEFILE) \
);
touch $(FLEX_DIR)/.configured
--mandir=/usr/man \
--infodir=/usr/info \
$(DISABLE_NLS) \
+ $(DISABLE_LARGEFILE) \
);
touch $(GAWK_DIR)/.configured
--mandir=/usr/man \
--infodir=/usr/info \
$(DISABLE_NLS) \
+ $(DISABLE_LARGEFILE) \
--disable-perl-regexp \
--without-included-regex \
);
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
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
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
#
#############################################################
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)
--mandir=/usr/man \
--infodir=/usr/info \
$(DISABLE_NLS) \
+ $(DISABLE_LARGEFILE) \
);
touch $(GNUMAKE_DIR)/.configured
--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
--mandir=/usr/man \
--infodir=/usr/info \
$(DISABLE_NLS) \
+ $(DISABLE_LARGEFILE) \
);
touch $(GNUPATCH_DIR)/.configured
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)
(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) \
--mandir=/usr/man \
--infodir=/usr/info \
$(DISABLE_NLS) \
+ $(DISABLE_LARGEFILE) \
);
touch $(STRACE_DIR)/.configured
--mandir=/usr/man \
--infodir=/usr/info \
$(DISABLE_NLS) \
+ $(DISABLE_LARGEFILE) \
);
touch $(GNUTAR_DIR)/.configured
$(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; \
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