From patchwork Thu Nov 15 02:33:51 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ard Biesheuvel X-Patchwork-Id: 151155 Delivered-To: patch@linaro.org Received: by 2002:a2e:299d:0:0:0:0:0 with SMTP id p29-v6csp6454144ljp; Wed, 14 Nov 2018 18:35:22 -0800 (PST) X-Google-Smtp-Source: AJdET5cKSFg3U8OKJXO3bSeRo3rMwFiX00KKA32Lu99NFPbAc9kHTYu+f32PzsFrHXGJOb0cVwtx X-Received: by 2002:a17:902:f097:: with SMTP id go23mr4315178plb.328.1542249322358; Wed, 14 Nov 2018 18:35:22 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542249322; cv=none; d=google.com; s=arc-20160816; b=hu2lDCzkzSXymgp1KXoBrMIAcCEZx0vJ8ZUoPi791d/yv82f1sEQIC0EUtYOrT+Ub+ JgWaw0DVemKvMaRM9u4lEVH10sGDTlzJW3NILRLgUDl0kpMTAGi9ybxUIhVM9LC/weF9 CCZLzjQ4Q4+Jc4Me/ntk/6c6RXPHnam1nd0mjOfGTN3xx3aQuStwfYnFbkIvM2DETnAM UFHD9f/BRzIlunfLnEit7c+0SueHWH0ROtbMMn6Dl8vo3waW73/l3l22ETPQJtueoSLu IeNkU72fTUWBRUNKo5o64m3H38uAeYuA+PDh8ygHHS+WU9kJR+Se4S9ozwL+HNDJ/t5a VWjA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:mime-version:cc :list-subscribe:list-help:list-post:list-archive:list-unsubscribe :list-id:precedence:subject:references:in-reply-to:message-id:date :to:from:dkim-signature:delivered-to; bh=Z3qc5q6X9Rt1Z4GyvLn8b1E/NCcEqDGQFuaEt1yTv/8=; b=yvtHMmiiZGg+wRAgawFIc/hK4Z5BeGypLFqvkj14yd2tTYJ5368Z1bV0sB77/N2nE9 ncEpfm5ebBErGSAH1ZjbGrNVkmK0ivcYS0qtSB64iU0I1LRPj1Xt8EUOg+vHxmQ/Nl3Y OPZ13gt1OPFaoNpqNGnbcPtbb+VQkuwSjEZTFWjmjtVfpX3REwagXtF83nTAaGn9u3yr C4HvrZJKwiEZjSZ9L27H2S9fJo/yoHlWj/AO13cVqYEcNJYyQBs7SFrTJ3O3XBLFfnpM wpc2tsWIgs/VqELL72YnUpHFvZcKiy00eg3cD/ULAREzVmCaugjTKNw0axqRhlFBvj3d 1l4Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=aq7GwpI4; 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 s2si25128809pgj.60.2018.11.14.18.35.22 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 14 Nov 2018 18:35:22 -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=aq7GwpI4; 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 5465021191746; Wed, 14 Nov 2018 18:34:25 -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=2607:f8b0:4864:20::441; helo=mail-pf1-x441.google.com; envelope-from=ard.biesheuvel@linaro.org; receiver=edk2-devel@lists.01.org Received: from mail-pf1-x441.google.com (mail-pf1-x441.google.com [IPv6:2607:f8b0:4864:20::441]) (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 62B432119072C for ; Wed, 14 Nov 2018 18:34:23 -0800 (PST) Received: by mail-pf1-x441.google.com with SMTP id u3-v6so6218595pfm.4 for ; Wed, 14 Nov 2018 18:34:23 -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=yUsJBnpNV0S0mHaeoizJbp5uUiwaNAyn3UY7WtKL3c0=; b=aq7GwpI4SYRCvRYVrvmFUTvgHwo57l0o9V5df0qO5Ke6eGvpMs8VVu5VjSZRrXUiEs OQpU7ovycW5f8jButXU+3QUIlSKnTE/RzjyE2rCyZNVJi5iWTuUKG0Tj0Ei9lAa0Q1jR hJ80N3QlmjetZ6l/uJZRXyApeMSJE7KmokyI0= 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=yUsJBnpNV0S0mHaeoizJbp5uUiwaNAyn3UY7WtKL3c0=; b=rx6yjieDTENPRgNZeEQgMWY764PBmGWUqZ44iYEVhZDu67UP9T92aGHyEZh+8Y4EGz bv2nyAGAZIUz6kyyHWCOe6Bc0iqkbueTtkybYi1IcjxzGslofDC/ah/uABtLieNq2QCg c276qMnUEr1vGg/rLNxX81YbE1Y7kdIdUDuWrrfOLBvMyNL5Zl28eeTD/zW+Y/1aQ8JM O86SnAFdhnrbioZgIBXS5g2mACLUeaISK9tELYGnHHJNEZXVXmpy33BJvWDahBeRELE1 cGnpPAgEKzaKTkGhJJdOZU3QXR5oBvHrA5WteJs0Bd3ZMgVsYxa0mIRjavOS9FAuRTt1 zWRw== X-Gm-Message-State: AGRZ1gIQbjQOqTZwuT8+z+Q8b7tt3zJP9rvXNR41L1EIGrjt9nXR7gr9 fJzfYhoHgshxiNyO9/uzX0RgxknUO8hZsg== X-Received: by 2002:a63:63c3:: with SMTP id x186mr4106036pgb.330.1542249262854; Wed, 14 Nov 2018 18:34:22 -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.21 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 14 Nov 2018 18:34:22 -0800 (PST) From: Ard Biesheuvel To: edk2-devel@lists.01.org Date: Wed, 14 Nov 2018 18:33:51 -0800 Message-Id: <20181115023353.20159-19-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: [edk2] [PATCH edk2-staging 18/20] IntelUndiPkg/XGigUndiDxe: set MDEPKG_NDEBUG only for RELEASE builds 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: kamil.kacperski@intel.com, eric.jin@intel.com, pawel.orlowski@intel.com, michael.d.kinney@intel.com, harry.l.hsiung@intel.com MIME-Version: 1.0 Errors-To: edk2-devel-bounces@lists.01.org Sender: "edk2-devel" Only define the CPP macro MDEPKG_NDEBUG for the RELEASE target so that debug features are functional otherwise. Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Ard Biesheuvel --- IntelUndiPkg/XGigUndiDxe/XGigUndiDxe.inf | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) -- 2.17.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/XGigUndiDxe/XGigUndiDxe.inf b/IntelUndiPkg/XGigUndiDxe/XGigUndiDxe.inf index b5747565fbea..e3201fb9881f 100644 --- a/IntelUndiPkg/XGigUndiDxe/XGigUndiDxe.inf +++ b/IntelUndiPkg/XGigUndiDxe/XGigUndiDxe.inf @@ -44,7 +44,8 @@ UNLOAD_IMAGE = UnloadXGigUndiDriver [BuildOptions.common] -MSFT:*_*_*_CC_FLAGS = /FAcs /D MDEPKG_NDEBUG /D UNDI_10G /wd4244 /wd4206 /wd4189 +MSFT:*_*_*_CC_FLAGS = /FAcs /D UNDI_10G /wd4244 /wd4206 /wd4189 +MSFT:RELEASE_*_*_CC_FLAGS = /D MDEPKG_NDEBUG GCC:*_*_*_CC_FLAGS = -DUNDI_10G GCC:RELEASE_*_*_CC_FLAGS = -DMDEPKG_NDEBUG