common-buffalo.mk 452 B

123456789101112131415161718192021
  1. define Build/buffalo-tftp-header
  2. ( \
  3. echo -n -e "# Airstation Public Fmt1" | dd bs=32 count=1 conv=sync; \
  4. dd if=$@; \
  5. ) > $@.new
  6. mv $@.new $@
  7. endef
  8. define Build/buffalo-tag
  9. $(eval product=$(word 1,$(1)))
  10. $(eval hwver=$(word 2,$(1)))
  11. $(STAGING_DIR_HOST)/bin/buffalo-tag \
  12. -c 0x80041000 -d 0x801e8000 -w $(hwver) \
  13. -a ath -v 1.99 -m 1.01 -f 1 \
  14. -b $(product) -p $(product) \
  15. -r M_ -l mlang8 \
  16. -i $@ -o $@.new
  17. mv $@.new $@
  18. endef