ar71xx/image: make tar calls reproducible
[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) -c \
12 $(if $(SOURCE_DATE_EPOCH),--mtime="@$(SOURCE_DATE_EPOCH)") \
13 -C $@.senao . | gzip -9nc > $@
14
15 rm -rf $@.senao
16 endef
17
18
19 define Device/ens202ext
20 DEVICE_TITLE := EnGenius ENS202EXT
21 BOARDNAME := ENS202EXT
22 DEVICE_PACKAGES += rssileds
23 KERNEL_SIZE := 1536k
24 KERNEL := kernel-bin | patch-cmdline | lzma | uImage lzma | check-size $$(KERNEL_SIZE)
25 IMAGE_SIZE := 12096k
26 IMAGES += factory.bin
27 IMAGE/factory.bin/squashfs := append-rootfs | pad-rootfs | senao-factory-image ens202ext $$$$@
28 MTDPARTS := spi0.0:256k(u-boot)ro,64k(u-boot-env),320k(custom)ro,13632k(firmware),2048k(failsafe)ro,64k(art)ro
29 endef
30 TARGET_DEVICES += ens202ext