X-Git-Url: http://git.ozo.com/?a=blobdiff_plain;f=target%2Flinux%2Fimage%2Far7%2FMakefile;h=3a803cbd8bb7c65e49ea53ab0ade3799264da7e2;hb=2f3d65dabad91870035f50cd7dc5fcf1f33fd2be;hp=38fce6bdfcc2a4a92f698f81f66acc36c39ab0e6;hpb=54259a7a47ca4130a5ee7e8172ef4fdab819fd59;p=openwrt-10.03%2F.git diff --git a/target/linux/image/ar7/Makefile b/target/linux/image/ar7/Makefile index 38fce6bdf..3a803cbd8 100644 --- a/target/linux/image/ar7/Makefile +++ b/target/linux/image/ar7/Makefile @@ -83,6 +83,19 @@ $(BIN_DIR)/openwrt-$(BOARD)-$(KERNEL)-$(FS)-$(1).bin: $(BIN_DIR)/openwrt-$(BOARD install: $(BIN_DIR)/openwrt-$(BOARD)-$(KERNEL)-$(FS)-$(1).bin endef +define sercomm_template +$(BIN_DIR)/openwrt-$(1)-$(KERNEL)-$(FS).bin: $(BIN_DIR)/openwrt-$(BOARD)-$(KERNEL)-$(FS).bin + cat sercomm/adam2.bin "$$^" > "$$@.tmp" + dd if=sercomm/$(1) of="$$@.tmp" bs=$$$$((0x3e0000 - 80)) seek=1 conv=notrunc + $(STAGING_DIR)/bin/dgfirmware -f -w "$$@" "$$@.tmp" + rm -f "$$@.tmp" + +install: $(BIN_DIR)/openwrt-$(1)-$(KERNEL)-$(FS).bin +endef + +$(eval $(call sercomm_template,dg834)) +$(eval $(call sercomm_template,jdr454wb)) + $(eval $(call pattern_template,AG1B)) $(eval $(call pattern_template,WA22)) $(eval $(call pattern_template,WAG2))