All of lore.kernel.org
 help / color / mirror / Atom feed
From: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
To: Andrew Cooper <andrew.cooper3@citrix.com>
Cc: george.dunlap@eu.citrix.com, xen-devel@lists.xensource.com,
	Stefano Stabellini <stefano.stabellini@eu.citrix.com>
Subject: Re: [PATCH 4/9] raisin: add a component to build qemu_traditional
Date: Thu, 16 Apr 2015 17:03:28 +0100	[thread overview]
Message-ID: <alpine.DEB.2.02.1504161701580.7690@kaball.uk.xensource.com> (raw)
In-Reply-To: <552E832A.9020900@citrix.com>

On Wed, 15 Apr 2015, Andrew Cooper wrote:
# 
> On 15/04/15 16:14, Stefano Stabellini wrote:
> > Introduce a component to build qemu-traditional out of xen-unstable.
> > Do not compile qemu-traditional from xen-unstable by passing the right
> > command line option to configure.
> >
> > Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
> > ---
> >  components/qemu_traditional |   49 +++++++++++++++++++++++++++++++++++++++++++
> >  components/series           |    1 +
> >  components/xen              |    3 ++-
> >  defconfig                   |    2 ++
> >  4 files changed, 54 insertions(+), 1 deletion(-)
> >  create mode 100644 components/qemu_traditional
> >
> > diff --git a/components/qemu_traditional b/components/qemu_traditional
> > new file mode 100644
> > index 0000000..cb71c94
> > --- /dev/null
> > +++ b/components/qemu_traditional
> > @@ -0,0 +1,49 @@
> > +#!/usr/bin/env bash
> > +
> > +function qemu_traditional_check_package() {
> > +    local DEP_Debian_common="build-essential zlib1g-dev pciutils-dev pkg-config \
> > +              libncurses5-dev"
> > +    local DEP_Debian_x86_32="$DEP_Debian_common"
> > +    local DEP_Debian_x86_64="$DEP_Debian_common"
> > +    local DEP_Debian_arm32="$DEP_Debian_common"
> > +    local DEP_Debian_arm64="$DEP_Debian_common"
> > +
> > +    local DEP_Fedora_common="make gcc zlib-devel ncurses-devel pciutils-devel"
> > +    local DEP_Fedora_x86_32="$DEP_Fedora_common"
> > +    local DEP_Fedora_x86_64="$DEP_Fedora_common"
> > +
> > +    echo Checking QEMU dependencies
> > +    eval check-package \$DEP_"$DISTRO"_"$ARCH"
> > +}
> > +
> > +function qemu_traditional_build() {
> > +    cd "$BASEDIR"
> > +    git-checkout $QEMU_TRADITIONAL_UPSTREAM_URL $QEMU_TRADITIONAL_UPSTREAM_REVISION qemu_traditional-dir
> > +    cd qemu_traditional-dir
> > +
> > +    export CONFIG_BLKTAP1=n
> > +    export XEN_ROOT="$BASEDIR"/xen-dir
> > +    ./xen-setup
> > +    $MAKE all
> > +    $MAKE install DESTDIR="$INST_DIR"
> > +    cd "$BASEDIR"
> > +}
> > +
> > +function qemu_traditional_clean() {
> > +    cd "$BASEDIR"
> > +    if [[ -d qemu_traditional-dir ]]
> > +    then
> > +        cd qemu_traditional-dir
> > +        $MAKE distclean
> > +        cd ..
> > +        rm -rf qemu_traditional-dir
> > +    fi
> > +}
> > +
> > +function qemu_traditional_configure() {
> > +    echo Nothing to configure for qemu_traditional
> > +}
> > +
> > +function qemu_traditional_unconfigure() {
> > +    echo Nothing to unconfigure for qemu_traditional
> > +}
> > diff --git a/components/series b/components/series
> > index 8f614f0..d21243a 100644
> > --- a/components/series
> > +++ b/components/series
> > @@ -1,4 +1,5 @@
> >  xen
> >  qemu
> > +qemu_traditional
> >  grub
> >  libvirt
> > diff --git a/components/xen b/components/xen
> > index dcf2f92..9fdf37f 100644
> > --- a/components/xen
> > +++ b/components/xen
> > @@ -23,7 +23,8 @@ function xen_build() {
> >      cd "$BASEDIR"
> >      git-checkout $XEN_UPSTREAM_URL $XEN_UPSTREAM_REVISION xen-dir
> >      cd xen-dir
> > -    ./configure --prefix=$PREFIX --with-system-qemu=/usr/bin/qemu-system-i386
> > +    ./configure --prefix=$PREFIX --with-system-qemu=/usr/bin/qemu-system-i386 \
> > +        --disable-qemu-traditional
> 
> This does more than just what you want.
> 
> It also tells libxl that qemu-trad does not exist which compiles out any
> ability to use qemu-trad as a device model.

Actually that is not true: it is not possible to specify where your
separately built qemu-traditional binary is with
--disable-qemu-traditional, but if you place it under /usr/lib/xen/bin,
libxl will pick it up automatically.

  parent reply	other threads:[~2015-04-16 16:03 UTC|newest]

Thread overview: 48+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-04-15 15:14 [PATCH 0/9] raisin: introduce qemu and qemu-traditional Stefano Stabellini
2015-04-15 15:14 ` [PATCH 1/9] raisin: do not clean before build Stefano Stabellini
2015-04-15 15:26   ` George Dunlap
2015-04-15 15:14 ` [PATCH 2/9] raisin: use timestamps for dpkg Version to avoid versions that start with letters Stefano Stabellini
2015-04-15 15:34   ` Olaf Hering
2015-04-15 15:40     ` Stefano Stabellini
2015-04-15 15:14 ` [PATCH 3/9] raisin: add QEMU upstream component Stefano Stabellini
2015-04-15 19:05   ` Julien Grall
2015-04-16  9:51     ` Stefano Stabellini
2015-04-16  9:54       ` George Dunlap
2015-04-16 10:29         ` Stefano Stabellini
2015-04-16 10:49         ` Julien Grall
2015-04-15 15:14 ` [PATCH 4/9] raisin: add a component to build qemu_traditional Stefano Stabellini
2015-04-15 15:26   ` Andrew Cooper
2015-04-15 15:44     ` Stefano Stabellini
2015-04-15 15:49       ` Andrew Cooper
2015-04-15 15:51         ` George Dunlap
2015-04-15 15:58         ` Ian Campbell
2015-04-15 16:11           ` Stefano Stabellini
2015-04-15 16:15             ` Ian Jackson
2015-04-15 16:26               ` Ian Campbell
2015-04-15 17:41                 ` Stefano Stabellini
2015-04-16  8:45                   ` Ian Campbell
2015-04-16  9:54                     ` Stefano Stabellini
2015-04-16 10:10                       ` Ian Campbell
2015-04-16 10:25                         ` Stefano Stabellini
2015-04-16 10:39                           ` George Dunlap
2015-04-16 10:48                             ` Ian Campbell
2015-04-16 10:55                               ` Stefano Stabellini
2015-04-16 10:59                                 ` George Dunlap
2015-04-16 11:15                           ` Ian Jackson
2015-04-15 16:21             ` George Dunlap
2015-04-15 17:42               ` Stefano Stabellini
2015-04-16  8:47                 ` Ian Campbell
2015-04-16  9:53                   ` Stefano Stabellini
2015-04-16 10:09                     ` Ian Campbell
2015-04-15 16:24             ` Ian Campbell
2015-04-16 16:03     ` Stefano Stabellini [this message]
2015-04-17  8:41       ` Ian Campbell
2015-04-15 15:14 ` [PATCH 5/9] raisin: remove UPSTREAM_ for URL and REVISION variables Stefano Stabellini
2015-04-15 15:14 ` [PATCH 6/9] raisin: add some debugging output for VERBOSE=1 Stefano Stabellini
2015-04-15 15:14 ` [PATCH 7/9] raisin: remove unneeded chmod +x xencommons xendomains xen-watchdog Stefano Stabellini
2015-04-15 15:31   ` George Dunlap
2015-04-15 15:14 ` [PATCH 8/9] raisin: rename MAKE to RAISIN_MAKE Stefano Stabellini
2015-04-15 15:15 ` [PATCH 9/9] raisin: add $INST_DIR/usr/lib64 to LDFLAGS for QEMU and Libvirt Stefano Stabellini
2015-04-15 15:42   ` George Dunlap
2015-04-15 15:43 ` [PATCH 0/9] raisin: introduce qemu and qemu-traditional George Dunlap
2015-04-15 15:57   ` Stefano Stabellini

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=alpine.DEB.2.02.1504161701580.7690@kaball.uk.xensource.com \
    --to=stefano.stabellini@eu.citrix.com \
    --cc=andrew.cooper3@citrix.com \
    --cc=george.dunlap@eu.citrix.com \
    --cc=xen-devel@lists.xensource.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.