mirror of
https://github.com/linux-sunxi/u-boot-sunxi.git
synced 2024-02-12 11:16:03 +08:00
MIPS: refactor setting of compiler options
Refactor and unify all compiler settings in arch/mips/config.mk. Also add tune flags for each supported CPU type. Signed-off-by: Daniel Schwierzeck <daniel.schwierzeck@gmail.com>
This commit is contained in:
@ -5,19 +5,5 @@
|
||||
# SPDX-License-Identifier: GPL-2.0+
|
||||
#
|
||||
|
||||
#
|
||||
# Default optimization level for MIPS32
|
||||
#
|
||||
# Note: Toolchains with binutils prior to v2.16
|
||||
# are no longer supported by U-Boot MIPS tree!
|
||||
#
|
||||
PLATFORM_CPPFLAGS += -DCONFIG_MIPS32 -march=mips32r2
|
||||
PLATFORM_CPPFLAGS += -mabi=32 -DCONFIG_32BIT
|
||||
ifdef CONFIG_SYS_BIG_ENDIAN
|
||||
PLATFORM_LDFLAGS += -m elf32btsmip
|
||||
else
|
||||
PLATFORM_LDFLAGS += -m elf32ltsmip
|
||||
endif
|
||||
|
||||
CONFIG_STANDALONE_LOAD_ADDR ?= 0x80200000 \
|
||||
-T $(srctree)/examples/standalone/mips.lds
|
||||
|
@ -5,19 +5,5 @@
|
||||
# SPDX-License-Identifier: GPL-2.0+
|
||||
#
|
||||
|
||||
#
|
||||
# Default optimization level for MIPS64
|
||||
#
|
||||
# Note: Toolchains with binutils prior to v2.16
|
||||
# are no longer supported by U-Boot MIPS tree!
|
||||
#
|
||||
PLATFORM_CPPFLAGS += -DCONFIG_MIPS64 -march=mips64
|
||||
PLATFORM_CPPFLAGS += -mabi=64 -DCONFIG_64BIT
|
||||
ifdef CONFIG_SYS_BIG_ENDIAN
|
||||
PLATFORM_LDFLAGS += -m elf64btsmip
|
||||
else
|
||||
PLATFORM_LDFLAGS += -m elf64ltsmip
|
||||
endif
|
||||
|
||||
CONFIG_STANDALONE_LOAD_ADDR ?= 0xffffffff80200000 \
|
||||
-T $(srctree)/examples/standalone/mips64.lds
|
||||
|
Reference in New Issue
Block a user