diff options
Diffstat (limited to 'target/linux/ath79/image')
-rw-r--r-- | target/linux/ath79/image/Makefile | 4 | ||||
-rw-r--r-- | target/linux/ath79/image/bin/pisen_wmb001n_factory-header.bin | bin | 0 -> 288 bytes | |||
-rw-r--r-- | target/linux/ath79/image/generic.mk | 29 |
3 files changed, 33 insertions, 0 deletions
diff --git a/target/linux/ath79/image/Makefile b/target/linux/ath79/image/Makefile index 734f27e689..24768ef5e0 100644 --- a/target/linux/ath79/image/Makefile +++ b/target/linux/ath79/image/Makefile @@ -36,6 +36,10 @@ define Build/loader-okli mv "$@.new" "$@" endef +define Build/append-loader-okli + cat "$(KDIR)/loader-$(word 1,$(1)).$(LOADER_TYPE)" >> "$@" +endef + define Build/relocate-kernel rm -rf $@.relocate $(CP) ../../generic/image/relocate $@.relocate diff --git a/target/linux/ath79/image/bin/pisen_wmb001n_factory-header.bin b/target/linux/ath79/image/bin/pisen_wmb001n_factory-header.bin Binary files differnew file mode 100644 index 0000000000..99e1e8a2db --- /dev/null +++ b/target/linux/ath79/image/bin/pisen_wmb001n_factory-header.bin diff --git a/target/linux/ath79/image/generic.mk b/target/linux/ath79/image/generic.mk index abaf1a3e07..5127cfd510 100644 --- a/target/linux/ath79/image/generic.mk +++ b/target/linux/ath79/image/generic.mk @@ -58,6 +58,18 @@ define Build/nec-fw mv $@.new $@ endef +define Build/pisen_wmb001n-factory + -[ -f "$@" ] && \ + mkdir -p "$@.tmp" && \ + cp "$(KDIR)/loader-$(word 1,$(1)).uImage" "$@.tmp/uImage" && \ + mv "$@" "$@.tmp/rootfs" && \ + cp "bin/pisen_wmb001n_factory-header.bin" "$@" && \ + $(TAR) -cp --numeric-owner --owner=0 --group=0 --mode=a-s --sort=name \ + $(if $(SOURCE_DATE_EPOCH),--mtime="@$(SOURCE_DATE_EPOCH)") \ + -C "$@.tmp" . | gzip -9n >> "$@" && \ + rm -rf "$@.tmp" +endef + define Device/seama KERNEL := kernel-bin | append-dtb | relocate-kernel | lzma KERNEL_INITRAMFS := $$(KERNEL) | seama @@ -775,6 +787,23 @@ define Device/netgear_wndr3700v2 endef TARGET_DEVICES += netgear_wndr3700v2 +define Device/pisen_wmb001n + ATH_SOC := ar9341 + DEVICE_VENDOR := PISEN + DEVICE_MODEL := WMB001N + IMAGE_SIZE := 14080k + DEVICE_PACKAGES := kmod-i2c-core kmod-i2c-gpio kmod-usb2 + LOADER_TYPE := bin + LOADER_FLASH_OFFS := 0x20000 + COMPILE := loader-$(1).bin loader-$(1).uImage + COMPILE/loader-$(1).bin := loader-okli-compile + COMPILE/loader-$(1).uImage := append-loader-okli $(1) | pad-to 64k | lzma | uImage lzma + KERNEL := kernel-bin | append-dtb | lzma | uImage lzma -M 0x4f4b4c49 + IMAGES += factory.bin + IMAGE/factory.bin := $$(IMAGE/sysupgrade.bin) | pisen_wmb001n-factory $(1) +endef +TARGET_DEVICES += pisen_wmb001n + define Device/pisen_wmm003n $(Device/tplink-8mlzma) ATH_SOC := ar9331 |