From c6e02b49f65cb4eff624a0831d3db265b3fadd2a Mon Sep 17 00:00:00 2001 From: Daniel Engberg Date: Tue, 19 Jun 2018 08:44:54 +0200 Subject: [PATCH] octeon: Add and set CPU type Octeon+ as default The lowest CPU type used by supported Octeon platform is Octeon+ (EdgeRouter Lite) while EdgeRouter Pro/ER-8 uses Octeon II which is backwards compatible with Octeon+. Sources: https://community.ubnt.com/t5/EdgeRouter/EdgeRouter-Pro-CPU/td-p/654599 https://www.cavium.com/octeon-II-CN68XX.html "OCTEON II family is fully software compatible with the widely-adopted OCTEON Plus family" Signed-off-by: Daniel Engberg --- include/target.mk | 1 + target/linux/octeon/Makefile | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/include/target.mk b/include/target.mk index a97cda2c3a..6afbd75839 100644 --- a/include/target.mk +++ b/include/target.mk @@ -176,6 +176,7 @@ ifeq ($(DUMP),1) CPU_CFLAGS_24kc = -mips32r2 -mtune=24kc CPU_CFLAGS_74kc = -mips32r2 -mtune=74kc CPU_CFLAGS_octeon = -march=octeon -mabi=64 + CPU_CFLAGS_octeonplus = -march=octeon+ -mabi=64 endif ifeq ($(ARCH),i386) CPU_TYPE ?= pentium diff --git a/target/linux/octeon/Makefile b/target/linux/octeon/Makefile index bbf1296c21..6c0623cb9b 100644 --- a/target/linux/octeon/Makefile +++ b/target/linux/octeon/Makefile @@ -10,7 +10,7 @@ ARCH:=mips64 BOARD:=octeon BOARDNAME:=Cavium Networks Octeon FEATURES:=squashfs ramdisk pci usb -CPU_TYPE:=octeon +CPU_TYPE:=octeonplus MAINTAINER:=John Crispin KERNEL_PATCHVER:=4.14