All of lore.kernel.org
 help / color / mirror / Atom feed
From: Oleksii <oleksii.kurochko@gmail.com>
To: Bertrand Marquis <Bertrand.Marquis@arm.com>
Cc: Xen-devel <xen-devel@lists.xenproject.org>,
	"Jan Beulich" <jbeulich@suse.com>,
	"Andrew Cooper" <andrew.cooper3@citrix.com>,
	"George Dunlap" <george.dunlap@citrix.com>,
	"Julien Grall" <julien@xen.org>,
	"Stefano Stabellini" <sstabellini@kernel.org>,
	"Wei Liu" <wl@xen.org>,
	"Volodymyr Babchuk" <Volodymyr_Babchuk@epam.com>,
	"Shawn Anastasio" <sanastasio@raptorengineering.com>,
	"Bob Eshleman" <bobbyeshleman@gmail.com>,
	"Alistair Francis" <alistair.francis@wdc.com>,
	"Connor Davis" <connojdavis@gmail.com>,
	"Roger Pau Monné" <roger.pau@citrix.com>
Subject: Re: [PATCH v4 1/2] xen: asm-generic support
Date: Wed, 06 Sep 2023 14:37:56 +0300	[thread overview]
Message-ID: <b90c2e4dc9ec84ef6487f1dd980d7858d7903e89.camel@gmail.com> (raw)
In-Reply-To: <3DCD5649-C172-4400-AA75-A28F5C0A106D@arm.com>

Hello Bertrand

On Mon, 2023-09-04 at 13:39 +0000, Bertrand Marquis wrote:
> > diff --git a/xen/scripts/Makefile.asm-generic
> > b/xen/scripts/Makefile.asm-generic
> > new file mode 100644
> > index 0000000000..0aac3f50b8
> > --- /dev/null
> > +++ b/xen/scripts/Makefile.asm-generic
> > @@ -0,0 +1,23 @@
> > +# SPDX-License-Identifier: GPL-2.0
> > +# include/asm-generic contains a lot of files that are used
> > +# verbatim by several architectures.
> > +#
> > +# This Makefile reads the file arch/$(SRCARCH)/include/asm/Kbuild
> > +# and for each file listed in this file with generic-y creates
> > +# a small wrapper file in $(obj)
> > (arch/$(SRCARCH)/include/generated/asm)
> > +
> > +kbuild-file := $(srctree)/arch/$(SRCARCH)/include/asm/Kbuild
> > +include $(kbuild-file)
> > +
> > +include scripts/Kbuild.include
> > +
> > +# Create output directory if not already present
> > +_dummy := $(shell [ -d $(obj) ] || mkdir -p $(obj))
> > +
> > +quiet_cmd_wrap = WRAP    $@
> > +cmd_wrap = echo "\#include <asm-generic/$*.h>" >$@
> > +
> > +all: $(patsubst %, $(obj)/%, $(generic-y))
> > +
> > +$(obj)/%.h:
> > + $(call cmd,wrap)
> 
> In fact i think your files are not generated in the srctree so this
> will break if you use out of tree compilation.
I checked that and in both cases it generated in correct place.

First case:
$ CONTAINER_NO_PULL=1 CONTAINER=riscv64
./automation/scripts/containerize make XEN_TARGET_ARCH=riscv64 -C xen
build

$ ls -la xen/arch/riscv/include/generated/asm/vm_event.h 
-rw-r--r--. 1 ok ok 34 вер  6 14:32
xen/arch/riscv/include/generated/asm/vm_event.h

Second case: ( out-of-tree )
$ CONTAINER_NO_PULL=1 CONTAINER=riscv64
./automation/scripts/containerize make O=xen_build
XEN_TARGET_ARCH=riscv64 -C xen build V=1

$ ls -la xen/xen_build/arch/riscv/include/generated/asm/vm_event.h 
-rw-r--r--. 1 ok ok 34 вер  6 14:34
xen/xen_build/arch/riscv/include/generated/asm/vm_event.h

Could you please clarify if there's somithing I might have overlooked?

~ Oleksii




  parent reply	other threads:[~2023-09-06 11:38 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-09-01 16:02 [PATCH v4 0/2] introduce stub directory to storing empty/stub headers Oleksii Kurochko
2023-09-01 16:02 ` [PATCH v4 1/2] xen: asm-generic support Oleksii Kurochko
2023-09-04 13:39   ` Bertrand Marquis
2023-09-05 13:37     ` Oleksii
2023-09-05 14:10       ` Bertrand Marquis
2023-09-06 10:36         ` Oleksii
2023-09-06 11:37     ` Oleksii [this message]
2023-09-06 13:03       ` Bertrand Marquis
2023-09-06 15:37         ` Anthony PERARD
2023-09-06 12:16   ` Jan Beulich
2023-09-06 12:28     ` Oleksii
2023-09-06 12:40       ` Jan Beulich
2023-09-06 15:06         ` Anthony PERARD
2023-09-06 15:24           ` Oleksii
2023-09-06 15:57   ` Anthony PERARD
2023-09-06 19:46     ` Oleksii
2023-09-01 16:02 ` [PATCH v4 2/2] xen: move arm/include/asm/vm_event.h to asm-generic Oleksii Kurochko
2023-09-01 17:14   ` Oleksii Kurochko
2023-09-04  6:53     ` Jan Beulich
2023-09-04 11:27       ` Oleksii
2023-09-04  6:54   ` Jan Beulich
2023-09-04 11:29     ` Oleksii

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=b90c2e4dc9ec84ef6487f1dd980d7858d7903e89.camel@gmail.com \
    --to=oleksii.kurochko@gmail.com \
    --cc=Bertrand.Marquis@arm.com \
    --cc=Volodymyr_Babchuk@epam.com \
    --cc=alistair.francis@wdc.com \
    --cc=andrew.cooper3@citrix.com \
    --cc=bobbyeshleman@gmail.com \
    --cc=connojdavis@gmail.com \
    --cc=george.dunlap@citrix.com \
    --cc=jbeulich@suse.com \
    --cc=julien@xen.org \
    --cc=roger.pau@citrix.com \
    --cc=sanastasio@raptorengineering.com \
    --cc=sstabellini@kernel.org \
    --cc=wl@xen.org \
    --cc=xen-devel@lists.xenproject.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.