diff options
Diffstat (limited to 'meta/lib')
| -rw-r--r-- | meta/lib/oeqa/selftest/cases/fitimage.py | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/meta/lib/oeqa/selftest/cases/fitimage.py b/meta/lib/oeqa/selftest/cases/fitimage.py index ca4724d1ae..3c40857747 100644 --- a/meta/lib/oeqa/selftest/cases/fitimage.py +++ b/meta/lib/oeqa/selftest/cases/fitimage.py | |||
| @@ -1692,3 +1692,40 @@ FIT_SIGN_INDIVIDUAL = "1" | |||
| 1692 | 1692 | ||
| 1693 | # Just check the DTB of u-boot since there is no u-boot FIT image | 1693 | # Just check the DTB of u-boot since there is no u-boot FIT image |
| 1694 | self._check_kernel_dtb(bb_vars) | 1694 | self._check_kernel_dtb(bb_vars) |
| 1695 | |||
| 1696 | |||
| 1697 | def test_sign_uboot_fit_image_without_spl(self): | ||
| 1698 | """ | ||
| 1699 | Summary: Check if U-Boot FIT image and Image Tree Source (its) are | ||
| 1700 | created and signed correctly for the scenario where only | ||
| 1701 | the U-Boot proper fitImage is being created and signed | ||
| 1702 | (no SPL included). | ||
| 1703 | Expected: 1) U-Boot its and FIT image are built successfully | ||
| 1704 | 2) Scanning the its file indicates signing is enabled | ||
| 1705 | as requested by SPL_SIGN_ENABLE (using keys generated | ||
| 1706 | via UBOOT_FIT_GENERATE_KEYS) | ||
| 1707 | 3) Dumping the FIT image indicates signature values | ||
| 1708 | are present | ||
| 1709 | 4) Examination of the do_uboot_assemble_fitimage | ||
| 1710 | runfile/logfile indicate that UBOOT_MKIMAGE and | ||
| 1711 | UBOOT_MKIMAGE_SIGN are working as expected. | ||
| 1712 | Product: oe-core | ||
| 1713 | Author: Jamin Lin <jamin_lin@aspeedtech.com> | ||
| 1714 | """ | ||
| 1715 | config = """ | ||
| 1716 | # There's no U-boot defconfig with CONFIG_FIT_SIGNATURE yet, so we need at | ||
| 1717 | # least CONFIG_SPL_LOAD_FIT and CONFIG_SPL_OF_CONTROL set | ||
| 1718 | MACHINE = "qemuarm" | ||
| 1719 | UBOOT_MACHINE = "am57xx_evm_defconfig" | ||
| 1720 | # Enable creation and signing of the U-Boot fitImage (no SPL) | ||
| 1721 | UBOOT_FITIMAGE_ENABLE = "1" | ||
| 1722 | SPL_DTB_BINARY = "" | ||
| 1723 | SPL_SIGN_ENABLE = "1" | ||
| 1724 | SPL_SIGN_KEYNAME = "spl-oe-selftest" | ||
| 1725 | SPL_SIGN_KEYDIR = "${TOPDIR}/signing-keys" | ||
| 1726 | UBOOT_FIT_GENERATE_KEYS = "1" | ||
| 1727 | """ | ||
| 1728 | self.write_config(config) | ||
| 1729 | bb_vars = self._fit_get_bb_vars() | ||
| 1730 | self._test_fitimage(bb_vars) | ||
| 1731 | |||
