NOTE: To build all projects from https://github.com/KilianKegel the tools below are absolutely needed
- NASM
- ASL
- Windows 8.1 SDK (for EDK2020-MinnowBoard)
- FLEX/BISON (for the Visual-ACPICA-for-UEFI-Shell project)
NOTE: To avoid build failure due to incomplete installed or wrongly configured build machines,
upcoming and updated projects run their build tools within the project folder.
The build tools are installed and initialized when starting LAUNCH.BAT the first time.
Currently the tools listed below are in use:
- wget.exe, WGET to download missing tools at initial LAUNCH.BAT,
or manually via https://www.google.com/search?q=download+WGET+windows+binary - EnterpriseWDK_rs2_release_15063_20170317-1834.zip, Microsoft EWDK1703
- nasm-2.16.01-win64.zip, NASM assembler
- python-3.10.11-embed-win64.zip, PYTHON
- openssl-1.0.2r-x64_86-win64.zip, OPENSSL
- iasl-win-20230628.zip, Intel ASL compiler
- flex-2.5.4a-1-bin.zip, lexical analyser generator
- bison-2.4.1-bin.zip, parser generator
- libintl-0.14.4-bin.zip, support DLL for FLEX/BISON
- libiconv-1.9.2-1-bin.zip, support DLL for FLEX/BISON
- regex-2.7-bin.zip, support DLL for FLEX/BISON
To avoid multiple, lengthy downloads the original images can, optionally, downloaded once to each build machine and stored in a folder, that is assigned to an environment variable MYDOWNLOADS.
To do so, simply
- create a folder MYDOWNLOADS, e.g. run "cmd /c MD %USERPROFILE%\MYDOWNLOADS"
- windows-R -> control.exe -> User Accounts -> Change my environment variables
- create an environment variable MYDOWNLOADS, e.g. MYDOWNLOADS=%USERPROFILE%\MYDOWNLOADS:
- create an environment variable MYUSBSHARE, e.g. MYUSBSHARE=F:\ to automatically copy target files to an exchange drive per batch files or Visual Studio build events
- get
MediaCreationTool
https://go.microsoft.com/fwlink/?linkid=2156295 and download Windows 11
or - get
MediaCreationTool
https://go.microsoft.com/fwlink/?LinkId=691209 and download Windows 10
- Restore Classic (Full) Context Menu in Windows
run in command prompt window:
reg add HKCU\Software\Classes\CLSID\{86ca1aa0-34aa-4e8b-a509-50c905bae2a2}\InprocServer32 /ve /d "" /f
- download: https://docs.microsoft.com/en-us/visualstudio/releases/2022/release-notes
- configure setup:
Install GIT: https://github.com/git-for-windows/git/releases/download/v2.29.0.windows.1/Git-2.29.0-64-bit.exe
Install/extract the ASL/ACPI compiler to C:\ASL -> https://acpica.org/sites/acpica/files/iasl-win-20160527.zip
NOTE: If Python is installed from the Microsoft AppStore it can not be de-installed anymore!
NOTE: change default installation path to C:\NASM
https://www.nasm.us/pub/nasm/releasebuilds/2.15.05/win64/nasm-2.15.05-installer-x64.exe
Windows 8.1 SDK is provided in the Microsoft SDK archive at:
https://developer.microsoft.com/en-us/windows/downloads/sdk-archive,
or direct link:
https://go.microsoft.com/fwlink/p/?LinkId=323507
NOTE: Windows 8.1 SDK is removed from VS2022, but still available with VS2017. VS2017 itself is not available
anymore for free.
NOTE: Windows 8.1 SDK is just needed to solve one single issue: Provide Ressource Compiler RC.EXE to EDK2 build process.
Environment variables WINSDK81x86_PREFIX
and WINSDK81_PREFIX
are in use in EDK2 build, and could be adjusted to use newer SDK too...
https://acpica.org/downloads/windows-source
i. add C:\GnuWin32\bin to path
Install BeyondCompare -> https://www.scootersoftware.com/BCompare-4.4.6.27483.exe
Install tortoiseGIT: https://download.tortoisegit.org/tgit/2.14.0.0/TortoiseGit-2.14.0.1-64bit.msi
add to %USERPROFILE%\.gitconfig
:
[diff]
tool = bc4
[difftool "bc4"]
cmd = \"C:\\Program Files\\Beyond Compare 4\\BCompare.exe\" \"$LOCAL\" \"$REMOTE\"
[difftool]
prompt = false
[merge]
tool = bc4
[mergetool "bc4"]
cmd = \"C:\\Program Files\\Beyond Compare 4\\BCompare.exe\" \"$LOCAL\" \"$REMOTE\" \"$BASE\" \"$MERGED\"
trustExitCode = true
Install Acrobat Reader DC -> https://get.adobe.com/reader/otherversions/
i. WinRar -> https://www.rarlab.com/rar/winrar-x64-571.exe
ii. 7Zip -> https://www.7-zip.org/a/7z1900-x64.exe
Install FTDI serial-USB driver -> https://www.ftdichip.com/Drivers/CDM/CDM21228_Setup.zip
Install TeraTerm -> https://ttssh2.osdn.jp/index.html.en
Install DoxyGen -> https://sourceforge.net/projects/doxygen/files/latest/download
NOTE: In order to run WSL2 on a HYPER-V virtual machine, enable Nested Virtualization on the Hyper-V Manager for this particular virtual machine, while the VM is in OFF state:
- run PowerShell as administrator:
Set-VMProcessor <"VIRTUALMACHINENAME"> -ExposeVirtualizationExtensions $true
- in case the Virtual Machine Name includes special characters, e.g. (), use quotation marks
https://docs.microsoft.com/en-us/windows/wsl/install-win10
NOTE: In order to start WSL2 you have to run as an administrator:
bcdedit /set hypervisorlaunchtype auto
- download install script:
wget https://raw.githubusercontent.com/KilianKegel/HowTo-setup-a-YOCTO-Development-PC/master/install.sh
- set x attribute:
chmod +x install.sh
- run
./install.sh
If the build machine is physically protected from malware, it is possible to disable the virus protection completely to save energy and to speedup build process.
Create DEFDIS.REG
registry script below and run it on the platform:
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows Defender]
"DisableAntiSpyware"=dword:00000001
"DisableAntiVirus"=dword:00000001
"DisableRealtimeMonitoring"=dword:00000001
"DisableRoutinelyTakenAction"=dword:00000001
"DisableSpecialRunningModes"=dword:00000001
"ServiceKeepAlive"=dword:00000001
[HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows Defender\Policy Manager]
[HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows Defender\Real-Time Protection]
"DisableBehaviourMonitoring"=dword:00000001
"DisableRealtimeMonitoring"=dword:00000001
"DisableScanOnRealtimeEnable"=dword:00000001
"DisableOnAccessProtection"=dword:00000001
[HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows Defender\Signature Updates]
"ForceUpdateFromMU"=dword:00000001
[HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows Defender\Spynet]
"DisableBlockAtFirstSeen"=dword:00000001
Install yED https://www.yworks.com/products/yed/download
Install QT http://download.qt.io/official_releases/qt/5.14/5.14.2/qt-opensource-windows-x86-5.14.2.exe
Install BGINFO https://download.sysinternals.com/files/BGInfo.zip
- copy BGINFO64.EXE to %USERPROFILE%\AppData\Local\Microsoft\WindowsApps
- create %USERPROFILE%\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup\BGINFO.BAT that contains:
BGINFO64.EXE /timer:0
Install File Commander FCW https://www.heise.de/download/product/file-commander-7157/download/danke?id=7157-1
1: windows-R -> control.exe -> User Accounts -> Change my environment variables
2. add to PATH:
c:\progra~1\beyond~1 --> bcompare.exe
c:\progra~1\winrar --> rar.exe
c:\progra~1\7-zip --> 7z.exe
c:\progra~2\teraterm --> ttermpro.exe
c:\progra~2\FILECO~1 --> fcw.exe
c:\progra~1\MICROS~1\2022\COMMUN~1\Common7\ide --> devenv.exe
c:\GnuWin32\bin --> FLEX/BISON