1 define Build/netgear-squashfs
2 rm -rf $@.fs $@.squashfs
4 cp $@ $@.fs/image/uImage
5 $(STAGING_DIR_HOST)/bin/mksquashfs-lzma \
6 $@.fs $@.squashfs -be \
7 -noappend -root-owned -b 65536 \
8 $(if $(SOURCE_DATE_EPOCH),-fixed-time $(SOURCE_DATE_EPOCH))
10 dd if=/dev/zero bs=1k count=1 >> $@.squashfs
12 -A mips -O linux -T filesystem -C none \
13 -M $(NETGEAR_KERNEL_MAGIC) \
14 -a 0xbf070000 -e 0xbf070000 \
15 -n 'MIPS $(VERSION_DIST) Linux-$(LINUX_VERSION)' \
17 rm -rf $@.squashfs $@.fs
20 define Build/netgear-uImage
21 $(call Build/uImage,$(1) -M $(NETGEAR_KERNEL_MAGIC))