Message ID | 20190607135430.22149-7-kwolf@redhat.com |
---|---|
State | New |
Headers | show |
Series | monitor: Split monitor.c in core/HMP/QMP/misc | expand |
* Kevin Wolf (kwolf@redhat.com) wrote: > Create a new monitor/ subdirectory and move monitor.c there. As the plan > is to move the monitor core into separate files, use the chance to > rename it to misc.c. > > Signed-off-by: Kevin Wolf <kwolf@redhat.com> > --- > monitor.c => monitor/misc.c | 0 > Makefile.target | 3 ++- > monitor/Makefile.objs | 1 + This patch should probably also create monitor/trace-events and move those events with it. Dave > 3 files changed, 3 insertions(+), 1 deletion(-) > rename monitor.c => monitor/misc.c (100%) > create mode 100644 monitor/Makefile.objs > > diff --git a/monitor.c b/monitor/misc.c > similarity index 100% > rename from monitor.c > rename to monitor/misc.c > diff --git a/Makefile.target b/Makefile.target > index ecd856e3a3..72c267f7dc 100644 > --- a/Makefile.target > +++ b/Makefile.target > @@ -148,9 +148,10 @@ endif #CONFIG_BSD_USER > ######################################################### > # System emulator target > ifdef CONFIG_SOFTMMU > -obj-y += arch_init.o cpus.o monitor.o gdbstub.o balloon.o ioport.o numa.o > +obj-y += arch_init.o cpus.o gdbstub.o balloon.o ioport.o numa.o > obj-y += qtest.o > obj-y += hw/ > +obj-y += monitor/ > obj-y += qapi/ > obj-y += memory.o > obj-y += memory_mapping.o > diff --git a/monitor/Makefile.objs b/monitor/Makefile.objs > new file mode 100644 > index 0000000000..e783b0616b > --- /dev/null > +++ b/monitor/Makefile.objs > @@ -0,0 +1 @@ > +obj-y += misc.o > -- > 2.20.1 > -- Dr. David Alan Gilbert / dgilbert@redhat.com / Manchester, UK
diff --git a/monitor.c b/monitor/misc.c similarity index 100% rename from monitor.c rename to monitor/misc.c diff --git a/Makefile.target b/Makefile.target index ecd856e3a3..72c267f7dc 100644 --- a/Makefile.target +++ b/Makefile.target @@ -148,9 +148,10 @@ endif #CONFIG_BSD_USER ######################################################### # System emulator target ifdef CONFIG_SOFTMMU -obj-y += arch_init.o cpus.o monitor.o gdbstub.o balloon.o ioport.o numa.o +obj-y += arch_init.o cpus.o gdbstub.o balloon.o ioport.o numa.o obj-y += qtest.o obj-y += hw/ +obj-y += monitor/ obj-y += qapi/ obj-y += memory.o obj-y += memory_mapping.o diff --git a/monitor/Makefile.objs b/monitor/Makefile.objs new file mode 100644 index 0000000000..e783b0616b --- /dev/null +++ b/monitor/Makefile.objs @@ -0,0 +1 @@ +obj-y += misc.o
Create a new monitor/ subdirectory and move monitor.c there. As the plan is to move the monitor core into separate files, use the chance to rename it to misc.c. Signed-off-by: Kevin Wolf <kwolf@redhat.com> --- monitor.c => monitor/misc.c | 0 Makefile.target | 3 ++- monitor/Makefile.objs | 1 + 3 files changed, 3 insertions(+), 1 deletion(-) rename monitor.c => monitor/misc.c (100%) create mode 100644 monitor/Makefile.objs