]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
configs: enable CMD_TPM on QEMU ARM
authorHeinrich Schuchardt <heinrich.schuchardt@canonical.com>
Mon, 15 Nov 2021 17:13:10 +0000 (18:13 +0100)
committerHeinrich Schuchardt <heinrich.schuchardt@canonical.com>
Tue, 30 Nov 2021 08:23:37 +0000 (09:23 +0100)
With TPM emulation enabled in u-boot-test-hooks we should also provide the
tpm2 command used for the test/py/tests/test_tpm2.py test.

One of the Python TPMv2 tests expects sandbox specific values. So disable
it on other platforms.

Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
configs/qemu_arm64_defconfig
configs/qemu_arm_defconfig
test/py/tests/test_tpm2.py

index 83d7ae54de4db1aaa907ddd6da4bc7fdf70c89d8..e8a6f752cda27ea358e64019454e8e9dce6a011d 100644 (file)
@@ -23,6 +23,7 @@ CONFIG_CMD_DFU=y
 CONFIG_CMD_MTD=y
 CONFIG_CMD_PCI=y
 CONFIG_CMD_USB=y
+CONFIG_CMD_TPM=y
 CONFIG_CMD_MTDPARTS=y
 CONFIG_OF_BOARD=y
 CONFIG_ENV_IS_IN_FLASH=y
index ab5574847e89c44f119a6ec0c86a45a296786470..b4593051444d1ec1f8cf4765c23baee280a97fc7 100644 (file)
@@ -25,6 +25,7 @@ CONFIG_CMD_DFU=y
 CONFIG_CMD_MTD=y
 CONFIG_CMD_PCI=y
 CONFIG_CMD_USB=y
+CONFIG_CMD_TPM=y
 CONFIG_CMD_MTDPARTS=y
 CONFIG_OF_BOARD=y
 CONFIG_ENV_IS_IN_FLASH=y
index 7c89f5f29378417bf52f64d0ecb92793e16ed32c..d2ad6f9e73c015b30ff65a4d528309aaedaf2bfc 100644 (file)
@@ -186,6 +186,7 @@ def test_tpm2_change_auth(u_boot_console):
     u_boot_console.run_command('tpm2 clear TPM2_RH_PLATFORM')
     assert output.endswith('0')
 
+@pytest.mark.buildconfigspec('sandbox')
 @pytest.mark.buildconfigspec('cmd_tpm_v2')
 def test_tpm2_get_capability(u_boot_console):
     """Execute a TPM_GetCapability command.