generate ARCH name instead of coding it
Signed-off-by: Juan Quintela <quintela@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
This commit is contained in:
parent
d80438aad5
commit
16dbd14f19
55
configure
vendored
55
configure
vendored
@ -1496,78 +1496,65 @@ echo "PTHREADLIBS=$PTHREADLIBS" >> $config_mak
|
|||||||
echo "CLOCKLIBS=$CLOCKLIBS" >> $config_mak
|
echo "CLOCKLIBS=$CLOCKLIBS" >> $config_mak
|
||||||
case "$cpu" in
|
case "$cpu" in
|
||||||
i386)
|
i386)
|
||||||
echo "ARCH=i386" >> $config_mak
|
ARCH=i386
|
||||||
echo "#define HOST_I386 1" >> $config_h
|
|
||||||
;;
|
;;
|
||||||
x86_64)
|
x86_64)
|
||||||
echo "ARCH=x86_64" >> $config_mak
|
ARCH=x86_64
|
||||||
echo "#define HOST_X86_64 1" >> $config_h
|
|
||||||
;;
|
;;
|
||||||
alpha)
|
alpha)
|
||||||
echo "ARCH=alpha" >> $config_mak
|
ARCH=alpha
|
||||||
echo "#define HOST_ALPHA 1" >> $config_h
|
|
||||||
;;
|
;;
|
||||||
armv4b)
|
armv4b)
|
||||||
echo "ARCH=arm" >> $config_mak
|
ARCH=arm
|
||||||
echo "#define HOST_ARM 1" >> $config_h
|
|
||||||
;;
|
;;
|
||||||
armv4l)
|
armv4l)
|
||||||
echo "ARCH=arm" >> $config_mak
|
ARCH=arm
|
||||||
echo "#define HOST_ARM 1" >> $config_h
|
|
||||||
;;
|
;;
|
||||||
cris)
|
cris)
|
||||||
echo "ARCH=cris" >> $config_mak
|
ARCH=cris
|
||||||
echo "#define HOST_CRIS 1" >> $config_h
|
|
||||||
;;
|
;;
|
||||||
hppa)
|
hppa)
|
||||||
echo "ARCH=hppa" >> $config_mak
|
ARCH=hppa
|
||||||
echo "#define HOST_HPPA 1" >> $config_h
|
|
||||||
;;
|
;;
|
||||||
ia64)
|
ia64)
|
||||||
echo "ARCH=ia64" >> $config_mak
|
ARCH=ia64
|
||||||
echo "#define HOST_IA64 1" >> $config_h
|
|
||||||
;;
|
;;
|
||||||
m68k)
|
m68k)
|
||||||
echo "ARCH=m68k" >> $config_mak
|
ARCH=m68k
|
||||||
echo "#define HOST_M68K 1" >> $config_h
|
|
||||||
;;
|
;;
|
||||||
microblaze)
|
microblaze)
|
||||||
echo "ARCH=microblaze" >> $config_mak
|
ARCH=microblaze
|
||||||
echo "#define HOST_MICROBLAZE 1" >> $config_h
|
|
||||||
;;
|
;;
|
||||||
mips)
|
mips)
|
||||||
echo "ARCH=mips" >> $config_mak
|
ARCH=mips
|
||||||
echo "#define HOST_MIPS 1" >> $config_h
|
|
||||||
;;
|
;;
|
||||||
mips64)
|
mips64)
|
||||||
echo "ARCH=mips64" >> $config_mak
|
ARCH=mips64
|
||||||
echo "#define HOST_MIPS64 1" >> $config_h
|
|
||||||
;;
|
;;
|
||||||
ppc)
|
ppc)
|
||||||
echo "ARCH=ppc" >> $config_mak
|
ARCH=ppc
|
||||||
echo "#define HOST_PPC 1" >> $config_h
|
|
||||||
;;
|
;;
|
||||||
ppc64)
|
ppc64)
|
||||||
echo "ARCH=ppc64" >> $config_mak
|
ARCH=ppc64
|
||||||
echo "#define HOST_PPC64 1" >> $config_h
|
|
||||||
;;
|
;;
|
||||||
s390)
|
s390)
|
||||||
echo "ARCH=s390" >> $config_mak
|
ARCH=s390
|
||||||
echo "#define HOST_S390 1" >> $config_h
|
|
||||||
;;
|
;;
|
||||||
sparc)
|
sparc)
|
||||||
echo "ARCH=sparc" >> $config_mak
|
ARCH=sparc
|
||||||
echo "#define HOST_SPARC 1" >> $config_h
|
|
||||||
;;
|
;;
|
||||||
sparc64)
|
sparc64)
|
||||||
echo "ARCH=sparc64" >> $config_mak
|
ARCH=sparc64
|
||||||
echo "#define HOST_SPARC64 1" >> $config_h
|
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
echo "Unsupported CPU = $cpu"
|
echo "Unsupported CPU = $cpu"
|
||||||
exit 1
|
exit 1
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
echo "ARCH=$ARCH" >> $config_mak
|
||||||
|
arch_name=`echo $ARCH | tr '[:lower:]' '[:upper:]'`
|
||||||
|
echo "#define HOST_$arch_name 1" >> $config_h
|
||||||
|
|
||||||
if test "$debug_tcg" = "yes" ; then
|
if test "$debug_tcg" = "yes" ; then
|
||||||
echo "#define DEBUG_TCG 1" >> $config_h
|
echo "#define DEBUG_TCG 1" >> $config_h
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user