ipq40xx: add MikroTik subtarget
authorRobert Marko <robimarko@gmail.com>
Thu, 12 Nov 2020 17:13:26 +0000 (18:13 +0100)
committerAlexander Couzens <lynxis@fe80.eu>
Sun, 17 Jan 2021 13:23:05 +0000 (14:23 +0100)
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>
target/linux/ipq40xx/Makefile
target/linux/ipq40xx/image/mikrotik.mk [new file with mode: 0644]
target/linux/ipq40xx/mikrotik/target.mk [new file with mode: 0644]

index 4d9b2debcaedf540fdac63d3062b0e8241f68adc..43b1fcb0f9f500a33444678471ba27726a811535 100644 (file)
@@ -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 (file)
index 0000000..e69de29
diff --git a/target/linux/ipq40xx/mikrotik/target.mk b/target/linux/ipq40xx/mikrotik/target.mk
new file mode 100644 (file)
index 0000000..4530a90
--- /dev/null
@@ -0,0 +1,4 @@
+BOARDNAME:=MikroTik
+FEATURES += minor
+KERNEL_IMAGES:=vmlinux
+IMAGES_DIR:=compressed