Allow building for x86_64

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
This commit is contained in:
Michael Tremer
2015-08-22 12:24:20 +02:00
parent ee732b26aa
commit fc155193bd
3 changed files with 20 additions and 1 deletions

View File

@@ -63,7 +63,12 @@ $(TARGET) :
# Symlink /var/run -> /run.
ln -svf ../run /var/run
ifeq "$(MACHINE)" "x86_64"
ln -svf lib /lib64
ln -svf lib /usr/lib64
endif
# Symlinks
# for this reason, stage2 rebuild will broke the iso:perl, grubbatch
-ln -sv /tools/bin/{bash,cat,echo,pwd,stty} /bin

View File

@@ -245,6 +245,11 @@ prepareenv() {
buildtoolchain() {
local error=false
case "${TARGET_ARCH}:${BUILD_ARCH}" in
# x86_64
x86_64:x86_64)
# This is working.
;;
# x86
i586:i586|i586:i686|i586:x86_64)
# These are working.
@@ -413,6 +418,9 @@ buildipfire() {
ipfiremake iptables
case "${TARGET_ARCH}" in
x86_64)
# No kernel, yet.
;;
i586)
# x86-pae (Native and new XEN) kernel build
ipfiremake linux KCFG="-pae"

View File

@@ -68,6 +68,12 @@ configure_target() {
fi
case "${target_arch}" in
x86_64)
BUILDTARGET="${TARGET_ARCH}-unknown-linux-gnu"
CROSSTARGET="${BUILD_ARCH}-cross-linux-gnu"
CFLAGS_ARCH="-m64 -mtune=generic"
;;
i586)
BUILDTARGET="${target_arch}-pc-linux-gnu"
CROSSTARGET="${BUILD_ARCH}-cross-linux-gnu"