mirror of
https://github.com/u-boot/u-boot.git
synced 2025-05-03 02:03:01 +00:00
arc: Move SYS_LITTLE_ENDIAN / SYS_BIG_ENDIAN selection to Kconfig
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>
This commit is contained in:
parent
d0748898d8
commit
83505a7e9f
3 changed files with 2 additions and 10 deletions
4
README
4
README
|
@ -351,10 +351,6 @@ The following options need to be configured:
|
||||||
clocks to the sysclock, ddrclock and usbclock.
|
clocks to the sysclock, ddrclock and usbclock.
|
||||||
|
|
||||||
- Generic CPU options:
|
- 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
|
CONFIG_SYS_FSL_DDR
|
||||||
Freescale DDR driver in use. This type of DDR controller is
|
Freescale DDR driver in use. This type of DDR controller is
|
||||||
|
|
|
@ -53,6 +53,8 @@ config ARC
|
||||||
select SUPPORT_OF_CONTROL
|
select SUPPORT_OF_CONTROL
|
||||||
select SYS_CACHE_SHIFT_7
|
select SYS_CACHE_SHIFT_7
|
||||||
select TIMER
|
select TIMER
|
||||||
|
select SYS_BIG_ENDIAN if CPU_BIG_ENDIAN
|
||||||
|
select SYS_LITTLE_ENDIAN if !CPU_BIG_ENDIAN
|
||||||
|
|
||||||
config ARM
|
config ARM
|
||||||
bool "ARM architecture"
|
bool "ARM architecture"
|
||||||
|
|
|
@ -2,12 +2,6 @@
|
||||||
#
|
#
|
||||||
# Copyright (C) 2013-2014 Synopsys, Inc. All rights reserved.
|
# 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
|
ifdef CONFIG_SYS_LITTLE_ENDIAN
|
||||||
KBUILD_LDFLAGS += -EL
|
KBUILD_LDFLAGS += -EL
|
||||||
PLATFORM_CPPFLAGS += -mlittle-endian
|
PLATFORM_CPPFLAGS += -mlittle-endian
|
||||||
|
|
Loading…
Add table
Reference in a new issue