mirror of
https://gitlab.com/qemu-project/openbios.git
synced 2024-02-13 08:34:06 +08:00
Fix crosscflags for x86_64 and ppc cases, remove r251 hack, closes ticket #7
git-svn-id: svn://coreboot.org/openbios/openbios-devel@263 f158a5a8-5612-0410-a976-696ce0be7e32
This commit is contained in:
@@ -9,7 +9,7 @@
|
|||||||
ARCH := ppc
|
ARCH := ppc
|
||||||
ODIR := obj-$(ARCH)
|
ODIR := obj-$(ARCH)
|
||||||
HOSTCC := gcc
|
HOSTCC := gcc
|
||||||
HOSTCFLAGS := -Os -Wall -W -DFCOMPILER -DBOOTSTRAP $(CROSSCFLAGS) -DSWAP_ENDIANNESS
|
HOSTCFLAGS := -Os -Wall -W -DFCOMPILER -DBOOTSTRAP $(CROSSCFLAGS)
|
||||||
HOSTINCLUDES := -Iinclude -Ikernel/include -I$(ODIR)/target/include
|
HOSTINCLUDES := -Iinclude -Ikernel/include -I$(ODIR)/target/include
|
||||||
#
|
#
|
||||||
# MOLPATH is needed if you want to build openbios-mol.elf
|
# MOLPATH is needed if you want to build openbios-mol.elf
|
||||||
|
|||||||
@@ -3,7 +3,8 @@
|
|||||||
host=$1
|
host=$1
|
||||||
target=$2
|
target=$2
|
||||||
|
|
||||||
if test "$host" = "powerpc" -o "$host" = "mips" -o "$host" = "s390" \
|
if test "$host" = "powerpc" -o "$host" = "ppc" \
|
||||||
|
-o "$host" = "mips" -o "$host" = "s390" \
|
||||||
-o "$host" = "sparc32" -o "$host" = "sparc64" \
|
-o "$host" = "sparc32" -o "$host" = "sparc64" \
|
||||||
-o "$host" = "m68k" -o "$host" = "armv4b"; then
|
-o "$host" = "m68k" -o "$host" = "armv4b"; then
|
||||||
hostbigendian="yes"
|
hostbigendian="yes"
|
||||||
@@ -13,13 +14,15 @@ fi
|
|||||||
|
|
||||||
# host long bits test
|
# host long bits test
|
||||||
if test "$host" = "sparc64" -o "$host" = "ia64" \
|
if test "$host" = "sparc64" -o "$host" = "ia64" \
|
||||||
-o "$host" = "amd64" -o "$host" = "alpha"; then
|
-o "$host" = "amd64" -o "$host" = "x86_64" \
|
||||||
|
-o "$host" = "alpha"; then
|
||||||
hostlongbits="64"
|
hostlongbits="64"
|
||||||
else
|
else
|
||||||
hostlongbits="32"
|
hostlongbits="32"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if test "$target" = "powerpc" -o "$target" = "mips" -o "$target" = "s390" \
|
if test "$target" = "powerpc" -o "$target" = "ppc" \
|
||||||
|
-o "$target" = "mips" -o "$target" = "s390" \
|
||||||
-o "$target" = "sparc32" -o "$target" = "sparc64" \
|
-o "$target" = "sparc32" -o "$target" = "sparc64" \
|
||||||
-o "$target" = "m68k" -o "$target" = "armv4b"; then
|
-o "$target" = "m68k" -o "$target" = "armv4b"; then
|
||||||
targetbigendian="yes"
|
targetbigendian="yes"
|
||||||
@@ -29,7 +32,8 @@ fi
|
|||||||
|
|
||||||
# target long bits test
|
# target long bits test
|
||||||
if test "$target" = "sparc64" -o "$target" = "ia64" \
|
if test "$target" = "sparc64" -o "$target" = "ia64" \
|
||||||
-o "$target" = "amd64" -o "$target" = "alpha"; then
|
-o "$target" = "amd64" -o "target" = "x86_64" \
|
||||||
|
-o "$target" = "alpha"; then
|
||||||
targetlongbits="64"
|
targetlongbits="64"
|
||||||
else
|
else
|
||||||
targetlongbits="32"
|
targetlongbits="32"
|
||||||
|
|||||||
Reference in New Issue
Block a user