[U-Boot] [PATCH v2] test/py: Add option to skip SPL signature checking
Michal Simek
michal.simek at xilinx.com
Tue Feb 23 10:40:02 CET 2016
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 at xilinx.com>
Tested-by: Stephen Warren <swarren at nvidia.com>
Acked-by: Stephen Warren <swarren at nvidia.com>
---
Changes in v2:
- nits in commit message
- Rename to env_spl_skipped from env__spl_skipped
test/py/u_boot_console_base.py | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/test/py/u_boot_console_base.py b/test/py/u_boot_console_base.py
index d6502c6e64cb..b48d07261ff2 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:
+ config_spl_skip = self.config.env.get('env_spl_skipped',
+ False)
+ if config_spl and config_spl_serial_support and not config_spl_skip:
m = self.p.expect([pattern_u_boot_spl_signon] +
self.bad_patterns)
if m != 0:
--
1.9.1
More information about the U-Boot
mailing list