aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRobert Marko <robimarko@gmail.com>2020-11-12 18:13:26 +0100
committerAlexander Couzens <lynxis@fe80.eu>2021-01-17 14:23:05 +0100
commitb779da27ef4a1bf47c8ae67809ecae99ba3ffa08 (patch)
tree606e32d5b712495cdea2ce8e6a540e294d5f8091
parent10d057f84ad13853089b312bb61ecd042ebbb712 (diff)
downloadupstream-b779da27ef4a1bf47c8ae67809ecae99ba3ffa08.tar.gz
upstream-b779da27ef4a1bf47c8ae67809ecae99ba3ffa08.tar.bz2
upstream-b779da27ef4a1bf47c8ae67809ecae99ba3ffa08.zip
ipq40xx: add MikroTik subtarget
MikroTik devices require the use of raw vmlinux out of the self extracting compressed kernels. They also require 4K sectors, kernel2minor, partition parser as well as RouterBoard platform drivers. So in order to not add unnecessary code to the generic sub target lets introduce a MikroTik sub target. Signed-off-by: Robert Marko <robimarko@gmail.com>
-rw-r--r--target/linux/ipq40xx/Makefile2
-rw-r--r--target/linux/ipq40xx/image/mikrotik.mk0
-rw-r--r--target/linux/ipq40xx/mikrotik/target.mk4
3 files changed, 5 insertions, 1 deletions
diff --git a/target/linux/ipq40xx/Makefile b/target/linux/ipq40xx/Makefile
index 4d9b2debca..43b1fcb0f9 100644
--- a/target/linux/ipq40xx/Makefile
+++ b/target/linux/ipq40xx/Makefile
@@ -6,7 +6,7 @@ BOARDNAME:=Qualcomm Atheros IPQ40XX
FEATURES:=squashfs fpu ramdisk nand
CPU_TYPE:=cortex-a7
CPU_SUBTYPE:=neon-vfpv4
-SUBTARGETS:=generic
+SUBTARGETS:=generic mikrotik
KERNEL_PATCHVER:=5.4
KERNEL_TESTING_PATCHVER:=5.4
diff --git a/target/linux/ipq40xx/image/mikrotik.mk b/target/linux/ipq40xx/image/mikrotik.mk
new file mode 100644
index 0000000000..e69de29bb2
--- /dev/null
+++ b/target/linux/ipq40xx/image/mikrotik.mk
diff --git a/target/linux/ipq40xx/mikrotik/target.mk b/target/linux/ipq40xx/mikrotik/target.mk
new file mode 100644
index 0000000000..4530a90985
--- /dev/null
+++ b/target/linux/ipq40xx/mikrotik/target.mk
@@ -0,0 +1,4 @@
+BOARDNAME:=MikroTik
+FEATURES += minor
+KERNEL_IMAGES:=vmlinux
+IMAGES_DIR:=compressed