diff options
Diffstat (limited to 'target/linux/ar71xx/image/generic.mk')
-rw-r--r-- | target/linux/ar71xx/image/generic.mk | 81 |
1 files changed, 41 insertions, 40 deletions
diff --git a/target/linux/ar71xx/image/generic.mk b/target/linux/ar71xx/image/generic.mk index cf1b7d10d7..949fadb07c 100644 --- a/target/linux/ar71xx/image/generic.mk +++ b/target/linux/ar71xx/image/generic.mk @@ -1,3 +1,44 @@ +DEVICE_VARS += DAP_SIGNATURE SEAMA_SIGNATURE + +define Build/mkbuffaloimg + $(STAGING_DIR_HOST)/bin/mkbuffaloimg -B $(BOARDNAME) \ + -R $$(($(subst k, * 1024,$(ROOTFS_SIZE)))) \ + -K $$(($(subst k, * 1024,$(KERNEL_SIZE)))) \ + -i $@ -o $@.new + mv $@.new $@ +endef + +define Build/mkwrggimg + $(STAGING_DIR_HOST)/bin/mkwrggimg -b \ + -i $@ -o $@.imghdr -d /dev/mtdblock/1 \ + -m $(BOARDNAME) -s $(DAP_SIGNATURE) \ + -v LEDE -B $(REVISION) + mv $@.imghdr $@ +endef + +define Build/seama + $(STAGING_DIR_HOST)/bin/seama -i $@ $(if $(1),$(1),-m "dev=/dev/mtdblock/1" -m "type=firmware") + mv $@.seama $@ +endef + +define Build/seama-seal + $(call Build/seama,-s $@.seama $(1)) +endef + +define Build/uImageHiWiFi + # Field ih_name needs to start with "tw150v1" + mkimage -A $(LINUX_KARCH) \ + -O linux -T kernel \ + -C $(1) -a $(KERNEL_LOADADDR) -e $(if $(KERNEL_ENTRY),$(KERNEL_ENTRY),$(KERNEL_LOADADDR)) \ + -n 'tw150v1 $(call toupper,$(LINUX_KARCH)) LEDE Linux-$(LINUX_VERSION)' -d $@ $@.new + @mv $@.new $@ +endef + +define Build/wrgg-pad-rootfs + $(STAGING_DIR_HOST)/bin/padjffs2 $(IMAGE_ROOTFS) -c 64 >>$@ +endef + + define Device/ap531b0 DEVICE_TITLE := Rockeetech AP531B0 DEVICE_PACKAGES := kmod-usb-core kmod-usb2 @@ -645,15 +686,6 @@ endef TARGET_DEVICES += c-55 -define Build/uImageHiWiFi - # Field ih_name needs to start with "tw150v1" - mkimage -A $(LINUX_KARCH) \ - -O linux -T kernel \ - -C $(1) -a $(KERNEL_LOADADDR) -e $(if $(KERNEL_ENTRY),$(KERNEL_ENTRY),$(KERNEL_LOADADDR)) \ - -n 'tw150v1 $(call toupper,$(LINUX_KARCH)) LEDE Linux-$(LINUX_VERSION)' -d $@ $@.new - @mv $@.new $@ -endef - define Device/hiwifi-hc6361 DEVICE_TITLE := HiWiFi HC6361 DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-storage \ @@ -668,15 +700,6 @@ endef TARGET_DEVICES += hiwifi-hc6361 -define Build/seama - $(STAGING_DIR_HOST)/bin/seama -i $@ $(if $(1),$(1),-m "dev=/dev/mtdblock/1" -m "type=firmware") - mv $@.seama $@ -endef - -define Build/seama-seal - $(call Build/seama,-s $@.seama $(1)) -endef - define Device/seama LOADER_TYPE := bin BLOCKSIZE := 64k @@ -697,7 +720,6 @@ define Device/seama seama-seal -m "signature=$$$$(SEAMA_SIGNATURE)" | \ check-size $$$$(IMAGE_SIZE) SEAMA_SIGNATURE := - DEVICE_VARS += SEAMA_SIGNATURE endef define Device/dir-869-a1 @@ -746,18 +768,6 @@ endef TARGET_DEVICES += dir-869-a1 mynet-n600 mynet-n750 qihoo-c301 -define Build/mkwrggimg - $(STAGING_DIR_HOST)/bin/mkwrggimg -b \ - -i $@ -o $@.imghdr -d /dev/mtdblock/1 \ - -m $(BOARDNAME) -s $(DAP_SIGNATURE) \ - -v LEDE -B $(REVISION) - mv $@.imghdr $@ -endef - -define Build/wrgg-pad-rootfs - $(STAGING_DIR_HOST)/bin/padjffs2 $(IMAGE_ROOTFS) -c 64 >>$@ -endef - define Device/dap-2695-a1 DEVICE_TITLE := D-Link DAP-2695 rev. A1 DEVICE_PACKAGES := ath10k-firmware-qca988x kmod-ath10k @@ -770,19 +780,10 @@ define Device/dap-2695-a1 KERNEL_INITRAMFS := $$(KERNEL) | mkwrggimg MTDPARTS = spi0.0:256k(bootloader)ro,64k(bdcfg)ro,64k(rgdb)ro,64k(langpack)ro,15360k(firmware),448k(captival)ro,64k(certificate)ro,64k(radiocfg)ro DAP_SIGNATURE := wapac02_dkbs_dap2695 - DEVICE_VARS += DAP_SIGNATURE endef TARGET_DEVICES += dap-2695-a1 -define Build/mkbuffaloimg - $(STAGING_DIR_HOST)/bin/mkbuffaloimg -B $(BOARDNAME) \ - -R $$(($(subst k, * 1024,$(ROOTFS_SIZE)))) \ - -K $$(($(subst k, * 1024,$(KERNEL_SIZE)))) \ - -i $@ -o $@.new - mv $@.new $@ -endef - define Device/bhr-4grv2 DEVICE_TITLE := Buffalo BHR-4GRV2 BOARDNAME := BHR-4GRV2 |