From patchwork Fri Jul 26 13:33:28 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?q?Roger_Pau_Monn=C3=A9?= X-Patchwork-Id: 11061069 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id A9C68912 for ; Fri, 26 Jul 2019 13:35:17 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 9579428710 for ; Fri, 26 Jul 2019 13:35:17 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 84BBC28A6B; Fri, 26 Jul 2019 13:35:17 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.2 required=2.0 tests=BAYES_00,MAILING_LIST_MULTI, RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id F0EFD28710 for ; Fri, 26 Jul 2019 13:35:16 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.89) (envelope-from ) id 1hr0Lv-0006Yo-Je; Fri, 26 Jul 2019 13:33:43 +0000 Received: from us1-rack-dfw2.inumbo.com ([104.130.134.6]) by lists.xenproject.org with esmtp (Exim 4.89) (envelope-from ) id 1hr0Lu-0006Yi-Jh for xen-devel@lists.xenproject.org; Fri, 26 Jul 2019 13:33:42 +0000 X-Inumbo-ID: fb2162bf-afa9-11e9-8980-bc764e045a96 Received: from esa2.hc3370-68.iphmx.com (unknown [216.71.145.153]) by us1-rack-dfw2.inumbo.com (Halon) with ESMTPS id fb2162bf-afa9-11e9-8980-bc764e045a96; Fri, 26 Jul 2019 13:33:41 +0000 (UTC) Authentication-Results: esa2.hc3370-68.iphmx.com; dkim=none (message not signed) header.i=none; spf=None smtp.pra=roger.pau@citrix.com; spf=Pass smtp.mailfrom=roger.pau@citrix.com; spf=None smtp.helo=postmaster@mail.citrix.com Received-SPF: None (esa2.hc3370-68.iphmx.com: no sender authenticity information available from domain of roger.pau@citrix.com) identity=pra; client-ip=162.221.158.21; receiver=esa2.hc3370-68.iphmx.com; envelope-from="roger.pau@citrix.com"; x-sender="roger.pau@citrix.com"; x-conformance=sidf_compatible Received-SPF: Pass (esa2.hc3370-68.iphmx.com: domain of roger.pau@citrix.com designates 162.221.158.21 as permitted sender) identity=mailfrom; client-ip=162.221.158.21; receiver=esa2.hc3370-68.iphmx.com; envelope-from="roger.pau@citrix.com"; x-sender="roger.pau@citrix.com"; x-conformance=sidf_compatible; x-record-type="v=spf1"; x-record-text="v=spf1 ip4:209.167.231.154 ip4:178.63.86.133 ip4:195.66.111.40/30 ip4:85.115.9.32/28 ip4:199.102.83.4 ip4:192.28.146.160 ip4:192.28.146.107 ip4:216.52.6.88 ip4:216.52.6.188 ip4:162.221.158.21 ip4:162.221.156.83 ~all" Received-SPF: None (esa2.hc3370-68.iphmx.com: no sender authenticity information available from domain of postmaster@mail.citrix.com) identity=helo; client-ip=162.221.158.21; receiver=esa2.hc3370-68.iphmx.com; envelope-from="roger.pau@citrix.com"; x-sender="postmaster@mail.citrix.com"; x-conformance=sidf_compatible IronPort-SDR: IDFRBpV3d1vqdI+qe3bxVFaOtIoucktRgXzXL7PkKg1lNGGBTH10Su9qtm8H7220bf3JaG0/rt otDBCur9gKzH7/qqwtEMsUTsSE65os/gMNq4HpLlUIAdQuqqsEjLW6zEANn3SZbq8D1ryhLMHl 0Gs3JMYWPrO4a+jEV1y3AWKwjrwaF4L9CRJC69JWzP9zxSNlNJTlMJUBN0gc91j6yriyFuRmKk L4YAi6XDgi7yOVNTicnc9p3AgW99jOPVQB00RP53tF8K36QzGRfGocKW0hGsJ08uaMqdg2Dcp/ WfQ= X-SBRS: 2.7 X-MesageID: 3473447 X-Ironport-Server: esa2.hc3370-68.iphmx.com X-Remote-IP: 162.221.158.21 X-Policy: $RELAYED X-IronPort-AV: E=Sophos;i="5.64,311,1559534400"; d="scan'208";a="3473447" From: Roger Pau Monne To: Date: Fri, 26 Jul 2019 15:33:28 +0200 Message-ID: <20190726133331.91482-1-roger.pau@citrix.com> X-Mailer: git-send-email 2.20.1 (Apple Git-117) MIME-Version: 1.0 Subject: [Xen-devel] [PATCH 0/3] build: honor toolchain related environment vars X-BeenThere: xen-devel@lists.xenproject.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Cc: Roger Pau Monne Errors-To: xen-devel-bounces@lists.xenproject.org Sender: "Xen-devel" X-Virus-Scanned: ClamAV using ClamSMTP Hello, Current Xen build system will ignore any toolchain related variables on the environment when building (ie: CC, LD, CXX...), and the only way to set those is to assign them directly on the make command line (ie: make CC=foo CXX=bar ...). The following series attempts to fix this, by removing the hardcoding of the toolchain variables previously done in StdGNU.mk. Note that this has the side effect that the build system will no longer prepend CROSS_COMPILE to the toolchain variables if those are already set. So if you are building Xen and setting CROSS_COMPILE make sure toolchain variables are unset, or if set they should contain CROSS_COMPILE. The Travis CI script is updated in patch 2/3 in order to comply with the above. The series can be found at: git://xenbits.xen.org/people/royger/xen.git env_tools.wip Results from Travis and gitlab CI loops are at: https://travis-ci.org/royger/xen/builds/563972832 https://gitlab.com/xen-project/people/royger/xen/pipelines/73130338 Thanks, Roger. Roger Pau Monne (3): kconfig: include default toolchain values build: allow picking the env values for compiler variables build: allow picking the env values for toolchain utilities config/StdGNU.mk | 55 ++++++++++++++++-------------- scripts/travis-build | 8 +++++ xen/Makefile | 6 ++-- xen/tools/kconfig/Makefile.kconfig | 7 ++-- 4 files changed, 43 insertions(+), 33 deletions(-)