summaryrefslogtreecommitdiff
path: root/scripts/kernel-doc
diff options
context:
space:
mode:
authorBenjamin Hahn <[email protected]>2025-11-28 17:38:44 +0100
committerFabio Estevam <[email protected]>2025-11-29 18:02:13 -0300
commit76612e93c3cd0422171a62ebddf3afc36d5cd9a2 (patch)
tree28ca07e2d82f9efb9d75e8ccda5706dd2153cdb4 /scripts/kernel-doc
parent27d6ea356193badc418d79e27ce6cf33120aa743 (diff)
phytec: change preferred bootdevice dynamically
We want to change the bootdevice dynamically, so that when booting U-Boot from sdcard, kernel is also preferably booted from sdcard by default. If the user decides to set their own bootorder, this should not be overwritten. This was already implemented for imx8mp-libra-fpsc board, but as we set the default value for boot_targets in devicetree now, the env_get_default will return NULL. Also env_get might return NULL when boot_targets is not set. A string compare with NULL is unsafe and should be avoided. To fix this we only change the env value if the variable was not set before (NULL), as this is the new default value. In any other case the user has changed the value so it will not be overwritten. Also let standardboot set bootcmd automatically. For this CONFIG_USE_BOOTCOMMAND needs to be activated. Signed-off-by: Benjamin Hahn <[email protected]>
Diffstat (limited to 'scripts/kernel-doc')
0 files changed, 0 insertions, 0 deletions