• Lukasz Majewski's avatar
    tests: py: dfu: Add functionality to set different u-boot's dfu env variable · 8eb37524
    Lukasz Majewski authored
    By default (on almost all systems) the dfu env variable, which defines
    available alt settings, is named as "dfu_alt_info".
    
    However on some platforms (i.e. Odroid XU3), the 'dfu_alt_info' is concatenated
    from other variables - namely 'dfu_alt_boot' and 'dfu_alt_system' at run time
    (when one types 'dfu 0 mmc 0' for first time).
    
    'dfu_alt_boot' describes alt settings which depend on boot medium - for example
    boot loader's LBA sectors which are different on eMMC and SD card because of e.g.
    MBR/GPT.
    
    'dfu_alt_system' describes board agnostic alt settings - like rootfs, kernel.
    On such system we can only append/modify this env variable.
    
    Because of the above, we must have way to modify other than "dfu_ale_info"
    variable to perform tests.
    Signed-off-by: 's avatarLukasz Majewski <l.majewski@samsung.com>
    Acked-by: 's avatarStephen Warren <swarren@nvidia.com>
    ---
    Changes for v3:
    - None
    
    Changes for v2:
    - Rewrite of "alt_info_env_name" variable description
    - Use of get() method on python's dictionary to easily obtain default
      value
    8eb37524
Name
Last commit
Last update
Licenses Loading commit data...
api Loading commit data...
arch Loading commit data...
board Loading commit data...
cmd Loading commit data...
common Loading commit data...
configs Loading commit data...
disk Loading commit data...
doc Loading commit data...
drivers Loading commit data...
dts Loading commit data...
examples Loading commit data...
fs Loading commit data...
include Loading commit data...
lib Loading commit data...
net Loading commit data...
post Loading commit data...
scripts Loading commit data...
test Loading commit data...
tools Loading commit data...
.checkpatch.conf Loading commit data...
.gitignore Loading commit data...
.mailmap Loading commit data...
.travis.yml Loading commit data...
Kbuild Loading commit data...
Kconfig Loading commit data...
MAINTAINERS Loading commit data...
MAKEALL Loading commit data...
Makefile Loading commit data...
README Loading commit data...
config.mk Loading commit data...
snapshot.commit Loading commit data...