diff options
author | Otavio Salvador <otavio@ossystems.com.br> | 2021-10-15 12:02:01 -0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-10-15 12:02:01 -0300 |
commit | 9d05232d9a12a52d17039003f8d4b23ac001d378 (patch) | |
tree | 9eea3870c4a5af37b4b7613517008d050bda0738 /recipes-security/optee/optee-os-qoriq_3.8.0.bb | |
parent | 2cdfab64a588c7570fe87c0fc3d05f061f2b692c (diff) | |
parent | 93d26c3d784f38b5629f31eb08ae7169c44ccb31 (diff) | |
download | meta-freescale-9d05232d9a12a52d17039003f8d4b23ac001d378.tar.gz |
Merge pull request #888 from ting-liu/master
updates for Layerscape machines
Diffstat (limited to 'recipes-security/optee/optee-os-qoriq_3.8.0.bb')
-rw-r--r-- | recipes-security/optee/optee-os-qoriq_3.8.0.bb | 83 |
1 files changed, 0 insertions, 83 deletions
diff --git a/recipes-security/optee/optee-os-qoriq_3.8.0.bb b/recipes-security/optee/optee-os-qoriq_3.8.0.bb deleted file mode 100644 index f5d6d620..00000000 --- a/recipes-security/optee/optee-os-qoriq_3.8.0.bb +++ /dev/null | |||
@@ -1,83 +0,0 @@ | |||
1 | SUMMARY = "OP-TEE Trusted OS" | ||
2 | DESCRIPTION = "OPTEE OS" | ||
3 | |||
4 | LICENSE = "BSD" | ||
5 | LIC_FILES_CHKSUM = "file://${S}/LICENSE;md5=c1f21c4f72f372ef38a5a4aee55ec173" | ||
6 | |||
7 | PV = "3.8+git${SRCPV}" | ||
8 | |||
9 | DEPENDS += "python3-pyelftools-native python3-pycryptodome-native python3-pycryptodomex-native dtc-native" | ||
10 | |||
11 | inherit deploy python3native | ||
12 | |||
13 | SRC_URI = "git://source.codeaurora.org/external/qoriq/qoriq-components/optee_os;nobranch=1 \ | ||
14 | file://0001-allow-setting-sysroot-for-libgcc-lookup.patch \ | ||
15 | file://0001-arm64-Disable-outline-atomics-when-compiling.patch \ | ||
16 | " | ||
17 | SRCREV = "0cb01f7f6aee552ead49990c06f69f73f459cc65" | ||
18 | |||
19 | S = "${WORKDIR}/git" | ||
20 | |||
21 | OPTEEMACHINE ?= "${MACHINE}" | ||
22 | OPTEEMACHINE:ls1088ardb-pb = "ls1088ardb" | ||
23 | OPTEEMACHINE:ls1046afrwy = "ls1046ardb" | ||
24 | OPTEEMACHINE:lx2162aqds = "lx2160aqds" | ||
25 | |||
26 | EXTRA_OEMAKE = "PLATFORM=ls-${OPTEEMACHINE} CFG_ARM64_core=y \ | ||
27 | ARCH=arm \ | ||
28 | CROSS_COMPILE_core=${HOST_PREFIX} \ | ||
29 | CROSS_COMPILE_ta_arm64=${HOST_PREFIX} \ | ||
30 | NOWERROR=1 \ | ||
31 | LDFLAGS= \ | ||
32 | LIBGCC_LOCATE_CFLAGS=--sysroot=${STAGING_DIR_HOST} \ | ||
33 | " | ||
34 | EXTRA_OEMAKE:append:lx2162aqds = " CFG_EMBED_DTB_SOURCE_FILE=fsl-lx2160a-qds.dts CFG_EMBED_DT=y" | ||
35 | |||
36 | OPTEE_ARCH:armv7a = "arm32" | ||
37 | OPTEE_ARCH:aarch64 = "arm64" | ||
38 | |||
39 | do_compile() { | ||
40 | unset LDFLAGS | ||
41 | oe_runmake all CFG_TEE_TA_LOG_LEVEL=0 | ||
42 | ${OBJCOPY} -v -O binary ${B}/out/arm-plat-ls/core/tee.elf ${B}/out/arm-plat-ls/core/tee.bin | ||
43 | |||
44 | if [ ${MACHINE} = ls1012afrwy ]; then | ||
45 | mv ${B}/out/arm-plat-ls/core/tee.bin ${B}/out/arm-plat-ls/core/tee_512mb.bin | ||
46 | oe_runmake CFG_DRAM0_SIZE=0x40000000 all CFG_TEE_TA_LOG_LEVEL=0 | ||
47 | ${OBJCOPY} -v -O binary ${B}/out/arm-plat-ls/core/tee.elf ${B}/out/arm-plat-ls/core/tee.bin | ||
48 | fi | ||
49 | } | ||
50 | |||
51 | do_install() { | ||
52 | #install core on boot directory | ||
53 | install -d ${D}/lib/firmware/ | ||
54 | if [ ${MACHINE} = ls1012afrwy ]; then | ||
55 | install -m 644 ${B}/out/arm-plat-ls/core/tee_512mb.bin ${D}/lib/firmware/tee_${MACHINE}_512mb.bin | ||
56 | fi | ||
57 | install -m 644 ${B}/out/arm-plat-ls/core/tee.bin ${D}/lib/firmware/tee_${MACHINE}.bin | ||
58 | #install TA devkit | ||
59 | install -d ${D}/usr/include/optee/export-user_ta/ | ||
60 | |||
61 | for f in ${B}/out/arm-plat-ls/export-ta_${OPTEE_ARCH}/* ; do | ||
62 | cp -aR $f ${D}/usr/include/optee/export-user_ta/ | ||
63 | done | ||
64 | } | ||
65 | |||
66 | PACKAGE_ARCH = "${MACHINE_ARCH}" | ||
67 | |||
68 | do_deploy() { | ||
69 | install -d ${DEPLOYDIR}/optee | ||
70 | for f in ${D}/lib/firmware/*; do | ||
71 | cp $f ${DEPLOYDIR}/optee/ | ||
72 | done | ||
73 | } | ||
74 | |||
75 | addtask deploy before do_build after do_install | ||
76 | |||
77 | FILES:${PN} = "/lib/firmware/" | ||
78 | FILES:${PN}-dev = "/usr/include/optee" | ||
79 | |||
80 | INSANE_SKIP:${PN}-dev = "staticdev" | ||
81 | |||
82 | INHIBIT_PACKAGE_STRIP = "1" | ||
83 | COMPATIBLE_MACHINE = "(qoriq-arm64)" | ||