From patchwork Wed Dec 13 12:26:27 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Leif Lindholm X-Patchwork-Id: 121757 Delivered-To: patch@linaro.org Received: by 10.140.22.227 with SMTP id 90csp5403492qgn; Wed, 13 Dec 2017 04:26:38 -0800 (PST) X-Google-Smtp-Source: ACJfBov6K9EGzAimL6omO96Ve4C8LjbqToTqco7aKsiBPVdAL7BOG+xHORNE2PC/GZJNDnCv+fpB X-Received: by 10.84.174.129 with SMTP id r1mr5818161plb.337.1513167997996; Wed, 13 Dec 2017 04:26:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1513167997; cv=none; d=google.com; s=arc-20160816; b=g51BzAI7ERTxfM7IpQndtXukYVFQgUAkPNAHRob0WdMVksSj/Th0wOEM+rFRMPEPCM NZH1bGNlaBzJU6vIrKjzue/M7wqo6SSyavwceV1i8Bk29xdzwm/5Od4jFg0FNL0m1zqM azDGXISnDFoMQcm0KkdvkMl858C4hN1kl2Z2xTATUpTEFHF8ATMFR0OgcbTpjy7dRuUa pf+q3xzGCxmJHDpkG8hcGhnh2yM4wdhraShr0/FFwawO6cy2MHZaZ46s1UMTLMErJBfX MSUSd+JvP52GYYtv5qSJ0nDywrPUr3ny2w9lb5NTaQnw8cCYzXtynlXTYSgIMowzaSZS pM6Q== 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:message-id:date:to:from:dkim-signature :delivered-to:arc-authentication-results; bh=P+TrdVDrXvB1oZHpmkCfT7KHoEov8/f9GF9DunuBWeQ=; b=ATRYsniOZUtwIndjjm3gAxpLwdaJ6qble1SvPzEKVvTY4oPGIf/Azci06vGdp9bIW1 SzlSXfsusejItm8iF1n3g09UkWW28jlKBtonAyEZGaz0GmIOuNb5yNpsjg0ORcVUZj91 iRLr/4m3UxrWNszfW1qRak7hnwGNvxNTjYXA5fs8/PNLW/UhjjbZ1+tyNNiPVuOaFS9r iaDwCkEJ1ZrEct9KY1z/sfSKEHhYV9pJ72gev5KlJWX2xXIA68suA9ISh6nF4CuabBDJ /p7hrTEBlt9YL2BYwsfV3cmXGvuT2VaQgE/wpkLnId8Vl/Wb2RiDFKIsi8OB3ebNmgfz bIww== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=Rs5zk08v; spf=pass (google.com: best guess record for domain of edk2-devel-bounces@lists.01.org designates 2001:19d0:306:5::1 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. [2001:19d0:306:5::1]) by mx.google.com with ESMTPS id 31si892267plh.767.2017.12.13.04.26.37 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 13 Dec 2017 04:26:37 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of edk2-devel-bounces@lists.01.org designates 2001:19d0:306:5::1 as permitted sender) client-ip=2001:19d0:306:5::1; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=Rs5zk08v; spf=pass (google.com: best guess record for domain of edk2-devel-bounces@lists.01.org designates 2001:19d0:306:5::1 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 DC9422214E33A; Wed, 13 Dec 2017 04:21:56 -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 3910921A10968 for ; Wed, 13 Dec 2017 04:21:54 -0800 (PST) Received: by mail-wr0-x241.google.com with SMTP id q9so1937237wre.7 for ; Wed, 13 Dec 2017 04:26:34 -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; bh=32u00bR1CQWC7imljcemtOplOP+fRIqR1KR/F5DMfxw=; b=Rs5zk08vtd+UOTQkSbgJlSUWI++it0gPojkJLqN2+xq0+9ueMCX2UQZzH0h/YsbhjI KRE+CgIpbB28QwqM/r8iU4AHAOgqxVPo+Kt9zWvk6f730gMng0ETQyo1kd0WXK5tKv5k qboKO2EVNYRCXUe7Q9HfiZn41tGBcSNqAy4lE= 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; bh=32u00bR1CQWC7imljcemtOplOP+fRIqR1KR/F5DMfxw=; b=YUKi0A3brEXGRv/TONKNRJA1Ivwc0uxl9Tw8u60ahGU5sAQdl7lukNZ5aBuj0rUeto IkmWpdfy9Bs1UDOQ3rE02riI70rkKBcQBRaknyVIfvopNhZLO0XCM2mp8lrUa62I+ojV ah2YYLPIvhXu8TIGIe24c4Gr8Clki/Tv3qEgIKvUu7rWVkeWia7Qr5LHxsgDAMP6oswt efcMJLB9w/rixY4DWD6aUAQjEzUyRpCknew1kIPqqFoP6zhLDWZm3NbifaS1Tu9t7Dad R2Of1jD1l73WXVWBmCKPHo2kZYHoSuBk89YDYcbEkpObw7IVrLO58pUSG+mbL4KTHJDh OV8g== X-Gm-Message-State: AKGB3mJ7yehubV8GoiNWrpYOTsf+hGfL6BQYS/ktz6d5gc1lwnLwBV+y 2vFnTC5Zbjf7leaAWEMpEVQcQYu3rDQ= X-Received: by 10.223.167.76 with SMTP id e12mr2383837wrd.204.1513167992712; Wed, 13 Dec 2017 04:26:32 -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.31 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 13 Dec 2017 04:26:31 -0800 (PST) From: Leif Lindholm To: edk2-devel@lists.01.org Date: Wed, 13 Dec 2017 12:26:27 +0000 Message-Id: <20171213122630.17023-1-leif.lindholm@linaro.org> X-Mailer: git-send-email 2.11.0 Subject: [edk2] [PATCH 0/3] Use central definitions for EFI_VARIABLE_* 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: Michael D Kinney , Eric Dong , Star Zeng , Liming Gao , Ard Biesheuvel MIME-Version: 1.0 Errors-To: edk2-devel-bounces@lists.01.org Sender: "edk2-devel" The set of variable attribute definitions in is used by C code, but VfrCompile has no way of dealing with structs or typedefs, and the VFRPP rules generate (and depend on) preprocessing with C rules. There may be neater ways of dealing with this, but a simple solution is to break the #defines into a separate header and include this both in UefiMultiPhase.h and directly in .vfr source. Leif Lindholm (3): MdePkg: break #defines out of Uefi/UefiMultiPhase.h MdeModulePkg: use central variable definitions in DriverSampleDxe EmbeddedPkg: use central variable definitions in .vfr files EmbeddedPkg/Drivers/ConsolePrefDxe/ConsolePrefHii.vfr | 9 +---- EmbeddedPkg/Drivers/DtPlatformDxe/DtPlatformHii.vfr | 9 +---- MdeModulePkg/Universal/DriverSampleDxe/Vfr.vfr | 9 +---- MdePkg/Include/Uefi/UefiMultiPhase.h | 23 +----------- MdePkg/Include/Uefi/UefiMultiPhaseDefinitions.h | 39 ++++++++++++++++++++ 5 files changed, 44 insertions(+), 45 deletions(-) create mode 100644 MdePkg/Include/Uefi/UefiMultiPhaseDefinitions.h Cc: Michael D Kinney Cc: Liming Gao Cc: Ard Biesheuvel Cc: Star Zeng Cc: Eric Dong -- 2.11.0 _______________________________________________ edk2-devel mailing list edk2-devel@lists.01.org https://lists.01.org/mailman/listinfo/edk2-devel Reviewed-by: Ard Biesheuvel