.
[cbimages.git] / Makefile
index 7e10a56d9579de07653b6cab0df9ea5497f653c5..89015a292fdad1777061b3f45fc19cfddae54686 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -7,14 +7,21 @@ PROGRAMMER :=-p ft2232_spi:type=2232H,port=A
 all: readrom
 
 readrom:
-       sudo flashrom $(PROGRAMMER) -r $(DATE)_m5a99xevo.rom
+       flashrom $(PROGRAMMER) -r $(DATE)_m5a99xevo.rom
 
 writerom:
-       sudo flashrom $(PROGRAMMER) -n -w 2012-01-24_21:28_m5a99xevo.rom
+       flashrom $(PROGRAMMER) -w 2012-01-24_21:28_m5a99xevo.rom
 
 newlog:
+       cp ../repo/build/coreboot.rom $(DATE)_rom
+       cp ../seabios/out/bios.bin.elf $(DATE).seabios
+       cp ../seabios/.config $(DATE).seabios.config
+       cp ../repo/.config $(DATE).config
        stty -F /dev/ttyS0 115200 nl
-       cat /dev/ttyS0 | tee $(DATE)_coreboot.log
+       cat /dev/ttyS0 | tee $(DATE).log
 
 lastlog:
        vim `ls *.log | sort -rn | head -n1`
+
+difflog:
+       vimdiff `ls *.log | sort -rn | head -n2 | tr '\n' ' '`