mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-11 15:37:23 +00:00
c52ebea1cc
Add support for targetting MIPS32r6 & MIPS64r6 systems, in the same way that we currently select release 1 or release 2 targets. MIPSr6 is not entirely backwards compatible with earlier releases of the architecture. Some instructions are encoded differently, some are removed, some are reused, so it is not practical to run U-Boot built for earlier revisions on a MIPSr6 system. Update their Kconfig help text to reflect that. Signed-off-by: Paul Burton <paul.burton@imgtec.com>
36 lines
1.1 KiB
Makefile
36 lines
1.1 KiB
Makefile
#
|
|
# SPDX-License-Identifier: GPL-2.0+
|
|
#
|
|
|
|
head-y := arch/mips/cpu/start.o
|
|
|
|
libs-y += arch/mips/cpu/
|
|
libs-y += arch/mips/lib/
|
|
|
|
machine-$(CONFIG_SOC_AU1X00) += au1x00
|
|
machine-$(CONFIG_ARCH_ATH79) += ath79
|
|
machine-$(CONFIG_MACH_PIC32) += pic32
|
|
|
|
machdirs := $(patsubst %,arch/mips/mach-%/,$(machine-y))
|
|
libs-y += $(machdirs)
|
|
|
|
PLATFORM_CPPFLAGS += $(patsubst %,-I$(srctree)/%include,$(machdirs))
|
|
|
|
# Optimize for MIPS architectures
|
|
arch-$(CONFIG_CPU_MIPS32_R1) += -march=mips32 -Wa,-mips32
|
|
arch-$(CONFIG_CPU_MIPS32_R2) += -march=mips32r2 -Wa,-mips32r2
|
|
arch-$(CONFIG_CPU_MIPS32_R6) += -march=mips32r6 -Wa,-mips32r6
|
|
arch-$(CONFIG_CPU_MIPS64_R1) += -march=mips64 -Wa,-mips64
|
|
arch-$(CONFIG_CPU_MIPS64_R2) += -march=mips64r2 -Wa,-mips64r2
|
|
arch-$(CONFIG_CPU_MIPS64_R6) += -march=mips64r6 -Wa,-mips64r6
|
|
|
|
# Allow extra optimization for specific CPUs/SoCs
|
|
tune-$(CONFIG_MIPS_TUNE_4KC) += -mtune=4kc
|
|
tune-$(CONFIG_MIPS_TUNE_14KC) += -mtune=14kc
|
|
tune-$(CONFIG_MIPS_TUNE_24KC) += -mtune=24kc
|
|
tune-$(CONFIG_MIPS_TUNE_74KC) += -mtune=74kc
|
|
|
|
# Include default header files
|
|
cflags-y += -I$(srctree)/arch/mips/include/asm/mach-generic
|
|
|
|
PLATFORM_CPPFLAGS += $(arch-y) $(tune-y) $(cflags-y)
|