配置:
win8.1 x64 + VS2013 + UDK2015
在c:\MyWorkSpace\ShellPkg\Application\ShellCTestApp下面,已经带有样例:
ShellCTestApp.c
ShellCTestApp.inf
1,将ShellCTestApp.c中的函数体中加一句Print(L”modified\n”);表示是我们修改的版本。
2,在c:\MyWorkSpace\Nt32Pkg\Nt32Pkg.dsc中修改,搜索并找到[LibraryClasses],Entry point下加入一句如:
[LibraryClasses]
#
# Entry point
#
ShellCEntryLib|ShellPkg/Library/UefiShellCEntryLib/UefiShellCEntryLib.inf
3,继续搜索并找到[Components],在这个模块下面加入:
[Components]
##
# SEC Phase modules
##
ShellPkg/Application/ShellCTestApp/ShellCTestApp.inf
4,保存之后,构建:
Edksetup.bat
build -p nt32pkg\nt32pkg.dsc -a IA32 -m ShellPkg\Application\ShellCTestApp\ShellCTestApp.inf
结果: