]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
cmd: optee_rpmb: build cmd for sandbox
authorIgor Opaniuk <igor.opaniuk@gmail.com>
Thu, 4 Apr 2024 13:19:49 +0000 (15:19 +0200)
committerIlias Apalodimas <ilias.apalodimas@linaro.org>
Thu, 18 Apr 2024 13:04:48 +0000 (16:04 +0300)
Support CMD_OPTEE_RPMB for SANDBOX configurations.
Test:

$ ./u-boot -d arch/sandbox/dts/test.dtb
...
=> optee_rpmb write_pvalue test_variable test_value
Wrote 11 bytes
=> optee_rpmb read_pvalue test_variable 11
Read 11 bytes, value = test_value

Reviewed-by: Mattijs Korpershoek <mkorpershoek@baylibre.com>
Tested-by: Mattijs Korpershoek <mkorpershoek@baylibre.com>
Signed-off-by: Igor Opaniuk <igor.opaniuk@gmail.com>
Signed-off-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>
cmd/Kconfig

index 8eeb99eea5edb4b53cec9a756a91415406d04b16..9dd90da1d9b5db822fce8bbc654b648ceb2f44a7 100644 (file)
@@ -1348,7 +1348,9 @@ config CMD_CLONE
 
 config CMD_OPTEE_RPMB
        bool "Enable read/write support on RPMB via OPTEE"
-       depends on SUPPORT_EMMC_RPMB && OPTEE
+       depends on (SUPPORT_EMMC_RPMB && OPTEE) || SANDBOX_TEE
+       default y if SANDBOX_TEE
+       select OPTEE_TA_AVB if SANDBOX_TEE
        help
          Enable the commands for reading, writing persistent named values
          in the Replay Protection Memory Block partition in eMMC by