Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cant build on ubuntu 20.04/WSL2 #2

Open
nieknooijens opened this issue Jun 14, 2021 · 1 comment
Open

Cant build on ubuntu 20.04/WSL2 #2

nieknooijens opened this issue Jun 14, 2021 · 1 comment

Comments

@nieknooijens
Copy link

nieknooijens commented Jun 14, 2021

Hi there.

As a software engineer for Omron NL I was searching for a solution to load microcode from the EFI-shell (would help us with an issue we have in one of our IPC's) and I stumbled upon this project (since it had the PatchMicroCode function).
Unfortunately I'm unable to compile it. Since I work from home due to the pandemic I can't access my linux machines (VPN they use is windows only) so Instead I've set up WSL2 with ubuntu 20.04, downloaded EDK2 and compiled the basetools, MdePkg and OVMF package. all worked fine. I then proceeded by copying the EdkiiShellToolPkg to the edk2 folder and set the ACTIVE_PLATFORM to EdkiiShellToolPkg/EdkiiShellToolPkg.dsc

unfortunately I ended up with this:
`Build environment: Linux-5.4.72-microsoft-standard-WSL2-x86_64-with-glibc2.29
Build start time: 14:00:32, Jun.14 2021

WORKSPACE = /home/noonie/edk2
EDK_TOOLS_PATH = /home/noonie/edk2/BaseTools

Processing meta-data .CONF_PATH = /home/noonie/edk2/Conf
PYTHON_COMMAND = /usr/bin/python3.8

Architecture(s) = X64
Build target = DEBUG
Toolchain = GCC5

Active Platform = /home/noonie/edk2/EdkiiShellToolPkg/EdkiiShellToolPkg.dsc

build.py...
/home/noonie/edk2/EdkiiShellToolPkg/EdkiiShellToolPkg.dsc(...): error 4000: Instance of library class [RegisterFilterLib] is not found
in [/home/noonie/edk2/MdePkg/Library/BaseLib/BaseLib.inf] [X64]
consumed by module [/home/noonie/edk2/EdkiiShellToolPkg/Gcd/Gcd.inf]

  • Failed -
    Build end time: 14:00:32, Jun.14 2021
    Build total time: 00:00:00

`

Any idea what's going wrong?

thanks! Niek

Edit: when compiling against edk2-stable202011 it works, but a newer EDK2 will break this project!

@yeggor
Copy link

yeggor commented Oct 12, 2021

@nieknooijens, add library class RegisterFilterLib|MdePkg/Library/RegisterFilterLibNull/RegisterFilterLibNull.inf to [LibraryClasses].
It should look something like this:

[LibraryClasses]
  BaseLib|MdePkg/Library/BaseLib/BaseLib.inf
  BaseMemoryLib|MdePkg/Library/BaseMemoryLib/BaseMemoryLib.inf
  ...
  RegisterFilterLib|MdePkg/Library/RegisterFilterLibNull/RegisterFilterLibNull.inf

Also, AtaInfo will not compile correctly with GCC. If you need this component, fix it like in this commit: ca3b578.
Otherwise, just comment out this line: EdkiiShellToolPkg.dsc#L121

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants