[source] lantiq: add image build template for NAND devices

LEDE Commits lede-commits at lists.infradead.org
Wed Jul 20 01:18:16 PDT 2016


nbd pushed a commit to source.git, branch master:
https://git.lede-project.org/?p=source.git;a=commitdiff;h=22c02060440d8930eb2f8f7fd510daa433694bd0

commit 22c02060440d8930eb2f8f7fd510daa433694bd0
Author: Felix Fietkau <nbd at nbd.name>
AuthorDate: Tue Jul 19 15:23:56 2016 +0200

    lantiq: add image build template for NAND devices
    
    Signed-off-by: Felix Fietkau <nbd at nbd.name>
---
 target/linux/lantiq/image/Makefile | 19 +++++++++++++++++++
 1 file changed, 19 insertions(+)

diff --git a/target/linux/lantiq/image/Makefile b/target/linux/lantiq/image/Makefile
index 788b275..da1ace9 100644
--- a/target/linux/lantiq/image/Makefile
+++ b/target/linux/lantiq/image/Makefile
@@ -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



More information about the lede-commits mailing list