From patchwork Fri Dec 15 16:59:22 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Leif Lindholm X-Patchwork-Id: 122131 Delivered-To: patch@linaro.org Received: by 10.140.22.227 with SMTP id 90csp720404qgn; Fri, 15 Dec 2017 08:59:32 -0800 (PST) X-Google-Smtp-Source: ACJfBotX///oLIzIocIeoB4FHfK0InYtCGbbfA15IJsasY9z9SAEJrS+p2hPMiURGzUxzlA4uW0u X-Received: by 10.98.237.15 with SMTP id u15mr13909036pfh.237.1513357172024; Fri, 15 Dec 2017 08:59:32 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1513357172; cv=none; d=google.com; s=arc-20160816; b=mk2L63cl8i9NdIXiyHgkylB+FrV96+A5Zgvc/AM2drFttrofk1jIZWwPBKn5U1qycu jJp3bZy8SUMhdnoxsRNQt1vu29eEeYW79PcQoXLue5eTNd8qkeZpeiIFGUWYzFN3TRuP ViNbGnOlALXW2Bc7S7q9og/uWuqO9jL8vwryMu6LSmp4mk8oMajrLHjWC/8ZPtizsiKa MY5ENOHAYr+/9Jefnk1bJPKwy77P78NURcUb/ZhZk2hAty0O2KbhlaDw+pan2p+1j3Hw 1BFGs/UIB5h1SGVXa6o/Ek/zNJ1tSp6ybiLdwvcmqGfIFM0XOtFiYVETEuSzoxFlxlf3 6vRw== 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=1bzEAMfqu1NgXBC6+xN12d26Y/+L9P/JTOti33jYJ4k=; b=TsMS1l8CCqYIwJzJGrAdWTvv5mtYmDeleCqCCvHFt/mcGRB96icT7um6tNmVV0Da+x 5wdH5omDvuLpMCR2Eg4QFxMc9FnqNJLKvyQJkULruTiwVQK8oLIY/UOD8bBHAdzPEajf /vmZW93V3t4HpdAWd2j2R9ZVA1x69U6qGg93eojggoVSzFi/QpmPiWC34MrKFpmVs16g Dto0svNU/cao3/ek+Igz2bmDVcvFsFLKDz5nNp3LpepYwW6QBly+s9bNRrby6WpZ5hTT aa8hh4ufWFYIeQ4grhWSonJZsFSwTGeTKh49X7T47Eoi85sOsLxFRk3154bxKFm2TlfR 3JhA== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=kvqn5lT4; 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 m32si5329654pld.667.2017.12.15.08.59.31 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 15 Dec 2017 08:59:32 -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=kvqn5lT4; 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 CE9C7221A2B90; Fri, 15 Dec 2017 08:54:48 -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::243; helo=mail-wr0-x243.google.com; envelope-from=leif.lindholm@linaro.org; receiver=edk2-devel@lists.01.org Received: from mail-wr0-x243.google.com (mail-wr0-x243.google.com [IPv6:2a00:1450:400c:c0c::243]) (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 208792216D8F5 for ; Fri, 15 Dec 2017 08:54:46 -0800 (PST) Received: by mail-wr0-x243.google.com with SMTP id l11so2536245wrc.11 for ; Fri, 15 Dec 2017 08:59:29 -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=Rjw6VhnOAOw3zotFcYa+LRt0qDKn6PhUQyyQGdvI+mM=; b=kvqn5lT4Lzkp1HH7pttGxtbsd4KIvtAgsemt9i8O9/K8g5nFq7CWLJPqjmzxwL2F8v TgZa1Yh2GAP1URk7Tv6ROU1yLmrc0g0HniUz4Rz1hOSbMsV2ayGfP0cTudFVyB/qWB8l nHQdMv4KjRXrxJ77SbWljIKuHLeBZz3mwcQuc= 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=Rjw6VhnOAOw3zotFcYa+LRt0qDKn6PhUQyyQGdvI+mM=; b=T00sT9uerMjT+mhVQ8QqO4/DJABcWEXybGmnwyn89D3LRX3VzMbl3tvo30+SzJQqR3 2UQD6EkCSHfMoJhp2/xYqXv6qHM0mxMGopk8a8oayDv6OZe5FcjvpKfzMhjWKmvs5687 eAjLHuE8utTnzrZa1iIT+XWDI79USiTRfnWAONcAdtAOkEdVwYNrlLB/PhWQAlTqqbqo Tcnqn8E6NDt1ZQwUlrs7nuS2DEXRPymk89e4m1eZu2uAzkK3y3Ebl5thZcNUAxJepCDP SYWMVNvKVboKsYwiUv+Uksjk8NhPHNllmN83IY2qoQkLnE+1W/uqPjr6NhyTKA1pfg46 o/6Q== X-Gm-Message-State: AKGB3mISf9aQl2u5NySVcYRm4qARZOj7ryhQrd7z4Sh2jtfpwZ8EQ9iG /sUUinS+6qHta4KYtn1sz3FpzWmieos= X-Received: by 10.223.153.4 with SMTP id x4mr4606606wrb.219.1513357167509; Fri, 15 Dec 2017 08:59:27 -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 f18sm4570440wrg.66.2017.12.15.08.59.25 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 15 Dec 2017 08:59:26 -0800 (PST) From: Leif Lindholm To: edk2-devel@lists.01.org Date: Fri, 15 Dec 2017 16:59:22 +0000 Message-Id: <20171215165925.12306-1-leif.lindholm@linaro.org> X-Mailer: git-send-email 2.11.0 Subject: [edk2] [PATCH v2 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 does not seem happy with parts of that header file. Long-term, this should probably be fixed in VfrCompile, but a simple solution for now is to conditionalise the complicating segments of UefiMultiPhase.h on !VFRCOMPILE and include this directly in .vfr source. v1 -> v2: Instead of breaking parts of UefiMultiPhase.h out into a new header, conditionalise the problematic bits on !VFRCOMPILE. Leaving out the reviewed-bys on 2/3 since the underlying mechanism changes... Leif Lindholm (3): MdePkg: restrict UefiMultiPhase.h contents if VFRCOMPILE defined 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 | 44 ++++++++++---------- 4 files changed, 26 insertions(+), 45 deletions(-) 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