optee-test: add patch to detect storage (RPMB or not) dynamically

Update xtest to detect which types of secure storage are supported by the underlying OP-TEE at runtime. Fixes a couple of issues on RockPi 4 which has RPMB enabled (CFG_RPMB_FS=y) but REE FS disabled (CFG_REE_FS=n) when optee-os is built:

  1. xtest regression_6018 takes forever to complete because xtest wrongly assumes that the default storage is REE FS and therefore it uses much bigger data blocks than it should (32 KB vs 1 KB).

  2. All the storage tests fail the REE FS part which should in fact not be run.

Original meta-ledge patch: [1] with adjusted file paths and SRC_URI append syntax. This change will not be needed with upstream optee_test 3.18.0 or later.

Link: [1] https://github.com/Linaro/meta-ledge/commit/f572fafd3d40d03124541f17df6c3cfbec088292 Signed-off-by: Jerome Forissier jerome.forissier@linaro.org

Merge request reports

Loading