Signed-off-by: Zoltan HERPAI <[email protected]> --- target/linux/ath79/image/common-netgear.mk | 22 ++++++++++++++++++++++ target/linux/ath79/image/generic.mk | 24 +----------------------- 2 files changed, 23 insertions(+), 23 deletions(-) create mode 100644 target/linux/ath79/image/common-netgear.mk
diff --git a/target/linux/ath79/image/common-netgear.mk b/target/linux/ath79/image/common-netgear.mk new file mode 100644 index 0000000..ca4e005 --- /dev/null +++ b/target/linux/ath79/image/common-netgear.mk @@ -0,0 +1,22 @@ +define Build/netgear-squashfs + rm -rf [email protected] [email protected] + mkdir -p [email protected]/image + cp $@ [email protected]/image/uImage + $(STAGING_DIR_HOST)/bin/mksquashfs-lzma \ + [email protected] [email protected] -be \ + -noappend -root-owned -b 65536 \ + $(if $(SOURCE_DATE_EPOCH),-fixed-time $(SOURCE_DATE_EPOCH)) + + dd if=/dev/zero bs=1k count=1 >> [email protected] + mkimage \ + -A mips -O linux -T filesystem -C none \ + -M $(NETGEAR_KERNEL_MAGIC) \ + -a 0xbf070000 -e 0xbf070000 \ + -n 'MIPS $(VERSION_DIST) Linux-$(LINUX_VERSION)' \ + -d [email protected] $@ + rm -rf [email protected] [email protected] +endef + +define Build/netgear-uImage + $(call Build/uImage,$(1) -M $(NETGEAR_KERNEL_MAGIC)) +endef diff --git a/target/linux/ath79/image/generic.mk b/target/linux/ath79/image/generic.mk index 9475d0a..6e662ce 100644 --- a/target/linux/ath79/image/generic.mk +++ b/target/linux/ath79/image/generic.mk @@ -1,26 +1,4 @@ -define Build/netgear-squashfs - rm -rf [email protected] [email protected] - mkdir -p [email protected]/image - cp $@ [email protected]/image/uImage - $(STAGING_DIR_HOST)/bin/mksquashfs-lzma \ - [email protected] [email protected] \ - -noappend -root-owned -be -b 65536 \ - $(if $(SOURCE_DATE_EPOCH),-fixed-time $(SOURCE_DATE_EPOCH)) - - dd if=/dev/zero bs=1k count=1 >> [email protected] - mkimage \ - -A mips -O linux -T filesystem -C none \ - -M $(NETGEAR_KERNEL_MAGIC) \ - -a 0xbf070000 -e 0xbf070000 \ - -n 'MIPS $(VERSION_DIST) Linux-$(LINUX_VERSION)' \ - -d [email protected] $@ - rm -rf [email protected] [email protected] -endef - -define Build/netgear-uImage - $(call Build/uImage,$(1) -M $(NETGEAR_KERNEL_MAGIC)) -endef - +include ./common-netgear.mk define Device/avm_fritz300e ATH_SOC := ar7242 -- 2.1.4 _______________________________________________ openwrt-devel mailing list [email protected] https://lists.openwrt.org/listinfo/openwrt-devel
