Describing patchset
cover Describing patchset
This is a request-for-comments patchset on the kconfig integration. The patchset contains a 'scripts/kconfig' git submodule (PATCH 5, kconfig-frontends v3.10) with the necessary modifications in the Makefile.objs (PATCHES 6-16).
It also contains the Kconfig files themselves (PATCHES 17-45) for the devices and boards. At the time I only included ARM, which is works nicely.
The main Kconfig file includes the devices' Kconfig file (hw/Kconfig) and the Kconfig.targets which is generated by the configure script, according to '--target-list'.
At the time the patchset does not contain any way to build binaries with the new configuration, but it can be 'imitated' with a single 'include ../.config' line in the target's *-softmmu/config-devices.mak or default-configs/*-softmmu.mak.
PATCH 1/47 rules.mak: New logical functions
lnot, land, lor, lif, eq, ne, isempty, notempty functions added Example usage:
obj-$(call lor,$(CONFIG_LINUX),$(CONFIG_BSD)) += feature.o
--- rules.mak | 16 ++++++++++++++++ 1 file changed, 16 insertions(+)
rules.mak +16 -0
@@ -106,6 +106,22 @@ clean: clean-timestamp obj := . old-nested-dirs := +# Logical functions +lnot = $(if $(subst n,,$1),n,y) + +land-yy = y +land = $(land-$1$2) + +lor = $(if $(subst $2,,$1)$(subst $1,,$2),n,y) + +lif = $(if $(subst n,,$1),$2,$3) + +eq = $(if $(subst $2,,$1)$(subst $1,,$2),n,y) +ne = $(if $(subst $2,,$1)$(subst $1,,$2),y,n) + +isempty = $(call eq,$1,) +notempty = $(call ne,$1,) + define push-var $(eval save-$2-$1 = $(value $1)) $(eval $1 :=)
Signature · 1 line
1.7.10.4
Re: [Qemu-devel] [PATCH 01/47] rules.mak: New logical functions
Quoted 5 lines · Ákos Kovács
lnot, land, lor, lif, eq, ne, isempty, notempty functions added Example usage:
obj-$(call lor,$(CONFIG_LINUX),$(CONFIG_BSD)) += feature.oSigned-off-by Ákos Kovács <[email protected]>
Hi; I like the general idea here but I think there are some issues with your implementation.
rules.mak clean: clean-timestamp · line 109
Quoted 13 lines
--- rules.mak | 16 ++++++++++++++++ 1 file changed, 16 insertions(+)rules.mak +1
-0@@ -106,6 +106,22 @@ clean: clean-timestamp obj := . old-nested-dirs := +# Logical functions
I think we should be clear here about the input and output ranges of these functions, ie that the inputs should always be "y", "n" or "" (with either "n" or the empty string being false).
rules.mak clean: clean-timestamp · line 113
Quoted 4 lines
rules.mak +4
-0+lnot = $(if $(subst n,,$1),n,y) + +land-yy = y +land = $(land-$1$2)
This means that $(call land,y,n) would expand to the empty string, not 'y' or 'n', right?
I think we should make all these functions always expand to either 'y' or 'n'.
land = $(if $(findstring yy,$1$2),y,n)
will do this.
rules.mak clean: clean-timestamp · line 115
Quoted 1 line
rules.mak +1
-0+lor = $(if $(subst $2,,$1)$(subst $1,,$2),n,y)
This can't be correct for both 'lor' and 'eq'. In fact it works as 'eq'. A working lor would be:
lor = $(if $(findstring y,$1$2),y,n)
rules.mak clean: clean-timestamp · line 120
Quoted 4 lines
rules.mak +4
-0+lif = $(if $(subst n,,$1),$2,$3) + +eq = $(if $(subst $2,,$1)$(subst $1,,$2),n,y) +ne = $(if $(subst $2,,$1)$(subst $1,,$2),y,n)
These give the wrong answer for comparisons
of 'n' with ''. Working versions:
eq = $(if $(filter $(call lnot,$1),$(call lnot,$2)),y,n) ne = $(if $(filter $(call lnot,$1),$(call lnot,$2)),n,y)
rules.mak clean: clean-timestamp · line 123
Quoted 2 lines
rules.mak +2
-0+isempty = $(call eq,$1,) +notempty = $(call ne,$1,)
These are wrong assuming we want 'n' eq '' semantics, and we can directly implement them with $if anyway:
isempty = $(if $1,n,y)
notempty = $(if $1,y,n)
Below is the test makefile I used to check these:
===begin===
# insert function definitions here
yes=y
no=n
full=full
empty=
# change this to whichever fn you are looking at testfn=ne
.PHONY: all
all:
@echo "$(testfn) yes,yes = $(call $(testfn),$(yes),$(yes))"
@echo "$(testfn) yes,no = $(call $(testfn),$(yes),$(no))"
@echo "$(testfn) no,yes = $(call $(testfn),$(no),$(yes))"
@echo "$(testfn) no,no = $(call $(testfn),$(no),$(no))"
@echo "$(testfn) yes,empty = $(call $(testfn),$(yes),$(empty))"
@echo "$(testfn) empty,yes = $(call $(testfn),$(empty),$(yes))"
@echo "$(testfn) empty,no = $(call $(testfn),$(empty),$(no))"
@echo "$(testfn) no,empty = $(call $(testfn),$(no),$(empty))"
@echo "$(testfn) empty,empty = $(call $(testfn),$(empty),$(empty))"
@echo "isempty($(empty)) = $(call isempty,$(empty))"
@echo "isempty($(full)) = $(call isempty,$(full))"
@echo "notempty($(empty)) = $(call notempty,$(empty))"
@echo "notempty($(full)) = $(call notempty,$(full))"===endit===
Since I've effectively rewritten all your patch here :-) I'll put together a patch plus your patches 2 and 3 from this series since I think they make a nice standalone cleanup.
Thanks
-- PMM
Re: [Qemu-devel] [PATCH 01/47] rules.mak: New logical functions
Il 13/09/2013 15:43, Peter Maydell ha scritto:
Quoted 58 lines · Ákos Kovács
Quoted 5 lines
lnot, land, lor, lif, eq, ne, isempty, notempty functions added Example usage:
obj-$(call lor,$(CONFIG_LINUX),$(CONFIG_BSD)) += feature.oSigned-off-by Ákos Kovács <[email protected]>Hi; I like the general idea here but I think there are some issues with your implementation.
rules.mak clean: clean-timestamp · line 109
Quoted 13 lines
--- rules.mak | 16 ++++++++++++++++ 1 file changed, 16 insertions(+)rules.mak +1
-0@@ -106,6 +106,22 @@ clean: clean-timestamp obj := . old-nested-dirs := +# Logical functionsI think we should be clear here about the input and output ranges of these functions, ie that the inputs should always be "y", "n" or "" (with either "n" or the empty string being false).
rules.mak clean: clean-timestamp · line 113
Quoted 4 lines
rules.mak +4
-0+lnot = $(if $(subst n,,$1),n,y) + +land-yy = y +land = $(land-$1$2)This means that $(call land,y,n) would expand to the empty string, not 'y' or 'n', right?
I think we should make all these functions always expand to either 'y' or 'n'.land = $(if $(findstring yy,$1$2),y,n)
will do this.
rules.mak clean: clean-timestamp · line 115
Quoted 1 line
rules.mak +1
-0+lor = $(if $(subst $2,,$1)$(subst $1,,$2),n,y)This can't be correct for both 'lor' and 'eq'. In fact it works as 'eq'. A working lor would be:
lor = $(if $(findstring y,$1$2),y,n)
rules.mak clean: clean-timestamp · line 120
Quoted 4 lines
rules.mak +4
-0+lif = $(if $(subst n,,$1),$2,$3) + +eq = $(if $(subst $2,,$1)$(subst $1,,$2),n,y) +ne = $(if $(subst $2,,$1)$(subst $1,,$2),y,n)These give the wrong answer for comparisons
of 'n' with ''. Working versions:
Quoted 2 lines
eq = $(if $(filter $(call lnot,$1),$(call lnot,$2)),y,n) ne = $(if $(filter $(call lnot,$1),$(call lnot,$2)),n,y)
isempty/notempty are clearly string functions, where only the output is of the y/n form. Seeing Akos's implementation of isempty/notempty, I think the desired semantics for eq/ne/isempty/notempty are also those of string functions.
I would call your functions leqv/lxor, not eq/ne.
Your patch is fine if you either rename eq/ne like this, or revert them to Akos's version.
Paolo
Quoted 8 lines
rules.mak clean: clean-timestamp · line 123
Quoted 2 lines
rules.mak +2
-0+isempty = $(call eq,$1,) +notempty = $(call ne,$1,)These are wrong assuming we want 'n' eq '' semantics, and we can directly implement them with $if anyway:
isempty = $(if $1,n,y)
notempty = $(if $1,y,n)
Re: [Qemu-devel] [PATCH 01/47] rules.mak: New logical functions
Quoted 11 lines · Paolo Bonzini
Il 13/09/2013 15:43, Peter Maydell ha scritto:
Quoted 9 lines · Ákos Kovács
rules.mak clean: clean-timestamp · line 120
Quoted 2 lines
rules.mak +2
-0+eq = $(if $(subst $2,,$1)$(subst $1,,$2),n,y) +ne = $(if $(subst $2,,$1)$(subst $1,,$2),y,n)These give the wrong answer for comparisons
of 'n' with ''. Working versions:eq = $(if $(filter $(call lnot,$1),$(call lnot,$2)),y,n) ne = $(if $(filter $(call lnot,$1),$(call lnot,$2)),n,y)
Quoted 6 lines
isempty/notempty are clearly string functions, where only the output is of the y/n form. Seeing Akos's implementation of isempty/notempty, I think the desired semantics for eq/ne/isempty/notempty are also those of string functions.
I would call your functions leqv/lxor, not eq/ne.
Sounds reasonable -- I was led a little astray by them all being in a patch whose only documentation was the phrase "logical functions"...
Quoted 2 lines
Your patch is fine if you either rename eq/ne like this, or revert them to Akos's version.
It sounds like we probably want two patches:
1. logical functions: land/lor/leqv/lxor/lnot
2. string functions: eq/ne/isempty/notempty
I assume we do end up using eq/ne somewhere?
-- PMM
Re: [Qemu-devel] [PATCH 01/47] rules.mak: New logical functions
Il 13/09/2013 17:02, Peter Maydell ha scritto:
Quoted 23 lines · Paolo Bonzini
Quoted 11 lines
Il 13/09/2013 15:43, Peter Maydell ha scritto:
Quoted 9 lines · Ákos Kovács
rules.mak clean: clean-timestamp · line 120
Quoted 2 lines
rules.mak +2
-0+eq = $(if $(subst $2,,$1)$(subst $1,,$2),n,y) +ne = $(if $(subst $2,,$1)$(subst $1,,$2),y,n)These give the wrong answer for comparisons
of 'n' with ''. Working versions:eq = $(if $(filter $(call lnot,$1),$(call lnot,$2)),y,n) ne = $(if $(filter $(call lnot,$1),$(call lnot,$2)),n,y)
Quoted 6 lines
isempty/notempty are clearly string functions, where only the output is of the y/n form. Seeing Akos's implementation of isempty/notempty, I think the desired semantics for eq/ne/isempty/notempty are also those of string functions.
I would call your functions leqv/lxor, not eq/ne.
Sounds reasonable -- I was led a little astray by them all being in a patch whose only documentation was the phrase "logical functions"...
Quoted 8 lines
Quoted 2 lines
Your patch is fine if you either rename eq/ne like this, or revert them to Akos's version.
It sounds like we probably want two patches:
1. logical functions: land/lor/leqv/lxor/lnot
2. string functions: eq/ne/isempty/notemptyI assume we do end up using eq/ne somewhere?
I cannot think off-hand of a place where I'd use eq/ne directly rather than isempty/notempty. Or for that matter leqv/lxor. :)
But since we're discussing the issue and the implementation of eq/ne is not entirely trivial, I think it's simplest to have them even if they are unused for now.
Paolo
PATCH 2/47 Makefile.target: CONFIG_NO_* variables removed
In reply to Ákos KovácsCONFIG_NO_* variables replaced with the lnot logical function
--- Makefile.target | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-)
Makefile.target +2 -6
@@ -70,10 +70,6 @@ all: $(PROGS) stap # Dummy command so that make thinks it has done something @true -CONFIG_NO_PCI = $(if $(subst n,,$(CONFIG_PCI)),n,y) -CONFIG_NO_KVM = $(if $(subst n,,$(CONFIG_KVM)),n,y) -CONFIG_NO_XEN = $(if $(subst n,,$(CONFIG_XEN)),n,y) - ######################################################### # cpu emulator library obj-y = exec.o translate-all.o cpu-exec.o
@@ -84,7 +80,7 @@ obj-y += fpu/softfloat.o obj-y += target-$(TARGET_BASE_ARCH)/ obj-y += disas.o obj-$(CONFIG_GDBSTUB_XML) += gdbstub-xml.o -obj-$(CONFIG_NO_KVM) += kvm-stub.o +obj-$(call lnot,$(CONFIG_KVM)) += kvm-stub.o ######################################################### # Linux user emulator target
@@ -125,7 +121,7 @@ LIBS+=$(libs_softmmu) # xen support obj-$(CONFIG_XEN) += xen-all.o xen-mapcache.o -obj-$(CONFIG_NO_XEN) += xen-stub.o +obj-$(call lnot,$(CONFIG_XEN)) += xen-stub.o # Hardware support ifeq ($(TARGET_NAME), sparc64)
Signature · 1 line
1.7.10.4
PATCH 3/47 default-configs/: CONFIG_GDBSTUB_XML removed
In reply to Ákos KovácsMakefile.target: Build gdbstub-xml.o only whenTARGET_XML_FILES is not empty.
--- Makefile.target | 2 +- default-configs/arm-linux-user.mak | 2 -- default-configs/arm-softmmu.mak | 1 - default-configs/armeb-linux-user.mak | 2 -- default-configs/m68k-linux-user.mak | 2 -- default-configs/m68k-softmmu.mak | 1 - default-configs/ppc-linux-user.mak | 2 -- default-configs/ppc-softmmu.mak | 1 - default-configs/ppc64-linux-user.mak | 2 -- default-configs/ppc64-softmmu.mak | 1 - default-configs/ppc64abi32-linux-user.mak | 2 -- default-configs/ppcemb-softmmu.mak | 1 - 12 files changed, 1 insertion(+), 18 deletions(-)
Makefile.target +1 -1
@@ -79,7 +79,7 @@ obj-$(CONFIG_TCG_INTERPRETER) += disas/tci.o obj-y += fpu/softfloat.o obj-y += target-$(TARGET_BASE_ARCH)/ obj-y += disas.o -obj-$(CONFIG_GDBSTUB_XML) += gdbstub-xml.o +obj-$(call notempty,$(TARGET_XML_FILES)) += gdbstub-xml.o obj-$(call lnot,$(CONFIG_KVM)) += kvm-stub.o #########################################################
default-configs/arm-linux-user.mak +0 -2
@@ -1,3 +1 @@ # Default configuration for arm-linux-user - -CONFIG_GDBSTUB_XML=y
default-configs/arm-softmmu.mak +0 -1
@@ -2,7 +2,6 @@ include pci.mak include usb.mak -CONFIG_GDBSTUB_XML=y CONFIG_VGA=y CONFIG_ISA_MMIO=y CONFIG_NAND=y
default-configs/armeb-linux-user.mak +0 -2
@@ -1,3 +1 @@ # Default configuration for armeb-linux-user - -CONFIG_GDBSTUB_XML=y
default-configs/m68k-linux-user.mak +0 -2
@@ -1,3 +1 @@ # Default configuration for m68k-linux-user - -CONFIG_GDBSTUB_XML=y
default-configs/m68k-softmmu.mak +0 -1
@@ -3,5 +3,4 @@ include pci.mak include usb.mak CONFIG_COLDFIRE=y -CONFIG_GDBSTUB_XML=y CONFIG_PTIMER=y
default-configs/ppc-linux-user.mak +0 -2
@@ -1,3 +1 @@ # Default configuration for ppc-linux-user - -CONFIG_GDBSTUB_XML=y
default-configs/ppc-softmmu.mak +0 -1
@@ -3,7 +3,6 @@ include pci.mak include sound.mak include usb.mak -CONFIG_GDBSTUB_XML=y CONFIG_ISA_MMIO=y CONFIG_ESCC=y CONFIG_M48T59=y
default-configs/ppc64-linux-user.mak +0 -2
@@ -1,3 +1 @@ # Default configuration for ppc64-linux-user - -CONFIG_GDBSTUB_XML=y
default-configs/ppc64-softmmu.mak +0 -1
@@ -3,7 +3,6 @@ include pci.mak include sound.mak include usb.mak -CONFIG_GDBSTUB_XML=y CONFIG_ISA_MMIO=y CONFIG_ESCC=y CONFIG_M48T59=y
default-configs/ppc64abi32-linux-user.mak +0 -2
@@ -1,3 +1 @@ # Default configuration for ppc64abi32-linux-user - -CONFIG_GDBSTUB_XML=y
default-configs/ppcemb-softmmu.mak +0 -1
@@ -3,7 +3,6 @@ include pci.mak include sound.mak include usb.mak -CONFIG_GDBSTUB_XML=y CONFIG_ISA_MMIO=y CONFIG_ESCC=y CONFIG_M48T59=y
Signature · 1 line
1.7.10.4
PATCH 4/47 scripts/kconfig: kconfig-frontends submodule added
In reply to Ákos KovácsAdd the kconfig-frontends to scripts/, picking version 3.10.
--- .gitmodules | 3 +++ scripts/kconfig | 1 + 2 files changed, 4 insertions(+) create mode 160000 scripts/kconfig
.gitmodules +3 -0
@@ -25,3 +25,6 @@ [submodule "dtc"] path = dtc url = git://git.qemu.org/dtc.git +[submodule "scripts/kconfig"] + path = scripts/kconfig + url = git://ymorin.is-a-geek.org/kconfig-frontends
scripts/kconfig new file +1 -0
@@ -0,0 +1 @@ +Subproject commit f0a6c0a0d14545c81757934c3679511b63b6c82f
Signature · 1 line
1.7.10.4
PATCH 5/47 Makefile: Clone kconfig git submodule in Makefile
In reply to Ákos Kovács--- Makefile | 150 ++++++++++++++++++++++++++++++++++++-------------------------- 1 file changed, 88 insertions(+), 62 deletions(-)
Makefile +88 -62
@@ -56,8 +56,8 @@ Makefile: ; configure: ; .PHONY: all clean cscope distclean dvi html info install install-doc \ - pdf recurse-all speed test dist - + pdf recurse-all speed test dist help + $(call set-vpath, $(SRC_PATH)) LIBS+=-lz $(LIBS_TOOLS)
@@ -146,11 +146,10 @@ $(SRC_PATH)/pixman/configure: (cd $(SRC_PATH)/pixman; autoreconf -v --install) DTC_MAKE_ARGS=-I$(SRC_PATH)/dtc VPATH=$(SRC_PATH)/dtc -C dtc V="$(V)" LIBFDT_srcdir=$(SRC_PATH)/dtc/libfdt -DTC_CFLAGS=$(CFLAGS) $(QEMU_CFLAGS) -DTC_CPPFLAGS=-I$(BUILD_DIR)/dtc -I$(SRC_PATH)/dtc -I$(SRC_PATH)/dtc/libfdt +DTC_CFLAGS=$(CFLAGS) $(QEMU_CFLAGS) -I$(BUILD_DIR)/dtc -I$(SRC_PATH)/dtc -I$(SRC_PATH)/dtc/libfdt subdir-dtc:dtc/libfdt dtc/tests - $(call quiet-command,$(MAKE) $(DTC_MAKE_ARGS) CPPFLAGS="$(DTC_CPPFLAGS)" CFLAGS="$(DTC_CFLAGS)" LDFLAGS="$(LDFLAGS)" ARFLAGS="$(ARFLAGS)" CC="$(CC)" AR="$(AR)" LD="$(LD)" $(SUBDIR_MAKEFLAGS) libfdt/libfdt.a,) + $(call quiet-command,$(MAKE) $(DTC_MAKE_ARGS) CFLAGS="$(DTC_CFLAGS)" LDFLAGS="$(LDFLAGS)" ARFLAGS="$(ARFLAGS)" CC="$(CC)" AR="$(AR)" LD="$(LD)" $(SUBDIR_MAKEFLAGS) libfdt/libfdt.a,) dtc/%: mkdir -p $@
@@ -167,8 +166,11 @@ recurse-all: $(SUBDIR_RULES) $(ROMSUBDIR_RULES) bt-host.o: QEMU_CFLAGS += $(BLUEZ_CFLAGS) -$(BUILD_DIR)/version.o: $(SRC_PATH)/version.rc $(BUILD_DIR)/config-host.h | $(BUILD_DIR)/version.lo -$(BUILD_DIR)/version.lo: $(SRC_PATH)/version.rc $(BUILD_DIR)/config-host.h +version.o: $(SRC_PATH)/version.rc config-host.h | version.lo +version.lo: $(SRC_PATH)/version.rc config-host.h + +version-obj-$(CONFIG_WIN32) += version.o +version-lobj-$(CONFIG_WIN32) += version.lo Makefile: $(version-obj-y) $(version-lobj-y)
@@ -180,6 +182,85 @@ libqemuutil.a: $(util-obj-y) qapi-types.o qapi-visit.o ###################################################################### +###################################################################### +# Kconfig rules +# +#KCONFIG_PATH:=$(SRC_PATH)/scripts/kconfig +KCONFIG_PATH:=scripts/kconfig +Kconfig:=$(SRC_PATH)/Kconfig +export KCONFIG_AUTOHEADER=auto.h +export KCONFIG_AUTOCONFIG=auto.mak + +KCONFIG_FRONTENDS:=$(KCONFIG_PATH)/frontends +KCONFIG_CONF:=$(KCONFIG_FRONTENDS)/conf/conf + +$(KCONFIG_PATH)/bootstrap: + @echo Cloning kconfig-frontends... + $(call quiet-command,git submodule --init $(KCONFIG_PATH)) + +$(KCONFIG_PATH)/Makefile: $(KCONFIG_PATH)/bootstrap + @(cd $(KCONFIG_PATH) ; ./bootstrap ; ./configure) + +$(foreach i, conf nconf mconf gconf qconf, \ + $(KCONFIG_FRONTENDS)/$i/$i): $(KCONFIG_PATH)/Makefile config-host.mak + $(MAKE) -C $(KCONFIG_PATH) + +config: $(KCONFIG_CONF) + $< --oldaskconfig $(Kconfig) + +nconfig: $(KCONFIG_FRONTENDS)/nconfig/nconfig + $< $(Kconfig) + +xconfig: $(KCONFIG_FRONTENDS)/xconf/xconf + $< $(Kconfig) + +gconfig: $(KCONFIG_FRONTENDS)/gconf/gconf + $< $(Kconfig) + +oldconfig: $(KCONFIG_CONF) + $< --$@ $(Kconfig) + +menuconfig: $(KCONFIG_FRONTENDS)/mconf/mconf + $< $(Kconfig) + +localyesconfig: +# TODO + +silentoldconfig: $(KCONFIG_CONF) + @echo " Build Kconfig config file" + mkdir -p include/config + $< --$@ $(Kconfig) + +defconfig: +# have it + +savedefconfig: $(obj)/conf + $< --$@=defconfig $(Kconfig) + +%config: $(KCONFIG_CONF) + $< --$@ $(Kconfig) + +help: + @echo ' config - Update current config utilising a line-oriented program' + @echo ' nconfig - Update current config utilising a ncurses menu based program' + @echo ' menuconfig - Update current config utilising a menu based program' + @echo ' xconfig - Update current config utilising a QT based front-end' + @echo ' gconfig - Update current config utilising a GTK based front-end' + @echo ' oldconfig - Update current config utilising a provided .config as base' +# @echo ' localmodconfig - Update current config disabling modules not loaded' + @echo ' localyesconfig - Update current config converting local mods to core' + @echo ' silentoldconfig - Same as oldconfig, but quietly, additionally update deps' + @echo ' defconfig - New config with default from ARCH supplied defconfig' + @echo ' savedefconfig - Save current config as ./defconfig (minimal config)' + @echo ' allnoconfig - New config where all options are answered with no' + @echo ' allyesconfig - New config where all options are accepted with yes' +# @echo ' allmodconfig - New config selecting modules when possible' + @echo ' alldefconfig - New config with all symbols set to default' + @echo ' randconfig - New config with random answer to all options' + @echo ' listnewconfig - List new options' + @echo ' oldnoconfig - Same as silentoldconfig but set new symbols to n (unset)' + +###################################################################### qemu-img.o: qemu-img-cmds.h qemu-img$(EXESUF): qemu-img.o $(block-obj-y) libqemuutil.a libqemustub.a
@@ -434,61 +515,6 @@ qemu-doc.dvi qemu-doc.html qemu-doc.info qemu-doc.pdf: \ qemu-img.texi qemu-nbd.texi qemu-options.texi \ qemu-monitor.texi qemu-img-cmds.texi -ifdef CONFIG_WIN32 - -INSTALLER = qemu-setup-$(VERSION)$(EXESUF) - -nsisflags = -V2 -NOCD - -ifneq ($(wildcard $(SRC_PATH)/dll),) -ifeq ($(ARCH),x86_64) -# 64 bit executables -DLL_PATH = $(SRC_PATH)/dll/w64 -nsisflags += -DW64 -else -# 32 bit executables -DLL_PATH = $(SRC_PATH)/dll/w32 -endif -endif - -.PHONY: installer -installer: $(INSTALLER) - -INSTDIR=/tmp/qemu-nsis - -$(INSTALLER): $(SRC_PATH)/qemu.nsi - make install prefix=${INSTDIR} -ifdef SIGNCODE - (cd ${INSTDIR}; \ - for i in *.exe; do \ - $(SIGNCODE) $${i}; \ - done \ - ) -endif # SIGNCODE - (cd ${INSTDIR}; \ - for i in qemu-system-*.exe; do \ - arch=$${i%.exe}; \ - arch=$${arch#qemu-system-}; \ - echo Section \"$$arch\" Section_$$arch; \ - echo SetOutPath \"\$$INSTDIR\"; \ - echo File \"\$${BINDIR}\\$$i\"; \ - echo SectionEnd; \ - done \ - ) >${INSTDIR}/system-emulations.nsh - makensis $(nsisflags) \ - $(if $(BUILD_DOCS),-DCONFIG_DOCUMENTATION="y") \ - $(if $(CONFIG_GTK),-DCONFIG_GTK="y") \ - -DBINDIR="${INSTDIR}" \ - $(if $(DLL_PATH),-DDLLDIR="$(DLL_PATH)") \ - -DSRCDIR="$(SRC_PATH)" \ - -DOUTFILE="$(INSTALLER)" \ - $(SRC_PATH)/qemu.nsi - rm -r ${INSTDIR} -ifdef SIGNCODE - $(SIGNCODE) $(INSTALLER) -endif # SIGNCODE -endif # CONFIG_WIN - # Add a dependency on the generated files, so that they are always # rebuilt before other object files ifneq ($(filter-out %clean,$(MAKECMDGOALS)),$(if $(MAKECMDGOALS),,fail))
Signature · 1 line
1.7.10.4
Re: [Qemu-devel] [PATCH 05/47] Makefile: Clone kconfig git submodule in Makefile
Am 26.08.2013 00:58, schrieb Ákos Kovács:
Quoted 4 lines
Signed-off-by Ákos Kovács <[email protected]>--- Makefile | 150 ++++++++++++++++++++++++++++++++++++-------------------------- 1 file changed, 88 insertions(+), 62 deletions(-)
Something went wrong here, you're reverting Stefan's win32 changes, and dtc changes seem unintentional, too.
Less severe there's a stray trailing tab.
Regards,
Andreas
Signature · 2 lines
SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 Nürnberg, Germany GF: Jeff Hawn, Jennifer Guild, Felix Imendörffer; HRB 16746 AG Nürnberg
PATCH 6/47 hw/alpha/Makefile.objs: Build objects depending on CLIPPER
In reply to Ákos KovácsSet CONFIG_CLIPPER as default for default-configs/alpha-softmmu.mak
--- default-configs/alpha-softmmu.mak | 2 ++ hw/alpha/Makefile.objs | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-)
default-configs/alpha-softmmu.mak +2 -0
@@ -15,3 +15,5 @@ CONFIG_IDE_CMD646=y CONFIG_I8259=y CONFIG_MC146818RTC=y CONFIG_ISA_TESTDEV=y + +CONFIG_CLIPPER=y
hw/alpha/Makefile.objs +1 -1
@@ -1 +1 @@ -obj-y += dp264.o pci.o typhoon.o +obj-$(CONFIG_CLIPPER) += dp264.o pci.o typhoon.o
Signature · 1 line
1.7.10.4
Re: [Qemu-devel] [PATCH 06/47] hw/alpha/Makefile.objs: Build objects depending on CLIPPER
Quoted 24 lines · Ákos Kovács
Set
CONFIG_CLIPPERas default for default-configs/alpha-softmmu.makSigned-off-by Ákos Kovács <[email protected]>--- default-configs/alpha-softmmu.mak | 2 ++ hw/alpha/Makefile.objs | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-)default-configs/alpha-softmmu.mak +2
-0@@ -15,3 +15,5 @@ CONFIG_IDE_CMD646=y CONFIG_I8259=y CONFIG_MC146818RTC=y CONFIG_ISA_TESTDEV=y + +CONFIG_CLIPPER=yhw/alpha/Makefile.objs +0
-0
hw/alpha/Makefile.objs line 1
Quoted 2 lines
hw/alpha/Makefile.objs +1
-1@@ -1 +1 @@ -obj-y += dp264.o pci.o typhoon.o +obj-$(CONFIG_CLIPPER) += dp264.o pci.o typhoon.o
I don't understand the point of this. There is one alpha emulation; if you disable it you're left with a program that's not useful. So why the configuration for it at all?
r~
Re: [Qemu-devel] [PATCH 06/47] hw/alpha/Makefile.objs: Build objects depending on CLIPPER
Il 26/08/2013 16:41, Richard Henderson ha scritto:
Quoted 23 lines · Ákos Kovács
Quoted 22 lines
Set
CONFIG_CLIPPERas default for default-configs/alpha-softmmu.makSigned-off-by Ákos Kovács <[email protected]>--- default-configs/alpha-softmmu.mak | 2 ++ hw/alpha/Makefile.objs | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-)default-configs/alpha-softmmu.mak +2
-0@@ -15,3 +15,5 @@ CONFIG_IDE_CMD646=y CONFIG_I8259=y CONFIG_MC146818RTC=y CONFIG_ISA_TESTDEV=y + +CONFIG_CLIPPER=yhw/alpha/Makefile.objs +0
-0
Quoted 8 lines
hw/alpha/Makefile.objs line 1
Quoted 4 lines
hw/alpha/Makefile.objs +1
-1@@ -1 +1 @@ -obj-y += dp264.o pci.o typhoon.o +obj-$(CONFIG_CLIPPER) += dp264.o pci.o typhoon.oI don't understand the point of this. There is one alpha emulation; if you disable it you're left with a program that's not useful. So why the configuration for it at all?
I think this was just for consistency with other targets. Either this patch can be left out completely, or the symbol can be made default on and unchangeable by the user.
Paolo
Re: [Qemu-devel] [PATCH 06/47] hw/alpha/Makefile.objs: Build objects depending on CLIPPER
Quoted 7 lines · Paolo Bonzini
Quoted 3 lines
I don't understand the point of this. There is one alpha emulation; if you disable it you're left with a program that's not useful. So why the configuration for it at all?
I think this was just for consistency with other targets. Either this patch can be left out completely, or the symbol can be made default on and unchangeable by the user.
Yeah, maybe. I'll be interested to see the v2 cover-letter with your requested description of what the series brings to the table.
This isn't the kernel, where non-pagable code size is a concern, so I don't see how full configuration of machine emulations and devices is helpful. I'd be more inclined to go the other way, where all qemu-system-cpu images always build in all devices (compiled once of course).
I guess I'll wait and see.
r~
Re: [Qemu-devel] [PATCH 06/47] hw/alpha/Makefile.objs: Build objects depending on CLIPPER
Quoted 11 lines · Richard Henderson
Quoted 7 lines · Paolo Bonzini
Quoted 3 lines
I don't understand the point of this. There is one alpha emulation; if you disable it you're left with a program that's not useful. So why the configuration for it at all?
I think this was just for consistency with other targets. Either this patch can be left out completely, or the symbol can be made default on and unchangeable by the user.
Yeah, maybe. I'll be interested to see the v2 cover-letter with your requested description of what the series brings to the table.
Didn't look much into the patches, so I'm not sure if this includes both the configuration and build system for Linux, but the kernel's build system might provide a more robust and flexible build system.
Quoted 4 lines
This isn't the kernel, where non-pagable code size is a concern, so I don't see how full configuration of machine emulations and devices is helpful. I'd be more inclined to go the other way, where all qemu-system-cpu images always build in all devices (compiled once of course).
Which reminds me of some older discussion about having a single QEMU binary able to emulate a system with CPUs from different architectures (with a future^2 version of qom'ified CPUs).
Such fine-grained compilation would deviate even more from that goal (assuming it's a goal).
Lluis
Signature · 4 lines
"And it's much the same thing with knowledge, for whenever you learn something new, the whole world becomes that much richer." -- The Princess of Pure Reason, as told by Norton Juster in The Phantom Tollbooth
Re: [Qemu-devel] [PATCH 06/47] hw/alpha/Makefile.objs: Build objects depending on CLIPPER
Quoted 6 lines · Lluís Vilanova
Quoted 4 lines · Richard Henderson
This isn't the kernel, where non-pagable code size is a concern, so I don't see how full configuration of machine emulations and devices is helpful. I'd be more inclined to go the other way, where all qemu-system-cpu images always build in all devices (compiled once of course).
Quoted 6 lines
Which reminds me of some older discussion about having a single QEMU binary able to emulate a system with CPUs from different architectures (with a future^2 version of qom'ified CPUs).
Such fine-grained compilation would deviate even more from that goal (assuming it's a goal).
I think "aspiration" is perhaps more accurate than "goal", but yes :-) In general I'm not convinced it's wise to give end-users and distros even more config options to shoot themselves in the foot with (and every distro is going to end up wanting to build an "everything" config anyway, and hopefully most people use distro builds, so what's the use case for anything else?)
-- PMM
Re: [Qemu-devel] [PATCH 06/47] hw/alpha/Makefile.objs: Build objects depending on CLIPPER
Il 26/08/2013 21:47, Peter Maydell ha scritto:
Quoted 2 lines
In general I'm not convinced it's wise to give end-users and distros even more config options to shoot themselves in the foot with
Note that the Kconfig project is about giving end users _less_ config options. default-configs/ does not capture dependencies (except in a very elementary way through pci.mak and usb.mak), while Kconfig does.
Kconfig basically makes configuration of builtin devices automatic just by choosing the desired boards.
Quoted 3 lines
(and every distro is going to end up wanting to build an "everything" config anyway, and hopefully most people use distro builds, so what's the use case for anything else?)
Not every distro, as mentioned in my answer to rth.
Paolo
Re: [Qemu-devel] [PATCH 06/47] hw/alpha/Makefile.objs: Build objects depending on CLIPPER
In reply to Richard HendersonIl 26/08/2013 19:30, Richard Henderson ha scritto:
Quoted 4 lines
This isn't the kernel, where non-pagable code size is a concern, so I don't see how full configuration of machine emulations and devices is helpful. I'd be more inclined to go the other way, where all qemu-system-cpu images always build in all devices (compiled once of course).
This is useful for different usecases. One is QEMU that is bundled into development platform such as the Android emulator. Making it easier to build limited versions of QEMU is one small step towards encouraging working in-tree instead of having out-of-tree patches which quickly become forks.
The second is in distros that only want to distribute the subset of features that are going to be supported (aka RHEL). This includes both devices (all of PCI, ISA, USB) and boards (-M isapc is removed nowadays, perhaps one day goldfish or similar will be available too; for ARM and PPC we surely would want to compile out almost all the boards).
The third is that in the future some of the devices could be compiled as modules, too. This would help the "other" set of distros, those that include everything. QEMU now has an insane set of dependencies, and having modules for e.g. SPICE or RBD or Gluster would help making them optional.
Paolo
Re: [Qemu-devel] [PATCH 06/47] hw/alpha/Makefile.objs: Build objects depending on CLIPPER
Quoted 18 lines · Paolo Bonzini
Il 26/08/2013 19:30, Richard Henderson ha scritto:
Quoted 4 lines
This isn't the kernel, where non-pagable code size is a concern, so I don't see how full configuration of machine emulations and devices is helpful. I'd be more inclined to go the other way, where all qemu-system-cpu images always build in all devices (compiled once of course).
This is useful for different usecases. One is QEMU that is bundled into development platform such as the Android emulator. Making it easier to build limited versions of QEMU is one small step towards encouraging working in-tree instead of having out-of-tree patches which quickly become forks.
The second is in distros that only want to distribute the subset of features that are going to be supported (aka RHEL). This includes both devices (all of PCI, ISA, USB) and boards (-M isapc is removed nowadays, perhaps one day goldfish or similar will be available too; for ARM and PPC we surely would want to compile out almost all the boards).
Quoted 5 lines
The third is that in the future some of the devices could be compiled as modules, too. This would help the "other" set of distros, those that include everything. QEMU now has an insane set of dependencies, and having modules for e.g. SPICE or RBD or Gluster would help making them optional.
All reasonable. Thanks for the rationale.
r~
Re: [Qemu-devel] [PATCH 06/47] hw/alpha/Makefile.objs: Build objects depending on CLIPPER
In reply to Paolo BonziniQuoted 11 lines · Paolo Bonzini
Il 26/08/2013 19:30, Richard Henderson ha scritto:
Quoted 4 lines
This isn't the kernel, where non-pagable code size is a concern, so I don't see how full configuration of machine emulations and devices is helpful. I'd be more inclined to go the other way, where all qemu-system-cpu images always build in all devices (compiled once of course).
This is useful for different usecases. One is QEMU that is bundled into development platform such as the Android emulator. Making it easier to build limited versions of QEMU is one small step towards encouraging working in-tree instead of having out-of-tree patches which quickly become forks.
I simply don't believe that this is anything remotely approaching a major reason why the Android emulator is out of tree, or that merging this patchset would have any visible effect in moving the Android emulator into the tree. Anybody from Google is of course welcome to contradict me on this point.
Quoted 5 lines
The second is in distros that only want to distribute the subset of features that are going to be supported (aka RHEL). This includes both devices (all of PCI, ISA, USB) and boards (-M isapc is removed nowadays, perhaps one day goldfish or similar will be available too; for ARM and PPC we surely would want to compile out almost all the boards).
Hrm. Yeah, I can see the security argument for wanting a very stripped down build for the KVM/production use.
Quoted 5 lines
The third is that in the future some of the devices could be compiled as modules, too. This would help the "other" set of distros, those that include everything. QEMU now has an insane set of dependencies, and having modules for e.g. SPICE or RBD or Gluster would help making them optional.
I thought the plan was to address that by having a module system, not by having a huge config system. You still build everything all at once, you just split the binaries/shared objects you ship as a distro into multiple packages.
Quoted 4 lines
Note that the
Kconfigproject is about giving end users _less_ config options.From my perspective it seems to be giving users more options,
because at the moment there are none -- you just compile QEMU and you get everything. Nobody should (IMHO) be editing default-configs/ (despite the slightly confusing name). Providing a config system is providing knobs we don't have at the moment.
-- PMM
Re: [Qemu-devel] [PATCH 06/47] hw/alpha/Makefile.objs: Build objects depending on CLIPPER
Il 27/08/2013 01:17, Peter Maydell ha scritto:
Quoted 13 lines · Paolo Bonzini
Quoted 11 lines
Il 26/08/2013 19:30, Richard Henderson ha scritto:
Quoted 4 lines
This isn't the kernel, where non-pagable code size is a concern, so I don't see how full configuration of machine emulations and devices is helpful. I'd be more inclined to go the other way, where all qemu-system-cpu images always build in all devices (compiled once of course).
This is useful for different usecases. One is QEMU that is bundled into development platform such as the Android emulator. Making it easier to build limited versions of QEMU is one small step towards encouraging working in-tree instead of having out-of-tree patches which quickly become forks.
Quoted 5 lines
I simply don't believe that this is anything remotely approaching a major reason why the Android emulator is out of tree, or that merging this patchset would have any visible effect in moving the Android emulator into the tree. Anybody from Google is of course welcome to contradict me on this point.
No, it's not anything remotely approaching a major reason. But still, modifying default-configs/ is one of the out-of-tree patches that any external emulator has to include.
Quoted 15 lines
Quoted 5 lines
The second is in distros that only want to distribute the subset of features that are going to be supported (aka RHEL). This includes both devices (all of PCI, ISA, USB) and boards (-M isapc is removed nowadays, perhaps one day goldfish or similar will be available too; for ARM and PPC we surely would want to compile out almost all the boards).
Hrm. Yeah, I can see the security argument for wanting a very stripped down build for the KVM/production use.
Quoted 5 lines
The third is that in the future some of the devices could be compiled as modules, too. This would help the "other" set of distros, those that include everything. QEMU now has an insane set of dependencies, and having modules for e.g. SPICE or RBD or Gluster would help making them optional.
Quoted 4 lines
I thought the plan was to address that by having a module system, not by having a huge config system. You still build everything all at once, you just split the binaries/shared objects you ship as a distro into multiple packages.
Sure. But the above stripped-down build might just as well be monolithic, so you need to configure what is a module and what is not.
Quoted 7 lines
Quoted 2 lines
Note that the
Kconfigproject is about giving end users _less_ config options.From my perspective it seems to be giving users more options, because at the moment there are none -- you just compile QEMU and you get everything. Nobody should (IMHO) be editing default-configs/ (despite the slightly confusing name).
At least RHEL is doing so (and RHEL originally motivated the first big Makefile reorganization by Juan around 4 years ago, and the introduction of default-configs). Even though this is a summer of code project, my proposal was driven by an actual need (and curiosity of course).
Paolo
PATCH 7/47 hw/arm/Makefile.objs: CONFIG_* created for each board
In reply to Ákos KovácsThe new CONFIG_* definitions added to the default-configs/arm-softmmu.mak
--- default-configs/arm-softmmu.mak | 13 +++++++++++++ hw/arm/Makefile.objs | 35 ++++++++++++++++++++++++++++------- 2 files changed, 41 insertions(+), 7 deletions(-)
default-configs/arm-softmmu.mak +13 -0
@@ -79,3 +79,16 @@ CONFIG_VERSATILE_PCI=y CONFIG_VERSATILE_I2C=y CONFIG_SDHCI=y + +CONFIG_COLLIE=y +CONFIG_GUMSTIX=y +CONFIG_HIGHBANK=y +CONFIG_INTEGRATORCP=y +CONFIG_KZM=y +CONFIG_MUSICPAL=y +CONFIG_PALM=y +CONFIG_SPITZ=y +CONFIG_TOSA=y +CONFIG_VERSATILEPB=y +CONFIG_VXPRESS=y +CONFIG_Z2=y
hw/arm/Makefile.objs +28 -7
@@ -1,7 +1,28 @@ -obj-y += boot.o collie.o exynos4_boards.o gumstix.o highbank.o -obj-y += integratorcp.o kzm.o mainstone.o musicpal.o nseries.o -obj-y += omap_sx1.o palm.o realview.o spitz.o stellaris.o -obj-y += tosa.o versatilepb.o vexpress.o xilinx_zynq.o z2.o - -obj-y += armv7m.o exynos4210.o pxa2xx.o pxa2xx_gpio.o pxa2xx_pic.o -obj-y += omap1.o omap2.o strongarm.o +obj-y += boot.o +obj-$(CONFIG_COLLIE) += collie.o +obj-$(CONFIG_EXYNOS4) += exynos4_boards.o +obj-$(CONFIG_EXYNOS4) += exynos4210.o +obj-$(CONFIG_GUMSTIX) += gumstix.o +obj-$(CONFIG_HIGHBANK) += highbank.o +obj-$(CONFIG_INTEGRATORCP) += integratorcp.o +obj-$(CONFIG_KZM) += kzm.o +obj-$(CONFIG_MAINSTONE)+= mainstone.o +obj-$(CONFIG_MUSICPAL) += musicpal.o +obj-$(CONFIG_NSERIES) += nseries.o +obj-$(CONFIG_OMAP) += omap_sx1.o +obj-$(CONFIG_PALM) += palm.o +obj-$(CONFIG_REALVIEW) += realview.o +obj-$(CONFIG_SPITZ) += spitz.o +obj-$(CONFIG_STELLARIS)+= stellaris.o +obj-$(CONFIG_TOSA) += tosa.o +obj-$(CONFIG_VERSATILEPB) += versatilepb.o +obj-$(CONFIG_VXPRESS) += vexpress.o +obj-$(CONFIG_ZYNQ) += xilinx_zynq.o +obj-$(CONFIG_ARMV7M) += armv7m.o +obj-$(CONFIG_PXA2XX) += pxa2xx.o +obj-$(CONFIG_PXA2XX) += z2.o +obj-$(CONFIG_PXA2XX) += pxa2xx_gpio.o +obj-$(CONFIG_PXA2XX) += pxa2xx_pic.o +obj-$(CONFIG_OMAP) += omap1.o +obj-$(CONFIG_OMAP) += omap2.o +obj-$(CONFIG_STRONARM) += strongarm.o
Signature · 1 line
1.7.10.4
Re: [Qemu-devel] [PATCH 07/47] hw/arm/Makefile.objs: CONFIG_* created for each board
Quoted 6 lines · Ákos Kovács
The new CONFIG_* definitions added to the default-configs/arm-softmmu.mak
Signed-off-by Ákos Kovács <[email protected]>--- default-configs/arm-softmmu.mak | 13 +++++++++++++ hw/arm/Makefile.objs | 35 ++++++++++++++++++++++++++++------- 2 files changed, 41 insertions(+), 7 deletions(-)
[...]
Quoted 1 line
+obj-$(CONFIG_STRONARM) += strongarm.o
Typo in config symbol name.
Signature · 2 lines
Thanks. -- Max
Re: [Qemu-devel] [PATCH 07/47] hw/arm/Makefile.objs: CONFIG_* created for each board
In reply to Ákos KovácsQuoted 17 lines · Ákos Kovács
The new CONFIG_* definitions added to the default-configs/arm-softmmu.mak
Signed-off-by Ákos Kovács <[email protected]>--- default-configs/arm-softmmu.mak | 13 +++++++++++++ hw/arm/Makefile.objs | 35 ++++++++++++++++++++++++++++------- 2 files changed, 41 insertions(+), 7 deletions(-)default-configs/arm-softmmu.mak +2
-0@@ -79,3 +79,16 @@ CONFIG_VERSATILE_PCI=y CONFIG_VERSATILE_I2C=y CONFIG_SDHCI=y + +CONFIG_COLLIE=y
default-configs/arm-softmmu.mak CONFIG_VERSATILE_PCI=y · line 93
Quoted 10 lines
default-configs/arm-softmmu.mak +10
-0+CONFIG_GUMSTIX=y +CONFIG_HIGHBANK=y +CONFIG_INTEGRATORCP=y +CONFIG_KZM=y +CONFIG_MUSICPAL=y +CONFIG_PALM=y +CONFIG_SPITZ=y +CONFIG_TOSA=y +CONFIG_VERSATILEPB=y +CONFIG_VXPRESS=y
VEXPRESS.
Quoted 15 lines
default-configs/arm-softmmu.mak +1
-0+CONFIG_Z2=yhw/arm/Makefile.objs +2
-7@@ -1,7 +1,28 @@ -obj-y += boot.o collie.o exynos4_boards.o gumstix.o highbank.o -obj-y += integratorcp.o kzm.o mainstone.o musicpal.o nseries.o -obj-y += omap_sx1.o palm.o realview.o spitz.o stellaris.o -obj-y += tosa.o versatilepb.o vexpress.o xilinx_zynq.o z2.o - -obj-y += armv7m.o exynos4210.o pxa2xx.o pxa2xx_gpio.o pxa2xx_pic.o -obj-y += omap1.o omap2.o strongarm.o +obj-y += boot.o +obj-$(CONFIG_COLLIE) += collie.o
hw/arm/Makefile.objs line 12
Quoted 10 lines
hw/arm/Makefile.objs +10
-0+obj-$(CONFIG_EXYNOS4) += exynos4_boards.o +obj-$(CONFIG_EXYNOS4) += exynos4210.o +obj-$(CONFIG_GUMSTIX) += gumstix.o +obj-$(CONFIG_HIGHBANK) += highbank.o +obj-$(CONFIG_INTEGRATORCP) += integratorcp.o +obj-$(CONFIG_KZM) += kzm.o +obj-$(CONFIG_MAINSTONE)+= mainstone.o +obj-$(CONFIG_MUSICPAL) += musicpal.o +obj-$(CONFIG_NSERIES) += nseries.o +obj-$(CONFIG_OMAP) += omap_sx1.o
This is a board -- why is it sharing a config with OMAP rather than getting its own?
hw/arm/Makefile.objs line 23
Quoted 11 lines
hw/arm/Makefile.objs +11
-0+obj-$(CONFIG_PALM) += palm.o +obj-$(CONFIG_REALVIEW) += realview.o +obj-$(CONFIG_SPITZ) += spitz.o +obj-$(CONFIG_STELLARIS)+= stellaris.o +obj-$(CONFIG_TOSA) += tosa.o +obj-$(CONFIG_VERSATILEPB) += versatilepb.o +obj-$(CONFIG_VXPRESS) += vexpress.o +obj-$(CONFIG_ZYNQ) += xilinx_zynq.o +obj-$(CONFIG_ARMV7M) += armv7m.o +obj-$(CONFIG_PXA2XX) += pxa2xx.o +obj-$(CONFIG_PXA2XX) += z2.o
Why didn't this board get its own CONFIG_Z2 ?
hw/arm/Makefile.objs line 28
Quoted 5 lines
hw/arm/Makefile.objs +5
-0+obj-$(CONFIG_PXA2XX) += pxa2xx_gpio.o +obj-$(CONFIG_PXA2XX) += pxa2xx_pic.o +obj-$(CONFIG_OMAP) += omap1.o +obj-$(CONFIG_OMAP) += omap2.o +obj-$(CONFIG_STRONARM) += strongarm.o
Typo, as Max points out.
thanks
-- PMM
PATCH 9/47 hw/m68k/Makefile.objs: Conditionally build boards
In reply to Ákos KovácsCONFIG_AN5206, CONFIG_DUMMY_M68K, CONFIG_MCF5206, CONFIG_MCF5208 make variables created for m68k boards, and added to default-configs/m86k-softmmu.mak.
--- default-configs/m68k-softmmu.mak | 3 +++ hw/m68k/Makefile.objs | 7 ++++--- 2 files changed, 7 insertions(+), 3 deletions(-)
default-configs/m68k-softmmu.mak +3 -0
@@ -4,3 +4,6 @@ include pci.mak include usb.mak CONFIG_COLDFIRE=y CONFIG_PTIMER=y +CONFIG_AN5206=y +CONFIG_DUMMY_M68K=y +CONFIG_MCF5208=y
hw/m68k/Makefile.objs +4 -3
@@ -1,4 +1,5 @@ -obj-y += an5206.o mcf5208.o -obj-y += dummy_m68k.o +obj-$(CONFIG_AN5206) += an5206.o +obj-$(CONFIG_DUMMY_M68K) += dummy_m68k.o -obj-y += mcf5206.o mcf_intc.o +obj-$(CONFIG_MCF5206) += mcf5206.o +obj-$(CONFIG_MCF5208) += mcf5208.o mcf_intc.o
Signature · 1 line
1.7.10.4
Re: [Qemu-devel] [PATCH 09/47] hw/m68k/Makefile.objs: Conditionally build boards
Quoted 1 line · Ákos Kovács
CONFIG_AN5206,CONFIG_DUMMY_M68K,CONFIG_MCF5206,CONFIG_MCF5208
Looks like CONFIG_MCF5206 is missing.
Quoted 20 lines
make variables created for m68k boards, and added to default-configs/m86k-softmmu.mak.
Signed-off-by Ákos Kovács <[email protected]>--- default-configs/m68k-softmmu.mak | 3 +++ hw/m68k/Makefile.objs | 7 ++++--- 2 files changed, 7 insertions(+), 3 deletions(-)default-configs/m68k-softmmu.mak +3
-0@@ -4,3 +4,6 @@ include pci.mak include usb.mak CONFIG_COLDFIRE=y CONFIG_PTIMER=y +CONFIG_AN5206=y +CONFIG_DUMMY_M68K=y +CONFIG_MCF5208=y
Signature · 2 lines
Thanks. -- Max
PATCH 10/47 hw/microblaze/Makefile.objs: Create configs for petalogix boards
In reply to Ákos KovácsCONFIG_PETALOGIX_* configs added to default-configs/microblaze-softmmu.mak and default-configs/microblazeel-softmmu.mak.
--- default-configs/microblaze-softmmu.mak | 3 +++ default-configs/microblazeel-softmmu.mak | 3 +++ hw/microblaze/Makefile.objs | 7 +++---- 3 files changed, 9 insertions(+), 4 deletions(-)
default-configs/microblaze-softmmu.mak +3 -0
@@ -9,3 +9,6 @@ CONFIG_XILINX_SPI=y CONFIG_XILINX_ETHLITE=y CONFIG_SSI=y CONFIG_SSI_M25P80=y + +CONFIG_PETALOGIX_S3ADSP1800=y +CONFIG_PETALOGIX_ML605=y
default-configs/microblazeel-softmmu.mak +3 -0
@@ -9,3 +9,6 @@ CONFIG_XILINX_SPI=y CONFIG_XILINX_ETHLITE=y CONFIG_SSI=y CONFIG_SSI_M25P80=y + +CONFIG_PETALOGIX_S3ADSP1800=y +CONFIG_PETALOGIX_ML605=y
hw/microblaze/Makefile.objs +3 -4
@@ -1,4 +1,3 @@ -obj-y += petalogix_s3adsp1800_mmu.o -obj-y += petalogix_ml605_mmu.o -obj-y += boot.o -obj-y += pic_cpu.o +obj-y += boot.o pic_cpu.o +obj-$(CONFIG_PETALOGIX_S3ADSP1800) += petalogix_s3adsp1800_mmu.o +obj-$(CONFIG_PETALOGIX_ML605) += petalogix_ml605_mmu.o
Signature · 1 line
1.7.10.4
PATCH 11/47 hw/mips/Makefile.objs: Create CONFIG_* for mips boards
In reply to Ákos KovácsAdd the new configs to default-configs/mips*-sofmmu.mak.
--- default-configs/mips-softmmu.mak | 6 ++++++ default-configs/mips64-softmmu.mak | 6 ++++++ default-configs/mips64el-softmmu.mak | 6 ++++++ default-configs/mipsel-softmmu.mak | 6 ++++++ hw/mips/Makefile.objs | 8 ++++++-- 5 files changed, 30 insertions(+), 2 deletions(-)
default-configs/mips-softmmu.mak +6 -0
@@ -35,3 +35,9 @@ CONFIG_MC146818RTC=y CONFIG_VT82C686=y CONFIG_ISA_TESTDEV=y CONFIG_EMPTY_SLOT=y + +CONFIG_R4K=y +CONFIG_JAZZ=y +CONFIG_MALTA=y +CONFIG_MIPSSIM=y +CONFIG_FULONG=y
default-configs/mips64-softmmu.mak +6 -0
@@ -35,3 +35,9 @@ CONFIG_MC146818RTC=y CONFIG_VT82C686=y CONFIG_ISA_TESTDEV=y CONFIG_EMPTY_SLOT=y + +CONFIG_R4K=y +CONFIG_JAZZ=y +CONFIG_MALTA=y +CONFIG_MIPSSIM=y +CONFIG_FULONG=y
default-configs/mips64el-softmmu.mak +6 -0
@@ -37,3 +37,9 @@ CONFIG_MC146818RTC=y CONFIG_VT82C686=y CONFIG_ISA_TESTDEV=y CONFIG_EMPTY_SLOT=y + +CONFIG_R4K=y +CONFIG_JAZZ=y +CONFIG_MALTA=y +CONFIG_MIPSSIM=y +CONFIG_FULONG=y
default-configs/mipsel-softmmu.mak +6 -0
@@ -35,3 +35,9 @@ CONFIG_MC146818RTC=y CONFIG_VT82C686=y CONFIG_ISA_TESTDEV=y CONFIG_EMPTY_SLOT=y + +CONFIG_R4K=y +CONFIG_JAZZ=y +CONFIG_MALTA=y +CONFIG_MIPSSIM=y +CONFIG_FULONG=y
hw/mips/Makefile.objs +6 -2
@@ -1,4 +1,8 @@ -obj-y += mips_r4k.o mips_jazz.o mips_malta.o mips_mipssim.o obj-y += addr.o cputimer.o mips_int.o -obj-$(CONFIG_FULONG) += mips_fulong2e.o obj-y += gt64xxx_pci.o + +obj-$(CONFIG_R4K) += mips_r4k.o +obj-$(CONFIG_JAZZ) += mips_jazz.o +obj-$(CONFIG_MALTA) += mips_malta.o +obj-$(CONFIG_FULONG) += mips_fulong2e.o +obj-$(CONFIG_MIPSSIM) += mips_mipssim.o
Signature · 1 line
1.7.10.4
PATCH 12/47 hw/ppc/Makefile.objs: Build all boards conditinally
In reply to Ákos KovácsCONFIG_PPC405, CONFIG_PPC440, CONFIG_PPC4XX, CONFIG_PREP, CONFIG_MAC_OLDWORLD, CONFIG_MAC_NEWWORLD, CONFIG_VIRTEX configuration options created for default-configs/ppc*-softmmu.mak.
--- default-configs/ppc-softmmu.mak | 8 ++++++++ default-configs/ppc64-softmmu.mak | 9 +++++++++ default-configs/ppcemb-softmmu.mak | 8 ++++++++ hw/ppc/Makefile.objs | 13 +++++++------ 4 files changed, 32 insertions(+), 6 deletions(-)
default-configs/ppc-softmmu.mak +8 -0
@@ -46,3 +46,11 @@ CONFIG_OPENPIC_KVM=$(and $(CONFIG_E500),$(CONFIG_KVM)) # For PReP CONFIG_MC146818RTC=y CONFIG_ISA_TESTDEV=y + +CONFIG_PREP=y +CONFIG_PPC4XX=y +CONFIG_PPC405=y +CONFIG_PPC440=y +CONFIG_MAC_OLDWORLD=y +CONFIG_MAC_NEWWORLD=y +CONFIG_VIRTEX=y
default-configs/ppc64-softmmu.mak +9 -0
@@ -55,3 +55,12 @@ CONFIG_I82374=y CONFIG_I8257=y CONFIG_MC146818RTC=y CONFIG_ISA_TESTDEV=y + +CONFIG_PREP=y +CONFIG_PPC4XX=y +CONFIG_PPC405=y +CONFIG_PPC440=y +CONFIG_PREP=y +CONFIG_MAC_OLDWORLD=y +CONFIG_MAC_NEWWORLD=y +CONFIG_VIRTEX=y
default-configs/ppcemb-softmmu.mak +8 -0
@@ -41,3 +41,11 @@ CONFIG_OPENPIC_KVM=$(and $(CONFIG_E500),$(CONFIG_KVM)) # For PReP CONFIG_MC146818RTC=y CONFIG_ISA_TESTDEV=y + +CONFIG_PREP=y +CONFIG_PPC4XX=y +CONFIG_PPC405=y +CONFIG_PPC440=y +CONFIG_MAC_OLDWORLD=y +CONFIG_MAC_NEWWORLD=y +CONFIG_VIRTEX=y
hw/ppc/Makefile.objs +7 -6
@@ -5,16 +5,17 @@ obj-$(CONFIG_PSERIES) += spapr.o spapr_vio.o spapr_events.o obj-$(CONFIG_PSERIES) += spapr_hcall.o spapr_iommu.o spapr_rtas.o obj-$(CONFIG_PSERIES) += spapr_pci.o # PowerPC 4xx boards -obj-y += ppc405_boards.o ppc4xx_devs.o ppc405_uc.o ppc440_bamboo.o -obj-y += ppc4xx_pci.o +obj-$(CONFIG_PPC405) += ppc405_boards.o ppc405_uc.o +obj-$(CONFIG_PPC440) += ppc440_bamboo.o +obj-$(CONFIG_PPC4XX) += ppc4xx_pci.o ppc4xx_devs.o # PReP -obj-y += prep.o +obj-$(CONFIG_PREP) += prep.o # OldWorld PowerMac -obj-y += mac_oldworld.o +obj-$(CONFIG_MAC_OLDWORLD) += mac_oldworld.o # NewWorld PowerMac -obj-y += mac_newworld.o +obj-$(CONFIG_MAC_NEWWORLD) += mac_newworld.o # e500 obj-$(CONFIG_E500) += e500.o mpc8544ds.o e500plat.o obj-$(CONFIG_E500) += mpc8544_guts.o ppce500_spin.o # PowerPC 440 Xilinx ML507 reference board. -obj-y += virtex_ml507.o +obj-$(CONFIG_VIRTEX) += virtex_ml507.o
Signature · 1 line
1.7.10.4
PATCH 13/47 hw/sh4/Makefile.objs: Build sh4 boards conditionally
In reply to Ákos KovácsNew CONFIG_* varibales created for r2d and shix boards and added to the default-configs/sh4*-softmmu.mak.
--- default-configs/sh4-softmmu.mak | 3 +++ default-configs/sh4eb-softmmu.mak | 3 +++ hw/sh4/Makefile.objs | 4 ++-- 3 files changed, 8 insertions(+), 2 deletions(-)
default-configs/sh4-softmmu.mak +3 -0
@@ -16,3 +16,6 @@ CONFIG_PCSPK=y CONFIG_I82374=y CONFIG_I8257=y CONFIG_MC146818RTC=y + +CONFIG_R2D=y +CONFIG_SHIX=y
default-configs/sh4eb-softmmu.mak +3 -0
@@ -16,3 +16,6 @@ CONFIG_PCSPK=y CONFIG_I82374=y CONFIG_I8257=y CONFIG_MC146818RTC=y + +CONFIG_R2D=y +CONFIG_SHIX=y
hw/sh4/Makefile.objs +2 -2
@@ -1,4 +1,4 @@ -obj-y += shix.o r2d.o - obj-y += sh7750.o sh7750_regnames.o obj-y += sh_pci.o +obj-$(CONFIG_R2D) += r2d.o +obj-$(CONFIG_SHIX) += shix.o
Signature · 1 line
1.7.10.4
PATCH 14/47 hw/sparc/Makefile.objs: CONFIG_* for sun4m and leon3 created
In reply to Ákos KovácsCONFIG_LEON3 added to default-configs/sparc-softmmu.mak.
--- default-configs/sparc-softmmu.mak | 2 ++ hw/sparc/Makefile.objs | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-)
default-configs/sparc-softmmu.mak +2 -0
@@ -15,4 +15,6 @@ CONFIG_CS4231=y CONFIG_GRLIB=y CONFIG_STP2000=y CONFIG_ECCMEMCTL=y + CONFIG_SUN4M=y +CONFIG_LEON3=y
hw/sparc/Makefile.objs +2 -1
@@ -1 +1,2 @@ -obj-y += sun4m.o leon3.o +obj-$(CONFIG_SUN4M) += sun4m.o +obj-$(CONFIG_LEON3) += leon3.o
Signature · 1 line
1.7.10.4
PATCH 15/47 hw/lm32/Makefile.objs: Conditionally build lm32 and milkmyst
In reply to Ákos Kovács--- hw/lm32/Makefile.objs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
hw/lm32/Makefile.objs +2 -2
@@ -1,3 +1,3 @@ # LM32 boards -obj-y += lm32_boards.o -obj-y += milkymist.o +obj-$(CONFIG_LM32) += lm32_boards.o +obj-$(CONFIG_MILKYMIST) += milkymist.o
Signature · 1 line
1.7.10.4
PATCH 16/47 hw/xtensa/Makefile.objs: Build xtensa_sim and xtensa_lx60 conditionally
In reply to Ákos KovácsAdd the new CONFIG_* values to default-config/xtensa*-softmmu.mak.
--- default-configs/xtensa-softmmu.mak | 3 +++ default-configs/xtensaeb-softmmu.mak | 3 +++ hw/xtensa/Makefile.objs | 4 ++-- 3 files changed, 8 insertions(+), 2 deletions(-)
default-configs/xtensa-softmmu.mak +3 -0
@@ -3,3 +3,6 @@ CONFIG_SERIAL=y CONFIG_OPENCORES_ETH=y CONFIG_PFLASH_CFI01=y + +CONFIG_XTENSA_SIM=y +CONFIG_XTENSA_LX60=y
default-configs/xtensaeb-softmmu.mak +3 -0
@@ -3,3 +3,6 @@ CONFIG_SERIAL=y CONFIG_OPENCORES_ETH=y CONFIG_PFLASH_CFI01=y + +CONFIG_XTENSA_SIM=y +CONFIG_XTENSA_LX60=y
hw/xtensa/Makefile.objs +2 -2
@@ -1,3 +1,3 @@ obj-y += pic_cpu.o -obj-y += xtensa_sim.o -obj-y += xtensa_lx60.o +obj-$(CONFIG_XTENSA_SIM) += xtensa_sim.o +obj-$(CONFIG_XTENSA_LX60) += xtensa_lx60.o
Signature · 1 line
1.7.10.4
PATCH 17/47 hw/9pfs/Kconfig: Add 9pfs Kconfig
In reply to Ákos Kovács--- hw/9pfs/Kconfig | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 hw/9pfs/Kconfig
hw/9pfs/Kconfig new file +2 -0
@@ -0,0 +1,2 @@ +config OPEN_BY_HANDLE + bool
Signature · 1 line
1.7.10.4
Re: [Qemu-devel] [PATCH 17/47] hw/9pfs/Kconfig: Add 9pfs Kconfig
Il 26/08/2013 00:58, Ákos Kovács ha scritto:
Quoted 13 lines
Signed-off-by Ákos Kovács <[email protected]>--- hw/9pfs/Kconfig | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 hw/9pfs/Kconfighw/9pfs/Kconfig new file +0
-0
hw/9pfs/Kconfig line 2
Quoted 2 lines
hw/9pfs/Kconfig new file +2
-0@@ -0,0 +1,2 @@ +config OPEN_BY_HANDLE + bool
This is defined by config-host.mak, so it is not needed here.
However, you may want a CONFIG_VIRTIO_9P, controlling compilation of virtio-9p-device.o.
Paolo
PATCH 18/47 hw/arm/Kconfig: Add ARM Kconfig
In reply to Ákos Kovács--- hw/arm/Kconfig | 235 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 235 insertions(+) create mode 100644 hw/arm/Kconfig
hw/arm/Kconfig new file +235 -0
@@ -0,0 +1,235 @@ +config ARM + bool +# select ARM_NVIC + default y + +menu "ARM" + config EXYNOS4 + bool "Samsung Exynos4210 SoC" + select A9SCU # snoop controll unit + select USB_EHCI + select LAN9118 + select PL310 # cache controller + select PCI + select ARM_GIC + select ARM_NVIC + select ARM9MPCORE + select ARM_MPTIMER + default y + + config HIGHBANK + bool "Calxeda Highbank SoC" + select A9SCU # snoop controll unit + select AHCI + select PL011 # UART + select PL022 # Serial port + select PL031 # RTC + select PL061 # GPIO + select PL310 # cache controller + select XGMAC # ethernet + select ARM_TIMER # sp804 + select ARM_NVIC + select ARM_MPTIMER + select ARM9MPCORE + select PCI + default y + + config INTEGRATORCP + bool "ARM Integrator CP" + select SMC91C111 + select ARM_TIMER + select PL011 # UART + select PL031 # RTC + select PL050 # keyboard/mouse + select PL110 # pl111 LCD controller + select PL181 # display + select PCI + default y + + config KZM + bool "Kzm" + select SERIAL + select IMX + select LAN9118 + select PCI + default y + + config MUSICPAL + bool "Marvell MV88W8618 / Freecom MusicPal" + select PFLASH_CFI02 + select PTIMER + select PCI + select BITBANG_I2C + select MARVELL_88W8618 + select WM8750 + select SERIAL + default y + + config OMAP + bool "Texas Instruments Open Multimedia Applications Platform" + select SERIAL + select PFLASH_CFI01 + select PCI + default y + + config NSERIES + bool "Nokia N-Series tablets" + select TMP105 # tempature sensor + select BLIZZARD # LCD/TV controller + select ONENAND + select TSC210X # touchscreen/sensors/audio + select TSC2005 # touchscreen/sensors/keypad + select LM832X # GPIO keyboard chip + select TWL92230 # energy-management + depends on OMAP + default y + + config PALM + bool "PalmOne PDAs" + select TSC210X + depends on OMAP + default y + + config STELLARIS + bool + select PL011 # UART + select PL022 # Serial port + select PL061 # GPIO + select STELLARIS_INPUT + select STELLARIS_ENET # ethernet + select SSD0303 # OLED display + select SSD0323 # OLED display + select SSI_SD + default y # for armv7m_nvic_* + + config REALVIEW + bool "ARM Realview baseboard" + # networking + select SMC91C111 + select LAN9118 + select RTL8139_PCI + + select VERSATILE_PCI + select WM8750 # audio codec + select PL011 # UART + select PL041 # audio codec + select PL050 # keyboard/mouse + select PL061 # GPIO + select PL080 # DMA controller + select VERSATILE_I2C + select DS1338 # I2C RTC+NVRAM + select USB_OHCI + select ARM_GIC + select ARM_MPTIMER + select ARM15MPCORE + select ARM11MPCORE + select ARM9MPCORE + + config VERSATILEPB + bool "ARM Versatile platform" + select PFLASH_CFI01 + select PL031 # RTC + select PL050 # keyboard/mouse + select PL080 # DMA controller + select PL181 # display + select PL190 # Vector PIC + select ARM_TIMER # sp804 + select USB_OHCI + select LSI_SCSI_PCI + select REALVIEW + default y + + config VXPRESS + bool "ARM Versatile Express" + select PFLASH_CFI01 + select LAN9118 + select PL011 # UART + select PL031 # RTC + select PL041 # audio codec + select PL110 # pl111 LCD controller + select PL181 # display + select PL310 # cache controller + select A9SCU # snoop controll unit + select ARM_TIMER # sp804 + select ARM_MPTIMER + select ARM15MPCORE + select ARM9MPCORE + select REALVIEW + default y + + config ZYNQ + bool "Xilinx Zynq Baseboard" + select ARM9MPCORE + select CADENCE # UART + select PCI + select PFLASH_CFI02 + select SDHCI + select USB_EHCI + select XILINX # UART + select XILINX_SPI + select XILINX_SPISS + default y + + config PXA2XX + bool "Intel XScale PXA255/270" + select SERIAL + select PCI + select USB_OHCI + select SSI + default y + + config GUMSTIX + bool "Gumstix platform" + select PFLASH_CFI01 + select SMC91C111 + depends on PXA2XX + default y + + config TOSA + bool "PXA255 Sharp Zaurus SL-6000 PDA platform" + select ZAURUS # scoop + select MICRODRIVE + depends on PXA2XX + default y + + config MAINSTONE + bool "PXA270-based Intel Mainstone" + depends on PXA2XX + select PFLASH_CFI01 + select SMC91C111 + default y + + config SPITZ + bool "PXA270-based Clamshell PDA platforms" + select ADS7846 # display + select MAX111X # A/D converter + select WM8750 # audio codec + select MAX7310 # GPIO expander + select ZAURUS # scoop + select NAND # memory + select ECC # Error-correcting for NAND + select MICRODRIVE + depends on PXA2XX + default y + + config Z2 + bool "Zipit Z2" + select PFLASH_CFI01 + select WM8750 + select PL011 # UART + depends on PXA2XX + default y + + config STRONGARM + bool + select PXA2XX + + config COLLIE + bool "Sharp Zaurus SL-5500" + select PFLASH_CFI01 + select ZAURUS # scoop + select STRONGARM + default y + help + SA-1110-based Sharp Zaurus SL-5500 platform. +endmenu
Signature · 1 line
1.7.10.4
Re: [Qemu-devel] [PATCH 18/47] hw/arm/Kconfig: Add ARM Kconfig
Quoted 12 lines · Ákos Kovács
Signed-off-by Ákos Kovács <[email protected]>--- hw/arm/Kconfig | 235 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 235 insertions(+) create mode 100644 hw/arm/Kconfighw/arm/Kconfig new file +0
-0
hw/arm/Kconfig line 3
Quoted 3 lines
hw/arm/Kconfig new file +3
-0@@ -0,0 +1,235 @@ +config ARM + bool +# select ARM_NVIC
Why is this here but commented out?
hw/arm/Kconfig line 13
Quoted 10 lines
hw/arm/Kconfig new file +10
-0+ default y + +menu "ARM" + config EXYNOS4 + bool "Samsung Exynos4210 SoC" + select A9SCU # snoop controll unit + select USB_EHCI + select LAN9118 + select PL310 # cache controller + select PCI
No PCI on this board (well, there is, but not modelled).
hw/arm/Kconfig line 15
Quoted 2 lines
hw/arm/Kconfig new file +2
-0+ select ARM_GIC + select ARM_NVIC
This is wrong -- this CPU doesn't have an NVIC.
hw/arm/Kconfig line 16
Quoted 1 line
hw/arm/Kconfig new file +1
-0+ select ARM9MPCORE
This is misnamed: should be A9MPCORE.
hw/arm/Kconfig line 17
Quoted 1 line
hw/arm/Kconfig new file +1
-0+ select ARM_MPTIMER
Each Cortex-A9 platform shouldn't have to individually select all of the components of the A9 individually (GIC, mpcore container, mp timer, SCU) -- A9MPCORE should just pull them all in.
Quoted 7 lines
hw/arm/Kconfig new file +7
-0+ default y + + config HIGHBANK + bool "Calxeda Highbank SoC" + select A9SCU # snoop controll unit + select AHCI + select PL011 # UART
hw/arm/Kconfig line 34
Quoted 10 lines
hw/arm/Kconfig new file +10
-0+ select PL022 # Serial port + select PL031 # RTC + select PL061 # GPIO + select PL310 # cache controller + select XGMAC # ethernet + select ARM_TIMER # sp804 + select ARM_NVIC + select ARM_MPTIMER + select ARM9MPCORE + select PCI
No PCI (yet).
hw/arm/Kconfig line 46
Quoted 12 lines
hw/arm/Kconfig new file +12
-0+ default y + + config INTEGRATORCP + bool "ARM Integrator CP" + select SMC91C111 + select ARM_TIMER + select PL011 # UART + select PL031 # RTC + select PL050 # keyboard/mouse + select PL110 # pl111 LCD controller + select PL181 # display + select PCI
No PCI.
hw/arm/Kconfig line 54
Quoted 8 lines
hw/arm/Kconfig new file +8
-0+ default y + + config KZM + bool "Kzm" + select SERIAL + select IMX + select LAN9118 + select PCI
No PCI.
Quoted 5 lines
hw/arm/Kconfig new file +5
-0+ default y + + config MUSICPAL + bool "Marvell MV88W8618 / Freecom MusicPal" + select PFLASH_CFI02
hw/arm/Kconfig line 69
Quoted 10 lines
hw/arm/Kconfig new file +10
-0+ select PTIMER + select PCI + select BITBANG_I2C + select MARVELL_88W8618 + select WM8750 + select SERIAL + default y + + config OMAP + bool "Texas Instruments Open Multimedia Applications Platform"
Don't we want separate configs for OMAP1 and OMAP2?
hw/arm/Kconfig line 72
Quoted 3 lines
hw/arm/Kconfig new file +3
-0+ select SERIAL + select PFLASH_CFI01 + select PCI
No PCI.
hw/arm/Kconfig line 84
Quoted 12 lines
hw/arm/Kconfig new file +12
-0+ default y + + config NSERIES + bool "Nokia N-Series tablets" + select TMP105 # tempature sensor + select BLIZZARD # LCD/TV controller + select ONENAND + select TSC210X # touchscreen/sensors/audio + select TSC2005 # touchscreen/sensors/keypad + select LM832X # GPIO keyboard chip + select TWL92230 # energy-management + depends on OMAP
Why 'depends on' rather than 'select' ?
Quoted 9 lines
hw/arm/Kconfig new file +9
-0+ default y + + config PALM + bool "PalmOne PDAs" + select TSC210X + depends on OMAP + default y + + config STELLARIS
hw/arm/Kconfig line 103
Quoted 10 lines
hw/arm/Kconfig new file +10
-0+ bool + select PL011 # UART + select PL022 # Serial port + select PL061 # GPIO + select STELLARIS_INPUT + select STELLARIS_ENET # ethernet + select SSD0303 # OLED display + select SSD0323 # OLED display + select SSI_SD + default y # for armv7m_nvic_*
What is this comment trying to say?
hw/arm/Kconfig line 110
Quoted 7 lines
hw/arm/Kconfig new file +7
-0+ + config REALVIEW + bool "ARM Realview baseboard" + # networking + select SMC91C111 + select LAN9118 + select RTL8139_PCI
This doesn't make any sense. Any board with PCI should be compiled with all the PCI card models, so there shouldn't be any need to manually select one here.
hw/arm/Kconfig line 121
Quoted 11 lines
hw/arm/Kconfig new file +11
-0+ + select VERSATILE_PCI + select WM8750 # audio codec + select PL011 # UART + select PL041 # audio codec + select PL050 # keyboard/mouse + select PL061 # GPIO + select PL080 # DMA controller + select VERSATILE_I2C + select DS1338 # I2C RTC+NVRAM + select USB_OHCI
This is just a PCI card too, right?
Quoted 8 lines
hw/arm/Kconfig new file +8
-0+ select ARM_GIC + select ARM_MPTIMER + select ARM15MPCORE + select ARM11MPCORE + select ARM9MPCORE + + config VERSATILEPB + bool "ARM Versatile platform"
hw/arm/Kconfig line 139
Quoted 10 lines
hw/arm/Kconfig new file +10
-0+ select PFLASH_CFI01 + select PL031 # RTC + select PL050 # keyboard/mouse + select PL080 # DMA controller + select PL181 # display + select PL190 # Vector PIC + select ARM_TIMER # sp804 + select USB_OHCI + select LSI_SCSI_PCI + select REALVIEW
Why does this board select the realview board?
hw/arm/Kconfig line 142
Quoted 3 lines
hw/arm/Kconfig new file +3
-0+ default y + + config VXPRESS
"VEXPRESS".
Quoted 5 lines
hw/arm/Kconfig new file +5
-0+ bool "ARM Versatile Express" + select PFLASH_CFI01 + select LAN9118 + select PL011 # UART + select PL031 # RTC
hw/arm/Kconfig line 157
Quoted 10 lines
hw/arm/Kconfig new file +10
-0+ select PL041 # audio codec + select PL110 # pl111 LCD controller + select PL181 # display + select PL310 # cache controller + select A9SCU # snoop controll unit + select ARM_TIMER # sp804 + select ARM_MPTIMER + select ARM15MPCORE + select ARM9MPCORE + select REALVIEW
Why does this board select realview?
hw/arm/Kconfig line 164
Quoted 7 lines
hw/arm/Kconfig new file +7
-0+ default y + + config ZYNQ + bool "Xilinx Zynq Baseboard" + select ARM9MPCORE + select CADENCE # UART + select PCI
Don't think this board has PCI either
hw/arm/Kconfig line 174
Quoted 10 lines
hw/arm/Kconfig new file +10
-0+ select PFLASH_CFI02 + select SDHCI + select USB_EHCI + select XILINX # UART + select XILINX_SPI + select XILINX_SPISS + default y + + config PXA2XX + bool "Intel XScale PXA255/270"
This is a CPU -- why does it get a config when other CPUs don't?
hw/arm/Kconfig line 176
Quoted 2 lines
hw/arm/Kconfig new file +2
-0+ select SERIAL + select PCI
No PCI here.
hw/arm/Kconfig line 185
Quoted 9 lines
hw/arm/Kconfig new file +9
-0+ select USB_OHCI + select SSI + default y + + config GUMSTIX + bool "Gumstix platform" + select PFLASH_CFI01 + select SMC91C111 + depends on PXA2XX
Again, why depends?
Quoted 30 lines
hw/arm/Kconfig new file +30
-0+ default y + + config TOSA + bool "PXA255 Sharp Zaurus SL-6000 PDA platform" + select ZAURUS # scoop + select MICRODRIVE + depends on PXA2XX + default y + + config MAINSTONE + bool "PXA270-based Intel Mainstone" + depends on PXA2XX + select PFLASH_CFI01 + select SMC91C111 + default y + + config SPITZ + bool "PXA270-based Clamshell PDA platforms" + select ADS7846 # display + select MAX111X # A/D converter + select WM8750 # audio codec + select MAX7310 # GPIO expander + select ZAURUS # scoop + select NAND # memory + select ECC # Error-correcting for NAND + select MICRODRIVE + depends on PXA2XX + default y + + config Z2
hw/arm/Kconfig line 225
Quoted 10 lines
hw/arm/Kconfig new file +10
-0+ bool "Zipit Z2" + select PFLASH_CFI01 + select WM8750 + select PL011 # UART + depends on PXA2XX + default y + + config STRONGARM + bool + select PXA2XX
Why does this select PXA2XX ?
Quoted 11 lines
hw/arm/Kconfig new file +10
-1+ + config COLLIE + bool "Sharp Zaurus SL-5500" + select PFLASH_CFI01 + select ZAURUS # scoop + select STRONGARM + default y + help + SA-1110-based Sharp Zaurus SL-5500 platform. +endmenu --
Quoted 1 line
1.7.10.4
thanks
-- PMM
Re: [Qemu-devel] [PATCH 18/47] hw/arm/Kconfig: Add ARM Kconfig
In reply to Ákos KovácsIl 26/08/2013 00:58, Ákos Kovács ha scritto:
Quoted 12 lines
Signed-off-by Ákos Kovács <[email protected]>--- hw/arm/Kconfig | 235 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 235 insertions(+) create mode 100644 hw/arm/Kconfighw/arm/Kconfig new file +0
-0
hw/arm/Kconfig line 4
Quoted 4 lines
hw/arm/Kconfig new file +4
-0@@ -0,0 +1,235 @@ +config ARM + bool +# select ARM_NVIC + default y
Why is this item needed?
Paolo
Quoted 231 lines
hw/arm/Kconfig new file +230
-0+menu "ARM" + config EXYNOS4 + bool "Samsung Exynos4210 SoC" + select A9SCU # snoop controll unit + select USB_EHCI + select LAN9118 + select PL310 # cache controller + select PCI + select ARM_GIC + select ARM_NVIC + select ARM9MPCORE + select ARM_MPTIMER + default y + + config HIGHBANK + bool "Calxeda Highbank SoC" + select A9SCU # snoop controll unit + select AHCI + select PL011 # UART + select PL022 # Serial port + select PL031 # RTC + select PL061 # GPIO + select PL310 # cache controller + select XGMAC # ethernet + select ARM_TIMER # sp804 + select ARM_NVIC + select ARM_MPTIMER + select ARM9MPCORE + select PCI + default y + + config INTEGRATORCP + bool "ARM Integrator CP" + select SMC91C111 + select ARM_TIMER + select PL011 # UART + select PL031 # RTC + select PL050 # keyboard/mouse + select PL110 # pl111 LCD controller + select PL181 # display + select PCI + default y + + config KZM + bool "Kzm" + select SERIAL + select IMX + select LAN9118 + select PCI + default y + + config MUSICPAL + bool "Marvell MV88W8618 / Freecom MusicPal" + select PFLASH_CFI02 + select PTIMER + select PCI + select BITBANG_I2C + select MARVELL_88W8618 + select WM8750 + select SERIAL + default y + + config OMAP + bool "Texas Instruments Open Multimedia Applications Platform" + select SERIAL + select PFLASH_CFI01 + select PCI + default y + + config NSERIES + bool "Nokia N-Series tablets" + select TMP105 # tempature sensor + select BLIZZARD # LCD/TV controller + select ONENAND + select TSC210X # touchscreen/sensors/audio + select TSC2005 # touchscreen/sensors/keypad + select LM832X # GPIO keyboard chip + select TWL92230 # energy-management + depends on OMAP + default y + + config PALM + bool "PalmOne PDAs" + select TSC210X + depends on OMAP + default y + + config STELLARIS + bool + select PL011 # UART + select PL022 # Serial port + select PL061 # GPIO + select STELLARIS_INPUT + select STELLARIS_ENET # ethernet + select SSD0303 # OLED display + select SSD0323 # OLED display + select SSI_SD + default y # for armv7m_nvic_* + + config REALVIEW + bool "ARM Realview baseboard" + # networking + select SMC91C111 + select LAN9118 + select RTL8139_PCI + + select VERSATILE_PCI + select WM8750 # audio codec + select PL011 # UART + select PL041 # audio codec + select PL050 # keyboard/mouse + select PL061 # GPIO + select PL080 # DMA controller + select VERSATILE_I2C + select DS1338 # I2C RTC+NVRAM + select USB_OHCI + select ARM_GIC + select ARM_MPTIMER + select ARM15MPCORE + select ARM11MPCORE + select ARM9MPCORE + + config VERSATILEPB + bool "ARM Versatile platform" + select PFLASH_CFI01 + select PL031 # RTC + select PL050 # keyboard/mouse + select PL080 # DMA controller + select PL181 # display + select PL190 # Vector PIC + select ARM_TIMER # sp804 + select USB_OHCI + select LSI_SCSI_PCI + select REALVIEW + default y + + config VXPRESS + bool "ARM Versatile Express" + select PFLASH_CFI01 + select LAN9118 + select PL011 # UART + select PL031 # RTC + select PL041 # audio codec + select PL110 # pl111 LCD controller + select PL181 # display + select PL310 # cache controller + select A9SCU # snoop controll unit + select ARM_TIMER # sp804 + select ARM_MPTIMER + select ARM15MPCORE + select ARM9MPCORE + select REALVIEW + default y + + config ZYNQ + bool "Xilinx Zynq Baseboard" + select ARM9MPCORE + select CADENCE # UART + select PCI + select PFLASH_CFI02 + select SDHCI + select USB_EHCI + select XILINX # UART + select XILINX_SPI + select XILINX_SPISS + default y + + config PXA2XX + bool "Intel XScale PXA255/270" + select SERIAL + select PCI + select USB_OHCI + select SSI + default y + + config GUMSTIX + bool "Gumstix platform" + select PFLASH_CFI01 + select SMC91C111 + depends on PXA2XX + default y + + config TOSA + bool "PXA255 Sharp Zaurus SL-6000 PDA platform" + select ZAURUS # scoop + select MICRODRIVE + depends on PXA2XX + default y + + config MAINSTONE + bool "PXA270-based Intel Mainstone" + depends on PXA2XX + select PFLASH_CFI01 + select SMC91C111 + default y + + config SPITZ + bool "PXA270-based Clamshell PDA platforms" + select ADS7846 # display + select MAX111X # A/D converter + select WM8750 # audio codec + select MAX7310 # GPIO expander + select ZAURUS # scoop + select NAND # memory + select ECC # Error-correcting for NAND + select MICRODRIVE + depends on PXA2XX + default y + + config Z2 + bool "Zipit Z2" + select PFLASH_CFI01 + select WM8750 + select PL011 # UART + depends on PXA2XX + default y + + config STRONGARM + bool + select PXA2XX + + config COLLIE + bool "Sharp Zaurus SL-5500" + select PFLASH_CFI01 + select ZAURUS # scoop + select STRONGARM + default y + help + SA-1110-based Sharp Zaurus SL-5500 platform. +endmenu
PATCH 19/47 hw/audio/Kconfig: Add audio Kconfig
In reply to Ákos Kovács--- hw/audio/Kconfig | 41 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 hw/audio/Kconfig
hw/audio/Kconfig new file +41 -0
@@ -0,0 +1,41 @@ +menu "Audio devices" + config SB16 + bool + #select ISA + + config ES1370 + bool "ES1370" + depends on PCI + + config AC97 + bool "AC97 sound card" + default y + depends on PCI + + config ADLIB + bool + #select ISA + + config CS4231A + bool + + config HDA + bool + #select ISA + + config PCSPK + bool + select I8254 + + config WM8750 + bool + + config PL041 + bool + + config CS4231 + bool + + config MARVELL_88W8618 + bool +endmenu
Signature · 1 line
1.7.10.4
Re: [Qemu-devel] [PATCH 19/47] hw/audio/Kconfig: Add audio Kconfig
Il 26/08/2013 00:58, Ákos Kovács ha scritto:
Quoted 12 lines
Signed-off-by Ákos Kovács <[email protected]>--- hw/audio/Kconfig | 41 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 hw/audio/Kconfighw/audio/Kconfig new file +0
-0
hw/audio/Kconfig line 4
Quoted 4 lines
hw/audio/Kconfig new file +4
-0@@ -0,0 +1,41 @@ +menu "Audio devices" + config SB16 + bool + #select ISA
All these should have "depends on ISA".
Quoted 13 lines
hw/audio/Kconfig new file +13
-0+ config ES1370 + bool "ES1370" + depends on PCI + + config AC97 + bool "AC97 sound card" + default y + depends on PCI + + config ADLIB + bool + #select ISA +
hw/audio/Kconfig line 28
Quoted 10 lines
hw/audio/Kconfig new file +10
-0+ config CS4231A + bool + + config HDA + bool + #select ISA + + config PCSPK + bool + select I8254
Perhaps "depends on I8254"?
Quoted 13 lines
hw/audio/Kconfig new file +12
-0+ config WM8750 + bool + + config PL041 + bool + + config CS4231 + bool + + config MARVELL_88W8618 + bool +endmenu
PATCH 20/47 hw/block/Kconfig: Add Kconfig file
In reply to Ákos Kovács--- hw/block/Kconfig | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 hw/block/Kconfig
hw/block/Kconfig new file +34 -0
@@ -0,0 +1,34 @@ +config FDC + bool + #select ISA + +config SSI_M25P80 + bool + select SSI + +config NAND + bool + +config PFLASH_CFI01 + bool + +config PFLASH_CFI02 + bool + +config ECC + bool + +config ONENAND + bool + +config PC_SYSFW + bool + #select ISA + +config NVME_PCI + bool + depends on PCI + +config VIRTIO_BLK_DATA_PLANE + bool + select VIRTIO
Signature · 1 line
1.7.10.4
Re: [Qemu-devel] [PATCH 20/47] hw/block/Kconfig: Add Kconfig file
Il 26/08/2013 00:58, Ákos Kovács ha scritto:
Quoted 28 lines
Signed-off-by Ákos Kovács <[email protected]>--- hw/block/Kconfig | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 hw/block/Kconfighw/block/Kconfig new file +16
-0@@ -0,0 +1,34 @@ +config FDC + bool + #select ISA + +config SSI_M25P80 + bool + select SSI + +config NAND + bool + +config PFLASH_CFI01 + bool + +config PFLASH_CFI02 + bool
hw/block/Kconfig line 26
Quoted 10 lines
hw/block/Kconfig new file +10
-0+ +config ECC + bool + +config ONENAND + bool + +config PC_SYSFW + bool + #select ISA
This is not anymore in the tree.
hw/block/Kconfig line 34
Quoted 7 lines
hw/block/Kconfig new file +7
-0+config NVME_PCI + bool + depends on PCI + +config VIRTIO_BLK_DATA_PLANE + bool + select VIRTIO
This is controlled by config-host.mak, so no need for it here.
Perhaps, similar to 9p, you could have
config VIRTIO_BLK
bool
default y
depends on VIRTIO
but it can be added later, too.
Paolo
PATCH 21/47 hw/char/Kconfig: Add Kconfig file
In reply to Ákos Kovács--- hw/char/Kconfig | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 hw/char/Kconfig
hw/char/Kconfig new file +24 -0
@@ -0,0 +1,24 @@ +config IPACK + bool + depends on PCI + +config ESCC + bool + +config PARALLEL + bool + #select ISA + +config SERIAL + bool + #select ISA + +config SERIAL_PCI + bool + depends on PCI + +config SCLPCONSOLE + bool + +config PL011 + bool
Signature · 1 line
1.7.10.4
Re: [Qemu-devel] [PATCH 21/47] hw/char/Kconfig: Add Kconfig file
Il 26/08/2013 00:58, Ákos Kovács ha scritto:
Quoted 12 lines
Signed-off-by Ákos Kovács <[email protected]>--- hw/char/Kconfig | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 hw/char/Kconfighw/char/Kconfig new file +0
-0
hw/char/Kconfig line 3
Quoted 3 lines
hw/char/Kconfig new file +3
-0@@ -0,0 +1,24 @@ +config IPACK + bool + depends on PCI
PCI devices are generally configurable, so you need to add prompts to them.
hw/char/Kconfig line 10
Quoted 6 lines
hw/char/Kconfig new file +6
-0+config ESCC + bool + +config PARALLEL + bool + #select ISA
Also "depends on" here. You probably also want to make all these ISA devices configurable, so add a prompt.
Paolo
Quoted 14 lines
hw/char/Kconfig new file +13
-0+config SERIAL + bool + #select ISA + +config SERIAL_PCI + bool + depends on PCI + +config SCLPCONSOLE + bool + +config PL011 + bool
Re: [Qemu-devel] [PATCH 21/47] hw/char/Kconfig: Add Kconfig file
Am 26.08.2013 12:43, schrieb Paolo Bonzini:
Quoted 7 lines
Il 26/08/2013 00:58, Ákos Kovács ha scritto:
Quoted 6 lines
Signed-off-by Ákos Kovács <[email protected]>--- hw/char/Kconfig | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 hw/char/Kconfig
Quoted 11 lines
hw/char/Kconfig line 3
Quoted 9 lines
hw/char/Kconfig new file +3
-0@@ -0,0 +1,24 @@ +config IPACK + bool + depends on PCIPCI devices are generally configurable, so you need to add prompts to them.
IndustryPack is really misplaced in hw/char/ and I believe I posted patches to remedy that and let one actually find it in our source tree. There were no objections against hw/ipack/, alternatively it could go into hw/gpio/. (Currently my patch series is waiting to be respun due to changed QOM realize requirements from Anthony.)
That having being said, IndustryPack does not depend on PCI, only the TPCI2000(?) PCI-IndustryPack bridge does.
Andreas
Quoted 29 lines
hw/char/Kconfig line 10
Quoted 7 lines
hw/char/Kconfig new file +6
-0+config ESCC + bool + +config PARALLEL + bool + #select ISAAlso "depends on" here. You probably also want to make all these ISA devices configurable, so add a prompt.
Paolo
Quoted 14 lines
hw/char/Kconfig new file +13
-0+config SERIAL + bool + #select ISA + +config SERIAL_PCI + bool + depends on PCI + +config SCLPCONSOLE + bool + +config PL011 + bool
Signature · 2 lines
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 21/47] hw/char/Kconfig: Add Kconfig file
Il 26/08/2013 19:15, Andreas Färber ha scritto:
Quoted 9 lines
Quoted 1 line
Quoted 1 line
PCI devices are generally configurable, so you need to add prompts to them.
IndustryPack is really misplaced in hw/char/ and I believe I posted patches to remedy that and let one actually find it in our source tree. There were no objections against hw/ipack/, alternatively it could go into hw/gpio/. (Currently my patch series is waiting to be respun due to changed QOM realize requirements from Anthony.)
That having being said, IndustryPack does not depend on PCI, only the TPCI2000(?) PCI-IndustryPack bridge does.
Both of them are under the same symbol right now. After all any of the two is basically unusable without the other, and plans for extension seem not to exist as even Linux has only that one bridge and one device.
I have no objection to hw/ipack, but I have a question. Would you follow the SCSI/USB model (with devices under hw/ipack, also followed for IndustryPack in the Linux kernel) or the virtio model (where the device remains under hw/char)? Generally we've tried to follow Linux for hw/ structure unless maintainers preferred otherwise, so it would prefer the former.
Paolo
Re: [Qemu-devel] [PATCH 21/47] hw/char/Kconfig: Add Kconfig file
Am 27.08.2013 00:40, schrieb Paolo Bonzini:
Quoted 15 lines
Il 26/08/2013 19:15, Andreas Färber ha scritto:
Quoted 9 lines
Quoted 1 line
Quoted 1 line
PCI devices are generally configurable, so you need to add prompts to them.
IndustryPack is really misplaced in hw/char/ and I believe I posted patches to remedy that and let one actually find it in our source tree. There were no objections against hw/ipack/, alternatively it could go into hw/gpio/. (Currently my patch series is waiting to be respun due to changed QOM realize requirements from Anthony.)
That having being said, IndustryPack does not depend on PCI, only the TPCI2000(?) PCI-IndustryPack bridge does.
Both of them are under the same symbol right now. After all any of the two is basically unusable without the other, and plans for extension seem not to exist as even Linux has only that one bridge and one device.
Quoted 6 lines
I have no objection to hw/ipack, but I have a question. Would you follow the SCSI/USB model (with devices under hw/ipack, also followed for IndustryPack in the Linux kernel) or the virtio model (where the device remains under hw/char)? Generally we've tried to follow Linux for hw/ structure unless maintainers preferred otherwise, so it would prefer the former.
My quest is a) consistency and b) easily finding QOM base device classes for refactorings. PCI and USB were done before your big hw/ reorganization, and the biggest part of devices appears to follow the categorization by function (which is why I saw the overlap with Marcel's category markup). ipoctal232 looks correct in hw/char/ to me, so that it can benefit from any general char device refactorings.
Andreas
Signature · 2 lines
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 21/47] hw/char/Kconfig: Add Kconfig file
Il 13/09/2013 16:00, Andreas Färber ha scritto:
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
I have no objection to hw/ipack, but I have a question. Would you follow the SCSI/USB model (with devices under hw/ipack, also followed for IndustryPack in the Linux kernel) or the virtio model (where the device remains under hw/char)? Generally we've tried to follow Linux for hw/ structure unless maintainers preferred otherwise, so it would prefer the former.
Quoted 6 lines
My quest is a) consistency and b) easily finding QOM base device classes for refactorings. PCI and USB were done before your big hw/ reorganization, and the biggest part of devices appears to follow the categorization by function (which is why I saw the overlap with Marcel's category markup). ipoctal232 looks correct in hw/char/ to me, so that it can benefit from any general char device refactorings.
Yeah, I agree. But I'm not sure of the benefit of an hw/ipack directory if (a) there is only one class providing the bus and (b) all the classes using the bus (well, there is just one of them) are in the same directory.
If any of the two conditions were not true anymore, I'd ask to contextually create hw/ipack. But for now, keeping both ipack files in hw/char is the most "economic" thing to do.
Paolo
Re: [Qemu-devel] [PATCH 21/47] hw/char/Kconfig: Add Kconfig file
Quoted 7 lines · Paolo Bonzini
I'm not sure of the benefit of an hw/ipack directory if (a) there is only one class providing the bus and (b) all the classes using the bus (well, there is just one of them) are in the same directory.
If any of the two conditions were not true anymore, I'd ask to contextually create hw/ipack. But for now, keeping both ipack files in hw/char is the most "economic" thing to do.
I decided to emulate both boards separately because it was not much more work and it seemed like a better idea to me, but it was the tpci200/ipoctal combination that I was interested in.
So it sounds reasonable to me to keep both files together.
Berto
PATCH 22/47 hw/core/Kconfig: Add Kconfig file
In reply to Ákos Kovács--- hw/core/Kconfig | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 hw/core/Kconfig
hw/core/Kconfig new file +11 -0
@@ -0,0 +1,11 @@ +config EMPTY_SLOT + bool + +config XILINX_AXI + bool + +config PTIMER + bool + +config SOFTMMU + bool
Signature · 1 line
1.7.10.4
Re: [Qemu-devel] [PATCH 22/47] hw/core/Kconfig: Add Kconfig file
Il 26/08/2013 00:58, Ákos Kovács ha scritto:
Quoted 12 lines
Signed-off-by Ákos Kovács <[email protected]>--- hw/core/Kconfig | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 hw/core/Kconfighw/core/Kconfig new file +0
-0
hw/core/Kconfig line 5
Quoted 5 lines
hw/core/Kconfig new file +5
-0@@ -0,0 +1,11 @@ +config EMPTY_SLOT + bool + +config XILINX_AXI + bool
Please make this "config STREAM" and "select" it from XILINX_AXI.
hw/core/Kconfig line 7
Quoted 2 lines
hw/core/Kconfig new file +2
-0+config PTIMER + bool
Remember that this should be selected from all devices that use ptimers.
hw/core/Kconfig line 11
Quoted 2 lines
hw/core/Kconfig new file +2
-0+config SOFTMMU + bool
This is not needed, it comes from config-target.mak.
Paolo
PATCH 23/47 hw/cpu/Kconfig: Add Kconfig file
In reply to Ákos Kovács--- hw/cpu/Kconfig | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 hw/cpu/Kconfig
hw/cpu/Kconfig new file +11 -0
@@ -0,0 +1,11 @@ +config ARM11MPCORE + bool + +config ARM9MPCORE + bool + +config ARM15MPCORE + bool + +config ICC_BUS + bool
Signature · 1 line
1.7.10.4
Re: [Qemu-devel] [PATCH 23/47] hw/cpu/Kconfig: Add Kconfig file
Am 26.08.2013 00:58, schrieb Ákos Kovács:
Quoted 12 lines
Signed-off-by Ákos Kovács <[email protected]>--- hw/cpu/Kconfig | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 hw/cpu/Kconfighw/cpu/Kconfig new file +0
-0
hw/cpu/Kconfig line 8
Quoted 9 lines
hw/cpu/Kconfig new file +8
-0@@ -0,0 +1,11 @@ +config ARM11MPCORE + bool + +config ARM9MPCORE + bool + +config ARM15MPCORE + bool
These naming bugs have been fixed in qemu.git in the meantime. They should be A9MPCORE and A15MPCORE respectively.
Andreas
Quoted 4 lines
hw/cpu/Kconfig new file +3
-0+ +config ICC_BUS + bool
Signature · 2 lines
SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 Nürnberg, Germany GF: Jeff Hawn, Jennifer Guild, Felix Imendörffer; HRB 16746 AG Nürnberg
PATCH 24/47 hw/display/Kconfig: Add Kconfig file
In reply to Ákos Kovács--- hw/display/Kconfig | 84 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 84 insertions(+) create mode 100644 hw/display/Kconfig
hw/display/Kconfig new file +84 -0
@@ -0,0 +1,84 @@ +config ADS7846 + bool + select SSI + +config VGA_CIRRUS + bool + depends on PCI + select VGA + #select ISA + +config G364FB + bool + +config JAZZ_LED + bool + +config PL110 + bool + select FRAMEBUFFER + +config SSD0303 + bool + #select I2C + +config SSD0323 + bool + select SSI + +config VGA_PCI + bool + select VGA + depends on PCI + +config VGA_ISA + bool + select VGA + #select ISA + +config VGA_ISA_MM + bool + select VGA + +config VMWARE_VGA + bool + select VGA + depends on PCI + +config BLIZZARD + bool + +config FRAMEBUFFER + bool + +config MILKYMIST + bool + select FRAMEBUFFER + +config ZAURUS + bool + select NAND + select ECC + +config OMAP + bool + select FRAMEBUFFER + +config PXA2XX + bool + select FRAMEBUFFER + +config MILKYMIST_TMU2 + bool + +config SM501 + bool + +config TCX + bool + +config VGA + bool + +config QXL + bool
Signature · 1 line
1.7.10.4
Re: [Qemu-devel] [PATCH 24/47] hw/display/Kconfig: Add Kconfig file
Il 26/08/2013 00:58, Ákos Kovács ha scritto:
Quoted 12 lines
Signed-off-by Ákos Kovács <[email protected]>--- hw/display/Kconfig | 84 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 84 insertions(+) create mode 100644 hw/display/Kconfighw/display/Kconfig new file +0
-0
hw/display/Kconfig line 3
Quoted 3 lines
hw/display/Kconfig new file +3
-0@@ -0,0 +1,84 @@ +config ADS7846 + bool + select SSI
Similarly this should be "depends on". To put it more clearly:
- devices that are on a particular bus should "depend on" that bus;
- devices that expose a particular bus (for example a PCI host bridge) should "select" it so that the user can choose which devices to enable on that board
- devices can also "select" library features that they use, for example FRAMEBUFFER or PTIMER, or "sub-devices" that they include, for example VGA or what you did in I82378
- boards should also "select" devices, but you got that part right so no need to explain :)
Paolo
Quoted 81 lines
hw/display/Kconfig new file +80
-0+config VGA_CIRRUS + bool + depends on PCI + select VGA + #select ISA + +config G364FB + bool + +config JAZZ_LED + bool + +config PL110 + bool + select FRAMEBUFFER + +config SSD0303 + bool + #select I2C + +config SSD0323 + bool + select SSI + +config VGA_PCI + bool + select VGA + depends on PCI + +config VGA_ISA + bool + select VGA + #select ISA + +config VGA_ISA_MM + bool + select VGA + +config VMWARE_VGA + bool + select VGA + depends on PCI + +config BLIZZARD + bool + +config FRAMEBUFFER + bool + +config MILKYMIST + bool + select FRAMEBUFFER + +config ZAURUS + bool + select NAND + select ECC + +config OMAP + bool + select FRAMEBUFFER + +config PXA2XX + bool + select FRAMEBUFFER + +config MILKYMIST_TMU2 + bool + +config SM501 + bool + +config TCX + bool + +config VGA + bool + +config QXL + bool
PATCH 25/47 hw/dma/Kconfig: Add Kconfig file
In reply to Ákos Kovács--- hw/dma/Kconfig | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 hw/dma/Kconfig
hw/dma/Kconfig new file +25 -0
@@ -0,0 +1,25 @@ +config RC4030 + bool + +config PL080 + bool + +config PL330 + bool + +config I82374 + bool + #select ISA + select I8257 + +config I8257 + bool + #select ISA + +config XILINX_AXI + bool + select PTIMER + +config STP2000 + bool + select SUN4M
Signature · 1 line
1.7.10.4
Re: [Qemu-devel] [PATCH 25/47] hw/dma/Kconfig: Add Kconfig file
Il 26/08/2013 00:58, Ákos Kovács ha scritto:
Quoted 19 lines
Signed-off-by Ákos Kovács <[email protected]>--- hw/dma/Kconfig | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 hw/dma/Kconfighw/dma/Kconfig new file +7
-0@@ -0,0 +1,25 @@ +config RC4030 + bool + +config PL080 + bool + +config PL330
hw/dma/Kconfig line 17
Quoted 10 lines
hw/dma/Kconfig new file +10
-0+ bool + +config I82374 + bool + #select ISA + select I8257 + +config I8257 + bool + #select ISA
So, according to the rules in the previous email, "select I8257" is right, but it must be once more "depends on ISA".
Paolo
Quoted 8 lines
hw/dma/Kconfig new file +7
-0+config XILINX_AXI + bool + select PTIMER + +config STP2000 + bool + select SUN4M
PATCH 26/47 hw/gpio/Kconfig: Add Kconfig file
In reply to Ákos Kovács--- hw/gpio/Kconfig | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 hw/gpio/Kconfig
hw/gpio/Kconfig new file +5 -0
@@ -0,0 +1,5 @@ +config MAX7310 + bool + +config PL061 + bool
Signature · 1 line
1.7.10.4
PATCH 27/47 hw/i2c/Kconfig: Add Kconfig file
In reply to Ákos Kovács--- hw/i2c/Kconfig | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 hw/i2c/Kconfig
hw/i2c/Kconfig new file +10 -0
@@ -0,0 +1,10 @@ +config VERSATILE_I2C + bool + select BITBANG_I2C + +config ACPI + bool + depends on PCI + +config BITBANG_I2C + bool
Signature · 1 line
1.7.10.4
Re: [Qemu-devel] [PATCH 27/47] hw/i2c/Kconfig: Add Kconfig file
Il 26/08/2013 00:58, Ákos Kovács ha scritto:
Quoted 12 lines
Signed-off-by Ákos Kovács <[email protected]>--- hw/i2c/Kconfig | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 hw/i2c/Kconfighw/i2c/Kconfig new file +0
-0
hw/i2c/Kconfig line 7
Quoted 7 lines
hw/i2c/Kconfig new file +7
-0@@ -0,0 +1,10 @@ +config VERSATILE_I2C + bool + select BITBANG_I2C + +config ACPI + bool + depends on PCI
Please move this to hw/acpi/Kconfig.
Later we can add separate PM_SMBUS and SMBUS_ICH9 symbols with proper dependencies.
Quoted 3 lines
hw/i2c/Kconfig new file +2
-0+config BITBANG_I2C + bool
PATCH 28/47 hw/ide/Kconfig: Add Kconfig file
In reply to Ákos Kovács--- hw/ide/Kconfig | 49 +++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 49 insertions(+) create mode 100644 hw/ide/Kconfig
hw/ide/Kconfig new file +49 -0
@@ -0,0 +1,49 @@ +config IDE_CORE + bool + #select ISA + +config IDE_QDEV + bool + select IDE_CORE + +config IDE_PCI + bool "IDE PCI" + select IDE_QDEV + select USB_XHCI + +config IDE_ISA + bool + #select ISA + select IDE_QDEV + +config IDE_PIIX + bool + select IDE_QDEV + depends on PCI + +config IDE_CMD646 + bool + #select ISA + depends on PCI + select IDE_QDEV + +config IDE_MACIO + bool + select IDE_QDEV + +config IDE_MMIO + bool + select IDE_QDEV + +config IDE_VIA + bool + select IDE_QDEV + depends on PCI + +config MICRODRIVE + bool + select IDE_CORE + +config AHCI + bool + select IDE_QDEV
Signature · 1 line
1.7.10.4
PATCH 29/47 hw/input/Kconfig: Add Kconfig file
In reply to Ákos Kovács--- hw/input/Kconfig | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 hw/input/Kconfig
hw/input/Kconfig new file +23 -0
@@ -0,0 +1,23 @@ +config ADB + bool + +config LM832X + bool + +config PCKBD + bool + +config PL050 + bool + +config STELLARIS_INPUT + bool + +config TSC2005 + bool + +config TSC210X + bool + +config VMMOUSE + bool
Signature · 1 line
1.7.10.4
PATCH 30/47 hw/intc/Kconfig: Add Kconfig file
In reply to Ákos Kovács--- hw/intc/Kconfig | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 hw/intc/Kconfig
hw/intc/Kconfig new file +28 -0
@@ -0,0 +1,28 @@ +config HEATHROW_PIC + bool + +config I8259 + bool + +config PL190 + bool + +config APIC + bool + +config ARM_GIC + bool + +config ARM_GIC_KVM + bool + depends on KVM + +config IOAPIC + bool + +config OPENPICS + bool + +config STELLARIS + bool + select ARM_GIC
Signature · 1 line
1.7.10.4
Re: [Qemu-devel] [PATCH 30/47] hw/intc/Kconfig: Add Kconfig file
Il 26/08/2013 00:58, Ákos Kovács ha scritto:
Quoted 20 lines
Signed-off-by Ákos Kovács <[email protected]>--- hw/intc/Kconfig | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 hw/intc/Kconfighw/intc/Kconfig new file +8
-0@@ -0,0 +1,28 @@ +config HEATHROW_PIC + bool + +config I8259 + bool + +config PL190 + bool
hw/intc/Kconfig line 18
Quoted 10 lines
hw/intc/Kconfig new file +10
-0+ +config APIC + bool + +config ARM_GIC + bool + +config ARM_GIC_KVM + bool + depends on KVM
IIRC "KVM" is not available yet in Kconfig, so you need to leave this dependency out.
hw/intc/Kconfig line 28
Quoted 10 lines
hw/intc/Kconfig new file +9
-0+config IOAPIC + bool + +config OPENPICS + bool + +config STELLARIS + bool + select ARM_GIC
Please make this symbol ARMV7M_NVIC, and make STELLARIS select it.
Paolo
PATCH 31/47 hw/isa/Kconfig: Add Kconfig file
In reply to Ákos Kovács--- hw/isa/Kconfig | 42 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 hw/isa/Kconfig
hw/isa/Kconfig new file +42 -0
@@ -0,0 +1,42 @@ +#config ISA +# bool + +config APM + bool + +config I82378 + bool + #select ISA + select I8259 # irq + select PCSPK + select I82374 # DMA + select MC146818RTC # timer + depends on PCI + +config ISA_MMIO + bool + #select ISA + +config PC87312 + bool + #select ISA + select SERIAL + select PARALLEL + select FDC + select IDE_ISA + +config PIIX4 + bool + #select ISA + depends on PCI + +config VT82C686 + bool + #select ISA + depends on PCI + +config LPC_ICH9 + bool + #select ISA + depends on PCI + select APM
Signature · 1 line
1.7.10.4
Re: [Qemu-devel] [PATCH 31/47] hw/isa/Kconfig: Add Kconfig file
Il 26/08/2013 00:58, Ákos Kovács ha scritto:
Quoted 12 lines
Signed-off-by Ákos Kovács <[email protected]>--- hw/isa/Kconfig | 42 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 hw/isa/Kconfighw/isa/Kconfig new file +0
-0
hw/isa/Kconfig line 2
Quoted 2 lines
hw/isa/Kconfig new file +2
-0@@ -0,0 +1,42 @@ +#config ISA +# bool
Why is it commented out?
Quoted 5 lines
hw/isa/Kconfig new file +5
-0+config APM + bool + +config I82378 + bool
hw/isa/Kconfig line 18
Quoted 10 lines
hw/isa/Kconfig new file +10
-0+ #select ISA + select I8259 # irq + select PCSPK + select I82374 # DMA + select MC146818RTC # timer + depends on PCI + +config ISA_MMIO + bool + #select ISA
This doesn't exist anymore.
Quoted 13 lines
hw/isa/Kconfig new file +13
-0+config PC87312 + bool + #select ISA + select SERIAL + select PARALLEL + select FDC + select IDE_ISA + +config PIIX4 + bool + #select ISA + depends on PCI +
hw/isa/Kconfig line 42
Quoted 10 lines
hw/isa/Kconfig new file +10
-0+config VT82C686 + bool + #select ISA + depends on PCI + +config LPC_ICH9 + bool + #select ISA + depends on PCI + select APM
"select ISA" is right for this file.
Paolo
PATCH 32/47 hw/misc/Kconfig: Add Kconfig file
In reply to Ákos Kovács--- hw/misc/Kconfig | 67 +++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 67 insertions(+) create mode 100644 hw/misc/Kconfig
hw/misc/Kconfig new file +67 -0
@@ -0,0 +1,67 @@ +config APPLESMC + bool + #select ISA + +config MAX111X + bool + select SSI + +config TMP105 + bool + #select I2C + +config ISA_DEBUG + bool + #select ISA + +config SGA + bool + #depends on PCI + +config ISA_TESTDEV + bool + #select ISA + +config PCI_TESTDEV + bool + depends on PCI + +config VMPORT + bool + #select ISA + +config PL310 + bool + +config PUV3 + bool + +config MACIO + bool + depends on PCI + select MAC_NVRAM + +config CUDA + bool + select MACIO + +config MAC_DBDMA + bool + select MACIO + select ADB + #select ISA + +config A9SCU + bool + +config ECCMEMCTL + bool + select ECC + +config OMAP + bool + select ECCMEMCTL + select NAND + +config PVPANIC + bool
Signature · 1 line
1.7.10.4
Re: [Qemu-devel] [PATCH 32/47] hw/misc/Kconfig: Add Kconfig file
Il 26/08/2013 00:58, Ákos Kovács ha scritto:
Quoted 44 lines
Signed-off-by Ákos Kovács <[email protected]>--- hw/misc/Kconfig | 67 +++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 67 insertions(+) create mode 100644 hw/misc/Kconfighw/misc/Kconfig new file +32
-0@@ -0,0 +1,67 @@ +config APPLESMC + bool + #select ISA + +config MAX111X + bool + select SSI + +config TMP105 + bool + #select I2C + +config ISA_DEBUG + bool + #select ISA + +config SGA + bool + #depends on PCI + +config ISA_TESTDEV + bool + #select ISA + +config PCI_TESTDEV + bool + depends on PCI + +config VMPORT + bool + #select ISA +
hw/misc/Kconfig line 42
Quoted 10 lines
hw/misc/Kconfig new file +10
-0+config PL310 + bool + +config PUV3 + bool + +config MACIO + bool + depends on PCI + select MAC_NVRAM
Correct: this is a PCI device that embeds an MacIONVRAMState.
But it also embeds a MAC_DBDMA device, so "select MAC_DBDMA" too.
hw/misc/Kconfig line 46
Quoted 3 lines
hw/misc/Kconfig new file +3
-0+config CUDA + bool + select MACIO
Should be "select ADB" since this is a device that exposes an ADB bus.
hw/misc/Kconfig line 52
Quoted 5 lines
hw/misc/Kconfig new file +5
-0+config MAC_DBDMA + bool + select MACIO + select ADB + #select ISA
Why these? I think it doesn't need any of the three.
Quoted 15 lines
hw/misc/Kconfig new file +14
-0+config A9SCU + bool + +config ECCMEMCTL + bool + select ECC + +config OMAP + bool + select ECCMEMCTL + select NAND + +config PVPANIC + bool
PATCH 33/47 hw/net/Kconfig: Add Kconfig file
In reply to Ákos Kovács--- hw/net/Kconfig | 74 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 74 insertions(+) create mode 100644 hw/net/Kconfig
hw/net/Kconfig new file +74 -0
@@ -0,0 +1,74 @@ +menu "Network devices" + config DP8393X + bool + + config XEN_BACKEND + bool + + config NE2000_PCI + bool "NE2000 ethernet card" + depends on PCI + + config EEPRO100_PCI + bool "Intel EEPRO100" + depends on PCI + + config PCNET_COMMON + bool + + config PCNET_PCI + bool + depends on PCI + select PCNET_COMMON + + config E1000_PCI + bool "Intel Gigabit E1000 ethernet" + depends on PCI + + config RTL8139_PCI + bool "Realtek RTL8139 ethernet" + depends on PCI + + config VMXNET3_PCI + bool "VmWare paravirtual Ethernet v3" + depends on PCI + + config SMC91C111 + bool + + config LAN9118 + bool + select PTIMER + + config NE2000_ISA + bool + select NE2000_PCI + + config OPENCORES_ETH + bool + + config XGMAC + bool + + config MIPSNET + bool + + config XILINX_AXI + bool + + config STELLARIS_ENET + bool + + config LANCE + bool + select PCNET_COMMON + + config COLDFIRE + bool + + config XILINX_ETHLITE + bool + + config VIRTIO + bool +endmenu
Signature · 1 line
1.7.10.4
PATCH 34/47 hw/nvram/Kconfig: Add Kconfig file
In reply to Ákos Kovács--- hw/nvram/Kconfig | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 hw/nvram/Kconfig
hw/nvram/Kconfig new file +5 -0
@@ -0,0 +1,5 @@ +config DS1225Y + bool + +config MAC_NVRAM + bool
Signature · 1 line
1.7.10.4
PATCH 35/47 hw/pci/Kconfig: Add Kconfig file
In reply to Ákos Kovács--- hw/pci/Kconfig | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 hw/pci/Kconfig
hw/pci/Kconfig new file +8 -0
@@ -0,0 +1,8 @@ +config PCI + bool + +menu "PCI" + config PCI_HOTPLUG + bool "Enable hotplugging for PCI devices" + depends on PCI +endmenu
Signature · 1 line
1.7.10.4
Re: [Qemu-devel] [PATCH 35/47] hw/pci/Kconfig: Add Kconfig file
Il 26/08/2013 00:58, Ákos Kovács ha scritto:
hw/pci/Kconfig line 8
Quoted 6 lines
hw/pci/Kconfig new file +6
-0+ +menu "PCI" + config PCI_HOTPLUG + bool "Enable hotplugging for PCI devices" + depends on PCI +endmenu
This has now been renamed to CONFIG_PCI_HOTPLUG_OLD. It's a legacy interface, so perhaps you can leave the prompt out.
Paolo
PATCH 36/47 hw/pci-bridge/Kconfig: Add Kconfig file
In reply to Ákos Kovács--- hw/pci-bridge/Kconfig | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 hw/pci-bridge/Kconfig
hw/pci-bridge/Kconfig new file +3 -0
@@ -0,0 +1,3 @@ +config DEC_PCI + bool + select PCI
Signature · 1 line
1.7.10.4
PATCH 37/47 hw/pci-host/Kconfig: Add Kconfig file
In reply to Ákos Kovács--- hw/pci-host/Kconfig | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 hw/pci-host/Kconfig
hw/pci-host/Kconfig new file +36 -0
@@ -0,0 +1,36 @@ +config PREP_PCI + bool + select PCI + +config GRACKLE_PCI + bool + select PCI + +config UNIN_PCI + bool + select PCI + +config PPCE500_PCI + bool + select PCI + +config VERSATILE_PCI + bool + select PCI + +config PCI_APB + bool + select PCI + +config FULONG + bool + select PCI + +config PCI_PIIX + bool + select PCI + #select ISA + +config PCI_Q35 + bool + select PCI
Signature · 1 line
1.7.10.4
Re: [Qemu-devel] [PATCH 37/47] hw/pci-host/Kconfig: Add Kconfig file
Il 26/08/2013 00:58, Ákos Kovács ha scritto:
Quoted 34 lines
Signed-off-by Ákos Kovács <[email protected]>--- hw/pci-host/Kconfig | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 hw/pci-host/Kconfighw/pci-host/Kconfig new file +22
-0@@ -0,0 +1,36 @@ +config PREP_PCI + bool + select PCI + +config GRACKLE_PCI + bool + select PCI + +config UNIN_PCI + bool + select PCI + +config PPCE500_PCI + bool + select PCI + +config VERSATILE_PCI + bool + select PCI + +config PCI_APB + bool
hw/pci-host/Kconfig line 32
Quoted 10 lines
hw/pci-host/Kconfig new file +10
-0+ select PCI + +config FULONG + bool + select PCI + +config PCI_PIIX + bool + select PCI + #select ISA
Here finally we have one that should be "select ISA"! :) This is because this file actually implements both a PCI bridge (the i440FX "NorthBridge") and an ISA bridge (the PIIX3 "SouthBridge").
Paolo
Quoted 4 lines
hw/pci-host/Kconfig new file +3
-0+config PCI_Q35 + bool + select PCI
PATCH 38/47 hw/scsi/Kconfig: Add Kconfig file
In reply to Ákos Kovács--- hw/scsi/Kconfig | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 hw/scsi/Kconfig
hw/scsi/Kconfig new file +21 -0
@@ -0,0 +1,21 @@ +menu "SCSI devices" + config LSI_SCSI_PCI + bool "LSI53C895A SCSI Host Bus Adapter" + depends on PCI + + config MEGASAS_SCSI_PCI + bool "MegaRAID SAS 8708EM2 Host Bus Adapter" + depends on PCI + + config VMW_PVSCSI_SCSI_PCI + bool "VMware PVSCSI paravirtual SCSI bus" + depends on PCI + + config ESP + bool + + config ESP_PCI + bool "ESP/NCR53C9x" + depends on PCI + select ESP +endmenu
Signature · 1 line
1.7.10.4
PATCH 39/47 hw/sd/Kconfig: Add Kconfig file
In reply to Ákos Kovács--- hw/sd/Kconfig | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 hw/sd/Kconfig
hw/sd/Kconfig new file +23 -0
@@ -0,0 +1,23 @@ +config SD + bool + +config PL181 + bool + select SD + +config SSI_SD + bool + select SD + select SSI + +config SDHCI + bool + select SD + +config MILKYMIST + bool + select SD + +config PXA2XX + bool + select SD
Signature · 1 line
1.7.10.4
Re: [Qemu-devel] [PATCH 39/47] hw/sd/Kconfig: Add Kconfig file
Il 26/08/2013 00:58, Ákos Kovács ha scritto:
Quoted 12 lines
Signed-off-by Ákos Kovács <[email protected]>--- hw/sd/Kconfig | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 hw/sd/Kconfighw/sd/Kconfig new file +0
-0
hw/sd/Kconfig line 6
Quoted 6 lines
hw/sd/Kconfig new file +6
-0@@ -0,0 +1,23 @@ +config SD + bool + +config PL181 + bool + select SD
"select SD" is right ("library" code).
hw/sd/Kconfig line 11
Quoted 4 lines
hw/sd/Kconfig new file +4
-0+config SSI_SD + bool + select SD + select SSI
But this needs to be "depends on". In general, you'll usually have "select SSI" inside hw/ssi, "select ISA" inside hw/isa, "select PCI" inside hw/pci-host, etc.
Paolo
Quoted 12 lines
hw/sd/Kconfig new file +11
-0+config SDHCI + bool + select SD + +config MILKYMIST + bool + select SD + +config PXA2XX + bool + select SD
PATCH 40/47 hw/ssi/Kconfig: Add Kconfig file
In reply to Ákos Kovács--- hw/ssi/Kconfig | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 hw/ssi/Kconfig
hw/ssi/Kconfig new file +14 -0
@@ -0,0 +1,14 @@ +config SSI + bool + +config PL022 + bool + select SSI + +config XILINX_SPI + bool + select SSI + +config XILINX_SPIPS + bool + select SSI
Signature · 1 line
1.7.10.4
PATCH 41/47 hw/timer/Kconfig: Add Kconfig file
In reply to Ákos Kovács--- hw/timer/Kconfig | 80 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 80 insertions(+) create mode 100644 hw/timer/Kconfig
hw/timer/Kconfig new file +80 -0
@@ -0,0 +1,80 @@ +config ARM_TIMER + bool + select PTIMER + +config CADENCE + bool + +config DS1338 + bool + +config HPET + bool + +config I8254 + bool + select MC146818RTC + #select ISA + +config M48T59 + bool + #select ISA + +config PL031 + bool + +config PUV3 + bool + select PTIMER + +config TWL92230 + bool + +config XILINX + bool + select PTIMER + +config SLAVIO + bool + select PTIMER + +config ETRAXFS + bool + select PTIMER + +config GRLIB + bool + select PTIMER + +config IMX + bool + select PTIMER + +config LM32 + bool + select PTIMER + +config MILKYMIST + bool + select PTIMER + +config EXYNOS4 + bool + select PTIMER + +config SH4 + bool + select PTIMER + +config TUSB6010 + bool + select USB_MUSB + +config ARM_MPTIMER + bool + select PTIMER + +config MC146818RTC + bool + select PTIMER + #select ISA
Signature · 1 line
1.7.10.4
PATCH 42/47 hw/tpm/Kconfig: Add Kconfig file
In reply to Ákos Kovács--- hw/tpm/Kconfig | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 hw/tpm/Kconfig
hw/tpm/Kconfig new file +6 -0
@@ -0,0 +1,6 @@ +config TPM_TIS + bool + #select ISA + +config TPM_PASSTHROUGH + bool
Signature · 1 line
1.7.10.4
PATCH 43/47 hw/usb/Kconfig: Add Kconfig file
In reply to Ákos Kovács--- hw/usb/Kconfig | 60 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 60 insertions(+) create mode 100644 hw/usb/Kconfig
hw/usb/Kconfig new file +60 -0
@@ -0,0 +1,60 @@ +menu "USB devices" + config USB_UHCI + bool "USB UHCI support" + default y + + config USB_OHCI + bool "USB OHCI support" + default y + depends on PCI + + config USB_EHCI + bool "USB EHCI support" + default y + + config USB_XHCI + bool "USB XHCI support" + default y + depends on PCI + + config USB_MUSB + bool "USB MUSB support" + default y + + config USB_TABLET_WACOM + bool "Wacom tablet USB" + default y + + config USB_STORAGE_BOT + bool "USB harddrive support" + default y + + config USB_STORAGE_UAS + bool "UAS storage" + default y + + config USB_AUDIO + bool "USB audio" + default y + + config USB_SERIAL + bool "USB serial port adapter" + default y + + config USB_NETWORK + bool "USB networking" + + config USB_BLUETOOTH + bool "USB bluetooth" + default y + + config USB_SMARTCARD + bool "USB Smart Card" + default y + + config USB_SMARTCARD_NSS + bool "Emulated USB Smart Card" + + config USB_REDIR + bool "USB redirection device" +endmenu
Signature · 1 line
1.7.10.4
Re: [Qemu-devel] [PATCH 43/47] hw/usb/Kconfig: Add Kconfig file
Il 26/08/2013 00:58, Ákos Kovács ha scritto:
Quoted 63 lines
Signed-off-by Ákos Kovács <[email protected]>--- hw/usb/Kconfig | 60 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 60 insertions(+) create mode 100644 hw/usb/Kconfighw/usb/Kconfig new file +50
-0@@ -0,0 +1,60 @@ +menu "USB devices" + config USB_UHCI + bool "USB UHCI support" + default y + + config USB_OHCI + bool "USB OHCI support" + default y + depends on PCI + + config USB_EHCI + bool "USB EHCI support" + default y + + config USB_XHCI + bool "USB XHCI support" + default y + depends on PCI + + config USB_MUSB + bool "USB MUSB support" + default y + + config USB_TABLET_WACOM + bool "Wacom tablet USB" + default y + + config USB_STORAGE_BOT + bool "USB harddrive support" + default y + + config USB_STORAGE_UAS + bool "UAS storage" + default y + + config USB_AUDIO + bool "USB audio" + default y + + config USB_SERIAL + bool "USB serial port adapter" + default y + + config USB_NETWORK + bool "USB networking" + + config USB_BLUETOOTH + bool "USB bluetooth" + default y +
hw/usb/Kconfig line 60
Quoted 10 lines
hw/usb/Kconfig new file +10
-0+ config USB_SMARTCARD + bool "USB Smart Card" + default y + + config USB_SMARTCARD_NSS + bool "Emulated USB Smart Card" + + config USB_REDIR + bool "USB redirection device" +endmenu
You should include the 3 USB patches you sent last week before this one, please.
Thanks,
Paolo
PATCH 44/47 hw/watchdog/Kconfig: Add Kconfig file
In reply to Ákos Kovács--- hw/watchdog/Kconfig | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 hw/watchdog/Kconfig
hw/watchdog/Kconfig new file +7 -0
@@ -0,0 +1,7 @@ +config WDT_IB6300ESB + bool + depends on PCI + +config WDT_IB700 + bool + #depends on ISA
Signature · 1 line
1.7.10.4
Re: [Qemu-devel] [PATCH 44/47] hw/watchdog/Kconfig: Add Kconfig file
Il 26/08/2013 00:58, Ákos Kovács ha scritto:
Quoted 13 lines
Signed-off-by Ákos Kovács <[email protected]>--- hw/watchdog/Kconfig | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 hw/watchdog/Kconfighw/watchdog/Kconfig new file +0
-0
hw/watchdog/Kconfig line 7
Quoted 7 lines
hw/watchdog/Kconfig new file +7
-0@@ -0,0 +1,7 @@ +config WDT_IB6300ESB + bool + depends on PCI + +config WDT_IB700 + bool + #depends on ISA
This one would have been right. :)
Paolo
PATCH 45/47 hw/Kconfig: Add the main Kconfig for hw/
In reply to Ákos Kovács--- hw/Kconfig | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 hw/Kconfig
hw/Kconfig new file +27 -0
@@ -0,0 +1,27 @@ +source "hw/9pfs/Kconfig" +source "hw/audio/Kconfig" +source "hw/block/Kconfig" +source "hw/char/Kconfig" +source "hw/core/Kconfig" +source "hw/cpu/Kconfig" +source "hw/display/Kconfig" +source "hw/dma/Kconfig" +source "hw/gpio/Kconfig" +source "hw/i2c/Kconfig" +source "hw/input/Kconfig" +source "hw/intc/Kconfig" +source "hw/ide/Kconfig" +source "hw/isa/Kconfig" +source "hw/misc/Kconfig" +source "hw/net/Kconfig" +source "hw/nvram/Kconfig" +source "hw/pci-bridge/Kconfig" +source "hw/pci-host/Kconfig" +source "hw/pci/Kconfig" +source "hw/scsi/Kconfig" +source "hw/sd/Kconfig" +source "hw/ssi/Kconfig" +source "hw/timer/Kconfig" +source "hw/tpm/Kconfig" +source "hw/usb/Kconfig" +source "hw/watchdog/Kconfig"
Signature · 1 line
1.7.10.4
PATCH 46/47 configure: Generate Kconfig.targets with --target-list
In reply to Ákos Kovács--- configure | 11 +++++++++++ 1 file changed, 11 insertions(+)
configure +11 -0
@@ -4288,6 +4288,7 @@ case "$target_name" in ;; sparc64) TARGET_BASE_ARCH=sparc + kconfig_subdirs="$kconfig_subdirs sparc64" ;; sparc32plus) TARGET_ARCH=sparc64
@@ -4311,6 +4312,7 @@ if [ "$TARGET_BASE_ARCH" = "" ]; then TARGET_BASE_ARCH=$TARGET_ARCH fi +kconfig_subdirs="$kconfig_subdirs $TARGET_BASE_ARCH" symlink "$source_path/Makefile.target" "$target_dir/Makefile" upper() {
@@ -4494,6 +4496,15 @@ echo "QEMU_CFLAGS+=$cflags" >> $config_target_mak done # for target in $targets +# Generate Kconfig.targets +kconfig_targets="Kconfig.targets" +kconfig_subdirs=$(echo $kconfig_subdirs | tr ' ' '\n' | sort -u | tr '\n' ' ') +echo "# Automatically generated by configure - do not modify" > $kconfig_targets + +for i in $kconfig_subdirs ; do + echo "source \"hw/$i/Kconfig\"" >> $kconfig_targets +done + if [ "$pixman" = "internal" ]; then echo "config-host.h: subdir-pixman" >> $config_host_mak fi
Signature · 1 line
1.7.10.4
Re: [Qemu-devel] [PATCH 46/47] configure: Generate Kconfig.targets with --target-list
Il 26/08/2013 00:58, Ákos Kovács ha scritto:
Quoted 32 lines
Signed-off-by Ákos Kovács <[email protected]>--- configure | 11 +++++++++++ 1 file changed, 11 insertions(+)configure +4
-0@@ -4288,6 +4288,7 @@ case "$target_name" in ;; sparc64) TARGET_BASE_ARCH=sparc + kconfig_subdirs="$kconfig_subdirs sparc64" ;; sparc32plus) TARGET_ARCH=sparc64@@ -4311,6 +4312,7 @@ if [ "$TARGET_BASE_ARCH" = "" ]; then TARGET_BASE_ARCH=$TARGET_ARCH fi +kconfig_subdirs="$kconfig_subdirs $TARGET_BASE_ARCH" symlink "$source_path/Makefile.target" "$target_dir/Makefile" upper() {@@ -4494,6 +4496,15 @@ echo "QEMU_CFLAGS+=$cflags" >> $config_target_mak done # for target in $targets +# Generate Kconfig.targets +kconfig_targets="Kconfig.targets"
configure echo "QEMU_CFLAGS+=$cflags" >> $config_target_mak · line 4510
Quoted 10 lines
configure +7
-0+kconfig_subdirs=$(echo $kconfig_subdirs | tr ' ' '\n' | sort -u | tr '\n' ' ') +echo "# Automatically generated by configure - do not modify" > $kconfig_targets + +for i in $kconfig_subdirs ; do + echo "source \"hw/$i/Kconfig\"" >> $kconfig_targets +done + if [ "$pixman" = "internal" ]; then echo "config-host.h: subdir-pixman" >> $config_host_mak fi
There is one issue that we have not solved yet here (pointed out by Peter Maydell on IRC). Right now, the presence of a file in default-configs/ is used to check if a target name is correct. We need to figure out a different way to do the same thing.
This needs to cover both softmmu and user targets. For softmmu, perhaps there should be a hw/boards/ directory with a subdirectory for each target. "source hw/i386/Kconfig" (for Kconfig) or "obj-y += ../i386/" can be used to recurse back to a common directory from there.
For linux-user, the problem is that we don't have anything to configure with Kconfig---so no reason to have a Kconfig file or a directory structure with one directory per target.
Paolo
PATCH 47/47 Kconfig: Main kconfig file added
In reply to Ákos Kovács--- Kconfig | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 Kconfig
Kconfig new file +12 -0
@@ -0,0 +1,12 @@ +# Kconfig SeaBIOS configuration + +mainmenu "QEMU Configuration" + +# Include the user-selected Kconfigs +menu "Boards" + source "Kconfig.targets" +endmenu + +# Device and bus configurations +source "hw/Kconfig" +
Signature · 1 line
1.7.10.4
Quoted 3 lines · Ákos Kovács
This is a request-for-comments patchset on the kconfig integration. The patchset contains a '
scripts/kconfig' git submodule (PATCH 5, kconfig-frontends v3.10) with the necessary modifications in the Makefile.objs (PATCHES 6-16).
Hi; could you describe the general reasons why we want to do this, please? (ie the benefits we get from reworking our config/build system).
(also for next time round, make sure you write a useful subject in your cover letter :-))
thanks
-- PMM