From 29804086ee7b740224d01012656162a9518deb97 Mon Sep 17 00:00:00 2001
From: Tony Ambardar <itugrok@yahoo.com>
Date: Sun, 16 Aug 2020 13:07:30 -0700
Subject: [PATCH] malta: relocate CPU_TYPE setting to subtarget makefiles

Move CPU_TYPE:=24kc (32-bit) from the top-level target makefile to the
be/le subtarget makefiles, which is consistent with the 64-bit subtargets.

Signed-off-by: Tony Ambardar <itugrok@yahoo.com>
---
 target/linux/malta/Makefile     | 1 -
 target/linux/malta/be/target.mk | 1 +
 target/linux/malta/le/target.mk | 1 +
 3 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/target/linux/malta/Makefile b/target/linux/malta/Makefile
index 3f2c92c766..4beeb64b8b 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)
-CPU_TYPE:=24kc
 SUBTARGETS:=le be le64 be64
 INITRAMFS_EXTRA_FILES:=
 FEATURES:=cpiogz ext4 ramdisk squashfs targz
diff --git a/target/linux/malta/be/target.mk b/target/linux/malta/be/target.mk
index 45949f50c8..8d306c8a15 100644
--- a/target/linux/malta/be/target.mk
+++ b/target/linux/malta/be/target.mk
@@ -1,4 +1,5 @@
 ARCH:=mips
+CPU_TYPE:=24kc
 SUBTARGET:=be
 BOARDNAME:=Big Endian
 
diff --git a/target/linux/malta/le/target.mk b/target/linux/malta/le/target.mk
index e642510621..feb0f1d04c 100644
--- a/target/linux/malta/le/target.mk
+++ b/target/linux/malta/le/target.mk
@@ -1,4 +1,5 @@
 ARCH:=mipsel
+CPU_TYPE:=24kc
 SUBTARGET:=le
 FEATURES+=source-only
 BOARDNAME:=Little Endian
-- 
2.30.2