From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: mx.groups.io; dkim=pass header.i=@semihalf-com.20150623.gappssmtp.com header.s=20150623 header.b=wE44avit; spf=none, err=SPF record not found (domain: semihalf.com, ip: 209.85.208.196, mailfrom: mw@semihalf.com) 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 Received: by mail-lj1-f196.google.com with SMTP id h21so19547580ljk.13 for ; Thu, 25 Apr 2019 02:18:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=semihalf-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id; bh=sLm2Tilgu4DXm5lwhOOwLK5QLzkzCZyJwYsX2Kv3fRo=; b=wE44avit/h1G8Z7shX7UFhkHpWkwo+B+03Ye9T6Poa5qZpWISg8b0U3d8aLOr1VBsd P8Va0Or7ZKrNxI3c1AAagBB1k/31uw00jQ2AAWGCeDvL6l6isTx+dT8jclwBvI5cBnHo PU+2PelAe610OuqAKxmy/bHig/4eDz/EBfGsFX5u0iLNngmModEl4L7R7tZn3QwQEwL+ syR8pfYjawl9xHrOUbAWt4FPrEJbwhdAJUU7xXMSTVa+HipDKkXDh32kJxcu81DEiHBP U3ezXn0GA6n2RERMqPzplNgU+jUZLbhgXVHMEQCAo8DFwuy+JM1KEPvHkayd0Rvzxzkn zxOQ== 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=sLm2Tilgu4DXm5lwhOOwLK5QLzkzCZyJwYsX2Kv3fRo=; b=s5YKXJdbloU/HFpfqsLeH+Jsskoc0mzFrdKpggk8AYcs8tKawg8jyuwN2Stx+F2INR 7vpyNvGAqPOVrCHeGT13Plf99+FmgrmekG3hkoGHKR2NZuD9jbTa1XRZzJkgjmgx04Ue KJ5I87HhQWQMpQXCTFfIdw9cJETbXmRt9HQTe1+EV/SQj7592A2laPOtP1O/5PpF1hRt 4WNqqr2iUQEZCgU3JR2sTgO8uDS7q2PTzGpzTkEfrgi+PGkWoOQKirAFuNpgDBm3i2+F PQzHdYFuWL5SHS6GfKb4QtU7mIm07/2m3/XjQMrOJ7R+mJH/qybo/VhCJlyJgWX2A/U3 FDWw== 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) Return-Path: 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: [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> X-Mailer: git-send-email 2.7.4 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 --- EmbeddedPkg/Library/NvVarStoreFormattedLib/NvVarStoreFormattedLib.inf | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/EmbeddedPkg/Library/NvVarStoreFormattedLib/NvVarStoreFormattedLib.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_DRIVER), 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_DRIVER, Depex.common.DXE_SMM_DRIVER] gEdkiiNvVarStoreFormattedGuid -- 2.7.4