History | View | Annotate | Download (15.3 kB)
qapi: enable generation of native list code
Also, fix a dependency issue with libqemuutil: qemu-sockets.c needsqapi-types.c/qapi-visit.c
Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>Reviewed-by: Laszlo Ersek <lersek@redhat.com>Reviewed-by: Amos Kong <akong@redhat.com>...
win32: fix compilation again
While commit c02817e5bfbb27955cac970019e6670dc427bc41 fixed compilationwithout an installed libtool, moving the dependencies to rules.mak doesnot work because the version-*-y variables are not defined yet. Buildingin a clean tree thus fails....
win32: move Makefile dependencies on version-obj-y to rules.mak
This makes the test on $(LIBTOOL) work. Otherwise, LIBTOOLis /bin/false by the time the test is done.
Fixes Win32 compilation without a working cross-libtool.
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
win32: add generic RC rules to rules.mak
S390: ccw firmware: Add compiled blob
Now that we have all the source code ready, add a compiled blob intothe QEMU source tree, so that people without access to an s390 compilercan run the s390-ccw firmware.
Signed-off-by: Alexander Graf <agraf@suse.de>
Makefile: Don't build shared libfdt
The submodule DTC should just build and use DTC as static (the wholemotivation for using submod is lack of widespread distro support).
The .so causes build failures on some platforms, so adjust the maketarget to just build the static lib....
Makefile: Use QEMU_FLAGS for DTC compilation
Build DTC as QEMU is built. Fixes the issue with mingw build which can'thandles DTC's default CFLAGS.
Signed-off-by: Peter Crosthwaite <peter.crosthwaite@xilinx.com>Signed-off-by: Edgar E. Iglesias <edgar.iglesias@gmail.com>
Merge remote-tracking branch 'alon/libcacard_ccid.1' into staging
build: include config-{, all-}devices.mak after defining CONFIG_SOFTMMU and CONFIG_USER_ONLY
Moving the inclusions closer to Makefile, and before rules.mak, makesMakefile and Makefile.target more consistent with each other.
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>...
libcacard: fix mingw64 cross-compilation
Compile and link with version.lo
Signed-off-by: Marc-André Lureau <mlureau@redhat.com>Reviewed-by: Alon Levy <alevy@redhat.com>
configure/Make: Build libfdt from submodule DTC
Configure to use the DTC submodule to build libfdt when no system libfdtis found. Prompt to install the DTC submodule if --enable-fdt is set butno DTC can be found.
DTC has no out-of-tree build capability, so the configure will symlink...
Update Makefile to actually install the new efi-enabled nic roms that are used by default.
Commit c45e5b5b30ac1f5505725a7b36e68cedfce4f01f made a switch use the efi-enabled nic roms by default.This patch updates the Makefile to install the roms so they can actually be used....
build: enable using $(CONFIG_FOO) on the rhs of config files
trace: Provide a generic tracing event descriptor
Uses tracetool to generate a backend-independent tracing event description(struct TraceEvent).
The values for such structure are generated with the non-public "events" backend ("events-c" frontend).
The generation of the defines to check if an event is statically enabled is also...
Fix TAGS creation
Currently the Makefile creates TAGS for emacs with the command: find "$(SRC_PATH)" -name '*.[hc]' -print0 | xargs -0 etagsThat works only if xargs ends up invoking etags just once. If xargs runsetags several times, as it will if there are enough files, then the later...
make_device_config.sh: Emit dependency file to directory where included
Placing the config-devices.mak.d file alongside the config-devices.makfile in -softmmu/ lead to it getting included into through-softmmu/Makefile in addition to ./Makefile, leading to confusion....
Makefile: Add subdir dependency on config-devices-all.mak
What 23bf49b5eca716aaad073f2b47613434e1515cb5 really seemed to try tofix is that Makefile could recurse into *-softmmu/ subdirectories beforea new *-softmmu/config-devices.mak was generated from pci.mak....
gtk: add translation support (v5)
This includes a de_DE translation from Kevin Wolf and an it translation fromPaolo Bonzini.
Cc: Paolo Bonzini <pbonzini@redhat.com>Cc: Kevin Wolf <kwolf@redhat.com>Cc: Stefan Hajnoczi <stefanha@redhat.com>Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>...
build: remove *.lo, *.a, *.la files from all subdirectories on make clean
.lo files in stubs/, util/ and libcacard/ were not cleaned.Fix this.
Cc: Blue Swirl <blauwirbel@gmail.com>Reported-by: Stefan Hajnoczi <stefanha@redhat.com>Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>...
build: remove extra-obj-y
extra-obj-y is somewhat complicated to understand. Replace it with aspecial CONFIG_ALL symbol that is defined only at toplevel.This limits the case of directories defining more than one*-obj-y target.
build: remove universal-obj-y
All of universal-obj-y, user-obj-y (right now unused) and common-obj-y canbe unified into common-obj-y if we take care of defining CONFIG_SOFTMMUand CONFIG_USER_ONLY in the toplevel makefile. This is similar to howwe define symbols for hardware components....
Makefile: drop recursive libcacard clean
Commit eb8eb53e5846a957cf333f2e1ec8cb6e0c04 ("libcacard: rewriteMakefile in non-recursive style") refactored libcacard/Makefile so itcan be included by the top-level Makefile.
The top-level clean target still loops over subdirectories, including...
build: fix Win32 clean build
The version.o file did not appear explicitly as a dependency, andthis caused clean builds to fail. Force its build by making theMakefile depend on version.o.
(We cannot add it to libqemuutil.a, because it doesn't export any...
Merge remote-tracking branch 'kraxel/pixman.v6' into staging
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
pixman: pass extra cflags and ldflags
Store --extra-cflags and --extra-ldflags in config-host.mak,then pass them on to the pixman configure script.
Cc: Scott Wood <scottwood@freescale.com>Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
build: move base QAPI files to libqemuutil.a
build: move version-obj-y to the generic LINK rule
There is no reason for it to be in block-obj-y, in particular.
build: fold trace-obj-y into libqemuutil.a
build: rename oslib-obj-y to util-obj-y
This prepares the creation of libqemuutil.a in the next patch.
build: move util-obj-y to libqemuutil.a
Use a static library to eliminate repetition in the linking rules.
build: move files away from tools-obj-y, common-obj-y, user-obj-y
Split them between libqemuutil.a and, for those used by qemu-img/io/nbd,block-obj-y.
Static libraries ensure that binaries such as qemu-ga do not includeunused modules.
build: move qobject files to qobject/ and libqemuutil.a
libcacard: rewrite Makefile in non-recursive style
libcacard: require libtool to build it
Do not fail at build time, instead just disable the library if libtoolis not present.
stubs: fully replace qemu-tool.c and qemu-user.c
Makefile: install the "acpi-dsdt.aml" and "q35-acpi-dsdt.aml" blobs too
The WARNING message from commit f7e4dd6c made me notice.
Signed-off-by: Laszlo Ersek <lersek@redhat.com>Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
qemu-ga: sample fsfreeze hooks
Adds sample hook scripts for --fsfreeze-hook option of qemu-ga. - fsfreeze-hook : execute scripts in fsfreeze-hook.d/ - fsfreeze-hook.d/mysql-flush.sh.sample : quiesce MySQL before snapshot
Signed-off-by: Tomoki Sekiyama <tomoki.sekiyama.qu@hitachi.com>...
build: Use separate makefile for "trace/"
Reviewed-by: Paolo Bonzini <pbonzini@redhat.com>Signed-off-by: Lluís Vilanova <vilanova@ac.upc.edu>--Changes in v2:
qemu-ga: move qemu-ga files to qga/
build: adjust setting of QEMU_INCLUDES
Make it correct for nested directories, and move the static partfrom Makefile to configure.
build: move rules from Makefile to */Makefile.objs
build: kill libdis, move disassemblers to disas/
build: kill libuser
vscclient: use per-target variables
libcacard: simplify rules for recursive build
Build system fix distclean error for pixman
Currently Makefile test if pixman have configure log, but the script directlyreturn error if that file do not exist. This patch fix it.
Signed-off-by: Wenchao Xia <xiawenc@linux.vnet.ibm.com>Reviewed-by: Peter Maydell <peter.maydell@linaro.org>...
Makefile: Add missing dependency (fix parallel builds)
The executables in i386-softmmu, i386-linux-user, ...depend on the recently added libqemustub.a.
Signed-off-by: Stefan Weil <sw@weilnetz.de>Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
build: replace weak symbols with a static library
Weak symbols were a nice idea, but they turned out not to be a good one.Toolchain support is just too sparse, in particular llvm-gcc is totallybroken.
This patch uses a surprisingly low-tech approach: a static library....
pixman: cleanup properly on make distclean
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
pixman: pass cflags, add -fPIC
Pass on CFLAGS to the pixman configure script.Add -fPIC to the cflags, needed to make the final link succeed.
pixman: disable gtk
gtk is only needed to build test cases.Disable it to simplify the build.
pixman: set --host for cross builds
Set --host when calling pixman configure while doing cross builds sopixman's autoconf picks up the cross build tools correctly.
Merge remote-tracking branch 'kraxel/pixman.v3' into staging
pixman: windup in configure & makefiles
Merge remote-tracking branch 'origin/master' into threadpool
build: do not include main loop where it is not actually used
build: move cutils.o and qemu-timer-common.o to oslib-obj-y
janitor: move iovector functions out of cutils.c
This removes the dependency of cutils.c on iov.c, and lets us removeiov.o from several builds.
Makefile: Forbid out-of-tree build from a source tree that has been built in
If we try to do an out-of-tree build but the source tree we're building fromhas been used in the past for an in-tree build then things will goconfusingly wrong. Specifically, some parts of the build process will pull...
qemu-sockets: add socket_listen, socket_connect, socket_parse
These are QAPI-friendly versions of the qemu-sockets functions. Theysupport IP sockets, Unix sockets, and named file descriptors, using aQAPI union to dispatch to the correct function.
Reviewed-by: Luiz Capitulino <lcapitulino@redhat.com>...
build: add QAPI files to the tools
We need them because qemu-sockets will soon be using SocketAddress.
Acked-by: Luiz Capitulino <lcapitulino@redhat.com>Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
allow make {dist, }clean work w/out configure
There's no reason to require configure to run before running a cleantarget, so check MAKECMDGOALS before.
Signed-off-by: Mike Frysinger <vapier@gentoo.org>Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
Remove libhw
The entries for libhw* are no longer needed in .gitignore.
There is also no longer a difference between common-obj-y andhw-obj-y, so one of those two macros is sufficient.
Signed-off-by: Stefan Weil <sw@weilnetz.de>Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Make target_phys_addr_t 64 bits unconditionally
The hassle and compile time overhead of maintaining both 32-bit and 64-bitcapable source isn't worth the tiny performance advantage which is seen ona minority of configurations. Switch to compiling libhw only once, with...
configure: Allow builds without any system or user emulation
The old code aborted configure when no emulation target was selected.Even after removing the 'exit 1', it tried to read from STDINwhen QEMU was configured with
configure' '--disable-user' '--disable-system'...
Eliminate cpus-x86_64.conf file
This file is not needed anymore, as QEMU won't ship any config-basedcpudefs out of the box, relying only on the builtin CPU models.
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>Reviewed-by: Igor Mammedov <imammedo@redhat.com>...
qemu-img: Add json output option to the info command.
This option --output=[human|json] make qemu-img info output onhuman or JSON representation at the choice of the user.
example: { "snapshots": [ { "vm-clock-nsec": 637102488, "name": "vm-20120821145509",...
Merge remote-tracking branch 'stefanha/trivial-patches' into staging
Makefile: Avoid explicit list of directories in clean target
Avoid having an explicit list of directories in the 'clean'target by using 'find' to remove all .o and .d files instead.
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>Reviewed-by: Eric Blake <eblake@redhat.com>...
block: Enable qemu_open/close to work with fd sets
When qemu_open is passed a filename of the "/dev/fdset/nnn" format (where nnn is the fdset ID), an fd with matching accessmode flags will be searched for within the specified monitorfd set. If the fd is found, a dup of the fd will be returned...
Makefile: add qapi.py dependencies
Commit 427a1a2cb1d35b83b6302886f46289f6d617134d ("qapi: avoid reservedkeywords") modifies qapi.py, which is used by qapi-types.py and otherPython scripts. Because Makefile has no dependencies for qapi.py theqapi code generator will not be rerun and the following build error is...
usb: Clean common object and dependency files
Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>Signed-off-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
qom: Clean libuser object and dependency files
build: Fix linking failure for qemu-ga
This patch will fix the following linking failed:
LINK qemu-gagcc: error: qga/../qapi-generated/qga-qapi-types.o: No such file or directorygcc: error: qga/../qapi-generated/qga-qapi-visit.o: No such file or directory...
build: get dependency file directories from object file names
After commit dcff25f2cd8c11a9368cc2369aeb0319c32d9e26, Dependency fileare taken from the directories that have a Makefile.objs file. This isnot enough, since files can be included from other directories....
build: include qapi-generated/ files in qga/Makefile.objs
No reason to leave them out, and it will ensure that the dependenciesare picked up. Later we can perhaps move the files to anotherdirectory to avoid ../ usage.
build: fix build breakage due to bad merge
34bb443ee74df3780d86044dbf6492eb798c5807 broke the build but in a subtle way.The patch on the ML was actually based on the 1.1.1 stable branch(accidentally). When I merged it from the ML, the fuzzing got resolved in a...
build: add make dist target (v2)
Let's stop screwing up releases by having a script do the work that Anthony'sfat fingers can't seem to get right.
Cc: Michael Roth <mdroth@linux.vnet.ibm.com>Reviewed-by: Eric Blake <eblake@redhat.com>Tested-by: Michael Roth <mdroth@linux.vnet.ibm.com>...
make: Remove 'build-all' rule
It is not needed, because the 'all' rule does the same.
Signed-off-by: Stefan Weil <sw@weilnetz.de>Signed-off-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
Merge remote-tracking branch 'mjt/mjt-iov2' into staging
PPC: e500: dt: start with empty device tree
Now that all of the device tree bits are generated during runtime, wecan get rid of the device tree blob and instead start from scratch withan empty device tree.
Makefile: Remove macro qapi-dir
As qapi-dir was now a constant, it can be replaced by its value.
Install 'bepo' keymap already included in Qemu source
The 'bepo' layout (a french dvorak-like keyboard layout) was addedabout one year ago, (see commit 2a3c633c1eb8692716220195b6d3fe78b7e411d0),but I missed to declare to install it.
Signed-off-by: Frédéric Boiteux <fboiteux@free.fr>...
Makefile: Remove BUILD_DIR from qapi-dir
qapi-dir does not need an absolute path. All other build directoriesare relative. When BUILD_DIR is removed, the build output looks better(no long lines with absolute paths when everything else uses shortlines):...
libcacard: build fixes
Link trace objects to fix these errors: LINK vscclientoslib-posix.o: In function `trace_qemu_vfree':/src/qemu/obj-amd64/./trace.h:39: undefined reference to `trace1'oslib-posix.o: In function `trace_qemu_memalign':/src/qemu/obj-amd64/./trace.h:31: undefined reference to `trace3'...
make: automatically include dependencies in recursive subdir rules (v2)
I think I understand enough of what's going on in these rules to ensure this isright. But I could certainly use a second or third opinion...
build: install qmp-commands.txt
File is targeted for install, but is never installed.
Signed-off-by: Bruce Rogers <brogers@suse.com>Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>
consolidate qemu_iovec_memset{,_skip}() into single function and use existing iov_memset()
This patch combines two functions into one, and replacesthe implementation with already existing iov_memset() fromiov.c.
The new prototype of qemu_iovec_memset():...
build: libcacard Makefile cleanups
Build vscclient from toplevel Makefile, limit usage of vpath.
build: limit usage of vpath
All paths are now explicitly given, and the object tree mimicsthe source tree, so there is no need to apply special vpaths.
build: move target-independent hw/ objects to nested Makefile.objs
This patch starts converting the hw/ directory. Some files in hw/are compiled once, some twice (32-/64-bit), some once per target.Each category is moved in a separate patch.
After this patch, the files that are compiled once will show the...
build: move fsdev/ objects to nested Makefile.objs
build: do not sprinkle around GENERATED_HEADERS dependencies
Keeping GENERATED_HEADERS dependencies up-to-date everywhere is complex.We can simply make the Makefile depend on them, and they will be builtbefore all other targets.
move CPU definitions to /usr/share/qemu/cpus-x86_64.conf (v2)
Changes v1 -> v2: - userconfig variable is now bool, not int
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Merge remote-tracking branch 'stefanha/tracing' into staging
sdl: Add QEMU mascot icon for use with SDL
This is a bitmap file (32x32x4) derived from the official QEMU mascot(which was designed by Benoît Canet). I stripped the text from the SVGto get a nearly square image and converted the result to BMP withoutany manual optimization....
Generic elimination of auto-generated files
Signed-off-by: Lluís Vilanova <vilanova@ac.upc.edu>Signed-off-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
Makefile: use $(qemu_confdir) instead of $(sysconfdir)/qemu
Instead of hardcoding the directory suffix, use the qemu-specificdirectory variable.
config-host.mak: rename docdir to qemu_docdir