lantiq: add image build template for NAND devices
authorFelix Fietkau <nbd@nbd.name>
Tue, 19 Jul 2016 13:23:56 +0000 (15:23 +0200)
committerFelix Fietkau <nbd@nbd.name>
Wed, 20 Jul 2016 08:13:50 +0000 (10:13 +0200)
Signed-off-by: Felix Fietkau <nbd@nbd.name>
target/linux/lantiq/image/Makefile

index 788b275decbce7763a267e3b52328d7732587613..da1ace9711dee99a5880e71a69144b8b58188804 100644 (file)
@@ -203,6 +203,25 @@ define Device/Default
 endef
 DEVICE_VARS += IMAGE_SIZE
 
+define Device/NAND/xway
+  BLOCKSIZE := 16KiB
+  PAGESIZE := 512
+  SUBPAGESIZE := 256
+  FILESYSTEMS += ubifs
+endef
+
+define Device/NAND/xrx200
+  BLOCKSIZE := 128KiB
+  PAGESIZE := 2048
+  SUBPAGESIZE := 512
+  FILESYSTEMS += ubifs
+endef
+
+define Device/NAND
+  $(Device/NAND/$(SUBTARGET))
+  IMAGE/sysupgrade.bin := sysupgrade-nand
+endef
+
 define Device/lantiqBrnImage
   KERNEL := kernel-bin | append-dtb | mkbrncmdline | lzma-no-dict
   IMAGES := factory.bin