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

move cpu command line setting to the beggining

Signed-off-by: NJuan Quintela <quintela@redhat.com>
Signed-off-by: NAnthony Liguori <aliguori@us.ibm.com>
Message-Id: 
上级 d2ac582c
......@@ -21,6 +21,7 @@ TMPSDLLOG="${TMPDIR1}/qemu-conf-sdl-$$-${RANDOM}.log"
trap "rm -f $TMPC $TMPO $TMPE $TMPS $TMPI $TMPSDLLOG; exit" 0 2 3 15
# default parameters
cpu=""
prefix=""
interp_prefix="/usr/gnemul/qemu-%M"
static="no"
......@@ -44,6 +45,8 @@ for opt do
;;
--cc=*) cc="$optarg"
;;
--cpu=*) cpu="$optarg"
;;
esac
done
......@@ -78,7 +81,10 @@ EOF
$cc $CFLAGS -c -o $TMPO $TMPC > /dev/null 2> /dev/null
}
if check_define __i386__ ; then
if test ! -z "$cpu" ; then
# command line argument
:
elif check_define __i386__ ; then
cpu="i386"
elif check_define __x86_64__ ; then
cpu="x86_64"
......@@ -386,7 +392,7 @@ for opt do
;;
--extra-ldflags=*) EXTRA_LDFLAGS="$optarg"
;;
--cpu=*) cpu="$optarg"
--cpu=*)
;;
--target-list=*) target_list="$optarg"
;;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册