Skip to content
Snippets Groups Projects
  1. Dec 17, 2019
  2. Dec 02, 2019
  3. Nov 12, 2019
  4. Nov 11, 2019
  5. Nov 05, 2019
  6. Oct 28, 2019
  7. Oct 22, 2019
    • Markus Armbruster's avatar
      qapi: Split up scripts/qapi/common.py · e6c42b96
      Markus Armbruster authored
      
      The QAPI code generator clocks in at some 3100 SLOC in 8 source files.
      Almost 60% of the code is in qapi/common.py.  Split it into more
      focused modules:
      
      * Move QAPISchemaPragma and QAPISourceInfo to qapi/source.py.
      
      * Move QAPIError and its sub-classes to qapi/error.py.
      
      * Move QAPISchemaParser and QAPIDoc to parser.py.  Use the opportunity
        to put QAPISchemaParser first.
      
      * Move check_expr() & friends to qapi/expr.py.  Use the opportunity to
        put the code into a more sensible order.
      
      * Move QAPISchema & friends to qapi/schema.py
      
      * Move QAPIGen and its sub-classes, ifcontext,
        QAPISchemaModularCVisitor, and QAPISchemaModularCVisitor to qapi/gen.py
      
      * Delete camel_case(), it's unused since commit e98859a9 "qapi:
        Clean up after recent conversions to QAPISchemaVisitor"
      
      A number of helper functions remain in qapi/common.py.  I considered
      moving the code generator helpers to qapi/gen.py, but decided not to.
      Perhaps we should rewrite them as methods of QAPIGen some day.
      
      Signed-off-by: default avatarMarkus Armbruster <armbru@redhat.com>
      Reviewed-by: default avatarEric Blake <eblake@redhat.com>
      Message-Id: <20191018074345.24034-7-armbru@redhat.com>
      [Add "# -*- coding: utf-8 -*-" lines]
      e6c42b96
  8. Oct 17, 2019
  9. Oct 04, 2019
  10. Sep 26, 2019
  11. Sep 20, 2019
    • Peter Maydell's avatar
      Makefile: Fix in-tree builds when Sphinx is available · b53c54c6
      Peter Maydell authored
      
      In commit 27a296fc we switched the qemu-ga manpage over to
      being built from Sphinx.  The makefile rules for this were correct
      for an out-of-tree build, but break for in-tree builds if Sphinx is
      present and we're trying to build the documentation.
      
      Specifically, because Sphinx refuses to build output files into
      the same directory as its sources, for an in-tree build we tell
      it to build into a subdirectory docs/built, and set up a makefile
      variable MANUAL_BUILDDIR indicating where the docs are going.
      The makefile rule telling Make how to build qemu-ga.8 correctly
      used this variable, but the lines adding qemu-ga.8 to the list
      of DOCS to be built and the 'make install' rune did not. The
      effect was that for an in-tree build we told Make to build
      'docs/interop/qemu-ga.8' but did not provide a specific rule for
      doing so, which caused Make to fall back to the old rules.make
      rule for building any "%.8" file. Make tried to invoke texi2pod
      with a bogus command line, resulting in the error:
      
        GEN     docs/interop/qemu-ga.8
      No filename or title
      make: *** [rules.mak:394: docs/interop/qemu-ga.8]
      
      Fix this by using $(MANUAL_BUILDDIR) when constructing the
      list of DOCS files we want to build and also in the source
      file name we install for 'make install'.
      
      (Among other things, this broke the Shippable CI builds.)
      
      Fixes: 27a296fc
      Reported-by: default avatarEric Blake <eblake@redhat.com>
      Signed-off-by: default avatarPeter Maydell <peter.maydell@linaro.org>
      Reviewed-by: default avatarAlex Bennée <alex.bennee@linaro.org>
      Tested-by: default avatarAlex Bennée <alex.bennee@linaro.org>
      Message-id: 20190919155957.12618-1-peter.maydell@linaro.org
      Tested-by: default avatarEric Blake <eblake@redhat.com>
      Reviewed-by: default avatarEric Blake <eblake@redhat.com>
      b53c54c6
  12. Sep 13, 2019
  13. Sep 10, 2019
    • Paolo Bonzini's avatar
      tests/tcg: move configuration to a sub-shell script · 2038f8c8
      Paolo Bonzini authored
      
      Avoid the repeated inclusions of config-target.mak, which have
      risks of namespace pollution, and instead build minimal configuration
      files in a configuration script.  The same configuration files can
      also be included in Makefile and Makefile.qemu
      
      [AJB 10/09/19]
      In the original PR this had inadvertently enabled tests
      for ppc64abi32. However as the rest of the multiarch tests work rather
      than disabling the otherwise correctly functioning build I've just
      skipped the failing linux-test test. For some reason I can't debug it
      with TCG so I'm leaving that to the PPC maintainers to look at.
      
      Signed-off-by: default avatarPaolo Bonzini <pbonzini@redhat.com>
      Message-Id: <20190807143523.15917-4-pbonzini@redhat.com>
      [AJB: s/docker/container/, rm last bits from configure, ppc6432abi hack]
      Signed-off-by: default avatarAlex Bennée <alex.bennee@linaro.org>
      Cc: Richard Henderson <rth@twiddle.net>
      2038f8c8
  14. Aug 22, 2019
  15. Aug 21, 2019
  16. Aug 03, 2019
  17. Jul 23, 2019
    • Philippe Mathieu-Daudé's avatar
      buildsys: The NSIS Windows build requires qemu-nsis.bmp installed · b3ce38dc
      Philippe Mathieu-Daudé authored
      The qemu-nsis.bmp file was not listed with the other blobs, thus
      not installed in the ${BINDIR} location.
      
      This fixes:
      
        $ make installer
        [...]
        (cd /tmp/qemu-nsis; \
                 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 \
                ) >/tmp/qemu-nsis/system-emulations.nsh
        makensis -V2 -NOCD \
                        -DCONFIG_DOCUMENTATION="y" \
                         \
                        -DBINDIR="/tmp/qemu-nsis" \
                         \
                        -DSRCDIR="/home/phil/source/qemu" \
                        -DOUTFILE="qemu-setup-4.0.90.exe" \
                        -DDISPLAYVERSION="4.0.90" \
                        /home/phil/source/qemu/qemu.nsi
        File: "/tmp/qemu-nsis\*.bmp" -> no files found.
        Usage: File [/nonfatal] [/a] ([/r] [/x filespec [...]] filespec [...] |
           /oname=outfile one_file_only)
        Error in script "/home/phil/source/qemu/qemu.nsi" on line 122 -- aborting creation process
        Makefile:1077: recipe for target 'qemu-setup-4.0.90.exe' failed
        make: *** [qemu-setup-4.0.90.exe] Error 1
      
      Fixes: https://bugs.launchpad.net/bugs/1836453
      
      
      Signed-off-by: default avatarPhilippe Mathieu-Daudé <philmd@redhat.com>
      Message-Id: <20190715174817.18981-8-philmd@redhat.com>
      Signed-off-by: default avatarAlex Bennée <alex.bennee@linaro.org>
      b3ce38dc
    • Philippe Mathieu-Daudé's avatar
      buildsys: The NSIS Windows build requires the documentation installed · f84f9f75
      Philippe Mathieu-Daudé authored
      
      This fixes:
      
        $ make installer
        [...]
        (cd /tmp/qemu-nsis; \
                 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 \
                ) >/tmp/qemu-nsis/system-emulations.nsh
        makensis -V2 -NOCD \
                         \
                        -DCONFIG_GTK="y" \
                        -DBINDIR="/tmp/qemu-nsis" \
                         \
                        -DSRCDIR="/source/qemu" \
                        -DOUTFILE="qemu-setup-4.0.90.exe" \
                        -DDISPLAYVERSION="4.0.90" \
                        /source/qemu/qemu.nsi
        File: "/tmp/qemu-nsis\qemu-doc.html" -> no files found.
        Usage: File [/nonfatal] [/a] ([/r] [/x filespec [...]] filespec [...] |
           /oname=outfile one_file_only)
        Error in script "/source/qemu/qemu.nsi" on line 173 -- aborting creation process
        make: *** [Makefile:1080: qemu-setup-4.0.90.exe] Error 1
      
      Signed-off-by: default avatarPhilippe Mathieu-Daudé <philmd@redhat.com>
      Message-Id: <20190715174817.18981-7-philmd@redhat.com>
      Signed-off-by: default avatarAlex Bennée <alex.bennee@linaro.org>
      f84f9f75
  18. Jul 22, 2019
    • Peter Maydell's avatar
      contrib/elf2dmp: Build download.o with CURL_CFLAGS · ddb45afb
      Peter Maydell authored
      
      contrib/elf2dmp has a source file which uses curl/curl.h;
      although we link the final executable with CURL_LIBS, we
      forgot to build this source file with CURL_CFLAGS, so if
      the curl header is in a place that's not already on the
      system include path then it will fail to build.
      
      Add a line specifying the cflags needed for download.o;
      while we are here, bring the specification of the libs
      into line with this, since using a per-object variable
      setting is preferred over adding them to the final
      executable link line.
      
      Signed-off-by: default avatarPeter Maydell <peter.maydell@linaro.org>
      Reviewed-by: default avatarMarc-André Lureau <marcandre.lureau@redhat.com>
      Message-id: 20190719100955.17180-1-peter.maydell@linaro.org
      ddb45afb
  19. Jul 18, 2019
  20. Jul 15, 2019
  21. Jul 09, 2019
  22. Jul 04, 2019
  23. Jul 03, 2019
  24. Jul 02, 2019
  25. Jun 28, 2019
  26. Jun 26, 2019
  27. Jun 17, 2019
  28. May 29, 2019
  29. May 28, 2019
Loading