History | View | Annotate | Download (14.5 kB)
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.
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>...
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
Merge remote-tracking branch 'stefanha/trivial-patches' 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.
Signed-off-by: Alexander Graf <agraf@suse.de>
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...
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
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.
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
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>
config-host.mak: rename datadir to qemu_datadir
Autoconf concept of "datadir" is supposed to be "$prefix/share", not"$prefix/share/PACKAGE", so using datadir for the Qemu-specificdirectory is confusing.
The current C code that uses CONFIG_QEMU_DATADIR should be safe, as now...
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
make: Always set LC_ALL=C for makeinfo
Otherwise the generated file qemu-doc.html will contain "Anhang" instead of "Appendix" with a German locale (de_DE.UTF-8).
make: fix clean rule by removing build file in qom/
Make clean does not clean the 'qom' directory, leaving *.o and *.d files. Thispatch fixes this.
Signed-off-by: Anthony PERARD <anthony.perard@citrix.com>Signed-off-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
buildfix: check for old pod2man versions
Older pod2man don't have a --utf8 switch, check for this in conffigureand use it only when present. Fixes build on RHEL-5.
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
test: remove qemu-ga reference
This was added by mistake a while back.
Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Support utf8 chars in pod docs
We've at least one UTF8 char in the qemu texi doc:
$ grep Tibor qemu-doc.texi by Tibor "TS" Schütz. $ man ./qemu.1 | grep Tibor by Tibor "TS" SchA~Xtz.
This patch allows utf8 in man/pod docs.
Initially it was split into two parts and sent on 2012-02-02....
qom: Add QOM support to user emulators
Link the Object base class and the module infrastructure for classregistration. Introduce $(universal-obj-y) for objects that are morecommon than $(common-obj-y), so that those only get built once.
Call QOM module init for type registration....
build: Include config-host.mak as soon as possible
Current code depends on variables defined in config-host.mak before it isactually included.
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>Signed-off-by: Lluís Vilanova <vilanova@ac.upc.edu>Cc: Anthony Liguori <aliguori@us.ibm.com>...
Merge remote-tracking branch 'qemu-kvm/uq/master' into staging
Merge remote-tracking branch 'aneesh/for-upstream' into staging
./configure: add option for disabling VirtFS
Signed-off-by: Meador Inge <meadori@codesourcery.com>Signed-off-by: Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
qemu-ga: fixes for win32 build of qemu-ga
Various stubs and #ifdefs to compile for Windows using mingwcross-build. Still has 1 linker error due to a dependency on theforthcoming win32 versions of the GAChannel/transport class.
Makefile: Add dependency to fix linux-user-only build
Make qemu-bridge-helper explicitly depend on $(GENERATED_HEADERS)so that it doesn't fail to build when we configured for linux-usertargets only. (Build breakage introduced in commit 7b93fad.)
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>...
kvmvapic: Add option ROM
This imports and builds the original VAPIC option ROM of qemu-kvm.Its interaction with QEMU is described in the commit that introduces thecorresponding device model.
Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>Signed-off-by: Avi Kivity <avi@redhat.com>
make: Remove duplicate use of GLIB_CFLAGS
Makefile, Makefile.hw, Makefile.target and libcacard/Makefileadded GLIB_CFLAGS to QEMU_CFLAGS.
Makefile.objs does this, too, and is included by all otherMakefiles, so GLIB_CFLAGS were added twice (reported by malc)....
Add basic version of bridge helper
This patch adds a helper that can be used to create a tap device attached toa bridge device. Since this helper is minimal in what it does, it can begiven CAP_NET_ADMIN which allows qemu to avoid running as root while still...
Makefile: Remove linux-headers/asm symlink on distclean
configure creates a linux-headers/asm symlink. Remove this whendoing a distclean.
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
qom: add the base Object class (v2)
This class provides the main building block for QEMU Object Model and isextensively documented in the header file. It is largely inspired by GObject.
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>---v1 -> v2...
Makefile: Remove generated headers on clean
Running `make distclean' followed by a new out-of-tree build would faildue to stale generated QMP headers in the tree.
Commit 611b727374ad76fb0078ea65bc1387194913980e (Makefile: remove moregenerated files on clean) made sure generated sources are removed....
Makefile: Exclude tests/Makefile in unconfigured tree
Since commit dbfe06c62ccedc5b64e1c6466445133dd50f6de1 (build:split unit test builds to a separate makefile fragment),in absence of config-host.mak an undefined $(SRC_PATH) breaks`make distclean' due to /tests/Makefile not being include'able....
test: eliminate libcheck tests and have make check use gtester
build: split unit test builds to a separate makefile fragment
Fix qapi code generation fix
The fixes to qapi code generation had multiple bugs:- the Null class used to drop output was missing some methods- in some scripts it was never instantiated, leading to a None return, which is missing even more methods- the --source and --header options were swapped...
tests: mv tests/* -> tests/tcg
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
hw/9pfs: man page for proxy helper
Signed-off-by: M. Mohan Kumar <mohan@in.ibm.com>Signed-off-by: Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
hw/9pfs: File ownership and others
Add file ownership interfaces like chmod/chown, utime update, rename,remove and truncating files for proxy FS
hw/9pfs: File system helper process for qemu 9p proxy FS
Provide root privilege access to QEMU 9p proxy filesystem using socketcommunication.
Proxy helper is started by root user as:~ # virtfs-proxy-helper -f|--fd <socket descriptor> -p|--path <path-to-share>...
Fix qapi code generation wrt parallel build
Make's multiple output syntax
x.c x.h: x.template gen < x.template
actually invokes the command once for x.c and once for x.h (with differing $@in each invocation). During a parallel build, the two commands may be invoked...
link the main loop and its dependencies into the tools
Using the main loop code from QEMU enables tools to operate fullyasynchronously. Advantages include better Windows portability (for somedefinition of portability) over glib's.
Introduce test-qmp-output-visitor
Contains unit-tests for the QMP output visitor implementation.
Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>
Introduce test-qmp-input-visitor
Contains unit-tests for the QMP input visitor implementation.
Drop test-visitor
It has been superseded by the two previous commits, which introducedthe test-qmp-output-visitor and test-qmp-input-visitor tests.
Makefile: use full path for qapi-generated directory
Generally $(BUILD_DIR) == $(CURDIR), but that isn't necessarilly thecase, so use $(BUILD_DIR)/qapi-generated for generated files toavoid potentionally sticking generating files in odd places outsidethe build's include paths....
Revert "fix out of tree build"
This reverts commit be85c90b74f56dca51782fa3080fcdf88593e045.
This patch is incorrect and breaks the build with a freshly cloned git tree.
fix out of tree build
Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>Signed-off-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
Makefile: remove more generated files on clean
make clean missed the source qmp files generatedby python. Fix that.
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>Reviewed-by: Paolo Bonzini <pbonzini@redhat.com>Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>
Makefile: fix dependencies for generated .h, .c
We have a single rule generating .c and .h files,so .h doesn't depend on .c: both depend on thesource schema.
Fix Makefile to reflect that - without this,if .c is there and .h is missing, Makefile doesnot know how to remake .h and assumes it's...
Makefile: dependency fix
qga/guest-agent-commands.c includes qga-qmp-commands.h,but it was missing in its dependencies. Add it in QGALIB_GEN.
Makefile: fix qga dependencies
.c files include .h files, so .o depends on .h,and the linked result depends on .o.We got it wrong for qga rules, fix it up.
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>Reviewed-by: Paolo Bonzini <pbonzini@redhat.com>...
add sgabios blob and submodule
The rom was not added together with the sgabios device and isnot installed.
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
move checks to separate variable
Create a new CHECKS variable. Put the checks there insteadof adding them to the TOOLS variable.
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
add "make check" target
Add some Makefile glue so we have a simple "make check" to run the unit tests.
tools: reorganize Makefile variables
- Add all dependencies of the block layer to block-obj-y, and all dependencies of QObject to qobject-obj-y
- Remove the block layer from tools-obj-y, add it to qemu-img, qemu-nbd, qemu-io
- Add qobject-obj-y and tools-obj-y wherever useful, remove duplicates...
Merge remote-tracking branch 'qmp/queue/qmp' into staging
target-alpha: Add custom PALcode image for CLIPPER emulation.
Signed-off-by: Richard Henderson <rth@twiddle.net>
makefile: extract tools-obj-y
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>Signed-off-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
qapi: use middle mode in QMP server
Use the new middle mode within the existing QMP server.
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>
Makefile: Remove 'tarbin' target
Remove the 'tarbin' target -- it isn't used as part of the officialQEMU release process, and it's out of date (various new bios fileswere never added to its list of files). It's better not to provideit at all than to have a broken makefile target we never use or test....
Makefile: Fix broken build
make -C mybuilddir no longer works (regression caused by commit)388d475815c23901010a25c845eb078d47ee0740.
PWD is the directory of the caller (not mybuilddir),so BUILD_DIR is set to the wrong value.
GNU make sets CURDIR to the correct value....
build: Always have 'BUILD_DIR' variable pointing to the root of the build tree
Signed-off-by: Lluís Vilanova <vilanova@ac.upc.edu>Signed-off-by: Lluís Vilanova <vilanova@ac.upc.edu>Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
win32: improve version.o dependency
Actually, version.rc doesn't need config-host.mak but config-host.h, fix it.
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
Rename qemu -> qemu-system-i386
This has been discussed before in the past. The special casing really makes nosense anymore. This seems like a good change to make for 1.0.
trace: move backend-specific code into the trace/ directory
Signed-off-by: Lluís Vilanova <vilanova@ac.upc.edu>
guest agent: remove uneeded dependencies
This patch tries to cull any uneeded library dependencies from the guestagent to improve portability across various distros. We do so by beingas explicit as possible about in-tree dependencies rather than relying...
Remove remenants of qemu_malloc
This covers the various check commands
Remove qemu_malloc/qemu_free
Makefile: delete config.log in distclean
Distclean should remove anything created by the configure script.
Signed-off-by: Alexandre Raymond <cerbere@gmail.com>Signed-off-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
coroutine: add test-coroutine automated tests
To run automated tests for coroutines:
make test-coroutine ./test-coroutine
On success the program terminates with exit status 0. On failure anerror message is written to stderr and the program exits with exit...
Makefile: add missing deps on $(GENERATED_HEADERS)
This fixes a build issue with make -j6+ due to qapi-generated filesbeing built before $(GENERATED_HEADERS) have been created.
Tested-by: Stefan Berger <stefanb@linux.vnet.ibm.com>Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>...
Makefile: Minor cscope fixups
Create cscope symbols for assembly files in addition to .c/.h files.Create cscope database with full path instead of relative path so cscopecan be used with CSCOPE_DB in any directory.
Signed-off-by: Alexandre Raymond <cerbere@gmail.com>...
Let users select their pythons
Add configure check for python, exit if not found. Add switchesfor specifying the path to python, use the path in Makefile.
guest agent: command state class
Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>Signed-off-by: Luiz Capitulino <lcapitulino@gmail.com>
guest agent: qemu-ga daemon
This is the actual guest daemon, it listens for requests over avirtio-serial/isa-serial/unix socket channel and routes them throughto dispatch routines, and writes the results back to the channel ina manner similar to QMP....
guest agent: add guest agent RPCs/commands
This adds the initial set of QMP/QAPI commands provided by the guestagent:
guest-syncguest-pingguest-infoguest-shutdownguest-file-openguest-file-readguest-file-writeguest-file-seekguest-file-flushguest-file-close...
qapi: add test-visitor, tests for gen. visitor code
qapi: add test-qmp-commands, tests for gen. marshalling/dispatch code
Add hard build dependency on glib
GLib is an extremely common library that has a portable thread implementationalong with tons of other goodies.
GLib and GObject have a fantastic amount of infrastructure we can leverage inQEMU including an object oriented programming infrastructure....
libcacard: add libcacard.la target
No flag to configure is required. Instead, added a libcacard.la target thatis not built by default, only when requested explicitly via:
mkdir buildcd build../configuremake libcacard.lamake install-libcacard
Uses libtool to do actual linking of object files and shared library, and...