summaryrefslogtreecommitdiffstats
path: root/commands/Kconfig
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2019-09-12 10:24:42 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2019-09-12 10:38:00 +0200
commit8c767c227d38954a736f55e33b119786f1d740b1 (patch)
treec96e8496c1276290a245cb1ed74f1cfd3511d596 /commands/Kconfig
parent1187df45bf9e7a780b76587c96c7f6b4696a3f96 (diff)
downloadbarebox-8c767c227d38954a736f55e33b119786f1d740b1.tar.gz
barebox-8c767c227d38954a736f55e33b119786f1d740b1.tar.xz
add of_diff command
The of_diff command compares two device trees against each other and prints a diff-like result. This can be handy to find out the differences between the barebox live tree and the one we start the kernel with. Another usecase would be to examine the changes our of_fixup process introduces (of_diff - +) Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'commands/Kconfig')
-rw-r--r--commands/Kconfig7
1 files changed, 7 insertions, 0 deletions
diff --git a/commands/Kconfig b/commands/Kconfig
index e03110fd46..24fd47b5cd 100644
--- a/commands/Kconfig
+++ b/commands/Kconfig
@@ -2012,6 +2012,13 @@ config CMD_LSMOD
help
List loaded barebox modules.
+config CMD_OF_DIFF
+ tristate
+ select OFTREE
+ prompt "of_diff"
+ help
+ Compare two device tree files against each other.
+
config CMD_OF_DUMP
tristate
select OFTREE