xen-devel.lists.xenproject.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] x86/boot: use BASEDIR for include path
@ 2020-06-11 11:54 Bertrand Marquis
  2020-06-11 16:24 ` Andrew Cooper
  0 siblings, 1 reply; 5+ messages in thread
From: Bertrand Marquis @ 2020-06-11 11:54 UTC (permalink / raw)
  To: xen-devel; +Cc: Andrew Cooper, nd, Wei Liu, Jan Beulich, Roger Pau Monné

Use $(BASEDIR)/include instead of $(XEN_ROOT)/xen/include for the
include path to be coherent with the rest of the Makefiles.

Signed-off-by: Bertrand Marquis <bertrand.marquis@arm.com>
---
 xen/arch/x86/boot/build32.mk | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/xen/arch/x86/boot/build32.mk b/xen/arch/x86/boot/build32.mk
index 5851ebff5f..8cd5403926 100644
--- a/xen/arch/x86/boot/build32.mk
+++ b/xen/arch/x86/boot/build32.mk
@@ -5,7 +5,7 @@ include $(XEN_ROOT)/Config.mk
 $(call cc-options-add,CFLAGS,CC,$(EMBEDDED_EXTRA_CFLAGS))
 
 CFLAGS += -Werror -fno-builtin -g0 -msoft-float
-CFLAGS += -I$(XEN_ROOT)/xen/include
+CFLAGS += -I$(BASEDIR)/include
 CFLAGS := $(filter-out -flto,$(CFLAGS)) 
 
 # NB. awk invocation is a portable alternative to 'head -n -1'
-- 
2.17.1



^ permalink raw reply related	[flat|nested] 5+ messages in thread

* Re: [PATCH] x86/boot: use BASEDIR for include path
  2020-06-11 11:54 [PATCH] x86/boot: use BASEDIR for include path Bertrand Marquis
@ 2020-06-11 16:24 ` Andrew Cooper
  2020-06-11 16:50   ` Bertrand Marquis
  0 siblings, 1 reply; 5+ messages in thread
From: Andrew Cooper @ 2020-06-11 16:24 UTC (permalink / raw)
  To: Bertrand Marquis, xen-devel
  Cc: nd, Wei Liu, Jan Beulich, Roger Pau Monné

On 11/06/2020 12:54, Bertrand Marquis wrote:
> Use $(BASEDIR)/include instead of $(XEN_ROOT)/xen/include for the
> include path to be coherent with the rest of the Makefiles.
>
> Signed-off-by: Bertrand Marquis <bertrand.marquis@arm.com>

Does something subtle break before this change?

~Andrew

> ---
>  xen/arch/x86/boot/build32.mk | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/xen/arch/x86/boot/build32.mk b/xen/arch/x86/boot/build32.mk
> index 5851ebff5f..8cd5403926 100644
> --- a/xen/arch/x86/boot/build32.mk
> +++ b/xen/arch/x86/boot/build32.mk
> @@ -5,7 +5,7 @@ include $(XEN_ROOT)/Config.mk
>  $(call cc-options-add,CFLAGS,CC,$(EMBEDDED_EXTRA_CFLAGS))
>  
>  CFLAGS += -Werror -fno-builtin -g0 -msoft-float
> -CFLAGS += -I$(XEN_ROOT)/xen/include
> +CFLAGS += -I$(BASEDIR)/include
>  CFLAGS := $(filter-out -flto,$(CFLAGS)) 
>  
>  # NB. awk invocation is a portable alternative to 'head -n -1'



^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH] x86/boot: use BASEDIR for include path
  2020-06-11 16:24 ` Andrew Cooper
@ 2020-06-11 16:50   ` Bertrand Marquis
  2020-06-11 17:28     ` Andrew Cooper
  0 siblings, 1 reply; 5+ messages in thread
From: Bertrand Marquis @ 2020-06-11 16:50 UTC (permalink / raw)
  To: Andrew Cooper; +Cc: xen-devel, nd, Wei Liu, Jan Beulich, Roger Pau Monné

Hi Andrew,

> On 11 Jun 2020, at 17:24, Andrew Cooper <andrew.cooper3@citrix.com> wrote:
> 
> On 11/06/2020 12:54, Bertrand Marquis wrote:
>> Use $(BASEDIR)/include instead of $(XEN_ROOT)/xen/include for the
>> include path to be coherent with the rest of the Makefiles.
>> 
>> Signed-off-by: Bertrand Marquis <bertrand.marquis@arm.com>
> 
> Does something subtle break before this change?

Without changing anything no.
But if xen sub-directory is renamed yes.

As there is no easy way to build xen hypervisor out of tree (I might be wrong here !) I found a solution using cp -rs from xen subdir in a xen-build1 xen-build2 etc this way I can check build for x86 and arm without cleaning.

Without the patch, the sources are actually compiles with an include path containing xen/../xen as a result of using XEN_ROOT which does not allow to rename xen subdirectory.
As it was the only place in which XEN_ROOT was used for include paths, this is normalising the paths.

Bertrand

