diff options
author | Alexey Brodkin <abrodkin@synopsys.com> | 2015-02-03 13:58:14 +0300 |
---|---|---|
committer | Alexey Brodkin <abrodkin@synopsys.com> | 2015-02-09 16:41:20 +0300 |
commit | 1f9ad44546ea872fc6671602eb411377dd424c9e (patch) | |
tree | 144e42bbbfcc0254e05d32ff1460c6e4fd10b74f /arch/arc/config.mk | |
parent | 205e7a7b77726abeff57576e2ecf2c6d4dc07ccf (diff) | |
download | u-boot-1f9ad44546ea872fc6671602eb411377dd424c9e.tar.gz |
arc: add selection of endianess in Kconfig
This change allows to keep board description clean and minimalistic.
This is especially helpful if one board may house different CPUs with
different features.
It is applicable to both FPGA-based boards or those that have CPUs
mounted on interchnagable daughter-boards.
Signed-off-by: Alexey Brodkin <abrodkin@synopsys.com>
Diffstat (limited to 'arch/arc/config.mk')
-rw-r--r-- | arch/arc/config.mk | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/arch/arc/config.mk b/arch/arc/config.mk index dd180ef187..4f2d31feb3 100644 --- a/arch/arc/config.mk +++ b/arch/arc/config.mk @@ -4,8 +4,10 @@ # SPDX-License-Identifier: GPL-2.0+ # -ifndef CONFIG_SYS_BIG_ENDIAN +ifndef CONFIG_CPU_BIG_ENDIAN CONFIG_SYS_LITTLE_ENDIAN = 1 +else +CONFIG_SYS_BIG_ENDIAN = 1 endif ifdef CONFIG_SYS_LITTLE_ENDIAN |