====== Build AMI UEFI BIOS in VScode ======
===== Download VSCode Version 1.91.0 =====
[[https://code.visualstudio.com/download|VScode download]]\\
{{:vscode_download_path.png|}}
===== Download AmiExtensionForVScode =====
{{:amiextensionforvscode_download.png|}}
===== Create Batch File for compilation AMI BIOS =====
Veb50_build.bat
set APTIO_DIR=D:\BuildTool\Aptio_5.x_TOOLS_JRE_50\BuildTools
set WINDDK=D:\BuildTool\WinDDK_full\7600.16385.1\bin
set APTIO_TOOL_DIR=%WINDDK%\x86
set X86_CC=%WINDDK%\x86\x86
set X64_CC=%WINDDK%\x86\amd64
set PYTHON_DIR=C:\Users\FA506QM\AppData\Local\Programs\Python\Python38\python.exe
set TOOLS_DIR=D:\BuildTool\Aptio_5.x_TOOLS_JRE_50\BuildTools
set EWDK_DIR=D:\BuildTool\EWDK_1703
set VEB=MeteorLake
set CCX86DIR=%X86_CC%
set CCX64DIR=%X64_CC%
set PYTHON_COMMAND=%PYTHON_DIR%
set PATH=%APTIO_DIR%;%APTIO_TOOL_DIR%;%X64_CC%;%X86_CC%;%TOOLS_DIR%;%EWDK_DIR%;%PATH%
make rebuild
Veb44_build.bat
set APTIO_DIR=D:\BuildTool\Aptio_5.x_TOOLS_JRE_44\BuildTools
set WINDDK=D:\BuildTool\WinDDK_full\7600.16385.1\bin
set APTIO_TOOL_DIR=%WINDDK%\x86
set X86_CC=%WINDDK%\x86\x86
set X64_CC=%WINDDK%\x86\amd64
set PYTHON_DIR=C:\Users\FA506QM\AppData\Local\Programs\Python\Python38\python.exe
set TOOLS_DIR=D:\BuildTool\Aptio_5.x_TOOLS_JRE_44\BuildTools
set EWDK_DIR=D:\BuildTool\EWDK_1703
set VEB=MeteorLake
set CCX86DIR=%X86_CC%
set CCX64DIR=%X64_CC%
set PYTHON_COMMAND=%PYTHON_DIR%
set PATH=%APTIO_DIR%;%APTIO_TOOL_DIR%;%X64_CC%;%X86_CC%;%TOOLS_DIR%;%EWDK_DIR%;%PATH%
make rebuild
===== Create tasks.json =====
Ctrl+Shift+P Enter "Configure Task"
{{:vscode_configure_task.png|}}
tasks.json
{
// See https://go.microsoft.com/fwlink/?LinkId=733558
// for the documentation about the tasks.json format
"version": "2.0.0",
"tasks": [
{
"label": "Build_AMI_BIOS",
"type": "shell",
"command": "./Veb50_build.bat",
"problemMatcher": [],
"group": {
"kind": "build",
"isDefault": true
}
}
]
}
===== Add a shortcut to start compilation =====
Ctrl+Shift+P Enter "Open Keyboard Shortcuts"
{{:add_a_shortcut.png|}}
===== OPEN AMI BIOS by Folder =====
Press Ctrl + F5
{{:output_compilation_message.png|}}
Using Terminal --> New Terminal \\
Executing VebXX_build.bat