WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

Re: [Xen-devel] [PATCH] minios: minor buildsystem fixes

To: Christoph Egger <Christoph.Egger@xxxxxxx>
Subject: Re: [Xen-devel] [PATCH] minios: minor buildsystem fixes
From: Stefano Stabellini <stefano.stabellini@xxxxxxxxxxxxx>
Date: Wed, 15 Jul 2009 17:39:56 +0100
Cc: "xen-devel@xxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxx>
Delivery-date: Wed, 15 Jul 2009 09:39:50 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <200907151142.48343.Christoph.Egger@xxxxxxx>
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
References: <200907151142.48343.Christoph.Egger@xxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Alpine 2.00 (DEB 1167 2008-08-23)
On Wed, 15 Jul 2009, Christoph Egger wrote:
> 
> Hi!
> 
> Attached patch changes MiniOS.mk and tools/Rules.mk
> use the OS settings we build on.
> 

Looking at the original patch of this thread, I realize that probably
none of this is actually needed: 

> diff -r 323ae92f774b config/MiniOS.mk
> --- a/config/MiniOS.mk        Wed Jul 15 09:14:19 2009 +0100
> +++ b/config/MiniOS.mk        Wed Jul 15 11:35:03 2009 +0200
> @@ -1,4 +1,4 @@
> -include $(XEN_ROOT)/config/StdGNU.mk
> +include $(XEN_ROOT)/config/$(shell uname -s).mk
>  include $(XEN_ROOT)/extras/mini-os/Config.mk
>  CFLAGS += $(DEF_CFLAGS) $(ARCH_CFLAGS)
>  CPPFLAGS += $(DEF_CPPFLAGS) $(ARCH_CPPFLAGS) $(extra_incl)

This is not needed because the only things that NetBSD.mk adds more than
StdGNU.mk are not needed in the stubdom case.


> diff -r 323ae92f774b tools/Rules.mk
> --- a/tools/Rules.mk  Wed Jul 15 09:14:19 2009 +0100
> +++ b/tools/Rules.mk  Wed Jul 15 11:35:03 2009 +0200
> @@ -33,7 +33,10 @@ CFLAGS += -D__XEN_TOOLS__
>  CFLAGS += -MMD -MF .$(@F).d
>  DEPS = .*.d
>  
> -ifneq ($(XEN_OS),NetBSD)
> +# On NetBSD LFS is always on.
> +# We can't use $(XEN_OS) or we will miss MiniOS
> +# when we build MiniOS on NetBSD.
> +ifneq ($(shell uname -s),NetBSD)
>  # Enable implicit LFS support *and* explicit LFS names.
>  CFLAGS  += $(shell getconf LFS_CFLAGS)
>  CFLAGS  += -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE

Given that you are still using GNU gcc on NetBSD, even if LFS is already
enabled by default, how is this an error?
Does it actually prevent you from compiling successfully qemu?

If you really need to disable those flags you should do that based on
getconf responses.



_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel