Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
qemu
提交
c9ec1fe4
Q
qemu
项目概览
openeuler
/
qemu
通知
10
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
Q
qemu
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
c9ec1fe4
编写于
2月 10, 2005
作者:
B
bellard
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
kqemu support
git-svn-id:
svn://svn.savannah.nongnu.org/qemu/trunk@1278
c046a42c-6fe2-441c-8c8c-71466251a162
上级
e3086fbf
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
66 addition
and
1 deletion
+66
-1
configure
configure
+66
-1
未找到文件。
configure
浏览文件 @
c9ec1fe4
...
...
@@ -81,6 +81,8 @@ fmod="no"
fmod_lib
=
""
fmod_inc
=
""
linux
=
"no"
kqemu
=
"no"
kernel_path
=
""
# OS specific
targetos
=
`
uname
-s
`
...
...
@@ -107,6 +109,9 @@ darwin="yes"
*
)
oss
=
"yes"
linux
=
"yes"
if
[
"
$cpu
"
=
"i386"
]
;
then
kqemu
=
"yes"
fi
;;
esac
...
...
@@ -169,6 +174,10 @@ for opt do
;;
--enable-adlib
)
adlib
=
"yes"
;;
--disable-kqemu
)
kqemu
=
"no"
;;
--kernel-path
=
*
)
kernel_path
=
${
opt
#--kernel-path=
}
;;
esac
done
...
...
@@ -193,7 +202,7 @@ if test -z "$target_list" ; then
target_list
=
"i386-softmmu ppc-softmmu sparc-softmmu x86_64-softmmu sparc64-softmmu"
# the following are Linux specific
if
[
"
$linux
"
=
"yes"
]
;
then
target_list
=
"i386-user
i386
arm-user armeb-user sparc-user ppc-user sparc64-user
$target_list
"
target_list
=
"i386-user arm-user armeb-user sparc-user ppc-user sparc64-user
$target_list
"
fi
fi
...
...
@@ -300,6 +309,10 @@ echo " --interp-prefix=PREFIX where to find shared libraries, etc."
echo
" use %M for cpu name [
$interp_prefix
]"
echo
" --target-list=LIST set target list [
$target_list
]"
echo
""
echo
"kqemu kernel acceleration support:"
echo
" --disable-kqemu disable kqemu build"
echo
" --kernel-path=PATH set the kernel path (configure probes it)"
echo
""
echo
"Advanced options (experts only):"
echo
" --source-path=PATH path of source code [
$source_path
]"
echo
" --cross-prefix=PREFIX use PREFIX for compile tools [
$cross_prefix
]"
...
...
@@ -333,6 +346,40 @@ docdir="$prefix/share/doc/qemu"
bindir
=
"
$prefix
/bin"
fi
# kernel module support
if
test
$kqemu
=
"yes"
;
then
# find the kernel path
if
test
-z
"
$kernel_path
"
;
then
kernel_version
=
`
uname
-r
`
kernel_path
=
"/lib/modules/
$kernel_version
/build"
if
test
'!'
-d
"
$kernel_path
/include"
;
then
kernel_path
=
"/usr/src/linux"
if
test
'!'
-d
"
$kernel_path
/include"
;
then
echo
"Could not find kernel includes in /lib/modules or /usr/src/linux - cannot build the kqemu module"
kqemu
=
"no"
fi
fi
fi
if
test
$kqemu
=
"yes"
;
then
# test that the kernel config is present
if
test
'!'
-f
"
$kernel_path
/Makefile"
;
then
echo
"No .config file present in
$kernel_path
- kqemu cannot be built"
kqemu
=
"no"
fi
# find build system (2.6 or legacy)
kbuild26
=
"yes"
if
grep
-q
"PATCHLEVEL = 4"
$kernel_path
/Makefile
;
then
kbuild26
=
"no"
fi
fi
# kqemu
fi
# kqemu
echo
"Install prefix
$prefix
"
echo
"BIOS directory
$datadir
"
echo
"binary directory
$bindir
"
...
...
@@ -357,6 +404,17 @@ if test $fmod = "yes"; then
echo
-n
" (lib='
$fmod_lib
' include='
$fmod_inc
')"
fi
echo
""
if
test
$kqemu
=
"yes"
;
then
echo
""
echo
"KQEMU module configuration:"
echo
"kernel sources
$kernel_path
"
echo
-n
"kbuild type "
if
test
$kbuild26
=
"yes"
;
then
echo
"2.6"
else
echo
"2.4"
fi
fi
if
test
$sdl_too_old
=
"yes"
;
then
echo
"-> Your SDL version is too old - please upgrade to have FFplay/SDL support"
...
...
@@ -481,6 +539,13 @@ echo -n "#define QEMU_VERSION \"" >> $config_h
head
$source_path
/VERSION
>>
$config_h
echo
"
\"
"
>>
$config_h
if
test
$kqemu
=
"yes"
;
then
echo
"CONFIG_KQEMU=yes"
>>
$config_mak
echo
"KERNEL_PATH=
$kernel_path
"
>>
$config_mak
if
test
$kbuild26
=
"yes"
;
then
echo
"CONFIG_KBUILD26=yes"
>>
$config_mak
fi
fi
echo
"SRC_PATH=
$source_path
"
>>
$config_mak
echo
"TARGET_DIRS=
$target_list
"
>>
$config_mak
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录