diff options
author | Felix Fietkau <nbd@nbd.name> | 2016-07-19 15:23:56 +0200 |
---|---|---|
committer | Felix Fietkau <nbd@nbd.name> | 2016-07-20 10:13:50 +0200 |
commit | 22c02060440d8930eb2f8f7fd510daa433694bd0 (patch) | |
tree | e6ca236fb866add5c9d8d33e84491ea72746ba7d /target/linux/lantiq/image | |
parent | 8058e4778bda5516a27facd3131c3d50d51efba0 (diff) | |
download | mtk-20170518-22c02060440d8930eb2f8f7fd510daa433694bd0.zip mtk-20170518-22c02060440d8930eb2f8f7fd510daa433694bd0.tar.gz mtk-20170518-22c02060440d8930eb2f8f7fd510daa433694bd0.tar.bz2 |
lantiq: add image build template for NAND devices
Signed-off-by: Felix Fietkau <nbd@nbd.name>
Diffstat (limited to 'target/linux/lantiq/image')
-rw-r--r-- | target/linux/lantiq/image/Makefile | 19 |
1 files changed, 19 insertions, 0 deletions
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 |