From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail02.groups.io (mail02.groups.io [66.175.222.108]) by spool.mail.gandi.net (Postfix) with ESMTPS id 13197D8006B for ; Mon, 11 Sep 2023 17:47:18 +0000 (UTC) DKIM-Signature: a=rsa-sha256; bh=bEUeglbjfU5AJIezYFOd4jlgNag2+fBrbY2kHhXN4G0=; c=relaxed/simple; d=groups.io; h=From:MIME-version:Subject:Date:References:To:In-reply-to:Message-id:Precedence:List-Subscribe:List-Help:Sender:List-Id:Mailing-List:Delivered-To:Reply-To:List-Unsubscribe-Post:List-Unsubscribe:Content-type; s=20140610; t=1694454437; v=1; b=Cr9vtZEK+CglToQ1Y9n+eIIB5mFGDoPuhqEB6iXvTREDH6nHg5eoKLNQbjLolqvyz1HFvifm a9ce/xoMyZ6UScg0i35jnjge6PXsQ+n1Vs1uZurPR9tdvBb97Rc1M4cGpVc2WoKDs7eaKdVjyVr paBzWmsE4tkfe7fxpjjU6184= X-Received: by 127.0.0.2 with SMTP id 7eTqYY7687511xClBZDvOfZx; Mon, 11 Sep 2023 10:47:17 -0700 X-Received: from ma-mailsvcp-mx-lapp03.apple.com (ma-mailsvcp-mx-lapp03.apple.com [17.32.222.24]) by mx.groups.io with SMTP id smtpd.web10.3860.1694454436738123711 for ; Mon, 11 Sep 2023 10:47:17 -0700 X-Received: from rn-mailsvcp-mta-lapp03.rno.apple.com (rn-mailsvcp-mta-lapp03.rno.apple.com [10.225.203.151]) by ma-mailsvcp-mx-lapp03.apple.com (Oracle Communications Messaging Server 8.1.0.23.20230328 64bit (built Mar 28 2023)) with ESMTPS id <0S0U010JB1EL6R00@ma-mailsvcp-mx-lapp03.apple.com> for devel@edk2.groups.io; Mon, 11 Sep 2023 10:47:16 -0700 (PDT) X-Proofpoint-GUID: y2W5UE-LZrwtxl1O-Trovvl-WsP7LOT6 X-Proofpoint-ORIG-GUID: y2W5UE-LZrwtxl1O-Trovvl-WsP7LOT6 X-Received: from rn-mailsvcp-mmp-lapp02.rno.apple.com (rn-mailsvcp-mmp-lapp02.rno.apple.com [17.179.253.15]) by rn-mailsvcp-mta-lapp03.rno.apple.com (Oracle Communications Messaging Server 8.1.0.23.20230328 64bit (built Mar 28 2023)) with ESMTPS id <0S0U005H71ERL430@rn-mailsvcp-mta-lapp03.rno.apple.com>; Mon, 11 Sep 2023 10:47:15 -0700 (PDT) X-Received: from process_milters-daemon.rn-mailsvcp-mmp-lapp02.rno.apple.com by rn-mailsvcp-mmp-lapp02.rno.apple.com (Oracle Communications Messaging Server 8.1.0.23.20230328 64bit (built Mar 28 2023)) id <0S0U006001717600@rn-mailsvcp-mmp-lapp02.rno.apple.com>; Mon, 11 Sep 2023 10:47:15 -0700 (PDT) X-Va-A: X-Va-T-CD: 4d31d35125aedc0c2070903b4883522d X-Va-E-CD: 8a3e344452fe1d1addc4435ad25b353c X-Va-R-CD: 32931c4f1ad2a77bf1b0c3ae85d50248 X-Va-ID: 91aad481-367d-42c3-abd5-a24f6324b892 X-Va-CD: 0 X-V-A: X-V-T-CD: 4d31d35125aedc0c2070903b4883522d X-V-E-CD: 8a3e344452fe1d1addc4435ad25b353c X-V-R-CD: 32931c4f1ad2a77bf1b0c3ae85d50248 X-V-ID: 4c5ca8cf-a9c6-44c8-97aa-1444b0041161 X-V-CD: 0 X-Received: from smtpclient.apple (unknown [17.234.50.236]) by rn-mailsvcp-mmp-lapp02.rno.apple.com (Oracle Communications Messaging Server 8.1.0.23.20230328 64bit (built Mar 28 2023)) with ESMTPSA id <0S0U00NGT1EO3X00@rn-mailsvcp-mmp-lapp02.rno.apple.com>; Mon, 11 Sep 2023 10:47:13 -0700 (PDT) From: "Andrew Fish via groups.io" MIME-version: 1.0 (Mac OS X Mail 16.0 \(3731.700.6\)) Subject: Re: [edk2-devel] How i can fix this build error VariableRuntimeDxe.inf Date: Mon, 11 Sep 2023 10:47:02 -0700 References: To: devel@edk2.groups.io, artomkrivorucko@gmail.com In-reply-to: Message-id: <4329C77A-480E-4A11-AA35-F280A18D7E63@apple.com> Precedence: Bulk List-Subscribe: List-Help: 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,afish@apple.com List-Unsubscribe-Post: List-Unsubscribe=One-Click List-Unsubscribe: X-Gm-Message-State: 97mc62pwbwyTm4fxCoy2qmDAx7686176AA= Content-type: multipart/alternative; boundary="Apple-Mail=_AD085304-1426-4AF1-A497-33483278FE49" X-GND-Status: LEGIT Authentication-Results: spool.mail.gandi.net; dkim=pass header.d=groups.io header.s=20140610 header.b=Cr9vtZEK; spf=pass (spool.mail.gandi.net: domain of bounce@groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce@groups.io; dmarc=none --Apple-Mail=_AD085304-1426-4AF1-A497-33483278FE49 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 Well NintendoSwitchPkg is a project we are not involved in=E2=80=A6. Looks like you are missing a line in your DSC file: VariableFlashInfoLib|MdeModulePkg/Library/BaseVariableFlashInfoLib/BaseVari= ableFlashInfoLib.inf The build failure is VariableRuntimeDxe.inf has a dependency on on a Variab= leFlashInfoLib instance and the DSC does not have a mapping for one. The Va= riableFlashInfoLib is just the library class just implies the library API, = it does not imply which library to link against. The DSC file picks the cor= rect library instance for your platforms build.=20 My guess is your edk2 version is newer and you need to sync with some chang= es. Here is an example of the fix you need for the OVMF project. Basically = an extra dependency got added to the Variable driver so you need to update = the DSC. commit a7d3d4e7c4343c478ec8a57c6ae1ae64286d866b Author: Michael Kubacki Date: Fri Apr 8 16:05:38 2022 -0400 OvmfPkg: Add VariableFlashInfoLib =20 REF:https://bugzilla.tianocore.org/show_bug.cgi?id=3D3479 =20 Adds an instance of VariableFlashInfoLib to the platform build as it is a new library class introduced in MdeModulePkg. =20 Cc: Anthony Perard Cc: Ard Biesheuvel Cc: Brijesh Singh Cc: Erdem Aktas Cc: Gerd Hoffmann Cc: James Bottomley Cc: Jiewen Yao Cc: Jordan Justen Cc: Julien Grall Cc: Min Xu Cc: Peter Grehan Cc: Rebecca Cran Cc: Sebastien Boeuf Cc: Tom Lendacky Signed-off-by: Michael Kubacki Acked-by: Ard Biesheuvel Reviewed-by: Liming Gao Reviewed-by: Rebecca Cran Reviewed-by: Jiewen Yao diff --git a/OvmfPkg/AmdSev/AmdSevX64.dsc b/OvmfPkg/AmdSev/AmdSevX64.dsc index f0700035c1..bead9722ea 100644 --- a/OvmfPkg/AmdSev/AmdSevX64.dsc +++ b/OvmfPkg/AmdSev/AmdSevX64.dsc @@ -196,6 +196,7 @@ VarCheckLib|MdeModulePkg/Library/VarCheckLib/VarCheckLib.inf VariablePolicyLib|MdeModulePkg/Library/VariablePolicyLib/VariablePolicyL= ib.inf VariablePolicyHelperLib|MdeModulePkg/Library/VariablePolicyHelperLib/Var= iablePolicyHelperLib.inf + VariableFlashInfoLib|MdeModulePkg/Library/BaseVariableFlashInfoLib/BaseV= ariableFlashInfoLib.inf =20 !if $(BUILD_SHELL) =3D=3D TRUE ShellLib|ShellPkg/Library/UefiShellLib/UefiShellLib.inf diff --git a/OvmfPkg/Bhyve/BhyveX64.dsc b/OvmfPkg/Bhyve/BhyveX64.dsc index 002cef32a3..f0166e136c 100644 --- a/OvmfPkg/Bhyve/BhyveX64.dsc +++ b/OvmfPkg/Bhyve/BhyveX64.dsc @@ -206,6 +206,7 @@ VarCheckLib|MdeModulePkg/Library/VarCheckLib/VarCheckLib.inf VariablePolicyLib|MdeModulePkg/Library/VariablePolicyLib/VariablePolicyL= ib.inf VariablePolicyHelperLib|MdeModulePkg/Library/VariablePolicyHelperLib/Var= iablePolicyHelperLib.inf + VariableFlashInfoLib|MdeModulePkg/Library/BaseVariableFlashInfoLib/BaseV= ariableFlashInfoLib.inf =20 # # Network libraries diff --git a/OvmfPkg/CloudHv/CloudHvX64.dsc b/OvmfPkg/CloudHv/CloudHvX64.ds= c index d1c85f60c7..92664f319b 100644 --- a/OvmfPkg/CloudHv/CloudHvX64.dsc +++ b/OvmfPkg/CloudHv/CloudHvX64.dsc @@ -217,6 +217,7 @@ VarCheckLib|MdeModulePkg/Library/VarCheckLib/VarCheckLib.inf VariablePolicyLib|MdeModulePkg/Library/VariablePolicyLib/VariablePolicyL= ib.inf VariablePolicyHelperLib|MdeModulePkg/Library/VariablePolicyHelperLib/Var= iablePolicyHelperLib.inf + VariableFlashInfoLib|MdeModulePkg/Library/BaseVariableFlashInfoLib/BaseV= ariableFlashInfoLib.inf =20 =20 # diff --git a/OvmfPkg/IntelTdx/IntelTdxX64.dsc b/OvmfPkg/IntelTdx/IntelTdxX6= 4.dsc index 80c331ea23..00bc1255bc 100644 --- a/OvmfPkg/IntelTdx/IntelTdxX64.dsc +++ b/OvmfPkg/IntelTdx/IntelTdxX64.dsc @@ -190,6 +190,7 @@ VarCheckLib|MdeModulePkg/Library/VarCheckLib/VarCheckLib.inf VariablePolicyLib|MdeModulePkg/Library/VariablePolicyLib/VariablePolicyL= ib.inf VariablePolicyHelperLib|MdeModulePkg/Library/VariablePolicyHelperLib/Var= iablePolicyHelperLib.inf + VariableFlashInfoLib|MdeModulePkg/Library/BaseVariableFlashInfoLib/BaseV= ariableFlashInfoLib.inf =20 ShellLib|ShellPkg/Library/UefiShellLib/UefiShellLib.inf ShellCEntryLib|ShellPkg/Library/UefiShellCEntryLib/UefiShellCEntryLib.in= f diff --git a/OvmfPkg/Microvm/MicrovmX64.dsc b/OvmfPkg/Microvm/MicrovmX64.ds= c index 20c3c9c4d8..f8fc977cb2 100644 --- a/OvmfPkg/Microvm/MicrovmX64.dsc +++ b/OvmfPkg/Microvm/MicrovmX64.dsc @@ -207,6 +207,7 @@ VarCheckLib|MdeModulePkg/Library/VarCheckLib/VarCheckLib.inf VariablePolicyLib|MdeModulePkg/Library/VariablePolicyLib/VariablePolicyL= ib.inf VariablePolicyHelperLib|MdeModulePkg/Library/VariablePolicyHelperLib/Var= iablePolicyHelperLib.inf + VariableFlashInfoLib|MdeModulePkg/Library/BaseVariableFlashInfoLib/BaseV= ariableFlashInfoLib.inf =20 =20 # diff --git a/OvmfPkg/OvmfPkgIa32.dsc b/OvmfPkg/OvmfPkgIa32.dsc index 533bbdb435..c16a840fff 100644 --- a/OvmfPkg/OvmfPkgIa32.dsc +++ b/OvmfPkg/OvmfPkgIa32.dsc @@ -214,6 +214,7 @@ VarCheckLib|MdeModulePkg/Library/VarCheckLib/VarCheckLib.inf VariablePolicyLib|MdeModulePkg/Library/VariablePolicyLib/VariablePolicyL= ib.inf VariablePolicyHelperLib|MdeModulePkg/Library/VariablePolicyHelperLib/Var= iablePolicyHelperLib.inf + VariableFlashInfoLib|MdeModulePkg/Library/BaseVariableFlashInfoLib/BaseV= ariableFlashInfoLib.inf =20 =20 # diff --git a/OvmfPkg/OvmfPkgIa32X64.dsc b/OvmfPkg/OvmfPkgIa32X64.dsc index cb68e612bd..d3a80cb568 100644 --- a/OvmfPkg/OvmfPkgIa32X64.dsc +++ b/OvmfPkg/OvmfPkgIa32X64.dsc @@ -218,6 +218,7 @@ VarCheckLib|MdeModulePkg/Library/VarCheckLib/VarCheckLib.inf VariablePolicyLib|MdeModulePkg/Library/VariablePolicyLib/VariablePolicyL= ib.inf VariablePolicyHelperLib|MdeModulePkg/Library/VariablePolicyHelperLib/Var= iablePolicyHelperLib.inf + VariableFlashInfoLib|MdeModulePkg/Library/BaseVariableFlashInfoLib/BaseV= ariableFlashInfoLib.inf =20 =20 # diff --git a/OvmfPkg/OvmfPkgX64.dsc b/OvmfPkg/OvmfPkgX64.dsc index 71526bba31..c01355e5c7 100644 --- a/OvmfPkg/OvmfPkgX64.dsc +++ b/OvmfPkg/OvmfPkgX64.dsc @@ -232,6 +232,7 @@ VarCheckLib|MdeModulePkg/Library/VarCheckLib/VarCheckLib.inf VariablePolicyLib|MdeModulePkg/Library/VariablePolicyLib/VariablePolicyL= ib.inf VariablePolicyHelperLib|MdeModulePkg/Library/VariablePolicyHelperLib/Var= iablePolicyHelperLib.inf + VariableFlashInfoLib|MdeModulePkg/Library/BaseVariableFlashInfoLib/BaseV= ariableFlashInfoLib.inf =20 =20 # diff --git a/OvmfPkg/OvmfXen.dsc b/OvmfPkg/OvmfXen.dsc index a1626d06df..6ba4bd729a 100644 --- a/OvmfPkg/OvmfXen.dsc +++ b/OvmfPkg/OvmfXen.dsc @@ -196,6 +196,7 @@ VarCheckLib|MdeModulePkg/Library/VarCheckLib/VarCheckLib.inf VariablePolicyLib|MdeModulePkg/Library/VariablePolicyLib/VariablePolicyL= ib.inf VariablePolicyHelperLib|MdeModulePkg/Library/VariablePolicyHelperLib/Var= iablePolicyHelperLib.inf + VariableFlashInfoLib|MdeModulePkg/Library/BaseVariableFlashInfoLib/BaseV= ariableFlashInfoLib.inf =20 =20 # Happy hacking=E2=80=A6. Thanks, Andrew Fish > On Sep 11, 2023, at 4:17 AM, Im from ohio wro= te: >=20 > I want build edk2 for aarch64 but i got this error: > -------------------------------------------------------------------------= ------------------------------------------ >=20 > [Builder] Configure environment. > Using EDK2 in-source Basetools > WORKSPACE: /mnt/c/Users/ximi/Downloads/exploit/edk2 > EDK_TOOLS_PATH: /mnt/c/Users/ximi/Downloads/exploit/edk2/BaseTools > CONF_PATH: /mnt/c/Users/ximi/Downloads/exploit/edk2/Conf > Copying $EDK_TOOLS_PATH/Conf/build_rule.template > to /mnt/c/Users/ximi/Downloads/exploit/edk2/Conf/build_rule.txt > Copying $EDK_TOOLS_PATH/Conf/tools_def.template > to /mnt/c/Users/ximi/Downloads/exploit/edk2/Conf/tools_def.txt > Copying $EDK_TOOLS_PATH/Conf/target.template > to /mnt/c/Users/ximi/Downloads/exploit/edk2/Conf/target.txt > Task: EDK2 build > Use GCC at /usr/bin/aarch64-linux-gnu- to run builds. > Stamp build. > fatal: not a git repository (or any parent up to mount point /mnt) > Stopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set)= . > Build NintendoSwitchPkg for NintendoSwitch (DEBUG). > Build environment: Linux-5.15.90.1-microsoft-standard-WSL2-x86_64-with-gl= ibc2.35 > Build start time: 13:58:23, Sep.11 2023 >=20 > WORKSPACE =3D /mnt/c/Users/ximi/Downloads/exploit/edk2 > EDK_TOOLS_PATH =3D /mnt/c/Users/ximi/Downloads/exploit/edk2/BaseTools > CONF_PATH =3D /mnt/c/Users/ximi/Downloads/exploit/edk2/Conf >=20 >=20 > Processing meta-data . > Architecture(s) =3D AARCH64 > Build target =3D DEBUG > Toolchain =3D GCC5 >=20 > Active Platform =3D /mnt/c/Users/ximi/Downloads/exploit/edk2/Nin= tendoSwitchPkg/NintendoSwitch.dsc > ..... >=20 > build.py... > /mnt/c/Users/ximi/Downloads/exploit/edk2/NintendoSwitchPkg/NintendoSwitch= .dsc(...): error 4000: Instance of library class [VariableFlashInfoLib] is = not found > in [/mnt/c/Users/ximi/Downloads/exploit/edk2/MdeModulePkg/Univers= al/Variable/RuntimeDxe/VariableRuntimeDxe.inf] [AARCH64] > consumed by module [/mnt/c/Users/ximi/Downloads/exploit/edk2/MdeM= odulePkg/Universal/Variable/RuntimeDxe/VariableRuntimeDxe.inf] >=20 >=20 > - Failed - > Build end time: 13:58:29, Sep.11 2023 > Build total time: 00:00:06 >=20 > Write-Error: Build target NintendoSwitch failed. > False >=20 > -------------------------------------------------------------------------= ------------------------------------------ >=20 > How i can fix this >=20 -=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 (#108495): https://edk2.groups.io/g/devel/message/108495 Mute This Topic: https://groups.io/mt/101298264/7686176 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/leave/12367111/7686176/19134562= 12/xyzzy [rebecca@openfw.io] -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D- --Apple-Mail=_AD085304-1426-4AF1-A497-33483278FE49 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=utf-8 Well NintendoSwitchPkg is a proje= ct we are not involved in=E2=80=A6.

Looks like you are m= issing a line in your DSC file:

VariableFlashInfoLib|MdeModulePkg/Library/BaseVaria= bleFlashInfoLib/BaseVariableFlashInfoLib.inf


The build failure is VariableRuntimeDxe.inf has a dependency on = on a VariableFlashInfoLib instance and the DSC does not have a mapping for = one. The VariableFlashInfoLib is just the library class just implies the li= brary API, it does not imply which library to link against. The DSC file pi= cks the correct library instance for your platforms build. 
=
My guess is your edk2 version is newer and you need to sync = with some changes. Here is an example of the fix you need for the OVMF proj= ect. Basically an extra dependency got added to the Variable driver so you = need to update the DSC.

commit a7d3d4e7c43= 43c478ec8a57c6ae1ae64286d866b

Author: Michael Ku= backi <michael.kubacki@microsoft.com>

Date:   Fri A= pr 8 16:05:38 2022 -0400

=

    Ovmf= Pkg: Add VariableFlashInfoLib

=     

    REF:= https://bugzilla.tianocore.org/show_bug.cgi?id=3D3479

=     

    Adds= an instance of VariableFlashInfoLib to the platform build as

    it i= s a new library class introduced in MdeModulePkg.

=     

    Cc: = Anthony Perard <anthony.perard@citrix.com>

    Cc: = Ard Biesheuvel <ardb+tianocore@kernel.org>

    Cc: = Brijesh Singh <brijesh.singh@amd.com>

    Cc: = Erdem Aktas <erdemaktas@google.com>

    Cc: = Gerd Hoffmann <kraxel@redhat.com>

    Cc: = James Bottomley <jejb@linux.ibm.com>

    Cc: = Jiewen Yao <jiewen.yao@intel.com>

    Cc: = Jordan Justen <jordan.l.justen@intel.com>

    Cc: = Julien Grall <julien@xen.org>

    Cc: = Min Xu <min.m.xu@intel.com>

    Cc: = Peter Grehan <grehan@freebsd.org>

    Cc: = Rebecca Cran <rebecca@bsdio.com>

    Cc: = Sebastien Boeuf <sebastien.boeuf@intel.com>

    Cc: = Tom Lendacky <thomas.lendacky@amd.com>

    Sign= ed-off-by: Michael Kubacki <michael.kubacki@microsoft.com>

    Acke= d-by: Ard Biesheuvel <ardb@kernel.org>

    Revi= ewed-by: Liming Gao <gaoliming@byosoft.com.cn>

    Revi= ewed-by: Rebecca Cran <rebecca@bsdio.com>

    Revi= ewed-by: Jiewen Yao <Jiewen.yao@intel.com>

=

diff --git a/Ov= mfPkg/AmdSev/AmdSevX64.dsc b/OvmfPkg/AmdSev/AmdSevX64.dsc

index f0700035c= 1..bead9722ea 100644

--- a/OvmfPkg/A= mdSev/AmdSevX64.dsc

+++ b/OvmfPkg/A= mdSev/AmdSevX64.dsc

@@ -196,6 +196,7 @@

   VarCh= eckLib|MdeModulePkg/Library/VarCheckLib/VarCheckLib.inf

   Varia= blePolicyLib|MdeModulePkg/Library/VariablePolicyLib/VariablePolicyLib.inf

   Varia= blePolicyHelperLib|MdeModulePkg/Library/VariablePolicyHelperLib/VariablePol= icyHelperLib.inf

+  VariableFlashInfoLib|MdeModulePkg/Library/BaseVariableFlashI= nfoLib/BaseVariableFlashInfoLib.inf

=  

 !if $(BUILD_= SHELL) =3D=3D TRUE

   Shell= Lib|ShellPkg/Library/UefiShellLib/UefiShellLib.inf

diff --git a/Ov= mfPkg/Bhyve/BhyveX64.dsc b/OvmfPkg/Bhyve/BhyveX64.dsc

index 002cef32a= 3..f0166e136c 100644

--- a/OvmfPkg/B= hyve/BhyveX64.dsc

+++ b/OvmfPkg/B= hyve/BhyveX64.dsc

@@ -206,6 +206,7 @@

   VarCh= eckLib|MdeModulePkg/Library/VarCheckLib/VarCheckLib.inf

   Varia= blePolicyLib|MdeModulePkg/Library/VariablePolicyLib/VariablePolicyLib.inf

   Varia= blePolicyHelperLib|MdeModulePkg/Library/VariablePolicyHelperLib/VariablePol= icyHelperLib.inf

+  VariableFlashInfoLib|MdeModulePkg/Library/BaseVariableFlashI= nfoLib/BaseVariableFlashInfoLib.inf

=  

   #

   # Net= work libraries

diff --git a/Ov= mfPkg/CloudHv/CloudHvX64.dsc b/OvmfPkg/CloudHv/CloudHvX64.dsc

index d1c85f60c= 7..92664f319b 100644

--- a/OvmfPkg/C= loudHv/CloudHvX64.dsc

+++ b/OvmfPkg/C= loudHv/CloudHvX64.dsc

@@ -217,6 +217,7 @@

   VarCh= eckLib|MdeModulePkg/Library/VarCheckLib/VarCheckLib.inf

   Varia= blePolicyLib|MdeModulePkg/Library/VariablePolicyLib/VariablePolicyLib.inf

   Varia= blePolicyHelperLib|MdeModulePkg/Library/VariablePolicyHelperLib/VariablePol= icyHelperLib.inf

+  VariableFlashInfoLib|MdeModulePkg/Library/BaseVariableFlashI= nfoLib/BaseVariableFlashInfoLib.inf

=  

=  

   #

diff --git a/Ov= mfPkg/IntelTdx/IntelTdxX64.dsc b/OvmfPkg/IntelTdx/IntelTdxX64.dsc

index 80c331ea2= 3..00bc1255bc 100644

--- a/OvmfPkg/I= ntelTdx/IntelTdxX64.dsc

+++ b/OvmfPkg/I= ntelTdx/IntelTdxX64.dsc

@@ -190,6 +190,7 @@

   VarCh= eckLib|MdeModulePkg/Library/VarCheckLib/VarCheckLib.inf

   Varia= blePolicyLib|MdeModulePkg/Library/VariablePolicyLib/VariablePolicyLib.inf

   Varia= blePolicyHelperLib|MdeModulePkg/Library/VariablePolicyHelperLib/VariablePol= icyHelperLib.inf

+  VariableFlashInfoLib|MdeModulePkg/Library/BaseVariableFlashI= nfoLib/BaseVariableFlashInfoLib.inf

=  

   Shell= Lib|ShellPkg/Library/UefiShellLib/UefiShellLib.inf

   Shell= CEntryLib|ShellPkg/Library/UefiShellCEntryLib/UefiShellCEntryLib.inf=

diff --git a/Ov= mfPkg/Microvm/MicrovmX64.dsc b/OvmfPkg/Microvm/MicrovmX64.dsc

index 20c3c9c4d= 8..f8fc977cb2 100644

--- a/OvmfPkg/M= icrovm/MicrovmX64.dsc

+++ b/OvmfPkg/M= icrovm/MicrovmX64.dsc

@@ -207,6 +207,7 @@

   VarCh= eckLib|MdeModulePkg/Library/VarCheckLib/VarCheckLib.inf

   Varia= blePolicyLib|MdeModulePkg/Library/VariablePolicyLib/VariablePolicyLib.inf

   Varia= blePolicyHelperLib|MdeModulePkg/Library/VariablePolicyHelperLib/VariablePol= icyHelperLib.inf

+  VariableFlashInfoLib|MdeModulePkg/Library/BaseVariableFlashI= nfoLib/BaseVariableFlashInfoLib.inf

=  

=  

   #

diff --git a/Ov= mfPkg/OvmfPkgIa32.dsc b/OvmfPkg/OvmfPkgIa32.dsc

index 533bbdb43= 5..c16a840fff 100644

--- a/OvmfPkg/O= vmfPkgIa32.dsc

+++ b/OvmfPkg/O= vmfPkgIa32.dsc

@@ -214,6 +214,7 @@

   VarCh= eckLib|MdeModulePkg/Library/VarCheckLib/VarCheckLib.inf

   Varia= blePolicyLib|MdeModulePkg/Library/VariablePolicyLib/VariablePolicyLib.inf

   Varia= blePolicyHelperLib|MdeModulePkg/Library/VariablePolicyHelperLib/VariablePol= icyHelperLib.inf

+  VariableFlashInfoLib|MdeModulePkg/Library/BaseVariableFlashI= nfoLib/BaseVariableFlashInfoLib.inf

=  

=  

   #

diff --git a/Ov= mfPkg/OvmfPkgIa32X64.dsc b/OvmfPkg/OvmfPkgIa32X64.dsc

index cb68e612b= d..d3a80cb568 100644

--- a/OvmfPkg/O= vmfPkgIa32X64.dsc

+++ b/OvmfPkg/O= vmfPkgIa32X64.dsc

@@ -218,6 +218,7 @@

   VarCh= eckLib|MdeModulePkg/Library/VarCheckLib/VarCheckLib.inf

   Varia= blePolicyLib|MdeModulePkg/Library/VariablePolicyLib/VariablePolicyLib.inf

   Varia= blePolicyHelperLib|MdeModulePkg/Library/VariablePolicyHelperLib/VariablePol= icyHelperLib.inf

+  VariableFlashInfoLib|MdeModulePkg/Library/BaseVariableFlashI= nfoLib/BaseVariableFlashInfoLib.inf

=  

=  

   #

diff --git a/Ov= mfPkg/OvmfPkgX64.dsc b/OvmfPkg/OvmfPkgX64.dsc

index 71526bba3= 1..c01355e5c7 100644

--- a/OvmfPkg/O= vmfPkgX64.dsc

+++ b/OvmfPkg/O= vmfPkgX64.dsc

@@ -232,6 +232,7 @@

   VarCh= eckLib|MdeModulePkg/Library/VarCheckLib/VarCheckLib.inf

   Varia= blePolicyLib|MdeModulePkg/Library/VariablePolicyLib/VariablePolicyLib.inf

   Varia= blePolicyHelperLib|MdeModulePkg/Library/VariablePolicyHelperLib/VariablePol= icyHelperLib.inf

+  VariableFlashInfoLib|MdeModulePkg/Library/BaseVariableFlashI= nfoLib/BaseVariableFlashInfoLib.inf

=  

=  

   #

diff --git a/Ov= mfPkg/OvmfXen.dsc b/OvmfPkg/OvmfXen.dsc

index a1626d06d= f..6ba4bd729a 100644

--- a/OvmfPkg/O= vmfXen.dsc

+++ b/OvmfPkg/O= vmfXen.dsc

@@ -196,6 +196,7 @@

   VarCh= eckLib|MdeModulePkg/Library/VarCheckLib/VarCheckLib.inf

   Varia= blePolicyLib|MdeModulePkg/Library/VariablePolicyLib/VariablePolicyLib.inf

   Varia= blePolicyHelperLib|MdeModulePkg/Library/VariablePolicyHelperLib/VariablePol= icyHelperLib.inf

+  VariableFlashInfoLib|MdeModulePkg/Library/BaseVariableFlashI= nfoLib/BaseVariableFlashInfoLib.inf

=  

=  

   #

Happy hacking=E2=80=A6.

Thanks,

Andrew Fish<= /div>

On Sep 11, 2023, at 4:17 AM, I= m from ohio <artomkrivorucko@gmail.com> wrote:

I want build edk2 for aarch64 = but i got this error:
-------------------------------------------------= ------------------------------------------------------------------

[Builder] Configure environment.
Using EDK2 in-source B= asetools
WORKSPACE: /mnt/c/Users/ximi/Downloads/exploit/edk2
EDK_TOOL= S_PATH: /mnt/c/Users/ximi/Downloads/exploit/edk2/BaseTools
CONF_PATH: /m= nt/c/Users/ximi/Downloads/exploit/edk2/Conf
Copying $EDK_TOOLS_PATH/Conf= /build_rule.template
     to /mnt/c/Users/ximi/Downloads/= exploit/edk2/Conf/build_rule.txt
Copying $EDK_TOOLS_PATH/Conf/tools_def.= template
     to /mnt/c/Users/ximi/Downloads/exploit/edk2= /Conf/tools_def.txt
Copying $EDK_TOOLS_PATH/Conf/target.template
&nbs= p;    to /mnt/c/Users/ximi/Downloads/exploit/edk2/Conf/target.txt=
Task: EDK2 build
Use GCC at /usr/bin/aarch64-linux-gnu- to run build= s.
Stamp build.
fatal: not a git repository (or any parent up to moun= t point /mnt)
Stopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILE= SYSTEM not set).
Build NintendoSwitchPkg for NintendoSwitch (DEBUG).
= Build environment: Linux-5.15.90.1-microsoft-standard-WSL2-x86_64-with-glib= c2.35
Build start time: 13:58:23, Sep.11 2023