> 
> ~Andrew
> 
>> ---
>> xen/arch/x86/boot/build32.mk | 2 +-
>> 1 file changed, 1 insertion(+), 1 deletion(-)
>> 
>> diff --git a/xen/arch/x86/boot/build32.mk b/xen/arch/x86/boot/build32.mk
>> index 5851ebff5f..8cd5403926 100644
>> --- a/xen/arch/x86/boot/build32.mk
>> +++ b/xen/arch/x86/boot/build32.mk
>> @@ -5,7 +5,7 @@ include $(XEN_ROOT)/Config.mk
>> $(call cc-options-add,CFLAGS,CC,$(EMBEDDED_EXTRA_CFLAGS))
>> 
>> CFLAGS += -Werror -fno-builtin -g0 -msoft-float
>> -CFLAGS += -I$(XEN_ROOT)/xen/include
>> +CFLAGS += -I$(BASEDIR)/include
>> CFLAGS := $(filter-out -flto,$(CFLAGS)) 
>> 
>> # NB. awk invocation is a portable alternative to 'head -n -1'
> 



^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH] x86/boot: use BASEDIR for include path
  2020-06-11 16:50   ` Bertrand Marquis
@ 2020-06-11 17:28     ` Andrew Cooper
  2020-06-12 10:10       ` Paul Durrant
  0 siblings, 1 reply; 5+ messages in thread
From: Andrew Cooper @ 2020-06-11 17:28 UTC (permalink / raw)
  To: Bertrand Marquis
  Cc: Wei Liu, Paul Durrant, Jan Beulich, xen-devel, nd, Roger Pau Monné

On 11/06/2020 17:50, Bertrand Marquis wrote:
> Hi Andrew,
>
>> On 11 Jun 2020, at 17:24, Andrew Cooper <andrew.cooper3@citrix.com> wrote:
>>
>> On 11/06/2020 12:54, Bertrand Marquis wrote:
>>> Use $(BASEDIR)/include instead of $(XEN_ROOT)/xen/include for the
>>> include path to be coherent with the rest of the Makefiles.
>>>
>>> Signed-off-by: Bertrand Marquis <bertrand.marquis@arm.com>
>> Does something subtle break before this change?
> Without changing anything no.
> But if xen sub-directory is renamed yes.
>
> As there is no easy way to build xen hypervisor out of tree (I might be wrong here !) I found a solution using cp -rs from xen subdir in a xen-build1 xen-build2 etc this way I can check build for x86 and arm without cleaning.
>
> Without the patch, the sources are actually compiles with an include path containing xen/../xen as a result of using XEN_ROOT which does not allow to rename xen subdirectory.
> As it was the only place in which XEN_ROOT was used for include paths, this is normalising the paths.

Ok.  Acked-by: Andrew Cooper <andrew.cooper3@citrix.com>

CC Paul for 4.14.

~Andrew


^ permalink raw reply	[flat|nested] 5+ messages in thread

* RE: [PATCH] x86/boot: use BASEDIR for include path
  2020-06-11 17:28     ` Andrew Cooper
@ 2020-06-12 10:10       ` Paul Durrant
  0 siblings, 0 replies; 5+ messages in thread
From: Paul Durrant @ 2020-06-12 10:10 UTC (permalink / raw)
  To: 'Andrew Cooper', 'Bertrand Marquis'
  Cc: 'xen-devel', 'nd', 'Wei Liu',
	'Jan Beulich', 'Roger Pau Monné'

> -----Original Message-----
> From: Andrew Cooper <andrew.cooper3@citrix.com>
> Sent: 11 June 2020 18:28
> To: Bertrand Marquis <Bertrand.Marquis@arm.com>
> Cc: xen-devel <xen-devel@lists.xenproject.org>; nd <nd@arm.com>; Jan Beulich <jbeulich@suse.com>; Wei
> Liu <wl@xen.org>; Roger Pau Monné <roger.pau@citrix.com>; Paul Durrant <paul@xen.org>
> Subject: Re: [PATCH] x86/boot: use BASEDIR for include path
> 
> On 11/06/2020 17:50, Bertrand Marquis wrote:
> > Hi Andrew,
> >
> >> On 11 Jun 2020, at 17:24, Andrew Cooper <andrew.cooper3@citrix.com> wrote:
> >>
> >> On 11/06/2020 12:54, Bertrand Marquis wrote:
> >>> Use $(BASEDIR)/include instead of $(XEN_ROOT)/xen/include for the
> >>> include path to be coherent with the rest of the Makefiles.
> >>>
> >>> Signed-off-by: Bertrand Marquis <bertrand.marquis@arm.com>
> >> Does something subtle break before this change?
> > Without changing anything no.
> > But if xen sub-directory is renamed yes.
> >
> > As there is no easy way to build xen hypervisor out of tree (I might be wrong here !) I found a
> solution using cp -rs from xen subdir in a xen-build1 xen-build2 etc this way I can check build for
> x86 and arm without cleaning.
> >
> > Without the patch, the sources are actually compiles with an include path containing xen/../xen as a
> result of using XEN_ROOT which does not allow to rename xen subdirectory.
> > As it was the only place in which XEN_ROOT was used for include paths, this is normalising the
> paths.
> 
> Ok.  Acked-by: Andrew Cooper <andrew.cooper3@citrix.com>
> 
> CC Paul for 4.14.

Release-acked-by: Paul Durrant <paul@xen.org>

> 
> ~Andrew



^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2020-06-12 10:10 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-06-11 11:54 [PATCH] x86/boot: use BASEDIR for include path Bertrand Marquis
2020-06-11 16:24 ` Andrew Cooper
2020-06-11 16:50   ` Bertrand Marquis
2020-06-11 17:28     ` Andrew Cooper
2020-06-12 10:10       ` Paul Durrant

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).