From nobody Sun May 12 08:15:32 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of groups.io designates 66.175.222.12 as permitted sender) client-ip=66.175.222.12; envelope-from=bounce+27952+39538+1787277+3901457@groups.io; helo=web01.groups.io; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zoho.com: domain of groups.io designates 66.175.222.12 as permitted sender) smtp.mailfrom=bounce+27952+39538+1787277+3901457@groups.io ARC-Seal: i=1; a=rsa-sha256; t=1556183925; cv=none; d=zoho.com; s=zohoarc; b=V/OYRwoyPA+GXL5QXi1yTL3DEGymG7jsJD80wWDtuL9H1+WyCEOdsuWJnX28YUFBoEFlFhO8efZF4nD4wm4gqLYi2L8LClXwiKJ/VVRCqinsGpTN53YICZqTbxtqtKC8su49ZWJheGIOQpSzI2Cy5NGTZC157pnAY/OoBo9b3og= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1556183925; h=Cc:Date:From:List-Id:List-Unsubscribe:Message-ID:Reply-To:Sender:Subject:To:ARC-Authentication-Results; bh=DCmSkWNif7lrC+f19M6qwS552WJo8EHuYoyW+ob0qOw=; b=nRHJ1PBgpdSMT1ADr6ypn6oJSulS6PATfOwrd1kZjj5F77CRxGOwtnXLIyWhzOi/Fv1YrfUGngQFF3QvcTKwiHGnL79EOb27G75GUZEGxQfZ3genEVGkcQW3jcCZ1d3792wOGjN1wco8Dqw/QiK8pKfCQpaqfsiFkvwDG+Khquk= ARC-Authentication-Results: i=1; mx.zoho.com; dkim=pass; spf=pass (zoho.com: domain of groups.io designates 66.175.222.12 as permitted sender) smtp.mailfrom=bounce+27952+39538+1787277+3901457@groups.io Received: from web01.groups.io (web01.groups.io [66.175.222.12]) by mx.zohomail.com with SMTPS id 1556183925239356.4820045286525; Thu, 25 Apr 2019 02:18:45 -0700 (PDT) Return-Path: X-Received: from mail-lj1-f196.google.com (mail-lj1-f196.google.com [209.85.208.196]) by groups.io with SMTP; Thu, 25 Apr 2019 02:18:43 -0700 X-Received: by mail-lj1-f196.google.com with SMTP id h21so19547580ljk.13 for ; Thu, 25 Apr 2019 02:18:42 -0700 (PDT) X-Gm-Message-State: APjAAAVo8vvMgkvMutfqwKrVcayEYlKKJ517srmBvE/IRbzaySgO95a7 EJPxUKK08mILahpMREfYc80AuQOFjlM= X-Google-Smtp-Source: APXvYqzSDOS0ziagQuWlAFkuG9fAO7gXGc2lRAsdTdEBQ0+F2OBpOjzWffzl5pTjYU2cv8QXTmJymw== X-Received: by 2002:a2e:3615:: with SMTP id d21mr5547949lja.152.1556183921033; Thu, 25 Apr 2019 02:18:41 -0700 (PDT) X-Received: from gilgamesh.semihalf.com (31-172-191-173.noc.fibertech.net.pl. [31.172.191.173]) by smtp.gmail.com with ESMTPSA id f15sm4565447ljm.47.2019.04.25.02.18.39 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 25 Apr 2019 02:18:40 -0700 (PDT) From: "Marcin Wojtas" To: devel@edk2.groups.io Cc: leif.lindholm@linaro.org, ard.biesheuvel@linaro.org, mw@semihalf.com, jsd@semihalf.com, jaz@semihalf.com, kostap@marvell.com, Jici.Gao@arm.com, feng.tian@intel.com, michael.d.kinney@intel.com, liming.gao@intel.com, lersek@redhat.com Subject: [edk2-devel] [PATCH] EmbeddedPkg: Allow DXE_DRIVER to depend on NvVarStoreFormattedLib Date: Thu, 25 Apr 2019 11:18:00 +0200 Message-Id: <1556183880-5889-1-git-send-email-mw@semihalf.com> Precedence: Bulk List-Unsubscribe: Sender: devel@edk2.groups.io List-Id: Mailing-List: list devel@edk2.groups.io; contact devel+owner@edk2.groups.io Reply-To: devel@edk2.groups.io,mw@semihalf.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=groups.io; q=dns/txt; s=20140610; t=1556183924; bh=Gilh8/tBNuKnGFkCHZecMbzSKpS5iOhEbfeAN+SlX/I=; h=Cc:Date:From:Reply-To:Subject:To; b=Tkn8Wr3f/QaGZJ12O29XW6EEfmbS60qojxl7lY52GTIHuO6TUzH9ti/ddx6PKkyDPVJ 8lna5iwJ2rP/Dk980epWydf3p8XMBC9vPrIZT+0BYSM3qG+ahZzhvU+zqC8Xxp/jMCpvG q1wKq7mCxqGA1uZW+0Bq/6g2eu59YjTjh4c= X-ZohoMail-DKIM: pass (identity @groups.io) Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Some modules (such as FaultTolerantWriteDxe) use the FlashNvStorage PCDs (PcdFlashNvStorageFtw*). In case the flash contents are not mapped in memory, the module loading order of the FVB driver may become important. To handle above, this patch allows to hook the dependency of desired DXE_DRIVER type module in the .DSC file via NvVarStoreFormattedLib NULL resolution. Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Marcin Wojtas Reviewed-by: Ard Biesheuvel --- EmbeddedPkg/Library/NvVarStoreFormattedLib/NvVarStoreFormattedLib.inf | 4 = ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/EmbeddedPkg/Library/NvVarStoreFormattedLib/NvVarStoreFormatted= Lib.inf b/EmbeddedPkg/Library/NvVarStoreFormattedLib/NvVarStoreFormattedLib= .inf index fefc311..98a0049 100644 --- a/EmbeddedPkg/Library/NvVarStoreFormattedLib/NvVarStoreFormattedLib.inf +++ b/EmbeddedPkg/Library/NvVarStoreFormattedLib/NvVarStoreFormattedLib.inf @@ -39,8 +39,8 @@ # # The matching DEPEX section below will generate the EFI_SECTION_PEI_DEPEX, # EFI_SECTION_DXE_DEPEX or EFI_SECTION_MM_DEPEX leaf section for the PEIM -# (EFI_FV_FILETYPE_PEIM), DXE_RUNTIME_DRIVER (EFI_FV_FILETYPE_DRIVER), or +# (EFI_FV_FILETYPE_PEIM), DXE_RUNTIME_DRIVER/DXE_DRIVER (EFI_FV_FILETYPE_D= RIVER), or # DXE_SMM_DRIVER (EFI_FV_FILETYPE_MM) module, respectively. # -[Depex.common.PEIM, Depex.common.DXE_RUNTIME_DRIVER, Depex.common.DXE_SMM_= DRIVER] +[Depex.common.PEIM, Depex.common.DXE_RUNTIME_DRIVER, Depex.common.DXE_DRIV= ER, Depex.common.DXE_SMM_DRIVER] gEdkiiNvVarStoreFormattedGuid --=20 2.7.4 -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#39538): https://edk2.groups.io/g/devel/message/39538 Mute This Topic: https://groups.io/mt/31340414/1787277 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [importer@patchew.org] -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-