From patchwork Wed Apr 18 08:13:10 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Olaf Hering X-Patchwork-Id: 10347569 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 9433760365 for ; Wed, 18 Apr 2018 08:15:01 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 8A5DF27F9F for ; Wed, 18 Apr 2018 08:15:01 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 7C8E82859A; Wed, 18 Apr 2018 08:15:01 +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=-7.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 4CFC22859E for ; Wed, 18 Apr 2018 08:14:59 +0000 (UTC) Received: from localhost ([::1]:39702 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1f8iF1-0006ez-6t for patchwork-qemu-devel@patchwork.kernel.org; Wed, 18 Apr 2018 04:14:59 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:32955) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1f8iDp-00068f-22 for qemu-devel@nongnu.org; Wed, 18 Apr 2018 04:13:45 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1f8iDo-0005s5-4Y for qemu-devel@nongnu.org; Wed, 18 Apr 2018 04:13:45 -0400 Received: from mo6-p01-ob.smtp.rzone.de ([2a01:238:20a:202:5301::5]:31097) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1f8iDk-0005p4-PR; Wed, 18 Apr 2018 04:13:41 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; t=1524039218; s=strato-dkim-0002; d=aepfle.de; h=Content-Transfer-Encoding:Message-Id:Date:Subject:Cc:To:From: X-RZG-CLASS-ID:X-RZG-AUTH:From:Subject:Sender; bh=FUI3qzYc3aYlCcLQQ4pMmEicveIzMehhjdhF+85O+fg=; b=IXD/VmJjkLuRD+rqN7BJ2XdyQe84j0i87mbBUnI/tjjx9AJVR89a8YaF3iexzWwxn9 3zhCQTye5doW7HWczI6XQ5WtXHX+iXVoXClcxe6IZDPMGhUy9b8eqP11BL2TCEEFKz9q hbfmsibGFrc8Try0NOWpT8yLGucnmOqrBz97Gaccg+N7rc3a2J5h5ssfZWPTmg6K2Hqq vlwAYC8CH47MCVxAoz9HERnmlgqrq0gAJI75hVOt0U9DdH5ldlSxUEha7HVZTUoL1Ib8 kjLUfb6+y7NhVNiOPZkbwadtv25MuXArIyFrbm1w16eXQoZUxDve51NsAJK6gYJcajWT 7ZRA== X-RZG-AUTH: :P2EQZWCpfu+qG7CngxMFH1J+3q8wa/QXkBR9MXjAuzpIG0mv9coXAgc1+lb4Esstf6UEufFpy8L/NK2kKUAyDFSMDbcP X-RZG-CLASS-ID: mo00 Received: from sender by smtp.strato.de (RZmta 43.4 AUTH) with ESMTPSA id Q05f37u3I8DM4RC (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (curve secp521r1 with 521 ECDH bits, eq. 15360 bits RSA)) (Client did not present a certificate); Wed, 18 Apr 2018 10:13:22 +0200 (CEST) From: Olaf Hering To: qemu-trivial@nongnu.org Date: Wed, 18 Apr 2018 10:13:10 +0200 Message-Id: <20180418081311.27803-1-olaf@aepfle.de> X-Mailer: git-send-email 2.16.3 MIME-Version: 1.0 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [generic] X-Received-From: 2a01:238:20a:202:5301::5 Subject: [Qemu-devel] [PATCH v1] roms/ipxe: use configured compiler for ipxe X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Olaf Hering , David Gibson , "open list:All patches CC here" Errors-To: qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org Sender: "Qemu-devel" X-Virus-Scanned: ClamAV using ClamSMTP configure allows to run a dedicated compiler binary, which is stored in CC and HOST_CC variables, and overrides the default 'cc' command. This command however is not used when building ipxe from source. "make -C roms pxerom" invokes the buildsystem of ipxe.git, which has the command "gcc" hardcoded. That binary may not be suitable to build ipxe. Reuse the same compiler command that is used to build qemu by specifying CC and HOST_CC as make commandline option to override the built-in defaults of ipxe. Signed-off-by: Olaf Hering --- roms/Makefile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/roms/Makefile b/roms/Makefile index 02b69fbac8..982bf105a3 100644 --- a/roms/Makefile +++ b/roms/Makefile @@ -127,11 +127,13 @@ efi-rom-%: build-pxe-roms build-efi-roms build-pxe-roms: $(MAKE) -C ipxe/src CONFIG=qemu \ + CC=$(CC) HOST_CC=$(HOST_CC) \ CROSS_COMPILE=$(x86_64_cross_prefix) \ $(patsubst %,bin/%.rom,$(pxerom_targets)) build-efi-roms: build-pxe-roms $(MAKE) -C ipxe/src CONFIG=qemu \ + CC=$(CC) HOST_CC=$(HOST_CC) \ CROSS_COMPILE=$(x86_64_cross_prefix) \ $(patsubst %,bin-i386-efi/%.efidrv,$(pxerom_targets)) \ $(patsubst %,bin-x86_64-efi/%.efidrv,$(pxerom_targets))