mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-27 19:23:24 +02:00
Allow building for x86_64
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
This commit is contained in:
@@ -63,7 +63,12 @@ $(TARGET) :
|
|||||||
|
|
||||||
# Symlink /var/run -> /run.
|
# Symlink /var/run -> /run.
|
||||||
ln -svf ../run /var/run
|
ln -svf ../run /var/run
|
||||||
|
|
||||||
|
ifeq "$(MACHINE)" "x86_64"
|
||||||
|
ln -svf lib /lib64
|
||||||
|
ln -svf lib /usr/lib64
|
||||||
|
endif
|
||||||
|
|
||||||
# Symlinks
|
# Symlinks
|
||||||
# for this reason, stage2 rebuild will broke the iso:perl, grubbatch
|
# for this reason, stage2 rebuild will broke the iso:perl, grubbatch
|
||||||
-ln -sv /tools/bin/{bash,cat,echo,pwd,stty} /bin
|
-ln -sv /tools/bin/{bash,cat,echo,pwd,stty} /bin
|
||||||
|
|||||||
8
make.sh
8
make.sh
@@ -245,6 +245,11 @@ prepareenv() {
|
|||||||
buildtoolchain() {
|
buildtoolchain() {
|
||||||
local error=false
|
local error=false
|
||||||
case "${TARGET_ARCH}:${BUILD_ARCH}" in
|
case "${TARGET_ARCH}:${BUILD_ARCH}" in
|
||||||
|
# x86_64
|
||||||
|
x86_64:x86_64)
|
||||||
|
# This is working.
|
||||||
|
;;
|
||||||
|
|
||||||
# x86
|
# x86
|
||||||
i586:i586|i586:i686|i586:x86_64)
|
i586:i586|i586:i686|i586:x86_64)
|
||||||
# These are working.
|
# These are working.
|
||||||
@@ -413,6 +418,9 @@ buildipfire() {
|
|||||||
ipfiremake iptables
|
ipfiremake iptables
|
||||||
|
|
||||||
case "${TARGET_ARCH}" in
|
case "${TARGET_ARCH}" in
|
||||||
|
x86_64)
|
||||||
|
# No kernel, yet.
|
||||||
|
;;
|
||||||
i586)
|
i586)
|
||||||
# x86-pae (Native and new XEN) kernel build
|
# x86-pae (Native and new XEN) kernel build
|
||||||
ipfiremake linux KCFG="-pae"
|
ipfiremake linux KCFG="-pae"
|
||||||
|
|||||||
@@ -68,6 +68,12 @@ configure_target() {
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
case "${target_arch}" in
|
case "${target_arch}" in
|
||||||
|
x86_64)
|
||||||
|
BUILDTARGET="${TARGET_ARCH}-unknown-linux-gnu"
|
||||||
|
CROSSTARGET="${BUILD_ARCH}-cross-linux-gnu"
|
||||||
|
CFLAGS_ARCH="-m64 -mtune=generic"
|
||||||
|
;;
|
||||||
|
|
||||||
i586)
|
i586)
|
||||||
BUILDTARGET="${target_arch}-pc-linux-gnu"
|
BUILDTARGET="${target_arch}-pc-linux-gnu"
|
||||||
CROSSTARGET="${BUILD_ARCH}-cross-linux-gnu"
|
CROSSTARGET="${BUILD_ARCH}-cross-linux-gnu"
|
||||||
|
|||||||
Reference in New Issue
Block a user