Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
# Symlink /var/run -> /run.
ln -svf ../run /var/run
# 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
# Symlinks
# for this reason, stage2 rebuild will broke the iso:perl, grubbatch
-ln -sv /tools/bin/{bash,cat,echo,pwd,stty} /bin
buildtoolchain() {
local error=false
case "${TARGET_ARCH}:${BUILD_ARCH}" in
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.
# x86
i586:i586|i586:i686|i586:x86_64)
# These are working.
ipfiremake iptables
case "${TARGET_ARCH}" in
ipfiremake iptables
case "${TARGET_ARCH}" in
+ x86_64)
+ # No kernel, yet.
+ ;;
i586)
# x86-pae (Native and new XEN) kernel build
ipfiremake linux KCFG="-pae"
i586)
# x86-pae (Native and new XEN) kernel build
ipfiremake linux KCFG="-pae"
fi
case "${target_arch}" in
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"
i586)
BUILDTARGET="${target_arch}-pc-linux-gnu"
CROSSTARGET="${BUILD_ARCH}-cross-linux-gnu"