mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-09 18:45:54 +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.
|
||||
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
|
||||
|
||||
8
make.sh
8
make.sh
@@ -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"
|
||||
|
||||
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user