WORKSPACE   &n= bsp;    =3D /mnt/c/Users/ximi/Downloads/exploit/edk2
EDK_TOOLS= _PATH   =3D /mnt/c/Users/ximi/Downloads/exploit/edk2/BaseTools
CONF= _PATH        =3D /mnt/c/Users/ximi/Downloads/exploit/ed= k2/Conf


Processing meta-data .
Architecture(s)  =3D AARC= H64
Build target     =3D DEBUG
Toolchain     &nbs= p;  =3D GCC5

Active Platform          = =3D /mnt/c/Users/ximi/Downloads/exploit/edk2/NintendoSwitchPkg/NintendoSwit= ch.dsc
.....

build.py...
/mnt/c/Users/ximi/Downloads/exploit/e= dk2/NintendoSwitchPkg/NintendoSwitch.dsc(...): error 4000: Instance of libr= ary class [VariableFlashInfoLib] is not found
       = ; in [/mnt/c/Users/ximi/Downloads/exploit/edk2/MdeModulePkg/Universal/Varia= ble/RuntimeDxe/VariableRuntimeDxe.inf] [AARCH64]
      &n= bsp; consumed by module [/mnt/c/Users/ximi/Downloads/exploit/edk2/MdeModule= Pkg/Universal/Variable/RuntimeDxe/VariableRuntimeDxe.inf]


- Fail= ed -
Build end time: 13:58:29, Sep.11 2023
Build total time: 00:00:06=

Write-Error: Build target NintendoSwitch failed.
False
=

-------------------------------------------------------= ------------------------------------------------------------

= How i can fix this

_._,_._,_

Groups.io Links:

=20 You receive all messages sent to this group. =20 =20

View/Reply Online (#108495) | =20 | Mute= This Topic | New Topic
Your Subscriptio= n | Contact Group Owner | Unsubscribe [rebecca@openfw.io]

_._,_._,_
--Apple-Mail=_AD085304-1426-4AF1-A497-33483278FE49--