2017-12-03 20:21:21 +01:00
|
|
|
DESCRIPTION = "ARM Trusted Firmware Allwinner"
|
2022-04-21 09:13:54 +02:00
|
|
|
LICENSE = "BSD-3-Clause"
|
2023-05-11 10:47:06 +02:00
|
|
|
LIC_FILES_CHKSUM = "file://docs/license.rst;md5=b2c740efedc159745b9b31f88ff03dde"
|
2017-12-03 20:21:21 +01:00
|
|
|
|
2023-03-16 09:50:30 +01:00
|
|
|
SRC_URI = " \
|
|
|
|
git://github.com/ARM-software/arm-trusted-firmware;nobranch=1;protocol=https \
|
|
|
|
file://Makefile-link-with-z-noexecstack-no-warn-rwx-segment.patch \
|
|
|
|
"
|
2023-05-11 10:47:06 +02:00
|
|
|
|
|
|
|
SRCREV = "ba12668a65f9b10bc18f3b49a71999ed5d32714a"
|
2022-04-13 09:31:07 +02:00
|
|
|
|
2017-12-03 20:21:21 +01:00
|
|
|
S = "${WORKDIR}/git"
|
|
|
|
B = "${WORKDIR}/build"
|
|
|
|
|
2023-03-16 09:50:30 +01:00
|
|
|
COMPATIBLE_MACHINE = "(sun50i|sun50i-h616)"
|
2017-12-03 20:21:21 +01:00
|
|
|
|
2023-05-11 10:47:06 +02:00
|
|
|
PLATFORM:sun50i = "sun50i_a64"
|
2023-03-16 09:50:30 +01:00
|
|
|
PLATFORM:sun50i-h616 = "sun50i_h616"
|
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
|
|
|
|
}
|
|
|
|
|
|
|
|
do_install() {
|
|
|
|
install -D -p -m 0644 ${B}/${PLATFORM}/release/bl31.bin ${DEPLOY_DIR_IMAGE}/bl31.bin
|
|
|
|
}
|