cmd: fdt: skip board specific fixup using env variable

Sometimes it is useful to boot OS with already fixed-up
device tree. Check for env variable 'skip_board_fixup'
before calling ft_board_setup().
Current behaviour is unchanged, additionally user can
set skip_board_fixup to 1 to skip the fixup.

Signed-off-by: Wasim Khan <wasim.khan@nxp.com>
This commit is contained in:
Wasim Khan
2021-02-24 16:51:48 -05:00
committed by Tom Rini
parent 220fa478fb
commit 402558b1fe
2 changed files with 18 additions and 5 deletions
+6
View File
@@ -2383,6 +2383,12 @@ sub u_boot_line {
"fdt or initrd relocation disabled at boot time\n" . $herecurr);
}
# make sure 'skip_board_fixup' is not
if ($rawline =~ /.*skip_board_fixup.*/) {
ERROR("SKIP_BOARD_FIXUP",
"Avoid setting skip_board_fixup env variable\n" . $herecurr);
}
# Do not use CONFIG_ prefix in CONFIG_IS_ENABLED() calls
if ($line =~ /^\+.*CONFIG_IS_ENABLED\(CONFIG_\w*\).*/) {
ERROR("CONFIG_IS_ENABLED_CONFIG",