[master][PATCH 03/10] recipes-bsp: tifs-lpm-stub: Introduce new recipe


Denys Dmytriyenko
 

From: Ryan Eatmon <reatmon@...>

This firmware stub is required by the TI foundational security
software while transitioning to low power mode.

Add a recipe for this compatible with am62xx-evm

Signed-off-by: Nikhil Devshatwar <nikhil.nd@...>
Signed-off-by: Ryan Eatmon <reatmon@...>
Signed-off-by: Denys Dmytriyenko <denys@...>
---
.../recipes-bsp/ti-linux-fw/ti-linux-fw.inc | 1 +
.../tifs-lpm-stub/tifs-lpm-stub_git.bb | 23 +++++++++++++++++++
.../recipes-kernel/linux/kernel-rdepends.inc | 4 ++++
3 files changed, 28 insertions(+)
create mode 100644 meta-ti-bsp/recipes-bsp/tifs-lpm-stub/tifs-lpm-stub_g=
it.bb

diff --git a/meta-ti-bsp/recipes-bsp/ti-linux-fw/ti-linux-fw.inc b/meta-t=
i-bsp/recipes-bsp/ti-linux-fw/ti-linux-fw.inc
index 3ebdae30..47e76347 100644
--- a/meta-ti-bsp/recipes-bsp/ti-linux-fw/ti-linux-fw.inc
+++ b/meta-ti-bsp/recipes-bsp/ti-linux-fw/ti-linux-fw.inc
@@ -18,6 +18,7 @@ GOODIX_FW_VERSION =3D "1.0.0.0"
CADENCE_MHDP_FW_VERSION =3D "1.2.17"
IMG_DEC_FW_VERSION =3D "1.0"
CNM_WAVE521_FW_VERSION =3D "1.0.00"
+TIFS_LPM_STUB_FW_VERSION =3D "08.03.02"
=20
TI_LINUX_FW_SRCREV ?=3D "917625c2721eef8677df9e47d919005b0d4f93aa"
SRCREV =3D "${TI_LINUX_FW_SRCREV}"
diff --git a/meta-ti-bsp/recipes-bsp/tifs-lpm-stub/tifs-lpm-stub_git.bb b=
/meta-ti-bsp/recipes-bsp/tifs-lpm-stub/tifs-lpm-stub_git.bb
new file mode 100644
index 00000000..90af55f1
--- /dev/null
+++ b/meta-ti-bsp/recipes-bsp/tifs-lpm-stub/tifs-lpm-stub_git.bb
@@ -0,0 +1,23 @@
+SUMMARY =3D "TI Foundational security Low Power Management Stub"
+
+require recipes-bsp/ti-linux-fw/ti-linux-fw.inc
+
+PV =3D "${TIFS_LPM_STUB_FW_VERSION}"
+PR =3D "${INC_PR}.0"
+
+CLEANBROKEN =3D "1"
+
+COMPATIBLE_MACHINE =3D "am62xx-evm"
+
+PACKAGE_ARCH =3D "${MACHINE_ARCH}"
+
+S =3D "${WORKDIR}/git"
+
+TARGET =3D "ti-fs-stub-firmware-am62x-gp-signed.bin"
+
+do_install() {
+ install -d ${D}${nonarch_base_libdir}/firmware/ti-sysfw/
+ install -m 0644 ${S}/ti-sysfw/${TARGET} ${D}${nonarch_base_libdir}/firm=
ware/ti-sysfw/${TARGET}
+}
+
+FILES:${PN} =3D "${nonarch_base_libdir}/firmware"
diff --git a/meta-ti-bsp/recipes-kernel/linux/kernel-rdepends.inc b/meta-=
ti-bsp/recipes-kernel/linux/kernel-rdepends.inc
index 8ceae8a1..bb2c1a00 100644
--- a/meta-ti-bsp/recipes-kernel/linux/kernel-rdepends.inc
+++ b/meta-ti-bsp/recipes-kernel/linux/kernel-rdepends.inc
@@ -28,3 +28,7 @@ RDEPENDS:${KERNEL_PACKAGE_NAME}-base:append:j7 =3D " vx=
d-dec-fw"
=20
# Add run-time dependency for Chips&Media Wave521 firmware to the rootfs
RDEPENDS:${KERNEL_PACKAGE_NAME}-base:append:j721s2-evm =3D " cnm-wave-fw=
"
+
+# Add run-time dependency for TIFS Low Power Module stub
+RDEPENDS:${KERNEL_PACKAGE_NAME}-base:append:am62xx-evm =3D " tifs-lpm-st=
ub"
+
--=20
2.25.1