mirror of
https://github.com/lingble/meta-tegra.git
synced 2025-10-29 03:22:36 +00:00
* Ran convert-overrides.py to generate the initial changes * Manual cleanup afterwards (which was a lot, due to our extensive use of overrides). Signed-off-by: Matt Madison <matt@madison.systems>
57 lines
1.8 KiB
PHP
57 lines
1.8 KiB
PHP
SUMMARY = "ARM Trusted Firmware - L4T distribution"
|
|
DESCRIPTION = "ARM Trusted Firmware provides a reference implementation of secure world \
|
|
software for ARMv8-A, including a Secure Monitor executing at \
|
|
Exception Level 3 (EL3). It implements various ARM interface standards, such as \
|
|
the Power State Coordination Interface (PSCI), Trusted Board Boot Requirements \
|
|
(TBBR, ARM DEN0006C-1) and SMC Calling Convention (SMCCC). As far as possible \
|
|
the code is designed for reuse or porting to other ARMv8-A model and hardware \
|
|
platforms."
|
|
HOMEPAGE = "https://www.github.com/ARM-software/arm-trusted-firmware"
|
|
LICENSE = "BSD-3-Clause"
|
|
LIC_FILES_CHKSUM = "file://license.md;md5=5eb52e7718ec9f1c8de8525fe75a27f8"
|
|
|
|
COMPATIBLE_MACHINE = "(tegra186|tegra194)"
|
|
|
|
PACKAGECONFIG ??= "trusty"
|
|
PACKAGECONFIG[trusty] = "SPD=trusty"
|
|
|
|
B = "${WORKDIR}/build"
|
|
|
|
CFLAGS[unexport] = "1"
|
|
LDFLAGS[unexport] = "1"
|
|
AS[unexport] = "1"
|
|
LD[unexport] = "1"
|
|
|
|
TARGET_SOC = "t186"
|
|
TARGET_SOC:tegra194 = "t194"
|
|
|
|
def generate_build_timestamp(d):
|
|
from datetime import datetime
|
|
sde = d.getVar('SOURCE_DATE_EPOCH')
|
|
if sde:
|
|
return 'BUILD_MESSAGE_TIMESTAMP="\\\"{}\\\""'.format(datetime.utcfromtimestamp(int(sde)).strftime('%Y-%m-%d %H:%M:%S'))
|
|
return ''
|
|
|
|
BUILDTIMESTAMP ?= "${@generate_build_timestamp(d)}"
|
|
BUILD_STRING ??= ""
|
|
|
|
EXTRA_OEMAKE = 'BUILD_BASE=${B} CROSS_COMPILE="${TARGET_PREFIX}" PLAT=tegra \
|
|
DEBUG=0 LOG_LEVEL=20 V=0 TARGET_SOC=${TARGET_SOC} ${BUILDTIMESTAMP} ${BUILD_STRING} ${PACKAGECONFIG_CONFARGS}'
|
|
|
|
do_configure:append() {
|
|
oe_runmake -C ${S} clean
|
|
}
|
|
|
|
do_compile() {
|
|
oe_runmake -C ${S} all
|
|
}
|
|
|
|
do_install() {
|
|
install -d ${D}${datadir}/trusted-os
|
|
install -m 0644 ${B}/tegra/${TARGET_SOC}/release/bl31.bin ${D}${datadir}/trusted-os/
|
|
}
|
|
|
|
ALLOW_EMPTY:${PN} = "1"
|
|
FILES:${PN}-dev = "${datadir}/trusted-os"
|
|
PACKAGE_ARCH = "${SOC_FAMILY_PKGARCH}"
|