flm01/mote/v2/openwrt/patches/920-add-make-flash-option.p...

21 lines
526 B
Diff
Raw Permalink Normal View History

--- Makefile (revision 26802)
+++ Makefile (working copy)
@@ -90,6 +90,17 @@
package/symlinks-clean:
$(SCRIPT_DIR)/feeds uninstall -a
+# flash the target with Sven Ola's ap51-flash tool
+SUDO=sudo
+AP51=tools/ap51-flash
+ETH=eth0
+BINDIR=bin/atheros
+ROOTFS=$(BINDIR)/openwrt-atheros-root.squashfs
+KERNEL=$(BINDIR)/openwrt-atheros-vmlinux.lzma
+
+flash:
+ $(SUDO) $(AP51) $(ETH) $(ROOTFS) $(KERNEL)
+
.PHONY: clean dirclean prereq prepare world package/symlinks package/symlinks-install package/symlinks-clean
endif