From: Felix Fietkau Date: Tue, 19 Jul 2016 13:23:56 +0000 (+0200) Subject: lantiq: add image build template for NAND devices X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=22c02060440d8930eb2f8f7fd510daa433694bd0;p=openwrt%2Fstaging%2Fyousong.git lantiq: add image build template for NAND devices Signed-off-by: Felix Fietkau --- diff --git a/target/linux/lantiq/image/Makefile b/target/linux/lantiq/image/Makefile index 788b275dec..da1ace9711 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