Commit cc2ee8bb authored by Ryan Jackson's avatar Ryan Jackson

Make stuff work as 64-bit, and fix some build issues

parent e8cc4e40
......@@ -5,11 +5,15 @@ SCRIPTS_PATH = $(PWD)/scripts
INITRAMFS_PATH = $(PWD)/initramfs.tmp
BUILDROOT_PATH = $(PWD)/buildroot
FAKEROOT_ENVIRONMENT = $(PWD)/fs_fakeroot.env
STAGING_DIR = $(PWD)/buildroot/build_i386/staging_dir
STAGING_DIR = $(PWD)/buildroot/build_x86_64/staging_dir
INITRAMFS = $(PWD)/initramfs.gz
BOOT_PATH = $(PWD)/boot
MODULES := busybox zlib linux dropbear testbed hdparm target_template sudo e2fsprogs openssl wget perl portmap file
#FAKEROOT_BIN = $(STAGING_DIR)/usr/bin/fakeroot
FAKEROOT_BIN = fakeroot
#MODULES := busybox zlib linux dropbear testbed hdparm target_template sudo e2fsprogs openssl wget perl portmap file
MODULES := busybox zlib linux dropbear testbed hdparm target_template sudo e2fsprogs openssl wget portmap file
INSTALL_MODULES := $(addsuffix -install,$(MODULES))
EXTRACT_MODULES := $(addsuffix -extract,$(MODULES))
PATCH_MODULES := $(addsuffix -patch,$(MODULES))
......@@ -48,7 +52,7 @@ $(INSTALL_MODULES):
$(TARGET_PATH)/lib/libc.so.0:
mkdir -p $(TARGET_PATH)/lib
cp -dpR $(BUILDROOT_PATH)/project_build_i386/uclibc/root/lib/* $(TARGET_PATH)/lib
cp -dpR $(BUILDROOT_PATH)/project_build_x86_64/uclibc/root/lib/* $(TARGET_PATH)/lib
uclibc-install: $(TARGET_PATH)/lib/libc.so.0
......@@ -57,13 +61,13 @@ $(FAKEROOT_ENVIRONMENT):
devices: $(FAKEROOT_ENVIRONMENT)
rm -rf $(TARGET_PATH)/dev
$(STAGING_DIR)/usr/bin/fakeroot -s $(FAKEROOT_ENVIRONMENT) \
$(FAKEROOT_BIN) -s $(FAKEROOT_ENVIRONMENT) \
-i $(FAKEROOT_ENVIRONMENT) \
$(SCRIPTS_PATH)/makedevs.sh \
$(SCRIPTS_PATH)/devices $(TARGET_PATH)
permissions: $(FAKEROOT_ENVIRONMENT) devices install
$(STAGING_DIR)/usr/bin/fakeroot -s $(FAKEROOT_ENVIRONMENT) \
$(FAKEROOT_BIN) -s $(FAKEROOT_ENVIRONMENT) \
-i $(FAKEROOT_ENVIRONMENT) \
$(SCRIPTS_PATH)/fixperms.sh $(TARGET_PATH)
......@@ -72,14 +76,14 @@ initramfs: install
cp -dpR $(TARGET_PATH) $(INITRAMFS_PATH)
cat /dev/null > $(FAKEROOT_ENVIRONMENT)
rm -rf $(INITRAMFS_PATH)/dev
$(STAGING_DIR)/usr/bin/fakeroot -s $(FAKEROOT_ENVIRONMENT) \
$(FAKEROOT_BIN) -s $(FAKEROOT_ENVIRONMENT) \
-i $(FAKEROOT_ENVIRONMENT) \
$(SCRIPTS_PATH)/makedevs.sh \
$(SCRIPTS_PATH)/devices $(INITRAMFS_PATH)
$(STAGING_DIR)/usr/bin/fakeroot -s $(FAKEROOT_ENVIRONMENT) \
$(FAKEROOT_BIN) -s $(FAKEROOT_ENVIRONMENT) \
-i $(FAKEROOT_ENVIRONMENT) \
$(SCRIPTS_PATH)/fixperms.sh $(INITRAMFS_PATH)
$(STAGING_DIR)/usr/bin/fakeroot -i $(FAKEROOT_ENVIRONMENT) \
$(FAKEROOT_BIN) -i $(FAKEROOT_ENVIRONMENT) \
$(SCRIPTS_PATH)/gen_initramfs.sh $(INITRAMFS_PATH) $(INITRAMFS)
rm -f $(FAKEROOT_ENVIRONMENT)
rm -rf $(INITRAMFS_PATH)
#
# Automatically generated make config: don't edit
# Wed Dec 17 14:13:46 2008
# Wed Sep 2 14:04:56 2009
#
BR2_HAVE_DOT_CONFIG=y
BR2_VERSION="0.10.0-svn"
......@@ -10,7 +10,7 @@ BR2_VERSION="0.10.0-svn"
# BR2_avr32 is not set
# BR2_cris is not set
# BR2_ia64 is not set
BR2_i386=y
# BR2_i386 is not set
# BR2_m68k is not set
# BR2_mips is not set
# BR2_mipsel is not set
......@@ -21,35 +21,15 @@ BR2_i386=y
# BR2_sh64 is not set
# BR2_sparc is not set
# BR2_sparc64 is not set
# BR2_x86_64 is not set
BR2_x86_i386=y
# BR2_x86_i486 is not set
# BR2_x86_i586 is not set
# BR2_x86_i686 is not set
# BR2_x86_pentiumpro is not set
# BR2_x86_pentium_mmx is not set
# BR2_x86_pentium_m is not set
# BR2_x86_pentium2 is not set
# BR2_x86_pentium3 is not set
# BR2_x86_pentium4 is not set
# BR2_x86_prescott is not set
# BR2_x86_nocona is not set
# BR2_x86_core2 is not set
# BR2_x86_k6 is not set
# BR2_x86_k6_2 is not set
# BR2_x86_athlon is not set
# BR2_x86_athlon_4 is not set
# BR2_x86_opteron is not set
# BR2_x86_opteron_sse3 is not set
# BR2_x86_barcelona is not set
# BR2_x86_geode is not set
# BR2_x86_c3 is not set
# BR2_x86_winchip_c6 is not set
# BR2_x86_winchip2 is not set
BR2_ARCH="i386"
BR2_x86_64=y
# BR2_x86_64_barcelona is not set
# BR2_x86_64_opteron_sse3 is not set
# BR2_x86_64_opteron is not set
# BR2_x86_64_nocona is not set
BR2_x86_64_core2=y
BR2_ARCH="x86_64"
BR2_ENDIAN="LITTLE"
BR2_GCC_TARGET_TUNE="i386"
BR2_GCC_TARGET_ARCH="i386"
BR2_GCC_TARGET_TUNE="core2"
#
# Target options
......@@ -65,17 +45,11 @@ BR2_BANNER="Welcome to the Erik's uClibc development environment."
#
# Preset Devices
#
# BR2_TARGET_SOEKRIS is not set
# BR2_TARGET_VIA_EPIA_MII is not set
#
# Generic Architecture support
#
#
# Generic x86 Device Support
#
#
# Generic System Support
#
......@@ -700,7 +674,6 @@ BR2_X11_PREFIX="/usr"
# BR2_TARGET_ROOTFS_SQUASHFS is not set
# BR2_TARGET_ROOTFS_TAR is not set
# BR2_TARGET_ROOTFS_CPIO is not set
# BR2_TARGET_ROOTFS_ISO9660 is not set
# BR2_TARGET_ROOTFS_INITRAMFS is not set
# BR2_TARGET_ROOTFS_ROMFS is not set
......@@ -708,7 +681,6 @@ BR2_X11_PREFIX="/usr"
# bootloader for target device
#
# BR2_TARGET_GRUB is not set
# BR2_TARGET_SYSLINUX is not set
# BR2_TARGET_PXELINUX is not set
# BR2_TARGET_UBOOT is not set
......
......@@ -35,8 +35,8 @@ $(DROPBEAR_PATH)/.config-stamp: $(DROPBEAR_PATH)/.patch-stamp
cd $(DROPBEAR_PATH); \
$(HOST_CONFIGURE_OPTS) \
./configure --prefix=/usr \
--target=i386-linux-uclibc \
--host=i386-linux-uclibc \
--target=x86_64-linux-uclibc \
--host=x86_64-linux-uclibc \
--sysconfdir=/etc \
--localstatedir=/var \
--libdir=$(STAGING_DIR)/usr/lib \
......@@ -46,7 +46,7 @@ $(DROPBEAR_PATH)/.config-stamp: $(DROPBEAR_PATH)/.patch-stamp
$(DROPBEAR_PATH)/dropbearmulti: $(DROPBEAR_PATH)/.config-stamp
PATH=$(STAGING_DIR)/usr/bin:$(PATH) $(MAKE) -C $(DROPBEAR_PATH) \
$(TARGET_CONFIGURE_OPTS) LD=i386-linux-uclibc-gcc \
$(TARGET_CONFIGURE_OPTS) LD=x86_64-linux-uclibc-gcc \
PROGRAMS="dropbear dbclient dropbearkey dropbearconvert scp" \
MULTI=1 SCPPROGRESS=1
touch $@
......
......@@ -43,8 +43,8 @@ $(E2FSPROGS_PATH)/.config-stamp: $(E2FSPROGS_PATH)/.patch-stamp
PATH=$(STAGING_DIR)/usr/bin:$(PATH) \
$(HOST_CONFIGURE_OPTS) \
./configure \
--target=i386-linux-uclibc \
--host=i386-linux-uclibc \
--target=x86_64-linux-uclibc \
--host=x86_64-linux-uclibc \
--with-cc=$(CROSS_COMPILER_PREFIX)gcc \
--with-linker=$(CROSS_COMPILER_PREFIX)ld \
--prefix=/usr \
......@@ -73,27 +73,27 @@ $(E2FSPROGS_PATH)/.config-stamp: $(E2FSPROGS_PATH)/.patch-stamp
$(E2FSPROGS_PATH)/misc/mke2fs: $(E2FSPROGS_PATH)/.config-stamp
LDFLAGS="-rpath ../lib" PATH=$(STAGING_DIR)/usr/bin:$(PATH) $(MAKE) -C $(E2FSPROGS_PATH) \
$(TARGET_CONFIGURE_OPTS) LD=i386-linux-uclibc-gcc
$(TARGET_CONFIGURE_OPTS) LD=x86_64-linux-uclibc-gcc
touch $@
$(E2FSPROGS_PATH)/e2fsck/e2fsck: $(E2FSPROGS_PATH)/.config-stamp
LDFLAGS="-rpath ../lib" PATH=$(STAGING_DIR)/usr/bin:$(PATH) $(MAKE) -C $(E2FSPROGS_PATH) \
$(TARGET_CONFIGURE_OPTS) LD=i386-linux-uclibc-gcc
$(TARGET_CONFIGURE_OPTS) LD=x86_64-linux-uclibc-gcc
touch $@
$(E2FSPROGS_PATH)/misc/tune2fs: $(E2FSPROGS_PATH)/.config-stamp
LDFLAGS="-rpath ../lib" PATH=$(STAGING_DIR)/usr/bin:$(PATH) $(MAKE) -C $(E2FSPROGS_PATH) \
$(TARGET_CONFIGURE_OPTS) LD=i386-linux-uclibc-gcc
$(TARGET_CONFIGURE_OPTS) LD=x86_64-linux-uclibc-gcc
touch $@
$(E2FSPROGS_PATH)/misc/uuidgen: $(E2FSPROGS_PATH)/.config-stamp
LDFLAGS="-rpath ../lib" PATH=$(STAGING_DIR)/usr/bin:$(PATH) $(MAKE) -C $(E2FSPROGS_PATH) \
$(TARGET_CONFIGURE_OPTS) LD=i386-linux-uclibc-gcc
$(TARGET_CONFIGURE_OPTS) LD=x86_64-linux-uclibc-gcc
touch $@
$(E2FSPROGS_PATH)/lib/%.so: $(E2FSPROGS_PATH)/.config-stamp
LDFLAGS="-rpath ../lib" PATH=$(STAGING_DIR)/usr/bin:$(PATH) $(MAKE) -C $(E2FSPROGS_PATH) \
$(TARGET_CONFIGURE_OPTS) LD=i386-linux-uclibc-gcc
$(TARGET_CONFIGURE_OPTS) LD=x86_64-linux-uclibc-gcc
touch $@
$(TARGET_PATH)/lib/%.so: $(E2FSPROGS_PATH)/lib/%.so
......
......@@ -38,8 +38,8 @@ $(FILE_PATH)/.config-stamp: $(FILE_PATH)/.patch-stamp
PATH=$(STAGING_DIR)/usr/bin:$(PATH) \
$(HOST_CONFIGURE_OPTS) \
./configure \
--target=i386-linux-uclibc \
--host=i386-linux-uclibc \
--target=x86_64-linux-uclibc \
--host=x86_64-linux-uclibc \
--build=x86_64-linux-gnu \
--prefix=/usr \
--exec-prefix=/usr \
......@@ -63,7 +63,7 @@ $(FILE_PATH)/src/.libs/file: $(FILE_PATH)/.config-stamp
PATH=$(STAGING_DIR)/usr/bin:$(PATH) \
CC=$(TARGET_CC) \
$(MAKE) -C $(FILE_PATH) \
$(TARGET_CONFIGURE_OPTS) LD=i386-linux-uclibc-gcc
$(TARGET_CONFIGURE_OPTS) LD=x86_64-linux-uclibc-gcc
touch $@
$(TARGET_PATH)/usr/share/misc/magic:
......
......@@ -42,7 +42,7 @@ $(HDPARM_PATH)/hdparm: $(HDPARM_PATH)/.config-stamp
PATH=$(STAGING_DIR)/usr/bin:$(PATH) \
CC=$(TARGET_CC) \
$(MAKE) -C $(HDPARM_PATH) \
$(TARGET_CONFIGURE_OPTS) LD=i386-linux-uclibc-gcc
$(TARGET_CONFIGURE_OPTS) LD=x86_64-linux-uclibc-gcc
touch $@
$(TARGET_PATH)/sbin/hdparm: $(HDPARM_PATH)/hdparm
......
......@@ -6,7 +6,7 @@ LINUX_PATH = $(TARGET_BUILD_PATH)/linux-$(LINUX_VERSION)
KERNEL_CONFIG = $(SOURCE_PATH)/linux/linux.config
TARGET_MODULE_PATH = $(TARGET_PATH)/lib/modules/$(LINUX_VERSION)
export ARCH=i386
export ARCH=x86_64
export INSTALL_MOD_PATH=$(TARGET_PATH)
.PHONY: extract patch config bzImage \
......@@ -33,7 +33,7 @@ install: bzImage-install modules-install
bzImage-install: bzImage
mkdir -p $(TOPDIR)/boot
cp $(LINUX_PATH)/arch/i386/boot/bzImage $(TOPDIR)/boot/vmlinuz-$(LINUX_VERSION)
cp $(LINUX_PATH)/arch/x86_64/boot/bzImage $(TOPDIR)/boot/vmlinuz-$(LINUX_VERSION)
cp $(LINUX_PATH)/System.map $(TOPDIR)/boot/System.map-$(LINUX_VERSION)
cp $(LINUX_PATH)/.config $(TOPDIR)/boot/config-$(LINUX_VERSION)
......
......@@ -45,18 +45,18 @@ $(OPENSSL_PATH)/.config-stamp: $(OPENSSL_PATH)/.patch-stamp
(cd $(OPENSSL_PATH); \
CFLAGS="-DOPENSSL_NO_KRB5 -DOPENSSL_NO_IDEA -DOPENSSL_NO_MDC2 -DOPENSSL_NO_RC5 $(TARGET_CFLAGS)" \
PATH=$(STAGING_DIR)/usr/bin:$(PATH) \
./Configure linux-i386 --prefix=/ \
./Configure linux-x86_64 --prefix=/ \
--openssldir=/lib/ssl -L$(STAGING_DIR)/lib -ldl \
-I$(STAGING_DIR)/usr/include $(OPENSSL_OPTS) threads \
shared no-idea no-mdc2 no-rc5)
touch $@
$(OPENSSL_PATH)/apps/openssl: $(OPENSSL_PATH)/.config-stamp
PATH=$(STAGING_DIR)/usr/bin:$(PATH) $(MAKE) CC=i386-linux-uclibc-gcc -C $(OPENSSL_PATH) all build-shared
PATH=$(STAGING_DIR)/usr/bin:$(PATH) $(MAKE) CC=x86_64-linux-uclibc-gcc -C $(OPENSSL_PATH) all build-shared
# Work around openssl build bug to link libssl.so with libcrypto.so.
-rm $(OPENSSL_PATH)/libssl.so.*.*.*
$(MAKE) PATH=$(PATH):$(STAGING_DIR)/usr/bin \
CC=i386-linux-uclibc-gcc -C $(OPENSSL_PATH) do_linux-shared
CC=x86_64-linux-uclibc-gcc -C $(OPENSSL_PATH) do_linux-shared
touch $@
$(STAGING_DIR)/usr/lib/libcrypto.a: $(OPENSSL_PATH)/apps/openssl
......
This diff is collapsed.
......@@ -14,15 +14,17 @@ patch: $(PORTMAP_PATH)/.patch-stamp
config: $(PORTMAP_PATH)/.config-stamp
portmap: config
portmap: $(PORTMAP_PATH)/portmap
$(PORTMAP_PATH)/portmap: config
PATH=$(STAGING_DIR)/usr/bin:$(PATH) \
CC=$(TARGET_CC) \
NO_TCP_WRAPPER=true \
$(MAKE) -C $(PORTMAP_PATH) \
LDFLAGS=-fPIE
$(TARGET_CONFIGURE_OPTS) LD=i386-linux-uclibc-gcc
$(TARGET_CONFIGURE_OPTS) LD=x86_64-linux-uclibc-gcc
install:
install: $(PORTMAP_PATH)/portmap
install -m 755 $(PORTMAP_PATH)/portmap $(TARGET_PATH)/sbin
install -m 755 $(PORTMAP_PATH)/pmap_dump $(TARGET_PATH)/sbin
install -m 755 $(PORTMAP_PATH)/pmap_set $(TARGET_PATH)/sbin
......
......@@ -37,8 +37,8 @@ $(SUDO_PATH)/.config-stamp: $(SUDO_PATH)/.patch-stamp
PATH=$(STAGING_DIR)/usr/bin:$(PATH) \
$(HOST_CONFIGURE_OPTS) \
./configure \
--target=i386-linux-uclibc \
--host=i386-linux-uclibc \
--target=x86_64-linux-uclibc \
--host=x86_64-linux-uclibc \
--build=x86_64-linux-gnu \
--prefix=/usr \
--exec-prefix=/usr \
......@@ -69,7 +69,7 @@ $(SUDO_PATH)/sudo: $(SUDO_PATH)/.config-stamp
PATH=$(STAGING_DIR)/usr/bin:$(PATH) \
CC=$(TARGET_CC) \
$(MAKE) -C $(SUDO_PATH) \
$(TARGET_CONFIGURE_OPTS) LD=i386-linux-uclibc-gcc
$(TARGET_CONFIGURE_OPTS) LD=x86_64-linux-uclibc-gcc
touch $@
$(TARGET_PATH)/usr/bin/sudo: $(SUDO_PATH)/sudo
......
......@@ -12,3 +12,6 @@ install:
mkdir -p $(TARGET_PATH)
cp -dpR $(TEMPLATE_PATH)/* $(TARGET_PATH)
find $(TARGET_PATH) -type d -name CVS | xargs rm -rf
mkdir -p $(TARGET_PATH)/root/.ssh
mkdir -p $(TARGET_PATH)/var/tmp
mkdir -p $(TARGET_PATH)/tmp
......@@ -10,7 +10,7 @@
# TARGET_frv is not set
# TARGET_h8300 is not set
# TARGET_hppa is not set
TARGET_i386=y
# TARGET_i386 is not set
# TARGET_i960 is not set
# TARGET_ia64 is not set
# TARGET_m68k is not set
......@@ -24,12 +24,12 @@ TARGET_i386=y
# TARGET_sparc is not set
# TARGET_v850 is not set
# TARGET_vax is not set
# TARGET_x86_64 is not set
TARGET_x86_64=y
#
# Target Architecture Features and Options
#
TARGET_ARCH="i386"
TARGET_ARCH="x86_64"
FORCE_OPTIONS_FOR_ARCH=y
TARGET_SUBARCH=""
......@@ -46,7 +46,7 @@ ARCH_USE_MMU=y
UCLIBC_HAS_FLOATS=y
UCLIBC_HAS_FPU=y
DO_C99_MATH=y
KERNEL_HEADERS="/mnt2/dev/mfs/buildroot/toolchain_build_i386/linux/include"
KERNEL_HEADERS="/mnt2/dev/mfs/buildroot/toolchain_build_x86_64/linux/include"
HAVE_DOT_CONFIG=y
#
......@@ -180,7 +180,7 @@ UCLIBC_BUILD_NOW=y
#
# uClibc development/debugging options
#
CROSS_COMPILER_PREFIX="/mnt2/dev/mfs/buildroot/build_i386/staging_dir/usr/bin/i386-linux-uclibc-"
CROSS_COMPILER_PREFIX="/mnt2/dev/mfs/buildroot/build_x86_64/staging_dir/usr/bin/x86_64-linux-uclibc-"
UCLIBC_EXTRA_CFLAGS=""
# DODEBUG is not set
# DODEBUG_PT is not set
......
......@@ -37,8 +37,8 @@ $(WGET_PATH)/.config-stamp: $(WGET_PATH)/.patch-stamp
PATH=$(STAGING_DIR)/usr/bin:$(PATH) \
$(HOST_CONFIGURE_OPTS) \
./configure \
--target=i386-linux-uclibc \
--host=i386-linux-uclibc \
--target=x86_64-linux-uclibc \
--host=x86_64-linux-uclibc \
--build=x86_64-linux-gnu \
--prefix=/usr \
--exec-prefix=/usr \
......@@ -58,11 +58,11 @@ $(WGET_PATH)/.config-stamp: $(WGET_PATH)/.patch-stamp
#--enable-elf-shlibs \
$(WGET_PATH)/wget: $(WGET_PATH)/.config-stamp
$(WGET_PATH)/src/wget: $(WGET_PATH)/.config-stamp
PATH=$(STAGING_DIR)/usr/bin:$(PATH) \
CC=$(TARGET_CC) \
$(MAKE) -C $(WGET_PATH) \
$(TARGET_CONFIGURE_OPTS) LD=i386-linux-uclibc-gcc
$(TARGET_CONFIGURE_OPTS) LD=x86_64-linux-uclibc-gcc
touch $@
$(TARGET_PATH)/usr/bin/wget: $(WGET_PATH)/src/wget
......
......@@ -43,7 +43,7 @@ $(ZLIB_PATH)/.patch-stamp: $(ZLIB_PATH)/.extract-stamp
$(ZLIB_PATH)/.config-stamp: $(ZLIB_PATH)/.patch-stamp
rm -f $(ZLIB_PATH)/config.cache
cd $(ZLIB_PATH); \
$(HOST_CONFIGURE_OPTS) CC=i386-linux-uclibc-gcc \
$(HOST_CONFIGURE_OPTS) CC=x86_64-linux-uclibc-gcc \
CFLAGS="$(ZLIB_CFLAGS)" \
./configure --prefix=/usr \
--exec_prefix=$(STAGING_DIR)/usr/bin \
......
......@@ -9,12 +9,13 @@ TEMPLATE_PATH = $(TOPDIR)/target_template
TARGET_INITRAMFS = $(TOPDIR)/target.cpio.gz
FAKEROOT_ENVIRONMENT = $(TOPDIR)/$(BUILD)_fs_fakeroot.env
TARGET_CC = i386-linux-uclibc-gcc
TARGET_CFLAGS = -Os -mtune=i386 -march=i386
TARGET_CC = x86_64-linux-uclibc-gcc
#TARGET_CFLAGS = -Os -mtune=nocona -march=x86_64
TARGET_CFLAGS = -Os
TARGET_MODULES = uclibc-install-target zlib-install-target busybox-install dropbear-install linux-modules-install openssl-install-target kexec-install tmcc-install imagezip-install frisbee-install e2fsprogs-install
BUILDROOT_PATH = $(TOPDIR)/buildroot
STAGING_DIR = $(BUILDROOT_PATH)/build_i386/staging_dir/
STAGING_DIR = $(BUILDROOT_PATH)/build_x86_64/staging_dir/
#HOSTMAKE=make
#HOSTAR=ar
......@@ -26,9 +27,9 @@ STAGING_DIR = $(BUILDROOT_PATH)/build_i386/staging_dir/
#TOOLCHAIN_PATH="$(STAGING_DIR)/bin:$(STAGING_DIR)/usr/bin:$(PATH)"
CROSS_COMPILER_PREFIX=i386-linux-uclibc-
CROSS_COMPILER_PREFIX=x86_64-linux-uclibc-
STRIPCMD=$(STAGING_DIR)/usr/bin/$(CROSS_COMPILER_PREFIX)strip
#CC=$(STAGING_DIR)/usr/bin/i386-linux-uclibc-gcc -Os -I$(STAGING_DIR)/usr/include -I$(STAGING_DIR)/include --sysroot=$(STAGING_DIR)/ -isysroot $(STAGING_DIR) -mtune=i386 -march=i386
#CC=$(STAGING_DIR)/usr/bin/x86_64-linux-uclibc-gcc -Os -I$(STAGING_DIR)/usr/include -I$(STAGING_DIR)/include --sysroot=$(STAGING_DIR)/ -isysroot $(STAGING_DIR) -mtune=x86_64 -march=x86_64
# Hack for building uClibc -- it can't handle parallel make processes.
#MAKE1:=$(HOSTMAKE) MAKE="$(firstword $(HOSTMAKE)) -j1"
......
......@@ -48,7 +48,7 @@ endif
ifdef WITH_NTFS
FSOBJS += ntfs/ntfs_glue.o
FSLIBS += ntfs/libntfs/libntfs.a
CFLAGS += -DWITH_NTFS -Intfs/libntfs/ntfsprogs-1.7.1.linux/include
CFLAGS += -DWITH_NTFS -DOLD_LIBNTFS -Intfs/libntfs/ntfsprogs-1.7.1.linux/include
endif
all: imagezip imageunzip imagedump
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment