Skip to contentSkip to conversation

optee-os: add handling of OPTEE pager config

PATCH New Denys Dmytriyenko 1 participant 1 message Jul 15, 2017

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 optee-os: add handling of OPTEE pager config

Requires separate build with enabled config option and install under different name.

---
 meta-arago-distro/recipes-security/optee/optee-os_git.bbappend | 10 ++++++++++
 1 file changed, 10 insertions(+)
meta-arago-distro/recipes-security/optee/optee-os_git.bbappend +10 -0
index d5116fb..2cf3656 100644
@@ -29,6 +29,16 @@ do_compile() {
         normfl=`echo ${OPTEEFLAVOR} | tr "_" "-"`
         mv tee.bin.signed $normfl.optee; \
     )
+
+    if [ "${OPTEEPAGER}" = "y" ]; then
+        oe_runmake clean PLATFORM=${OPTEEMACHINE} PLATFORM_FLAVOR=${OPTEEFLAVOR}
+        oe_runmake all PLATFORM=${OPTEEMACHINE} PLATFORM_FLAVOR=${OPTEEFLAVOR} CFG_WITH_PAGER=y
+        ( cd out/arm-plat-${OPTEEOUTPUTMACHINE}/core/; \
+            ${TI_SECURE_DEV_PKG}/scripts/secure-binary-image.sh tee.bin tee.bin.signed; \
+            normfl=`echo ${OPTEEFLAVOR} | tr "_" "-"`
+            mv tee.bin.signed $normfl-pager.optee; \
+        )
+    fi
 }
 
 do_install() {
Signature · 1 line
2.7.4