From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received-SPF: Pass (sender SPF authorized) identity=mailfrom; client-ip=2607:f8b0:4864:20::444; helo=mail-pf1-x444.google.com; envelope-from=ard.biesheuvel@linaro.org; receiver=edk2-devel@lists.01.org Received: from mail-pf1-x444.google.com (mail-pf1-x444.google.com [IPv6:2607:f8b0:4864:20::444]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id 8E7EE21A07A92 for ; Wed, 14 Nov 2018 18:34:03 -0800 (PST) Received: by mail-pf1-x444.google.com with SMTP id b81-v6so8399069pfe.11 for ; Wed, 14 Nov 2018 18:34:03 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=V/HFYwedJhL15kbdN/2Xas6CQ/6NHa+u1C1NobMXK0o=; b=HnndQCeJgX+16IpzmSlpNEP2vO3pmvkmx8cx+G9jXytSmzC70QE+8QRQOOKpps8WE4 68PGnm0KNEkUAaXoch+8GC8cIi1YJ99RoPiSDNuhBBLuxhn7dRI/kpX2fVQPpwNk/AnG f7ZBM9JVXosZhJ2fG5DGU25YSc/KAN/Og4/bo= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=V/HFYwedJhL15kbdN/2Xas6CQ/6NHa+u1C1NobMXK0o=; b=R+FrF316pcH8R+mMJf2wxADef6KSC0r5IZTPN9GyAZqKP82K4c4B2eJKB04ZSJg1H4 aTx7EWWnM0AFfpsCQnaWTvygrA/yG5gC8rni6712Ii4fJXW6G2O7zWV+oZhN+XlLnvZZ NDYhJXy4iLGr6UddD8n8VSTk2aaCV/3SKvSt2vxz7QxlTikdK+Dmy1pXwyV81OnFqExv cEkZq8Eg64o8lMtRxkUB5WHNDdY1B+ielbkOeCAY/zPNFwEoAPt3oIOwqjSktiKt8u0C D48DrtcaXg+KUvFydS+YM4dwXmVdw9Ixl/X+QCQS0lT1HFAds1H4C+kcDx3sBlaLphjL uAFQ== X-Gm-Message-State: AGRZ1gJNY6P9l8tH7WPCYN2DGlNSKZlVnSqUX1j0l0742KecP7PBxxEy EG5H7sK4n5rNiQt2XOOCOsm+4JR5UASs8w== X-Google-Smtp-Source: AJdET5flADWvZjKD/9kBpCwP9tzM3klRFJok2geNqbcIqkTqeN7NmIePGWGciyfeAwLakFWIA/nSJQ== X-Received: by 2002:aa7:814f:: with SMTP id d15-v6mr4615846pfn.78.1542249242843; Wed, 14 Nov 2018 18:34:02 -0800 (PST) Received: from mba13.psav.com ([64.114.255.97]) by smtp.gmail.com with ESMTPSA id v185-v6sm27323393pfv.48.2018.11.14.18.34.01 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 14 Nov 2018 18:34:02 -0800 (PST) From: Ard Biesheuvel To: edk2-devel@lists.01.org Cc: leif.lindholm@linaro.org, maciej.rabeda@intel.com, kamil.kacperski@intel.com, pawel.orlowski@intel.com, philmd@redhat.com, michael.d.kinney@intel.com, harry.l.hsiung@intel.com, eric.jin@intel.com, Ard Biesheuvel Date: Wed, 14 Nov 2018 18:33:34 -0800 Message-Id: <20181115023353.20159-2-ard.biesheuvel@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20181115023353.20159-1-ard.biesheuvel@linaro.org> References: <20181115023353.20159-1-ard.biesheuvel@linaro.org> Subject: [PATCH edk2-staging 01/20] IntelUndiPkg/XGigUndiDxe: create GCC alternatives for MSFT build options X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 15 Nov 2018 02:34:03 -0000 Prefix the existing MSFT-only build option overrides with MSFT: and create the GCC: counterparts so we can build this code with GCC as well. Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Ard Biesheuvel --- IntelUndiPkg/XGigUndiDxe/XGigUndiDxe.inf | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/IntelUndiPkg/XGigUndiDxe/XGigUndiDxe.inf b/IntelUndiPkg/XGigUndiDxe/XGigUndiDxe.inf index 9e0e4aff0885..ab9c64dac7e8 100644 --- a/IntelUndiPkg/XGigUndiDxe/XGigUndiDxe.inf +++ b/IntelUndiPkg/XGigUndiDxe/XGigUndiDxe.inf @@ -44,19 +44,24 @@ UNLOAD_IMAGE = UnloadXGigUndiDriver [BuildOptions.common] -*_*_*_CC_FLAGS = /FAcs /D MDEPKG_NDEBUG /D UNDI_10G +MSFT:*_*_*_CC_FLAGS = /FAcs /D MDEPKG_NDEBUG /D UNDI_10G +GCC:*_*_*_CC_FLAGS = -DUNDI_10G +GCC:RELEASE_*_*_CC_FLAGS = -DMDEPKG_NDEBUG [BuildOptions.X64] -*_*_*_CC_FLAGS = /D EFIX64 +MSFT:*_*_*_CC_FLAGS = /D EFIX64 +GCC:*_*_*_CC_FLAGS = -DEFIX64 [BuildOptions.IPF] -*_*_*_CC_FLAGS = /D EFI64 +MSFT:*_*_*_CC_FLAGS = /D EFI64 +GCC:*_*_*_CC_FLAGS = -DEFI64 [BuildOptions.IA32] -*_*_*_CC_FLAGS = /D EFI32 +MSFT:*_*_*_CC_FLAGS = /D EFI32 +GCC:*_*_*_CC_FLAGS = -DEFI32 [sources.common] InventoryStrings.uni -- 2.17.1