xref: /openbmc/openbmc/meta-arm/meta-arm-bsp/recipes-bsp/uefi/edk2-firmware-sbsa-ref.inc (revision edff49234e31f23dc79f823473c9e286a21596c1)
1COMPATIBLE_MACHINE:sbsa-ref = "sbsa-ref"
2
3FILESEXTRAPATHS:prepend := "${THISDIR}/files:"
4
5SRC_URI:append = " file://0001-BootLogoLib-align-logo-coords-to-be-even.patch"
6# Need to use git as the BootLogo fix includes a binary patch, which quilt cannot handle
7PATCHTOOL = "git"
8
9DEPENDS:append:sbsa-ref     = " trusted-firmware-a coreutils-native"
10
11EDK2_PLATFORM:sbsa-ref      = "SbsaQemu"
12EDK2_PLATFORM_DSC:sbsa-ref  = "Platform/Qemu/SbsaQemu/SbsaQemu.dsc"
13EDK2_BIN_NAME:sbsa-ref      = "SBSA_FLASH0.fd"
14
15do_compile:prepend:sbsa-ref() {
16    mkdir -p ${B}/Platform/Qemu/Sbsa/
17    cp ${RECIPE_SYSROOT}/firmware/bl1.bin ${B}/Platform/Qemu/Sbsa/
18    cp ${RECIPE_SYSROOT}/firmware/fip.bin ${B}/Platform/Qemu/Sbsa/
19}
20
21do_install:append:sbsa-ref() {
22    install ${B}/Build/${EDK2_PLATFORM}/${EDK2_BUILD_MODE}_${EDK_COMPILER}/FV/SBSA_FLASH*.fd ${D}/firmware/
23    # QEMU requires that the images be minimum of 256M in size
24    truncate -s 256M ${D}/firmware/SBSA_FLASH*.fd
25}
26
27