summaryrefslogtreecommitdiffstats
path: root/meta-ti-bsp
diff options
context:
space:
mode:
authorAndrew Davis <afd@ti.com>2023-02-15 13:33:41 -0600
committerRyan Eatmon <reatmon@ti.com>2023-03-01 09:18:09 -0600
commitede16ed8de92e2c8c87356c370e96018b39e0006 (patch)
tree220215d0c6cd9480b510596de4493751af82ecbe /meta-ti-bsp
parentf25344f87695a3276cea9a3d7793494ac7e14239 (diff)
downloadmeta-ti-ede16ed8de92e2c8c87356c370e96018b39e0006.tar.gz
meta-ti-bsp: Add helper class for TI Security Development Tools
The setup here is common to all packages that require signing with the TI Security Development Tools. Add a helper class to factor out this commonality. Signed-off-by: Andrew Davis <afd@ti.com> Signed-off-by: Ryan Eatmon <reatmon@ti.com>
Diffstat (limited to 'meta-ti-bsp')
-rw-r--r--meta-ti-bsp/classes/ti-secdev.bbclass21
1 files changed, 21 insertions, 0 deletions
diff --git a/meta-ti-bsp/classes/ti-secdev.bbclass b/meta-ti-bsp/classes/ti-secdev.bbclass
new file mode 100644
index 00000000..b3d70e5c
--- /dev/null
+++ b/meta-ti-bsp/classes/ti-secdev.bbclass
@@ -0,0 +1,21 @@
1# Helper class to prepare correct environment for signing with TI Security Development Tools
2
3# K3 SECDEV scripts use OpenSSL
4DEPENDS:append:k3 = " openssl-native"
5DEPENDS:append:k3r5 = " openssl-native"
6
7# Use package version of TI SECDEV for K3 if one is not provided through the environment
8DEPENDS:append:k3 = "${@ '' if d.getVar('TI_SECURE_DEV_PKG_K3') else ' ti-k3-secdev-native' }"
9DEPENDS:append:k3r5 = "${@ '' if d.getVar('TI_SECURE_DEV_PKG_K3') else ' ti-k3-secdev-native' }"
10TI_K3_SECDEV_INSTALL_DIR = "${STAGING_DIR_NATIVE}${datadir}/ti/ti-k3-secdev"
11TI_SECURE_DEV_PKG:k3 = "${@ d.getVar('TI_SECURE_DEV_PKG_K3') or d.getVar('TI_K3_SECDEV_INSTALL_DIR') }"
12TI_SECURE_DEV_PKG:k3r5 = "${@ d.getVar('TI_SECURE_DEV_PKG_K3') or d.getVar('TI_K3_SECDEV_INSTALL_DIR') }"
13
14# For non-K3 we require the SECDEV tools be provided through the environment with the following vars
15TI_SECURE_DEV_PKG:ti33x = "${TI_SECURE_DEV_PKG_CAT}/am3x"
16TI_SECURE_DEV_PKG:ti43x = "${TI_SECURE_DEV_PKG_CAT}/am4x"
17TI_SECURE_DEV_PKG:am57xx = "${TI_SECURE_DEV_PKG_AUTO}/am5x"
18TI_SECURE_DEV_PKG:dra7xx = "${TI_SECURE_DEV_PKG_AUTO}/dra7"
19
20# The SECDEV scripts may need their own location provided through the environment
21export TI_SECURE_DEV_PKG