diff options
| author | Andrew Davis <afd@ti.com> | 2023-02-15 13:33:41 -0600 |
|---|---|---|
| committer | Ryan Eatmon <reatmon@ti.com> | 2023-03-01 09:18:09 -0600 |
| commit | ede16ed8de92e2c8c87356c370e96018b39e0006 (patch) | |
| tree | 220215d0c6cd9480b510596de4493751af82ecbe /meta-ti-bsp/classes | |
| parent | f25344f87695a3276cea9a3d7793494ac7e14239 (diff) | |
| download | meta-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/classes')
| -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 | ||
