2022-03-01 08:01:07 +01:00
|
|
|
inherit deploy
|
|
|
|
|
|
|
|
DESCRIPTION = "ARM Trusted Firmware"
|
2017-12-03 20:21:21 +01:00
|
|
|
LICENSE = "BSD"
|
2022-03-01 08:01:07 +01:00
|
|
|
LIC_FILES_CHKSUM = "file://license.rst;md5=1dd070c98a281d18d9eefd938729b031"
|
|
|
|
|
|
|
|
FILESEXTRAPATHS_append := "${THISDIR}/${PN}:"
|
2017-12-03 20:21:21 +01:00
|
|
|
|
2022-03-01 08:01:07 +01:00
|
|
|
SRC_URI = " \
|
|
|
|
git://github.com/ARM-software/arm-trusted-firmware.git;nobranch=1 \
|
|
|
|
"
|
|
|
|
SRCREV_sun50iw2 = "c390ecd6db5fadb054466a8d4168d9bbbff2fa95"
|
|
|
|
SRCREV_sun50iw6 = "c390ecd6db5fadb054466a8d4168d9bbbff2fa95"
|
|
|
|
SRCREV_sun50i = "c390ecd6db5fadb054466a8d4168d9bbbff2fa95"
|
2017-12-03 20:21:21 +01:00
|
|
|
|
|
|
|
S = "${WORKDIR}/git"
|
|
|
|
B = "${WORKDIR}/build"
|
|
|
|
|
2022-03-01 08:01:07 +01:00
|
|
|
COMPATIBLE_MACHINE = "(sun50iw2|sun50iw6|sun50i)"
|
2017-12-03 20:21:21 +01:00
|
|
|
|
2022-03-01 08:01:07 +01:00
|
|
|
PLATFORM_sun50iw2 = "sun50i_a64"
|
|
|
|
PLATFORM_sun50i = "sun50i_a64"
|
|
|
|
PLATFORM_sun50iw6 = "sun50i_h6"
|
2017-12-03 20:21:21 +01:00
|
|
|
|
|
|
|
LDFLAGS[unexport] = "1"
|
|
|
|
|
|
|
|
do_compile() {
|
|
|
|
oe_runmake -C ${S} BUILD_BASE=${B} \
|
|
|
|
CROSS_COMPILE=${TARGET_PREFIX} \
|
|
|
|
PLAT=${PLATFORM} \
|
|
|
|
bl31 \
|
|
|
|
all
|
|
|
|
}
|
|
|
|
|
2022-03-01 08:01:07 +01:00
|
|
|
do_deploy() {
|
|
|
|
install -D -p -m 0644 ${B}/${PLATFORM}/release/bl31.bin ${DEPLOYDIR}/bl31.bin
|
2017-12-03 20:21:21 +01:00
|
|
|
}
|
2022-03-01 08:01:07 +01:00
|
|
|
|
|
|
|
addtask deploy after do_compile
|