From patchwork Tue Nov 6 17:58:21 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ard Biesheuvel X-Patchwork-Id: 150309 Delivered-To: patch@linaro.org Received: by 2002:a2e:299d:0:0:0:0:0 with SMTP id p29-v6csp4192153ljp; Tue, 6 Nov 2018 09:59:14 -0800 (PST) X-Google-Smtp-Source: AJdET5fxKkOpi4jX0aY2a4paUusGBd0B8GRuyb0vUcR1p1PzlGcd6tKS9/qwq8gHgRdz0PVT1Mc/ X-Received: by 2002:aa7:8603:: with SMTP id p3-v6mr27257068pfn.247.1541527154566; Tue, 06 Nov 2018 09:59:14 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1541527154; cv=none; d=google.com; s=arc-20160816; b=znmcng7quk9HLeIPVJrIzx1gVl+tKpYRsTIanLUs0GY1D8vQO2vkVxlINZz/f+g1Ai wnDqGsKHqAe+yNOd/laxYnnG40TpMVHr4y4TC00Ht7QBLhmlxdHX/hnD+d4C3o8hIT2j OD3PqBNUiAGyc+w3UE9V7P2WrspOrJV3mTiW6Zc8eg61cysqKvmPfU1QJgYrN7nMszYA o5Bodky73gJh/lJghTIREU80WVFDjAv8dFw1G6IzgTJczf4bTzlikY2eyZjW8ZP9ZfZw vOe8WIaSzoT4HlPUjzTHyBwZcRLmQ6Ol/JAWLRRcBL9AxyUu9lP4gqrcnonkhQx2jjVV DfHA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:cc:list-subscribe :list-help:list-post:list-archive:list-unsubscribe:list-id :precedence:subject:mime-version:references:in-reply-to:message-id :date:to:from:dkim-signature:delivered-to; bh=nwVOIw6/1spuF4+T/THz4cu+cH+q2qw1BclcQ3YTk1A=; b=BZGbDvavg1oSAp/JthI6AZKzVPTU8d2ECXBXwrM+VEsXl5XycLdrMtSdQSXghbT4m3 faPj0EGe+gmieU8ot7TQvwy7mBqPfKRPj3fU15Jg6jruCk/kQtfb9VTeGy8kuzRucL5v yIin4nfHQ+PH7Q6ZyxFj80guRcKMRE19e/i03yH3Ms1S5VDwIpoZLMAYaVVSMBXrwmfj x2G1WJUHbqgDFc/5SrprH+qnXFEPtivb6pcYuHdWC41W7e9uY7kd6hWHINDTHXjwfPyH V43fE4amGMAuKEdonrLib14y1dgGcR/QuIHBwkt2jMZmVjczIgKhFEzhIPZqMC6VCgPs CQGw== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=gZTTsiZc; spf=pass (google.com: best guess record for domain of edk2-devel-bounces@lists.01.org designates 198.145.21.10 as permitted sender) smtp.mailfrom=edk2-devel-bounces@lists.01.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from ml01.01.org (ml01.01.org. [198.145.21.10]) by mx.google.com with ESMTPS id r29si18188857pga.477.2018.11.06.09.59.14 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 06 Nov 2018 09:59:14 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of edk2-devel-bounces@lists.01.org designates 198.145.21.10 as permitted sender) client-ip=198.145.21.10; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=gZTTsiZc; spf=pass (google.com: best guess record for domain of edk2-devel-bounces@lists.01.org designates 198.145.21.10 as permitted sender) smtp.mailfrom=edk2-devel-bounces@lists.01.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from [127.0.0.1] (localhost [IPv6:::1]) by ml01.01.org (Postfix) with ESMTP id AB6532118C509; Tue, 6 Nov 2018 09:59:02 -0800 (PST) X-Original-To: edk2-devel@lists.01.org Delivered-To: edk2-devel@lists.01.org Received-SPF: Pass (sender SPF authorized) identity=mailfrom; client-ip=2a00:1450:4864:20::444; helo=mail-wr1-x444.google.com; envelope-from=ard.biesheuvel@linaro.org; receiver=edk2-devel@lists.01.org Received: from mail-wr1-x444.google.com (mail-wr1-x444.google.com [IPv6:2a00:1450: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 D404A2118C503 for ; Tue, 6 Nov 2018 09:58:59 -0800 (PST) Received: by mail-wr1-x444.google.com with SMTP id r10-v6so14563179wrv.6 for ; Tue, 06 Nov 2018 09:58:59 -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 :mime-version:content-transfer-encoding; bh=KbmYC/RVSxTrYzhnrAiaF10+p4qCXiX2RiK2HL376G4=; b=gZTTsiZc+hMIAygbNUrlaeKne+b87K1SCqUOvCvUZuMF770xJtVpqok8eI6BE5LYN4 h/rTgBMbTLEqSTfj4dh869SVpw0EjO+rqmWj5PYlzkgmS1Gs6y8jYraEFcyDzRMDYU9h d9roJBXd4weeShMOWjya0ur2RxA8d4/pt0S1A= 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:mime-version:content-transfer-encoding; bh=KbmYC/RVSxTrYzhnrAiaF10+p4qCXiX2RiK2HL376G4=; b=srnKw4UnXiAJkc+7bk9dUs0dniDLcJ1tvAaNwUVF70qOiMlsGSoVoH9GE3OQQhzdwq voNHYeoFnrLpt2rOf1FaOva2PKkKILNBAoM25RdZc2ySaHiUiu4JNCGhlzy8IAI7G6xA qjxqJcOweM3/AhuPEBt11R2aLjaNB/DNfpRSV8XtPZp0yYMrcIZf+ETIggVHJkxAwS6A wUw/FpzPYwuACYEaqLZLlQ/dsRBr2zOyQPoq3bi0kA8PmzO6s/EFyX1ZmbcnyNhz1raR xeKH3cU63kitFLt1SFx7nPjLM8kpOxr/gxWOq2ekxH4HsdPkHr+EyopL+U9Qxd6FHOLE nRzg== X-Gm-Message-State: AGRZ1gLS6fpQHKmNoXSQjG5P5fcro28Ag146utXReFVQMJV5TV50Whyv V6CzwySmeBtzU+VG4kluOFaiWMEduVg= X-Received: by 2002:adf:fb4b:: with SMTP id c11-v6mr23687279wrs.117.1541527138224; Tue, 06 Nov 2018 09:58:58 -0800 (PST) Received: from localhost.localdomain (laubervilliers-657-1-83-120.w92-154.abo.wanadoo.fr. [92.154.90.120]) by smtp.gmail.com with ESMTPSA id 134-v6sm2971522wmp.6.2018.11.06.09.58.57 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 06 Nov 2018 09:58:57 -0800 (PST) From: Ard Biesheuvel To: edk2-devel@lists.01.org Date: Tue, 6 Nov 2018 18:58:21 +0100 Message-Id: <20181106175833.26964-8-ard.biesheuvel@linaro.org> X-Mailer: git-send-email 2.19.1 In-Reply-To: <20181106175833.26964-1-ard.biesheuvel@linaro.org> References: <20181106175833.26964-1-ard.biesheuvel@linaro.org> MIME-Version: 1.0 Subject: [edk2] [PATCH edk2-staging 07/19] IntelUndiPkg/GigUndiDxe: 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: , Cc: michael.d.kinney@intel.com, eric.jin@intel.com Errors-To: edk2-devel-bounces@lists.01.org Sender: "edk2-devel" 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/GigUndiDxe/GigUndiDxe.inf | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) -- 2.19.1 _______________________________________________ edk2-devel mailing list edk2-devel@lists.01.org https://lists.01.org/mailman/listinfo/edk2-devel Reviewed-by: Ryszard Knop diff --git a/IntelUndiPkg/GigUndiDxe/GigUndiDxe.inf b/IntelUndiPkg/GigUndiDxe/GigUndiDxe.inf index 6c195872c00f..19dae9a0987a 100644 --- a/IntelUndiPkg/GigUndiDxe/GigUndiDxe.inf +++ b/IntelUndiPkg/GigUndiDxe/GigUndiDxe.inf @@ -41,20 +41,20 @@ ENTRY_POINT = InitializeGigUNDIDriver UNLOAD_IMAGE = GigUndiUnload [BuildOptions.common] - -*_*_*_CC_FLAGS = /FAcs /D MDEPKG_NDEBUG + MSFT:*_*_*_CC_FLAGS = /FAcs /D MDEPKG_NDEBUG + GCC:RELEASE_*_*_CC_FLAGS = -D MDEPKG_NDEBUG [BuildOptions.X64] - -*_*_*_CC_FLAGS = /D EFIX64 + MSFT:*_*_*_CC_FLAGS = /D EFIX64 + GCC:*_*_*_CC_FLAGS = -D EFIX64 [BuildOptions.IPF] - -*_*_*_CC_FLAGS = /D EFI64 + MSFT:*_*_*_CC_FLAGS = /D EFI64 + GCC:*_*_*_CC_FLAGS = -D EFI64 [BuildOptions.IA32] - -*_*_*_CC_FLAGS = /D EFI32 + MSFT:*_*_*_CC_FLAGS = /D EFI32 + GCC:*_*_*_CC_FLAGS = -D EFI32 [sources.common] InventoryStrings.uni