All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Martin Jansa" <Martin.Jansa@gmail.com>
To: Christopher Clark <christopher.w.clark@gmail.com>
Cc: meta-virtualization@lists.yoctoproject.org
Subject: Re: [meta-virtualization][PATCH] xen: drop i686 support also from xen-tools/xen-python2
Date: Tue, 13 Apr 2021 09:35:34 +0200	[thread overview]
Message-ID: <CA+chaQdi_86mtxKpBqBsh40WCHiDViorSWGzUA2DJJ=xOYfs7g@mail.gmail.com> (raw)
In-Reply-To: <CACMJ4GYJ44ZC28gM4WPrZcoxHKCR8Phf-Bkh1_a8Ek6pAwOJbw@mail.gmail.com>

[-- Attachment #1: Type: text/plain, Size: 5877 bytes --]

Thanks! This should work for me as well.

On Tue, Apr 13, 2021 at 5:15 AM Christopher Clark <
christopher.w.clark@gmail.com> wrote:

> On Tue, Apr 6, 2021 at 10:59 PM Christopher Clark
> <christopher.w.clark@gmail.com> wrote:
> >
> > On Sun, Apr 4, 2021 at 2:26 AM Martin Jansa <martin.jansa@gmail.com>
> wrote:
> > >
> > > * this commit seems no longer true for current version of xen:
> > >   commit a0964e2044cb1ccdd4f64173658ce7602257ff48
> > >   Author: Christopher Clark <christopher.w.clark@gmail.com>
> > >   Date:   Tue Feb 25 16:16:00 2020 -0800
> > >
> > >     xen, xen-tools: separate COMPATIBLE_HOST for hypervisor and tools
> > >
> > >     The tools have broader platform compatibility than the hypervisor.
> > >
> > > * xen-tools are failing to build for qemux86 as shown in:
> > >   http://errors.yoctoproject.org/Errors/Details/575367/
> > >
> > >   make[8]: Entering directory
> 'TOPDIR/tmp-glibc/work/core2-32-oe-linux/xen-tools/4.14+stableAUTOINC+ad844aa352-r0/git/tools/firmware/xen-dir/xen-root/xen'
> > >   echo "*** Xen x86/32 target no longer supported!"
> > >   *** Xen x86/32 target no longer supported!
> > >   make[8]: Leaving directory
> 'TOPDIR/tmp-glibc/work/core2-32-oe-linux/xen-tools/4.14+stableAUTOINC+ad844aa352-r0/git/tools/firmware/xen-dir/xen-root/xen'
> > >   ln -sf xen-root/xen/xen xen-shim
> > >   ln -sf xen-root/xen/xen-syms xen-shim-syms
> > >   ...
> > >   install: cannot stat 'xen-dir/xen-shim': No such file or directory
> > >   make[4]: *** [Makefile:51: install] Error 1
> > >
> > >   revert the commit and also drop i686 from map_xen_arch
> >
> > Thanks for reporting this, Martin. I need to look into this. I can see
> > why this particular part of the tools build is not suitable for x86/32
> > but I don't think that it necessarily means that the entire suite of
> > xen-tools should be removed with it for x86/32, and if not then this
> > won't be the change that we will want to fix this build issue.
>
> To follow up on this: I've just posted an alternative patch that fixes
> the 32-bit x86 xen-tools build, so patch from this thread will not be
> required.
>
> thanks
>
> Christopher
>
>
> >
> > Christopher
> >
> >
> > >
> > > Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
> > > ---
> > >  recipes-extended/xen/xen-arch.inc       | 3 +--
> > >  recipes-extended/xen/xen-hypervisor.inc | 3 ---
> > >  recipes-extended/xen/xen-python2.bb     | 3 ---
> > >  recipes-extended/xen/xen-tools.inc      | 2 --
> > >  recipes-extended/xen/xen.inc            | 2 ++
> > >  5 files changed, 3 insertions(+), 10 deletions(-)
> > >
> > > diff --git a/recipes-extended/xen/xen-arch.inc
> b/recipes-extended/xen/xen-arch.inc
> > > index fb0093e..9676045 100644
> > > --- a/recipes-extended/xen/xen-arch.inc
> > > +++ b/recipes-extended/xen/xen-arch.inc
> > > @@ -8,8 +8,7 @@ def map_xen_arch(a, d):
> > >      import re
> > >      valid_archs = d.getVar('valid_xen_archs').split()
> > >
> > > -    if   re.match("i.86", a):        return "x86_32"
> > > -    elif re.match("x86.64", a):      return "x86_64"
> > > +    if re.match("x86.64", a):      return "x86_64"
> > >      elif re.match("arm.*", a):       return "arm32"
> > >      elif re.match("aarch64.*", a):   return "arm64"
> > >      elif a in valid_archs:           return a
> > > diff --git a/recipes-extended/xen/xen-hypervisor.inc
> b/recipes-extended/xen/xen-hypervisor.inc
> > > index 916bd3c..d8e57e2 100644
> > > --- a/recipes-extended/xen/xen-hypervisor.inc
> > > +++ b/recipes-extended/xen/xen-hypervisor.inc
> > > @@ -6,9 +6,6 @@ DESCRIPTION = "The Xen hypervisor"
> > >  # this allows for varying the target architecture or toolchain used
> > >  # to build the different components. eg. 32-bit tools and a 64-bit
> hypervisor.
> > >
> > > -# The Xen hypervisor has a narrower compatible platform range than
> the Xen tools
> > > -COMPATIBLE_HOST =
> '(x86_64.*).*-linux|aarch64.*-linux|arm-.*-linux-gnueabi'
> > > -
> > >  inherit deploy python3native cml1
> > >
> > >  PACKAGES = " \
> > > diff --git a/recipes-extended/xen/xen-python2.bb
> b/recipes-extended/xen/xen-python2.bb
> > > index ad3c1fd..08d8e92 100644
> > > --- a/recipes-extended/xen/xen-python2.bb
> > > +++ b/recipes-extended/xen/xen-python2.bb
> > > @@ -6,9 +6,6 @@ SECTION = "console/tools"
> > >
> > >  SRCREV ?= "a5fcafbfbee55261853fba07149c1c795f2baf58"
> > >
> > > -# The same restriction as xen-tools.inc, because of the dependency on
> xen-tools-xentrace from xen-tools-xentrace-format
> > > -COMPATIBLE_HOST =
> 'i686-.*-linux|(x86_64.*).*-linux|aarch64.*-linux|arm-.*-linux-gnueabi'
> > > -
> > >  XEN_REL ?= "4.12"
> > >  XEN_BRANCH ?= "stable-4.12"
> > >
> > > diff --git a/recipes-extended/xen/xen-tools.inc
> b/recipes-extended/xen/xen-tools.inc
> > > index 722c503..35d0c58 100644
> > > --- a/recipes-extended/xen/xen-tools.inc
> > > +++ b/recipes-extended/xen/xen-tools.inc
> > > @@ -1,8 +1,6 @@
> > >  SUMMARY = "Xen hypervisor tools"
> > >  DESCRIPTION = "Tools and utility software for the Xen hypervisor"
> > >
> > > -COMPATIBLE_HOST =
> 'i686-.*-linux|(x86_64.*).*-linux|aarch64.*-linux|arm-.*-linux-gnueabi'
> > > -
> > >  inherit setuptools3 update-rc.d systemd deploy
> > >  require xen-blktap.inc
> > >
> > > diff --git a/recipes-extended/xen/xen.inc
> b/recipes-extended/xen/xen.inc
> > > index 9e8fcad..8277939 100644
> > > --- a/recipes-extended/xen/xen.inc
> > > +++ b/recipes-extended/xen/xen.inc
> > > @@ -2,6 +2,8 @@ HOMEPAGE = "http://xen.org"
> > >  LICENSE = "GPLv2"
> > >  SECTION = "console/tools"
> > >
> > > +COMPATIBLE_HOST =
> '(x86_64.*).*-linux|aarch64.*-linux|arm-.*-linux-gnueabi'
> > > +
> > >  inherit autotools-brokensep
> > >
> > >  require xen-arch.inc
> > > --
> > > 2.30.2
> > >
>

[-- Attachment #2: Type: text/html, Size: 8236 bytes --]

      reply	other threads:[~2021-04-13  7:35 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-04-04  9:26 [meta-virtualization][PATCH] xen: drop i686 support also from xen-tools/xen-python2 Martin Jansa
2021-04-07  5:59 ` Christopher Clark
2021-04-13  3:15   ` Christopher Clark
2021-04-13  7:35     ` Martin Jansa [this message]

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='CA+chaQdi_86mtxKpBqBsh40WCHiDViorSWGzUA2DJJ=xOYfs7g@mail.gmail.com' \
    --to=martin.jansa@gmail.com \
    --cc=christopher.w.clark@gmail.com \
    --cc=meta-virtualization@lists.yoctoproject.org \
    /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.