[PATCH v9 02/23] softmmu: move vl.c to softmmu/

Alexander Bulekov posted 23 patches 5 years, 9 months ago
There is a newer version of this series
[PATCH v9 02/23] softmmu: move vl.c to softmmu/
Posted by Alexander Bulekov 5 years, 9 months ago
Signed-off-by: Alexander Bulekov <alxndr@bu.edu>
---
 Makefile.objs         | 2 --
 Makefile.target       | 1 +
 softmmu/Makefile.objs | 2 ++
 vl.c => softmmu/vl.c  | 0
 4 files changed, 3 insertions(+), 2 deletions(-)
 create mode 100644 softmmu/Makefile.objs
 rename vl.c => softmmu/vl.c (100%)

diff --git a/Makefile.objs b/Makefile.objs
index 26b9cff954..8a1cbe8000 100644
--- a/Makefile.objs
+++ b/Makefile.objs
@@ -58,8 +58,6 @@ common-obj-y += ui/
 common-obj-m += ui/
 
 common-obj-y += dma-helpers.o
-common-obj-y += vl.o
-vl.o-cflags := $(GPROF_CFLAGS) $(SDL_CFLAGS)
 common-obj-$(CONFIG_TPM) += tpm.o
 
 common-obj-y += backends/
diff --git a/Makefile.target b/Makefile.target
index 6e61f607b1..06c36d1161 100644
--- a/Makefile.target
+++ b/Makefile.target
@@ -160,6 +160,7 @@ obj-y += qapi/
 obj-y += memory.o
 obj-y += memory_mapping.o
 obj-y += migration/ram.o
+obj-y += softmmu/
 LIBS := $(libs_softmmu) $(LIBS)
 
 # Hardware support
diff --git a/softmmu/Makefile.objs b/softmmu/Makefile.objs
new file mode 100644
index 0000000000..d80a5ffe5a
--- /dev/null
+++ b/softmmu/Makefile.objs
@@ -0,0 +1,2 @@
+obj-y += vl.o
+vl.o-cflags := $(GPROF_CFLAGS) $(SDL_CFLAGS)
diff --git a/vl.c b/softmmu/vl.c
similarity index 100%
rename from vl.c
rename to softmmu/vl.c
-- 
2.25.0


Re: [PATCH v9 02/23] softmmu: move vl.c to softmmu/
Posted by Stefan Hajnoczi 5 years, 9 months ago
On Tue, Feb 11, 2020 at 03:34:49PM -0500, Alexander Bulekov wrote:
> Signed-off-by: Alexander Bulekov <alxndr@bu.edu>
> ---
>  Makefile.objs         | 2 --
>  Makefile.target       | 1 +
>  softmmu/Makefile.objs | 2 ++
>  vl.c => softmmu/vl.c  | 0
>  4 files changed, 3 insertions(+), 2 deletions(-)

Please update the ./MAINTAINERS entry for vl.c here too.

There is also a top_of_tree check in scripts/get_maintainer.pl that
needs to be updated in this commit.