46ea9703fa42130e26f2796d91540b3043502bea
[openwrt/openwrt.git] / target / linux / ar71xx / image / senao.mk
1 define Build/senao-factory-image
2 $(eval board=$(word 1,$(1)))
3 $(eval rootfs=$(word 2,$(1)))
4
5 mkdir -p $@.senao
6
7 touch $@.senao/FWINFO-OpenWrt-$(REVISION)-$(board)
8 $(CP) $(IMAGE_KERNEL) $@.senao/openwrt-senao-$(board)-uImage-lzma.bin
9 $(CP) $(rootfs) $@.senao/openwrt-senao-$(board)-root.squashfs
10
11 $(TAR) -czf $@ -C $@.senao .
12 rm -rf $@.senao
13 endef
14
15
16 define Device/ens202ext
17 DEVICE_TITLE := EnGenius ENS202EXT
18 BOARDNAME := ENS202EXT
19 DEVICE_PACKAGES += rssileds
20 KERNEL_SIZE := 1536k
21 KERNEL := kernel-bin | patch-cmdline | lzma | uImage lzma | check-size $$(KERNEL_SIZE)
22 IMAGE_SIZE := 12096k
23 IMAGES += factory.bin
24 IMAGE/factory.bin/squashfs := append-rootfs | pad-rootfs | senao-factory-image ens202ext $$$$@
25 MTDPARTS := spi0.0:256k(u-boot)ro,64k(u-boot-env),320k(custom)ro,13632k(firmware),2048k(failsafe)ro,64k(art)ro
26 endef
27 TARGET_DEVICES += ens202ext