mirror of
https://github.com/ARM-software/devlib.git
synced 2025-01-31 02:00:45 +00:00
vexpress-uboot: only set env if bootargs are specified
If env is specified, U-Boot module will wait for U-Boot prompt and then interrupt the boot sequence so it should be updated. The vexpress module that used it always set the env to contain bootargs (even if they were None), always causing boot to be interrupted, even when that is not necessary. This update means that boot will be interrupted only if bootargs were specified (and therefore env needs to be updated).
This commit is contained in:
parent
4c4d7f177e
commit
a1e991c12f
@ -145,9 +145,12 @@ class VersatileExpressPlatform(Platform):
|
||||
'bootargs': self.bootargs,
|
||||
}})
|
||||
elif self.bootloader == 'u-boot':
|
||||
uboot_env = None
|
||||
if self.bootargs:
|
||||
uboot_env = {'bootargs': self.bootargs}
|
||||
self.modules.append({'vexpress-u-boot': {'port': self.serial_port,
|
||||
'baudrate': self.baudrate,
|
||||
'env': {'bootargs': self.bootargs},
|
||||
'env': uboot_env,
|
||||
}})
|
||||
elif self.bootloader == 'bootmon':
|
||||
self.modules.append({'vexpress-bootmon': {'port': self.serial_port,
|
||||
|
Loading…
x
Reference in New Issue
Block a user