[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Minios-devel] [UNIKRAT RFC PATCH] build: Introduce flag CFLAGS_REMOVE to remove some options


  • To: Justin He <Justin.He@xxxxxxx>, "minios-devel@xxxxxxxxxxxxxxxxxxxx" <minios-devel@xxxxxxxxxxxxxxxxxxxx>, Simon Kuenzer <simon.kuenzer@xxxxxxxxx>, "Santiago.Pagani@xxxxxxxxx" <Santiago.Pagani@xxxxxxxxx>
  • From: Justin He <Justin.He@xxxxxxx>
  • Date: Mon, 24 Feb 2020 06:36:18 +0000
  • Accept-language: en-US, zh-CN
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=arm.com; dmarc=pass action=none header.from=arm.com; dkim=pass header.d=arm.com; arc=none
  • Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=0C+ltlTia8wcx4cOchE5YOUdagxEZG4OEo1v12EThZU=; b=TPaY59DxilRLf9HKQbUH65fb9YrLzQUqguXHE23uxMNfgbRH4tZLoCfXcu4r7NjNUhMdFar7n0ns3HFFor1jgAIJhRJakGfzRylHO8GRYH7aGSAPmVvpQNYAnMOso7CEzeLKfP+EsFadrZzkG3vhZT/OZtJHrR/ZpHFpVXf83Tl5XDTDVZ0sqthHOOXIqK358fwUvoN74YDWlhtv2bW9a7mrMzD68th04iOFp8kTQKphxTgku0XmDTVCyXWy7ZKMDgyVt+7xnL3AFmu/UpR+lj/QzFGrn/UJhFD5ByHvA/HynyqcPIXcFVKwuaebJUXdshd40pRMwZ5OJOZX8/h2+g==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=J04GRr7de6xJ7PiaSiPXnEf2CzX9ZUs9q5mSAThEYsULQNuI1yK6qs8zGn+1W31HCmCssVAK5/kzCKL+ot9Cz4TPASPNZH3ERqGDJC0beRbm2TdgyvjGd77CtI3UoVucC6fBmb1ylRy+9yMnVSYTzGA5PEQZpqXzeTx9eEb1KTwCd8KR8/JLmvRIoBAK8hDsHMQHtgfS0ctPmX4oD1QRP/7fGWR8PZBzPE0GVwdM46fFbghAme4ose0FdHCZP7TIx1RCiYBv5qIcnP2MC8Sn2PYmWLkhXCEIur4J/FTw2Ur4+1vBsehqBxQAlUZqw/YDZuwHkeiTfzAjQg1BqIDR9Q==
  • Authentication-results: spf=pass (sender IP is 63.35.35.123) smtp.mailfrom=arm.com; lists.xenproject.org; dkim=pass (signature was verified) header.d=armh.onmicrosoft.com;lists.xenproject.org; dmarc=bestguesspass action=none header.from=arm.com;
  • Authentication-results-original: spf=none (sender IP is ) smtp.mailfrom=Justin.He@xxxxxxx;
  • Cc: Felipe Huici <felipe.huici@xxxxxxxxx>, Kaly Xin <Kaly.Xin@xxxxxxx>, Julien Grall <Julien.Grall@xxxxxxx>, nd <nd@xxxxxxx>, "Sharan.Santhanam@xxxxxxxxx" <Sharan.Santhanam@xxxxxxxxx>
  • Delivery-date: Mon, 24 Feb 2020 06:36:32 +0000
  • List-id: Mini-os development list <minios-devel.lists.xenproject.org>
  • Nodisclaimer: true
  • Original-authentication-results: spf=none (sender IP is ) smtp.mailfrom=Justin.He@xxxxxxx;
  • Thread-index: AQHV6twPXpcKVRblJEuJurN1kDebf6gp4u4Q
  • Thread-topic: [UNIKRAT RFC PATCH] build: Introduce flag CFLAGS_REMOVE to remove some options

Hi Simon and Felipe
This patch is the proposal as we discussed in last meeting.
After this patch, in newlib Makefile, we need to add 
Ifeq (ARM_64, y)
CFLAGS_REMOVE=-mgeneral-regs-only
endif

What do you think of it
--
Cheers,
Justin (Jia He)


> -----Original Message-----
> From: Jia He <justin.he@xxxxxxx>
> Sent: Monday, February 24, 2020 2:31 PM
> To: minios-devel@xxxxxxxxxxxxxxxxxxxx; Simon Kuenzer
> <simon.kuenzer@xxxxxxxxx>; Santiago.Pagani@xxxxxxxxx
> Cc: Sharan.Santhanam@xxxxxxxxx; Felipe Huici <felipe.huici@xxxxxxxxx>;
> Julien Grall <Julien.Grall@xxxxxxx>; Kaly Xin <Kaly.Xin@xxxxxxx>; Justin He
> <Justin.He@xxxxxxx>
> Subject: [UNIKRAT RFC PATCH] build: Introduce flag CFLAGS_REMOVE to
> remove some options
> 
> Previously, there is no way to remove any global options for individual
> library. For some reason, on arm64 we need to use mgeneral-regs-only
> for unikraft plat library (context switch, print debug). But for some
> other libraries (e.g. newlib), we shouldn't use that option due to
> float point/simd support on arm64.
> 
> This patch adds a new flag CFLAGS_REMOVE to filter it out in unikraft
> build system.
> 
> Signed-off-by: Jia He <justin.he@xxxxxxx>
> ---
>  support/build/Makefile.rules | 4 +++-
>  1 file changed, 3 insertions(+), 1 deletion(-)
> 
> diff --git a/support/build/Makefile.rules b/support/build/Makefile.rules
> index d60c6d9..dea2c7f 100644
> --- a/support/build/Makefile.rules
> +++ b/support/build/Makefile.rules
> @@ -391,7 +391,9 @@ $(3): $(2) | prepare
>       $(call build_cmd_fixdep,CC,$(1),$(3),\
>               $(CC)  $(CINCLUDES) $(CINCLUDES-y) \
>                      $($(call vprefix_lib,$(1),CINCLUDES)) $($(call
> vprefix_lib,$(1),CINCLUDES-y)) \
> -                    $(CFLAGS) $(CFLAGS-y) $(DBGFLAGS) $(DBGFLAGS-y) \
> +                    $(filter-out $(CFLAGS_REMOVE),$(CFLAGS)) \
> +                       $(filter-out $(CFLAGS_REMOVE),$(CFLAGS-y)) \
> +                       $(DBGFLAGS) $(DBGFLAGS-y) \
>                      $($(call vprefix_lib,$(1),CFLAGS)) $($(call
> vprefix_lib,$(1),CFLAGS-y)) \
>                      $(4) -D__LIBNAME__=$(1) -D__BASENAME__=$(notdir $(2))
> \
>                      -c $(2) -o $(3) $(depflags)
> --
> 2.17.1


_______________________________________________
Minios-devel mailing list
Minios-devel@xxxxxxxxxxxxxxxxxxxx
https://lists.xenproject.org/mailman/listinfo/minios-devel

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.