summaryrefslogtreecommitdiff
path: root/common/Kconfig
diff options
context:
space:
mode:
authorAntony Pavlov <antonynpavlov@gmail.com>2022-02-10 16:46:39 +0300
committerSascha Hauer <s.hauer@pengutronix.de>2022-02-11 11:35:22 +0100
commit149932efdf368adb4abb2594e3d33899315449a1 (patch)
tree381fca05f29621db2f2cbb02fdfb554cdd885ebc /common/Kconfig
parent3a99d7573a7bc7669f6bf035824e8be772c43061 (diff)
downloadbarebox-149932efdf368adb4abb2594e3d33899315449a1.tar.gz
imd: add optional endianness= parameter for bi-endian systems
MIPS architecture supports both little- and big-endian modes. It's handy to have means to determine endianness of barebox image. This patch adds necessary record into imd block. Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com> Link: https://lore.barebox.org/20220210134639.341801-1-antonynpavlov@gmail.com Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'common/Kconfig')
-rw-r--r--common/Kconfig6
1 files changed, 6 insertions, 0 deletions
diff --git a/common/Kconfig b/common/Kconfig
index dba6aa43fd..f7a6a96e87 100644
--- a/common/Kconfig
+++ b/common/Kconfig
@@ -730,6 +730,12 @@ config IMD
select CRC32
bool "barebox metadata support"
+config IMD_ENDIANNESS
+ bool "add endianness record to metadata"
+ depends on IMD
+ depends on SYS_SUPPORTS_LITTLE_ENDIAN && SYS_SUPPORTS_BIG_ENDIAN
+ default y
+
choice
prompt "console support"
default CONSOLE_FULL