EDK2-201903 BIOS 入门

1.常用编译命令

build AppPkg/AppPkg.dsc -a AARCH64 -b RELEASE -t GCC5
build -p AppPkg/AppPkg.dsc -a X64 -b DEBUG -t GCC5 

2.交叉编译命令

export PATH=$PATH:/xxx/aarch64-linux-gnu/bin
export GCC5_AARCH64_PREFIX=aarch64-linux-gnu-
source edksetup.sh --reconfig
build -p ShellPkg/ShellPkg.dsc -a AARCH64 -b RELEASE -t GCC5

3.常见错误

3.1未知问题

[BuildOptions]
# *_*_*_CC_FLAGS = -D DISABLE_NEW_DEPRECATED_INTERFACES

3.2Instance of library class [TimerLib] is not found

ArmLib|ArmPkg/Library/ArmLib/ArmBaseLib.inf
TimerLib|ArmPkg/Library/ArmArchTimerLib/ArmArchTimerLib.inf 

加到dsc中

3.3 Instance of library class [ArmGenericTimerCounterLib] is not found

ArmGenericTimerCounterLib|ArmPkg/Library/ArmGenericTimerPhyCounterLib/ArmGenericTimerPhyCounterLib.inf

加到dsc

3.4 fatal error: Library/ArmLib.h:No such file or directory

#include 
#include 

inf 里面加 

 ArmPkg/ArmPkg.dec 
           TimerLib
           ArmLib

你可能感兴趣的:(BIOS,BIOS)