make newlog
[cbimages.git] / Makefile
index 79e809f27822b1d78208921813570e7a3a3540bd..700c022af3d1c46ae1f989ef57126f97e15a964f 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,12 +1,17 @@
 DATE := $(shell date "+%F_%R")
 
+PROGRAMMER :=-p ft2232_spi:type=2232H,port=A
 
 .PHONY: all readrom
 
 all: readrom
 
 readrom:
-       sudo flashrom -r $(DATE)_m5a99xevo.rom
+       sudo flashrom $(PROGRAMMER) -r $(DATE)_m5a99xevo.rom
 
 writerom:
-       sudo flashrom -w 2012-01-24_21:28_m5a99xevo.rom
+       sudo flashrom $(PROGRAMMER) -n -w 2012-01-24_21:28_m5a99xevo.rom
+
+newlog:
+       stty -F /dev/ttyS0 115200 nl
+       cat /dev/ttyS0 | tee $(DATE)_coreboot.log