diff options
Diffstat (limited to 'meta-ti-bsp/classes/ti-secdev.bbclass')
-rw-r--r-- | meta-ti-bsp/classes/ti-secdev.bbclass | 21 |
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 | ||
4 | DEPENDS:append:k3 = " openssl-native" | ||
5 | DEPENDS:append:k3r5 = " openssl-native" | ||
6 | |||
7 | # Use package version of TI SECDEV for K3 if one is not provided through the environment | ||
8 | DEPENDS:append:k3 = "${@ '' if d.getVar('TI_SECURE_DEV_PKG_K3') else ' ti-k3-secdev-native' }" | ||
9 | DEPENDS:append:k3r5 = "${@ '' if d.getVar('TI_SECURE_DEV_PKG_K3') else ' ti-k3-secdev-native' }" | ||
10 | TI_K3_SECDEV_INSTALL_DIR = "${STAGING_DIR_NATIVE}${datadir}/ti/ti-k3-secdev" | ||
11 | TI_SECURE_DEV_PKG:k3 = "${@ d.getVar('TI_SECURE_DEV_PKG_K3') or d.getVar('TI_K3_SECDEV_INSTALL_DIR') }" | ||
12 | TI_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 | ||
15 | TI_SECURE_DEV_PKG:ti33x = "${TI_SECURE_DEV_PKG_CAT}/am3x" | ||
16 | TI_SECURE_DEV_PKG:ti43x = "${TI_SECURE_DEV_PKG_CAT}/am4x" | ||
17 | TI_SECURE_DEV_PKG:am57xx = "${TI_SECURE_DEV_PKG_AUTO}/am5x" | ||
18 | TI_SECURE_DEV_PKG:dra7xx = "${TI_SECURE_DEV_PKG_AUTO}/dra7" | ||
19 | |||
20 | # The SECDEV scripts may need their own location provided through the environment | ||
21 | export TI_SECURE_DEV_PKG | ||