summaryrefslogtreecommitdiffstats
path: root/recipes-security
diff options
context:
space:
mode:
authorDenys Dmytriyenko <denys@konsulko.com>2022-02-22 04:13:45 +0000
committerRyan Eatmon <reatmon@ti.com>2022-02-22 12:01:38 -0600
commit20f3191aeb592dd889eeaf96a31526297de95306 (patch)
treeaec879b9855ff8a54df171ee808e30ac26f1c80b /recipes-security
parentbea4fd2c401af05b866bd6af1c4e501d31b7b420 (diff)
downloadmeta-ti-20f3191aeb592dd889eeaf96a31526297de95306.tar.gz
meta-ti: create a sub-layer meta-ti-bsp from existing content
Extra sub-layers will be created next and relevant content moved across them. Signed-off-by: Denys Dmytriyenko <denys@konsulko.com> Signed-off-by: Ryan Eatmon <reatmon@ti.com>
Diffstat (limited to 'recipes-security')
-rw-r--r--recipes-security/optee/optee-%.bbappend1
-rw-r--r--recipes-security/optee/optee-os_%.bbappend91
2 files changed, 0 insertions, 92 deletions
diff --git a/recipes-security/optee/optee-%.bbappend b/recipes-security/optee/optee-%.bbappend
deleted file mode 100644
index bc590bfd..00000000
--- a/recipes-security/optee/optee-%.bbappend
+++ /dev/null
@@ -1 +0,0 @@
1COMPATIBLE_MACHINE:ti-soc = "ti-soc"
diff --git a/recipes-security/optee/optee-os_%.bbappend b/recipes-security/optee/optee-os_%.bbappend
deleted file mode 100644
index 5cb70df9..00000000
--- a/recipes-security/optee/optee-os_%.bbappend
+++ /dev/null
@@ -1,91 +0,0 @@
1do_compile:prepend:ti-soc() {
2 export TI_SECURE_DEV_PKG=${TI_SECURE_DEV_PKG}
3}
4
5do_compile:append:k3() {
6 ( cd ${B}/core/; \
7 cp tee-pager_v2.bin ${B}/bl32.bin; \
8 cp tee.elf ${B}/bl32.elf; \
9 )
10}
11
12# Signing procedure for legacy HS devices
13optee_sign_legacyhs() {
14 ( cd ${B}/core/; \
15 ${TI_SECURE_DEV_PKG}/scripts/secure-binary-image.sh tee.bin tee.bin.signed; \
16 normfl=`echo ${OPTEEFLAVOR} | tr "_" "-"`
17 mv tee.bin.signed ${B}/$normfl.optee; \
18 )
19
20 if [ "${OPTEEPAGER}" = "y" ]; then
21 oe_runmake clean
22 oe_runmake all CFG_TEE_TA_LOG_LEVEL=0 CFG_WITH_PAGER=y
23 ( cd ${B}/core/; \
24 ${TI_SECURE_DEV_PKG}/scripts/secure-binary-image.sh tee.bin tee.bin.signed; \
25 normfl=`echo ${OPTEEFLAVOR} | tr "_" "-"`
26 mv tee.bin.signed ${B}/$normfl-pager.optee; \
27 )
28 fi
29}
30
31# Signing procedure for K3 HS devices
32optee_sign_k3hs() {
33 ( cd ${B}/core/; \
34 ${TI_SECURE_DEV_PKG}/scripts/secure-binary-image.sh tee-pager_v2.bin tee-pager.bin.signed; \
35 mv tee-pager.bin.signed ${B}/bl32.bin; \
36 cp tee.elf ${B}/bl32.elf; \
37 )
38}
39
40do_compile:append:ti43x() {
41 optee_sign_legacyhs
42}
43
44do_compile:append:dra7xx() {
45 optee_sign_legacyhs
46}
47
48do_compile:append:am65xx-hs-evm() {
49 optee_sign_k3hs
50}
51
52do_compile:append:am64xx-hs-evm() {
53 optee_sign_k3hs
54}
55
56do_compile:append:j7-hs-evm() {
57 optee_sign_k3hs
58}
59
60do_compile:append:j7200-hs-evm() {
61 optee_sign_k3hs
62}
63
64do_install:append:ti-soc() {
65 install -m 644 ${B}/*.optee ${D}${nonarch_base_libdir}/firmware/ || true
66 install -m 644 ${B}/bl32.bin ${D}${nonarch_base_libdir}/firmware/ || true
67 install -m 644 ${B}/bl32.elf ${D}${nonarch_base_libdir}/firmware/ || true
68}
69
70optee_deploy_legacyhs() {
71 cd ${DEPLOYDIR}/
72 for f in optee/*.optee; do
73 ln -sf $f ${DEPLOYDIR}/
74 done
75}
76
77do_deploy:append:ti43x() {
78 optee_deploy_legacyhs
79}
80
81do_deploy:append:dra7xx() {
82 optee_deploy_legacyhs
83}
84
85do_deploy:append:k3() {
86 ln -sf optee/bl32.bin ${DEPLOYDIR}/
87 ln -sf optee/bl32.elf ${DEPLOYDIR}/
88}
89
90# This is needed for bl32.elf
91INSANE_SKIP:${PN}:append:k3 = " textrel"