]> git.baikalelectronics.ru Git - uboot.git/commitdiff
arc: Move SYS_LITTLE_ENDIAN / SYS_BIG_ENDIAN selection to Kconfig
authorTom Rini <trini@konsulko.com>
Mon, 1 Aug 2022 01:08:23 +0000 (21:08 -0400)
committerTom Rini <trini@konsulko.com>
Fri, 12 Aug 2022 20:10:49 +0000 (16:10 -0400)
We can determine which of these we need given CPU_BIG_ENDIAN being
enabled or not, so move that logic to Kconfig from config.mk.

Cc: Alexey Brodkin <alexey.brodkin@synopsys.com>
Cc: Eugeniy Paltsev <Eugeniy.Paltsev@synopsys.com>
Signed-off-by: Tom Rini <trini@konsulko.com>
README
arch/Kconfig
arch/arc/config.mk

diff --git a/README b/README
index ebfdced4a725384a655423b7d9bc527a996e4961..ff0534137716c7c3ca348819559789c51affd6db 100644 (file)
--- a/README
+++ b/README
@@ -351,10 +351,6 @@ The following options need to be configured:
                clocks to the sysclock, ddrclock and usbclock.
 
 - Generic CPU options:
-               CONFIG_SYS_BIG_ENDIAN, CONFIG_SYS_LITTLE_ENDIAN
-
-               Defines the endianess of the CPU. Implementation of those
-               values is arch specific.
 
                CONFIG_SYS_FSL_DDR
                Freescale DDR driver in use. This type of DDR controller is
index 6495e780fec98715774721c93edc7ba9515c2e8f..c4dc47dccb43a09c5bee2d8fcf6e4cdbbdc7ead2 100644 (file)
@@ -53,6 +53,8 @@ config ARC
        select SUPPORT_OF_CONTROL
        select SYS_CACHE_SHIFT_7
        select TIMER
+       select SYS_BIG_ENDIAN if CPU_BIG_ENDIAN
+       select SYS_LITTLE_ENDIAN if !CPU_BIG_ENDIAN
 
 config ARM
        bool "ARM architecture"
index 118472b2d0ba21e9e5a4a7092f3d6bd5ea979056..2b70945ac342cf1bfe7902fa7832dd54a90b48a0 100644 (file)
@@ -2,12 +2,6 @@
 #
 # Copyright (C) 2013-2014 Synopsys, Inc. All rights reserved.
 
-ifndef CONFIG_CPU_BIG_ENDIAN
-CONFIG_SYS_LITTLE_ENDIAN = 1
-else
-CONFIG_SYS_BIG_ENDIAN = 1
-endif
-
 ifdef CONFIG_SYS_LITTLE_ENDIAN
 KBUILD_LDFLAGS += -EL
 PLATFORM_CPPFLAGS += -mlittle-endian