From patchwork Wed Dec 13 12:26:29 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Leif Lindholm X-Patchwork-Id: 121759 Delivered-To: patch@linaro.org Received: by 10.140.22.227 with SMTP id 90csp5403559qgn; Wed, 13 Dec 2017 04:26:41 -0800 (PST) X-Google-Smtp-Source: ACJfBouREa7n2C1A6+L+uZlCfeGgZiE52Md91qjeujMsj3ePHnsglIPkuqAPS/K63+336H9kd2aq X-Received: by 10.99.127.84 with SMTP id p20mr5305237pgn.204.1513168001565; Wed, 13 Dec 2017 04:26:41 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1513168001; cv=none; d=google.com; s=arc-20160816; b=kV9FChOJfJjHCZAhipzNzy0jp1Eze+30FMuWF+ekQv3uQPA3u2SNzTFiv9SMNOk3db RUlL7Hd3e07uoKW5OW43FKXjs2X6325Fjq39jMcqns2yGexl+pFLsdwVFUM2Lqzk4veF iIoU8jrgbz9l0fQspvXAoKvG0FaPeI8teMGtyxL4n3CaTjG8xPXu7dbM69R/ea0NPIEJ mTgVsY4bIvLQy8/O58seDwbphP2V6YyDnm1B9bp1fe3yR4j4yYwdkxey6Dn5r/6yDce1 uLOim2pZZvoLAxdi36fTYePE+4e+QThDQmCelUycYQXeSA8ELdInWw5DLz1ZuZlzL2Is yWNg== 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:arc-authentication-results; bh=YHeaT1M4r9U+tikwGg4de47xHVhlTnk8jhkQAjmGFqA=; b=mBC6UV+ARUVyGAy3UT9BU97rHV6R/dFYUS+hzuww7GnWCFQtAkSxI8w4iuIHUy545/ H3bs223vpUHxo97Hjs12vyM2DOam7ee+3hPtVGUonShYfudB52f8EM4XmCwnLwlv/vlG eNid5Ile4KUrnccik5gIgzFX4uJyhWN3mdqNyIC2F1lKSPmXNDpP8G2DEDhUnx0KzVzd f745TL5/NqJsQTMwInAFd5+eJvElzNR58u2/AkyQld5BALvZmKe0dw7Y5aI1IU2tZHLV vg16T3pm0NTBl4OOoxycX/nZNQbuq0M+/bKpLd+idwlJs7De0DDdlfRJM0mYmYFQZY5A RK+g== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=a2Oa/5w6; 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 o61si1295179pld.253.2017.12.13.04.26.41 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 13 Dec 2017 04:26:41 -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=a2Oa/5w6; 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 62F452214E35A; Wed, 13 Dec 2017 04:21:59 -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:400c:c0c::241; helo=mail-wr0-x241.google.com; envelope-from=leif.lindholm@linaro.org; receiver=edk2-devel@lists.01.org Received: from mail-wr0-x241.google.com (mail-wr0-x241.google.com [IPv6:2a00:1450:400c:c0c::241]) (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 3AD0C220EE10F for ; Wed, 13 Dec 2017 04:21:58 -0800 (PST) Received: by mail-wr0-x241.google.com with SMTP id g53so1947574wra.2 for ; Wed, 13 Dec 2017 04:26:38 -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=CmmFuDAqT1gUwQo5OAwo8NIK8QgPiqdKmVMXuJz44Ek=; b=a2Oa/5w6DYx5ZnSoYAelz1DPtRJl8hq8tksV4qU0eJv+fLmESnmYhnl6fJrOxRHVsI MqdJKWdE6q1TWYexUah7BEFq/Lku34RzMNT1sH5IM4i0o0Fgyf6ecSB3km9yEEs/Vegz xrlfUsC+H+JwQlGpQrl2VthQ/vYYah1tYXqHI= 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=CmmFuDAqT1gUwQo5OAwo8NIK8QgPiqdKmVMXuJz44Ek=; b=aExnDvbXRR7+Or9pyVVApakTIG9G31XOYHd/1qpxDLbyUfOKISEtwFjiJVhpgSRuuX XoqqDznAeDz2cG9MnhXeE6CYpLR93iQ7LLXcuVNXFGHUOB4/Ynut3RJ0ATIywmvLB/dO L0yZQVdSsmEy7nuIi5lraHdjlA8Pf7TVXdQdcH5CDCD5ouBAycloGso+bb+mF90hAFn1 TLcT94NSMlvJUmmLfMC+egjGB+MQblKUeqDVfRnRnEvooxhPNL5J8faXvN25x1exV0G0 q0NkoMl/iBeEExtpci5NfjxsjMFQIcbHxQudJa3CIinxaDFxLby9I9ac+2GDW5XHfyij fIeQ== X-Gm-Message-State: AKGB3mLWtC4ghzJqGSvD1iAjtY8HYa6SKVlAjh3OSqBiWJRstwgnzzkW TBeFqGPzjtVU8L4J4aZopcGcorQeLVU= X-Received: by 10.223.179.209 with SMTP id x17mr2274388wrd.145.1513167996513; Wed, 13 Dec 2017 04:26:36 -0800 (PST) Received: from vanye.hemma.eciton.net (cpc92316-cmbg19-2-0-cust118.5-4.cable.virginm.net. [82.12.0.119]) by smtp.gmail.com with ESMTPSA id b78sm1584050wmi.18.2017.12.13.04.26.34 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 13 Dec 2017 04:26:35 -0800 (PST) From: Leif Lindholm To: edk2-devel@lists.01.org Date: Wed, 13 Dec 2017 12:26:29 +0000 Message-Id: <20171213122630.17023-3-leif.lindholm@linaro.org> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20171213122630.17023-1-leif.lindholm@linaro.org> References: <20171213122630.17023-1-leif.lindholm@linaro.org> Subject: [edk2] [PATCH 2/3] MdeModulePkg: use central variable definitions in DriverSampleDxe X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Eric Dong , Star Zeng MIME-Version: 1.0 Errors-To: edk2-devel-bounces@lists.01.org Sender: "edk2-devel" Use UefiMultiPhaseDefinitions.h in Vfr.vfr instead of duplicating the definitions. Cc: Star Zeng Cc: Eric Dong Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Leif Lindholm --- MdeModulePkg/Universal/DriverSampleDxe/Vfr.vfr | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) -- 2.11.0 _______________________________________________ edk2-devel mailing list edk2-devel@lists.01.org https://lists.01.org/mailman/listinfo/edk2-devel Reviewed-by: Star Zeng to MdeModulePkg change. Signed-off-by: Leif Lindholm diff --git a/MdeModulePkg/Universal/DriverSampleDxe/Vfr.vfr b/MdeModulePkg/Universal/DriverSampleDxe/Vfr.vfr index c1682913fa..551d78c15f 100644 --- a/MdeModulePkg/Universal/DriverSampleDxe/Vfr.vfr +++ b/MdeModulePkg/Universal/DriverSampleDxe/Vfr.vfr @@ -14,6 +14,7 @@ //**/ +#include #include "NVDataStruc.h" // @@ -35,14 +36,6 @@ #define EFI_FRONT_PAGE_SUBCLASS 0x02 #define EFI_SINGLE_USE_SUBCLASS 0x03 -// -// EFI Variable attributes -// -#define EFI_VARIABLE_NON_VOLATILE 0x00000001 -#define EFI_VARIABLE_BOOTSERVICE_ACCESS 0x00000002 -#define EFI_VARIABLE_RUNTIME_ACCESS 0x00000004 -#define EFI_VARIABLE_READ_ONLY 0x00000008 - #define EFI_USER_INFO_ACCESS_SETUP_ADMIN_GUID \ { 0x85b75607, 0xf7ce, 0x471e, { 0xb7, 0xe4, 0x2a, 0xea, 0x5f, 0x72, 0x32, 0xee } }