使用者工具

網站工具


build_ami_in_vscode

Build AMI UEFI BIOS in VScode

Download VSCode Version 1.91.0

Download AmiExtensionForVScode

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”

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”

OPEN AMI BIOS by Folder

Press Ctrl + F5

Using Terminal –> New Terminal
Executing VebXX_build.bat

build_ami_in_vscode.txt · 上一次變更: 2024/07/09 08:23 由 don