diff options
author | Wasim Khan <wasim.khan@nxp.com> | 2021-02-04 15:44:04 +0100 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2021-02-24 16:51:48 -0500 |
commit | 402558b1fe604baaa4aa4b3e1c72a65692861f2a (patch) | |
tree | 274954f80edcac86e001639e865623199d9e347e /scripts | |
parent | 220fa478fb1a84e51235b92506ff5d48415f0a8e (diff) | |
download | u-boot-402558b1fe604baaa4aa4b3e1c72a65692861f2a.tar.gz |
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>
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/checkpatch.pl | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl index 01ab570a16..755f4802a4 100755 --- a/scripts/checkpatch.pl +++ b/scripts/checkpatch.pl @@ -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", |