Signed-off-by: Wills Wang <[email protected]>
---

Changes in v4: None
Changes in v3: None
Changes in v2: None

 arch/mips/Makefile | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/arch/mips/Makefile b/arch/mips/Makefile
index da5fa72..0be5e64 100644
--- a/arch/mips/Makefile
+++ b/arch/mips/Makefile
@@ -2,6 +2,13 @@
 # SPDX-License-Identifier:     GPL-2.0+
 #
 
+tune-$(CONFIG_OPTIMIZE_CPU_MIPS_4KC)   =-mtune=4kc
+tune-$(CONFIG_OPTIMIZE_CPU_MIPS_24KC)  =-mtune=24kc
+
+tune-y := $(tune-y)
+
+PLATFORM_CPPFLAGS += $(tune-y)
+
 head-y := arch/mips/cpu/start.o
 
 libs-y += arch/mips/cpu/
-- 
1.9.1

_______________________________________________
U-Boot mailing list
[email protected]
http://lists.denx.de/mailman/listinfo/u-boot

Reply via email to