From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id EB27221A08D6A for ; Mon, 5 Jun 2017 19:58:22 -0700 (PDT) Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by fmsmga101.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 05 Jun 2017 19:59:28 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.39,304,1493708400"; d="scan'208";a="1178733929" Received: from shwdeopenpsi114.ccr.corp.intel.com ([10.239.157.135]) by fmsmga002.fm.intel.com with ESMTP; 05 Jun 2017 19:59:27 -0700 From: Dandan Bi To: edk2-devel@lists.01.org Cc: Eric Dong , Liming Gao , Ruiyu Ni Date: Tue, 6 Jun 2017 10:58:24 +0800 Message-Id: <1496717906-372916-1-git-send-email-dandan.bi@intel.com> X-Mailer: git-send-email 1.9.5.msysgit.1 Subject: [RFC v3 0/2] Support Union type in VFR 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: , X-List-Received-Date: Tue, 06 Jun 2017 02:58:23 -0000 V3: Avoid adding new member in current stucture to indicate indicate whether current date type is Union or not. We can directly paas the data type info to sub-statement/function during parsing phase. This serie is the POC to update VfrCompiler to support Union type in VarStore and construct the use cases in DriverSample. Cc: Eric Dong Cc: Liming Gao Cc: Ruiyu Ni Dandan Bi (2): BaseTool/VfrCompile: Support Union type in VFR MdeModulePkg/DriverSample: Add sample questions to refer union type BaseTools/Source/C/VfrCompile/VfrSyntax.g | 81 +++++++++++++--------- BaseTools/Source/C/VfrCompile/VfrUtilityLib.cpp | 17 ++++- BaseTools/Source/C/VfrCompile/VfrUtilityLib.h | 4 +- .../Universal/DriverSampleDxe/DriverSample.c | 57 +++++++++++++++ .../Universal/DriverSampleDxe/DriverSample.h | 1 + .../Universal/DriverSampleDxe/NVDataStruc.h | 18 +++++ MdeModulePkg/Universal/DriverSampleDxe/Vfr.vfr | 25 +++++++ .../Universal/DriverSampleDxe/VfrStrings.uni | 4 ++ 8 files changed, 170 insertions(+), 37 deletions(-) -- 1.9.5.msysgit.1