All of lore.kernel.org
 help / color / mirror / Atom feed
From: Wei Liu <wei.liu2@citrix.com>
To: Julien Grall <julien.grall@arm.com>
Cc: Wei Liu <wei.liu2@citrix.com>,
	Ian Jackson <ian.jackson@eu.citrix.com>,
	xen-devel@lists.xen.org, Jan Beulich <JBeulich@suse.com>,
	Shannon Zhao <zhaoshenglong@huawei.com>,
	Andrii Anisov <andrii.anisov@gmail.com>
Subject: Re: XEN tools for ARM64 build issue
Date: Fri, 25 Nov 2016 15:55:28 +0000	[thread overview]
Message-ID: <20161125155528.GE11640@citrix.com> (raw)
In-Reply-To: <bc7bf2ab-a0f1-cf29-8f09-1ea611642460@arm.com>

On Fri, Nov 25, 2016 at 03:30:44PM +0000, Julien Grall wrote:
> Hi all,
> 
> On 23/11/16 10:47, Jan Beulich wrote:
> >>>>On 23.11.16 at 11:29, <andrii.anisov@gmail.com> wrote:
> >>Building latest XEN master branch
> >>(58bd0c7985890e0292212f94a56235228a3445c3) for salvator-x platform using
> >>the same yocto as here
> >>https://wiki.xen.org/wiki/Xen_ARM_with_Virtualization_Extensions/Salvator-X
> >>I've
> >>faced following issue:
> >>
> >>Maximum error count (200) exceeded
> >>
> >>/home/aanisov/DEV/salvatorx-new/build/tmp/work/aarch64-poky-linux/xen/4.8.0+
> >>gitAUTOINC+58bd0c7985-r0/git/tools/libxl/dsdt_anycpu_arm.asl
> >>     3:         OperationRegion ( MSUM, SystemMemory, \_SB.MSUA, 1 )
> >>Error    4084 -
> >>
> >>                         Object does not exist ^  (\_SB.MSUA)
> >
> >Looking at the source I see that this statement gets included for
> >x86 only. Are you perhaps doing a cross build of the ARM tools
> >on an x86 host? If so, it looks like some work would be needed to
> >make that work (again? not sure if it ever worked), as there are
> >various build host architecture conditionals in mk_dsdt.c.
> 
> I gave a look at this error, I had in mind to replace all the #if
> defined(__*__) by the CONFIG_* equivalent.
> 
> However, the CONFIG_* are not available for the tools. I guess we need to
> add them in the tools config.h. Any opinions?

I would rather we limit the scope to libacpi.

How do you cross-compile tools?

If CONFIG_ARM_64 is usable within Makefile, we can do something like:

 MKDSDT_CFLAGS-$(CONFIG_ARM_64) = -DCONFIG_ARM_64
 MKDSDT_CFLAGS-$(CONFIG_X86) = -DCONFIG_X86

Then add MKDIST_CFLAGS-y to mkdsdt's build rune.

Change mkdsdt.c source code accordingly.


> 
> Cheers,
> 
> -- 
> Julien Grall

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
https://lists.xen.org/xen-devel

  parent reply	other threads:[~2016-11-25 15:55 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-11-23 10:29 XEN tools for ARM64 build issue Andrii Anisov
2016-11-23 10:47 ` Jan Beulich
2016-11-23 10:59   ` Andrii Anisov
2016-11-25 15:30   ` Julien Grall
2016-11-25 15:52     ` Jan Beulich
2016-11-25 17:00       ` Julien Grall
2016-11-25 17:59         ` Julien Grall
2016-11-28  8:02           ` Jan Beulich
2016-11-28 12:45             ` Julien Grall
2016-11-28 13:00               ` Processed: " xen
2016-11-25 15:55     ` Wei Liu [this message]
2016-11-25 17:18       ` Julien Grall

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=20161125155528.GE11640@citrix.com \
    --to=wei.liu2@citrix.com \
    --cc=JBeulich@suse.com \
    --cc=andrii.anisov@gmail.com \
    --cc=ian.jackson@eu.citrix.com \
    --cc=julien.grall@arm.com \
    --cc=xen-devel@lists.xen.org \
    --cc=zhaoshenglong@huawei.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.