From 12b925dcbf63591db32c44523b81dad20b46e9a6 Mon Sep 17 00:00:00 2001 From: Florian Fainelli Date: Fri, 5 Apr 2013 12:36:45 +0000 Subject: [PATCH] malta: move 32-bits options to subtarget config Preliminary change to add support for MIPS64-based malta subtargets. Signed-off-by: Florian Fainelli SVN-Revision: 36210 --- target/linux/malta/Makefile | 1 - target/linux/malta/be/config-default | 8 ++++++++ target/linux/malta/be/target.mk | 1 + target/linux/malta/le/config-default | 8 ++++++++ target/linux/malta/le/target.mk | 1 + 5 files changed, 18 insertions(+), 1 deletion(-) diff --git a/target/linux/malta/Makefile b/target/linux/malta/Makefile index 9b342c8f5c0..eb3c8d3d46a 100644 --- a/target/linux/malta/Makefile +++ b/target/linux/malta/Makefile @@ -8,7 +8,6 @@ include $(TOPDIR)/rules.mk BOARD:=malta BOARDNAME:=MIPS Malta CoreLV board (qemu) -CFLAGS:=-Os -pipe -mips32r2 -mtune=mips32r2 -fno-caller-saves SUBTARGETS:=le be INITRAMFS_EXTRA_FILES:= MAINTAINER:=Florian Fainelli diff --git a/target/linux/malta/be/config-default b/target/linux/malta/be/config-default index ccc0ba4eb14..ed67d802aea 100644 --- a/target/linux/malta/be/config-default +++ b/target/linux/malta/be/config-default @@ -1,2 +1,10 @@ +CONFIG_32BIT=y +# CONFIG_64BIT is not set CONFIG_CPU_BIG_ENDIAN=y # CONFIG_CPU_LITTLE_ENDIAN is not set +CONFIG_CPU_MIPS32=y +# CONFIG_CPU_MIPS32_R1 is not set +CONFIG_CPU_MIPS32_R2=y +# CONFIG_CPU_MIPS64_R1 is not set +# CONFIG_CPU_MIPS64_R2 is not set +CONFIG_CPU_SUPPORTS_32BIT_KERNEL=y diff --git a/target/linux/malta/be/target.mk b/target/linux/malta/be/target.mk index 92ae58eb9d3..90b655c8d2d 100644 --- a/target/linux/malta/be/target.mk +++ b/target/linux/malta/be/target.mk @@ -3,6 +3,7 @@ ARCH_PACKAGES:=malta_mips SUBTARGET:=be BOARDNAME:=Big Endian FEATURES:=ramdisk mips16 +CFLAGS:=-Os -pipe -mips32r2 -mtune=mips32r2 -fno-caller-saves define Target/Description Build BE firmware images for MIPS Malta CoreLV board running in diff --git a/target/linux/malta/le/config-default b/target/linux/malta/le/config-default index 396e1b75f9b..368eca098a6 100644 --- a/target/linux/malta/le/config-default +++ b/target/linux/malta/le/config-default @@ -1,2 +1,10 @@ +CONFIG_32BIT=y +# CONFIG_64BIT is not set # CONFIG_CPU_BIG_ENDIAN is not set CONFIG_CPU_LITTLE_ENDIAN=y +CONFIG_CPU_MIPS32=y +# CONFIG_CPU_MIPS32_R1 is not set +CONFIG_CPU_MIPS32_R2=y +# CONFIG_CPU_MIPS64_R1 is not set +# CONFIG_CPU_MIPS64_R2 is not set +CONFIG_CPU_SUPPORTS_32BIT_KERNEL=y diff --git a/target/linux/malta/le/target.mk b/target/linux/malta/le/target.mk index 35fcf4cfe1f..3b6e8953d01 100644 --- a/target/linux/malta/le/target.mk +++ b/target/linux/malta/le/target.mk @@ -3,6 +3,7 @@ ARCH_PACKAGES:=malta_mipsel SUBTARGET:=le BOARDNAME:=Little Endian FEATURES:=ramdisk mips16 +CFLAGS:=-Os -pipe -mips32r2 -mtune=mips32r2 -fno-caller-saves define Target/Description Build LE firmware images for MIPS Malta CoreLV board running in -- 2.30.2