summaryrefslogtreecommitdiffstats
path: root/meta-agl-devel/meta-agl-jailhouse/dynamic-layers/raspberrypi/recipes-bsp/trusted-firmware-a/trusted-firmware-a_%.bbappend
blob: 158eb6e82b7c2b139a0a1b75371dfb348bd798ef (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
COMPATIBLE_MACHINE = "raspberrypi4"
TFA_BUILD_TARGET = "bl31"
TFA_PLATFORM = "rpi4"

# Skip installing the binary into /lib/firmware. We only need it on the boot
# partition that is generated from the files in DEPLOYDIR
do_install[noexec] = "1"

FILES_${PN} = ""

do_deploy() {
    if ${@"true" if d.getVar('TFA_DEBUG') == '1' else "false"}; then
        BUILD_PLAT=${B}/${BUILD_DIR}/debug/
    else
        BUILD_PLAT=${B}/${BUILD_DIR}/release/
    fi

    install -d ${DEPLOYDIR}/bcm2835-bootfiles
    cp ${BUILD_PLAT}/bl31.bin ${DEPLOYDIR}/bcm2835-bootfiles/bl31.bin
}