mirror of
https://git.yoctoproject.org/meta-arm
synced 2026-06-04 14:10:01 +00:00
arm/edk2-firmware: set GCC_VER appropriately with meta-clang
Also as this isn't actually GCC-specific, rename the variable to EDK_COMPILER. Change-Id: I617f5da642c10decd83124e160b06579c46405ba Signed-off-by: Ross Burton <ross.burton@arm.com> Signed-off-by: Jon Mason <jon.mason@arm.com>
This commit is contained in:
@@ -56,7 +56,8 @@ export CONF_PATH = "${S}/Conf"
|
||||
|
||||
export BTOOLS_PATH = "${EDK_TOOLS_PATH}/BinWrappers/PosixLike"
|
||||
|
||||
GCC_VER ?= "GCC5"
|
||||
EDK_COMPILER ?= "GCC5"
|
||||
EDK_COMPILER_toolchain-clang = "CLANG38"
|
||||
|
||||
do_compile() {
|
||||
sed -i -e 's:-I \.\.:-I \.\. ${BUILD_CFLAGS} :' ${EDK_TOOLS_PATH}/Source/C/Makefiles/header.makefile
|
||||
@@ -74,13 +75,13 @@ do_compile() {
|
||||
"${S}/BaseTools/BinWrappers/PosixLike/build" \
|
||||
-a "${EDK2_ARCH}" \
|
||||
-b ${EDK2_BUILD_MODE} \
|
||||
-t ${GCC_VER} \
|
||||
-t ${EDK_COMPILER} \
|
||||
-p "${S}/edk2-platforms/Platform/ARM/${EDK2_PLATFORM_DSC}"
|
||||
}
|
||||
|
||||
do_install() {
|
||||
install -d ${D}/firmware
|
||||
install ${B}/Build/${EDK2_PLATFORM}/${EDK2_BUILD_MODE}_${GCC_VER}/FV/${EDK2_BIN_NAME} ${D}/firmware/uefi.bin
|
||||
install ${B}/Build/${EDK2_PLATFORM}/${EDK2_BUILD_MODE}_${EDK_COMPILER}/FV/${EDK2_BIN_NAME} ${D}/firmware/uefi.bin
|
||||
}
|
||||
|
||||
FILES_${PN} = "/firmware"
|
||||
|
||||
Reference in New Issue
Block a user