Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
qemu
提交
add16157
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看板
提交
add16157
编写于
9月 27, 2009
作者:
B
Blue Swirl
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Compile some user files only once for all targets
Signed-off-by:
N
Blue Swirl
<
blauwirbel@gmail.com
>
上级
a4b18c6d
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
43 addition
and
18 deletion
+43
-18
Makefile
Makefile
+7
-2
Makefile.target
Makefile.target
+4
-16
Makefile.user
Makefile.user
+27
-0
configure
configure
+5
-0
未找到文件。
Makefile
浏览文件 @
add16157
...
...
@@ -40,6 +40,11 @@ subdir-%:
$(filter %-softmmu,$(SUBDIR_RULES))
:
libqemu_common.a
$(filter %-user,$(SUBDIR_RULES))
:
libuser.a
libuser.a
:
$(
call
quiet-command,
$(MAKE)
$(SUBDIR_MAKEFLAGS)
-C
libuser
V
=
"
$(V)
"
TARGET_DIR
=
"
$*
/"
all,
)
ROMSUBDIR_RULES
=
$(
patsubst
%,romsubdir-%,
$(ROMS)
)
romsubdir-%
:
$(
call
quiet-command,
$(MAKE)
$(SUBDIR_MAKEFLAGS)
-C
pc-bios/
$*
V
=
"
$(V)
"
TARGET_DIR
=
"
$*
/"
,
)
...
...
@@ -185,14 +190,14 @@ clean:
rm
-f
slirp/*.o
slirp/*.d
audio/*.o
audio/*.d
block/*.o
block/*.d
rm
-f
qemu-img-cmds.h
$(MAKE)
-C
tests
clean
for
d
in
$(ALL_SUBDIRS)
libhw32
libhw64;
do
\
for
d
in
$(ALL_SUBDIRS)
libhw32
libhw64
libuser
;
do
\
$(MAKE)
-C
$$d
$@
||
exit
1
;
\
done
distclean
:
clean
rm
-f
config-host.mak config-host.h config-host.ld
$(DOCS)
qemu-options.texi qemu-img-cmds.texi
rm
-f
qemu-
{
doc,tech
}
.
{
info,aux,cp,dvi,fn,info,ky,log,pg,toc,tp,vr
}
for
d
in
$(TARGET_DIRS)
libhw32 libhw64
;
do
\
for
d
in
$(TARGET_DIRS)
libhw32 libhw64
libuser
;
do
\
rm
-rf
$$
d
||
exit
1
;
\
done
...
...
Makefile.target
浏览文件 @
add16157
...
...
@@ -82,7 +82,6 @@ VPATH+=:$(SRC_PATH)/linux-user:$(SRC_PATH)/linux-user/$(TARGET_ABI_DIR)
QEMU_CFLAGS
+=
-I
$(SRC_PATH)
/linux-user
-I
$(SRC_PATH)
/linux-user/
$(TARGET_ABI_DIR)
obj-y
=
main.o syscall.o strace.o mmap.o signal.o thunk.o
\
elfload.o linuxload.o uaccess.o gdbstub.o gdbstub-xml.o
obj-y
+=
envlist.o path.o
obj-$(TARGET_HAS_BFLT)
+=
flatload.o
obj-$(TARGET_HAS_ELFLOAD32)
+=
elfload32.o
...
...
@@ -98,7 +97,8 @@ obj-arm-y += arm-semi.o
obj-m68k-y
+=
m68k-sim.o m68k-semi.o
ARLIBS
=
libqemu.a
ARLIBS
=
../libuser/libuser.a libqemu.a
endif
#CONFIG_LINUX_USER
#########################################################
...
...
@@ -116,11 +116,10 @@ LIBS+=-lmx
obj-y
=
main.o commpage.o machload.o mmap.o signal.o syscall.o thunk.o
\
gdbstub.o gdbstub-xml.o
obj-y
+=
envlist.o path.o
obj-i386-y
+=
ioport-user.o
ARLIBS
=
libqemu.a
ARLIBS
=
../libuser/libuser.a
libqemu.a
endif
#CONFIG_DARWIN_USER
...
...
@@ -134,24 +133,13 @@ QEMU_CFLAGS+=-I$(SRC_PATH)/bsd-user -I$(SRC_PATH)/bsd-user/$(TARGET_ARCH)
obj-y
=
main.o bsdload.o elfload.o mmap.o signal.o strace.o syscall.o
\
gdbstub.o gdbstub-xml.o uaccess.o
obj-y
+=
envlist.o path.o
obj-i386-y
+=
ioport-user.o
ARLIBS
=
libqemu.a
ARLIBS
=
../libuser/libuser.a
libqemu.a
endif
#CONFIG_BSD_USER
ifdef
CONFIG_USER_ONLY
# hack to compile with -fpie for *-user targets
obj-y
+=
tcg-runtime-user.o host-utils-user.o
obj-y
+=
cutils-user.o cache-utils-user.o
tcg-runtime-user.c host-utils-user.c cutils-user.c cache-utils-user.c
:
@
echo
" LN
$(TARGET_DIR)$@
"
@
ln
-s
$(SRC_PATH)
/
$
(
@:%-user.c
=
%.c
)
$@
endif
#########################################################
# System emulator target
ifdef
CONFIG_SOFTMMU
...
...
Makefile.user
0 → 100644
浏览文件 @
add16157
# Makefile for qemu target independent user files.
include
../config-host.mak
include
$(SRC_PATH)/rules.mak
.PHONY
:
all
VPATH
=
$(SRC_PATH)
QEMU_CFLAGS
+=
-I
..
obj-y
=
obj-y
+=
envlist.o path.o
obj-y
+=
tcg-runtime.o host-utils.o
obj-y
+=
cutils.o cache-utils.o
all
:
libuser.a
# Dummy command so that make thinks it has done something
@true
libuser.a
:
$(obj-y)
clean
:
rm
-f
*
.o
*
.d
*
.a
*
~
# Include automatically generated dependency files
-include
$(wildcard *.d */*.d)
configure
浏览文件 @
add16157
...
...
@@ -2489,3 +2489,8 @@ for hwlib in 32 64; do
echo
"HWLIB=libqemuhw
$hwlib
.a"
>
$d
/config.mak
echo
"QEMU_CFLAGS+=-DTARGET_PHYS_ADDR_BITS=
$hwlib
"
>>
$d
/config.mak
done
d
=
libuser
mkdir
-p
$d
rm
-f
$d
/Makefile
ln
-s
$source_path
/Makefile.user
$d
/Makefile
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录