diff options
author | Michal Simek <michal.simek@xilinx.com> | 2016-02-25 14:58:24 +0100 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2016-02-25 10:21:19 -0500 |
commit | 299e5bb7c2377aa3d3b1ae74bceafadad71e8863 (patch) | |
tree | 6c223d2d504894f49a941b5d7c348f4840c0de6d /test | |
parent | cdb714d7c9c5974a15ea4e37ef9ae111cd4bdf97 (diff) |
test/py: Add option to skip SPL signature checking
Provide user option to skip SPL signature verification for cases where
u-boot is build with SPL support but full U-Boot is also verified
without SPL.
If you want to support this feature please add env__spl_skipped = True
to your boardenv configuration file.
For example Xilinx Zynq is using this feature where the same U-Boot
binary is checked with SPL and without SPL(with FSBL).
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
Diffstat (limited to 'test')
-rw-r--r-- | test/py/u_boot_console_base.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/test/py/u_boot_console_base.py b/test/py/u_boot_console_base.py index d6502c6e64c..318e28824cc 100644 --- a/test/py/u_boot_console_base.py +++ b/test/py/u_boot_console_base.py @@ -307,7 +307,9 @@ class ConsoleBase(object): config_spl = bcfg.get('config_spl', 'n') == 'y' config_spl_serial_support = bcfg.get('config_spl_serial_support', 'n') == 'y' - if config_spl and config_spl_serial_support: + env_spl_skipped = self.config.env.get('env__spl_skipped', + False) + if config_spl and config_spl_serial_support and not env_spl_skipped: m = self.p.expect([pattern_u_boot_spl_signon] + self.bad_patterns) if m != 0: |