提交 e0da9dd3 编写于 作者: J Juan Quintela 提交者: Anthony Liguori

Refactor common code using a list

Signed-off-by: NJuan Quintela <quintela@redhat.com>
Signed-off-by: NAnthony Liguori <aliguori@us.ibm.com>
上级 16dbd14f
......@@ -1495,57 +1495,12 @@ echo "EXESUF=$EXESUF" >> $config_mak
echo "PTHREADLIBS=$PTHREADLIBS" >> $config_mak
echo "CLOCKLIBS=$CLOCKLIBS" >> $config_mak
case "$cpu" in
i386)
ARCH=i386
;;
x86_64)
ARCH=x86_64
;;
alpha)
ARCH=alpha
;;
armv4b)
ARCH=arm
i386|x86_64|alpha|cris|hppa|ia64|m68k|microbaze|mips|mips64|ppc|ppc64|s390|sparc|sparc64)
ARCH=$cpu
;;
armv4l)
armv4b|arm4l)
ARCH=arm
;;
cris)
ARCH=cris
;;
hppa)
ARCH=hppa
;;
ia64)
ARCH=ia64
;;
m68k)
ARCH=m68k
;;
microblaze)
ARCH=microblaze
;;
mips)
ARCH=mips
;;
mips64)
ARCH=mips64
;;
ppc)
ARCH=ppc
;;
ppc64)
ARCH=ppc64
;;
s390)
ARCH=s390
;;
sparc)
ARCH=sparc
;;
sparc64)
ARCH=sparc64
;;
*)
echo "Unsupported CPU = $cpu"
exit 1
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册