projects
/
openwrt
/
openwrt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
ramips: use new image build code for WHR-G300N
[openwrt/openwrt.git]
/
target
/
linux
/
ramips
/
image
/
rt305x.mk
diff --git
a/target/linux/ramips/image/rt305x.mk
b/target/linux/ramips/image/rt305x.mk
index 4e82eb48a980b0f2071f1aa5e4f2ee2b7480b353..dbf15bc7d7f2abda363a4d87b7f1ef78bd7b9b87 100644
(file)
--- a/
target/linux/ramips/image/rt305x.mk
+++ b/
target/linux/ramips/image/rt305x.mk
@@
-1,6
+1,16
@@
#
# RT305X Profiles
#
#
# RT305X Profiles
#
+define Build/buffalo-tftp-header
+ ( \
+ echo -n -e "# Airstation FirmWare\nrun u_fw\nreset\n\n" | \
+ dd bs=512 count=1 conv=sync; \
+ dd if=$@; \
+ ) > $@.tmp && \
+ $(STAGING_DIR_HOST)/bin/buffalo-tftp -i $@.tmp -o $@.new
+ mv $@.new $@
+endef
+
define Build/dap-header
$(STAGING_DIR_HOST)/bin/mkdapimg $(1) -i $@ -o $@.new
mv $@.new $@
define Build/dap-header
$(STAGING_DIR_HOST)/bin/mkdapimg $(1) -i $@ -o $@.new
mv $@.new $@
@@
-745,6
+755,17
@@
define Device/wcr-150gn
endef
TARGET_DEVICES += wcr-150gn
endef
TARGET_DEVICES += wcr-150gn
+define Device/whr-g300n
+ DTS := WHR-G300N
+ BLOCKSIZE := 64k
+ IMAGE_SIZE := 3801088
+ DEVICE_TITLE := Buffalo WHR-G300N
+ IMAGES += tftp.bin
+ IMAGE/tftp.bin := $$(sysupgrade_bin) | \
+ check-size $$$$(IMAGE_SIZE) | buffalo-tftp-header
+endef
+TARGET_DEVICES += whr-g300n
+
define Device/wizard8800
DTS := WIZARD8800
UIMAGE_NAME:= Linux Kernel Image
define Device/wizard8800
DTS := WIZARD8800
UIMAGE_NAME:= Linux Kernel Image