1. 28 2月, 2015 2 次提交
    • M
      Makefile: don't silence mak file test with V=1 · 12ccfec9
      Michael S. Tsirkin 提交于
      V=1 should show what's going on, it's not nice
      to silence things unconditionally.
      Signed-off-by: NMichael S. Tsirkin <mst@redhat.com>
      Message-Id: <1424332114-13440-1-git-send-email-mst@redhat.com>
      Signed-off-by: NPaolo Bonzini <pbonzini@redhat.com>
      12ccfec9
    • V
      Makefile: fix up parallel building under MSYS+MinGW · 23cab7b7
      Vasily Efimov 提交于
      This patch enables parallel building of QEMU in MSYS+MinGW environment.
      Currently an attempt to build QEMU in parallel fails on generation of
      version.lo (and version.o too).
      
      The cause of the failure is that when listing prerequisites "Makefile"
      references "config-host.h" by absolute path in some rules and by relative
      path in others. Make cannot figure out that these references points to the
      same file which leads to the race: the generation of "version.*" which
      requires "$(BUILD_DIR)/config-host.h" is launched in parallel with the
      generation of "config-host.h" needed by other "Makefile" targets.
      
      This patch removes "$(BUILD_DIR)/" prefix from corresponding prerequisite
      of "version.*". There is no other prerequisites "$(BUILD_DIR)/config-host.h"
      found.
      
      Also note that not every version of MSYS is able to build QEMU in parallel,
      see: "http://sourceforge.net/p/mingw/bugs/1950/". The suggested version is
      1.0.17.
      Signed-off-by: NVasily Efimov <real@ispras.ru>
      Message-Id: <1424264377-5992-1-git-send-email-real@ispras.ru>
      Signed-off-by: NPaolo Bonzini <pbonzini@redhat.com>
      23cab7b7
  2. 15 1月, 2015 1 次提交
  3. 26 9月, 2014 1 次提交
    • S
      trace: install trace-events file · 89ae5831
      Stefan Hajnoczi 提交于
      Install the ./trace-events file into the data directory.  This file
      contains the list of trace events that were built into QEMU at
      compile-time.
      
      The file is a handy reference for the set of trace events that the QEMU
      binary was built with.  It is also needed by the simpletrace.py tool
      that parses binary trace data either emitted from QEMU when built with
      --enable-trace-backend=simple or by the SystemTap simpletrace script
      that QEMU provides.
      Signed-off-by: NStefan Hajnoczi <stefanha@redhat.com>
      Message-id: 1411486175-3017-1-git-send-email-stefanha@redhat.com
      89ae5831
  4. 12 8月, 2014 4 次提交
  5. 09 8月, 2014 1 次提交
  6. 08 7月, 2014 1 次提交
  7. 27 6月, 2014 1 次提交
  8. 25 6月, 2014 1 次提交
  9. 23 6月, 2014 3 次提交
  10. 09 6月, 2014 1 次提交
    • L
      trace: Multi-backend tracing · 5b808275
      Lluís Vilanova 提交于
      Adds support to compile QEMU with multiple tracing backends at the same time.
      
      For example, you can compile QEMU with:
      
        $ ./configure --enable-trace-backends=ftrace,dtrace
      
      Where 'ftrace' can be handy for having an in-flight record of events, and 'dtrace' can be later used to extract more information from the system.
      
      This patch allows having both available without recompiling QEMU.
      Signed-off-by: NLluís Vilanova <vilanova@ac.upc.edu>
      Signed-off-by: NStefan Hajnoczi <stefanha@redhat.com>
      5b808275
  11. 09 5月, 2014 2 次提交
  12. 08 5月, 2014 3 次提交
  13. 08 4月, 2014 1 次提交
  14. 07 4月, 2014 1 次提交
    • M
      Makefile: remove bashism · 9c269f6d
      Michael Tokarev 提交于
      When installing modules (when --enable-modules is specified for
      ./configure), Makefile uses the following construct to replace all
      slashes with dashes in module name:
      
       ${s//\//-}
      
      This is a bash-specific substitution mechanism.  POSIX does not
      have it, and some operating systems (for example Debian) does not
      implement this construct in default shell (for example dash).
      
      Use more traditional way to perform the substitution: use `tr' tool.
      Signed-off-by: NMichael Tokarev <mjt@tls.msk.ru>
      Message-id: 1396707946-21351-1-git-send-email-mjt@msgid.tls.msk.ru
      Signed-off-by: NPeter Maydell <peter.maydell@linaro.org>
      9c269f6d
  15. 17 3月, 2014 1 次提交
    • F
      Makefile: Fix "make clean" · f4b11eee
      Fam Zheng 提交于
      This fixes a dangerous bug: "make clean" after "make distclean" will
      delete every single file including those under .git, if you do in-tree
      build!
      
      Rationale: A first "make distclean" will unset $(DSOSUF), a following
      "make distclean" or "make clean" will find all the files and delete it.
      
      Fix it by explicitly typing the file extensions here, and combine
      multiple find invocations into one.
      Signed-off-by: NFam Zheng <famz@redhat.com>
      Message-id: 1395020122-4957-1-git-send-email-famz@redhat.com
      Reviewed-by: NStefan Weil <sw@weilnetz.de>
      Signed-off-by: NPeter Maydell <peter.maydell@linaro.org>
      f4b11eee
  16. 08 3月, 2014 1 次提交
  17. 04 3月, 2014 1 次提交
  18. 27 2月, 2014 1 次提交
  19. 20 2月, 2014 5 次提交
    • F
      Makefile: introduce common-obj-m and block-obj-m for DSO · cc475698
      Fam Zheng 提交于
      $(common-obj-m) will include $(block-obj-m), like $(common-obj-y) does
      for $(block-obj-y).
      Signed-off-by: NFam Zheng <famz@redhat.com>
      Signed-off-by: NPaolo Bonzini <pbonzini@redhat.com>
      cc475698
    • F
      Makefile: install modules with "make install" · e3be6f0e
      Fam Zheng 提交于
      Install all the modules to ${MODDIR}.
      Signed-off-by: NFam Zheng <famz@redhat.com>
      Signed-off-by: NPaolo Bonzini <pbonzini@redhat.com>
      e3be6f0e
    • F
      module: implement module loading · e26110cf
      Fam Zheng 提交于
      This patch adds loading, stamp checking and initialization of modules.
      
      The init function of dynamic module is no longer directly called as
      __attribute__((constructor)) in static linked version, it is called
      only after passed the checking of presense of stamp symbol:
      
          qemu_stamp_$RELEASEHASH
      
      where $RELEASEHASH is generated by hashing version strings and content
      of configure script.
      
      With this, modules built from a different tree/version/configure will
      not be loaded.
      
      The module loading code requires gmodule-2.0.
      
      Modules are searched under
       - CONFIG_MODDIR
       - executable folder (to allow running qemu-{img,io} in the build
         directory)
       - ../ of executable folder (to allow running system emulator in the
         build directory)
      
      Modules are linked under their subdir respectively, then copied to top
      level of build directory for above convinience, e.g.:
          $(BUILD_DIR)/block/curl.so -> $(BUILD_DIR)/block-curl.so
      Signed-off-by: NPaolo Bonzini <pbonzini@redhat.com>
      Signed-off-by: NFam Zheng <famz@redhat.com>
      Signed-off-by: NPaolo Bonzini <pbonzini@redhat.com>
      e26110cf
    • F
      rules.mak: introduce DSO rules · 17969268
      Fam Zheng 提交于
      Add necessary rules and flags for shared object generation.
      The new rules introduced here are:
      
      1) %.o in $(common-obj-m) is compiled to %.o, then linked to %.so.
      
      2) %.mo in $(common-obj-m) is the placeholder for %.so for pattern
      matching in Makefile. It's linked to "-shared" with all its dependencies
      (multiple *.o) as input. Which means the list of depended objects must
      be specified in each sub-Makefile.objs:
      
          foo.mo-objs := bar.o baz.o qux.o
      
      in the same style with foo.o-cflags and foo.o-libs. The objects here
      will be prefixed with "$(obj)/" if it's a subdirectory Makefile.objs.
      
      3) For all files ending up in %.so, the following is added automatically:
      
          foo.o-cflags += -fPIC -DBUILD_DSO
      
      Also introduce --enable-modules in configure, the option will enable
      support of shared object build. Otherwise objects are static linked to
      executables.
      Signed-off-by: NFam Zheng <famz@redhat.com>
      Signed-off-by: NPaolo Bonzini <pbonzini@redhat.com>
      17969268
    • F
      rules.mak: fix $(obj) to a real relative path · ba1183da
      Fam Zheng 提交于
      Makefile.target includes rule.mak and unnested common-obj-y, then prefix
      them with '../', this will ignore object specific QEMU_CFLAGS in subdir
      Makefile.objs:
      
          $(obj)/curl.o: QEMU_CFLAGS += $(CURL_CFLAGS)
      
      Because $(obj) here is './block', instead of '../block'. This doesn't
      hurt compiling because we basically build all .o from top Makefile,
      before entering Makefile.target, but it will affact arriving per-object
      libs support.
      
      The starting point of $(obj) is passed in as argument of unnest-vars, as
      well as nested variables, so that different Makefiles can pass in a
      right value.
      Signed-off-by: NFam Zheng <famz@redhat.com>
      Signed-off-by: NPaolo Bonzini <pbonzini@redhat.com>
      ba1183da
  20. 19 2月, 2014 1 次提交
  21. 16 1月, 2014 1 次提交
  22. 22 11月, 2013 1 次提交
    • M
      sun4m: Add FCode ROM for TCX framebuffer · da87dd7b
      Mark Cave-Ayland 提交于
      Upstream OpenBIOS now implements SBus probing in order to determine the
      contents of a physical bus slot, which is required to allow OpenBIOS to
      identify the framebuffer without help from the fw_cfg interface.
      
      SBus probing works by detecting the presence of an FCode program
      (effectively tokenised Forth) at the base address of each slot, and if
      present executes it so that it creates its own device node in the
      OpenBIOS device tree.
      
      The FCode ROM is generated as part of the OpenBIOS build and should
      generally be updated at the same time.
      Signed-off-by: NMark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
      CC: Blue Swirl <blauwirbel@gmail.com>
      CC: Bob Breuer <breuerr@mc.net>
      CC: Artyom Tarasenko <atar4qemu@gmail.com>
      Signed-off-by: NPaolo Bonzini <pbonzini@redhat.com>
      da87dd7b
  23. 13 11月, 2013 1 次提交
  24. 07 11月, 2013 1 次提交
  25. 11 10月, 2013 1 次提交
  26. 21 9月, 2013 1 次提交
  27. 18 9月, 2013 1 次提交