[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH 5/5] boards: move all machine type functions to
From: |
Andreas Färber |
Subject: |
Re: [Qemu-devel] [PATCH 5/5] boards: move all machine type functions to boards.c |
Date: |
Fri, 24 Feb 2012 16:10:17 +0100 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:10.0.1) Gecko/20120208 Thunderbird/10.0.1 |
Am 24.02.2012 15:13, schrieb Luiz Capitulino:
> The license text is the same as used in vl.c. Also note that it's
> necessary to make machine_parse() public.
>
> Signed-off-by: Luiz Capitulino <address@hidden>
> ---
> Makefile.target | 3 +-
> hw/boards.c | 86
> +++++++++++++++++++++++++++++++++++++++++++++++++++++++
> hw/boards.h | 1 +
> vl.c | 65 -----------------------------------------
> 4 files changed, 89 insertions(+), 66 deletions(-)
> create mode 100644 hw/boards.c
In anticipation of a "board" class derived from "container" I would
rather have the file name match the class name, i.e. board.c.
Unfortunately boards.h is used in quite a lot of places already, but
when we QOM'ify it we might want to move it to include/qemu so all users
would need to be touched anyway.
> diff --git a/Makefile.target b/Makefile.target
> index d5eb70d..dc76eba 100644
> --- a/Makefile.target
> +++ b/Makefile.target
> @@ -195,7 +195,8 @@ endif #CONFIG_BSD_USER
> # System emulator target
> ifdef CONFIG_SOFTMMU
>
> -obj-y = arch_init.o cpus.o monitor.o machine.o gdbstub.o balloon.o ioport.o
> +obj-y = arch_init.o cpus.o monitor.o machine.o gdbstub.o balloon.o ioport.o \
> + boards.o
Please use obj-y += ... instead of the line break.
Otherwise looks okay.
Andreas
--
SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 Nürnberg, Germany
GF: Jeff Hawn, Jennifer Guild, Felix Imendörffer; HRB 16746 AG Nürnberg
- Re: [Qemu-devel] [PATCH 2/5] boards: rename machine type functions, (continued)
[Qemu-devel] [PATCH 4/5] boards: switch machine type list to QTAILQ, Luiz Capitulino, 2012/02/24
[Qemu-devel] [PATCH 5/5] boards: move all machine type functions to boards.c, Luiz Capitulino, 2012/02/24
- Re: [Qemu-devel] [PATCH 5/5] boards: move all machine type functions to boards.c,
Andreas Färber <=
Re: [Qemu-devel] [PATCH 0/5]: Improve machine type functions, Anthony Liguori, 2012/02/24