mirror of
https://github.com/hamishcoleman/thinkpad-ec
synced 2024-11-04 06:00:12 +00:00
Ensure we have an original file left around to diff against later
This commit is contained in:
parent
5e88282a7b
commit
8f48e1c9c8
11
Makefile
11
Makefile
@ -18,12 +18,19 @@ install.radare.projects:
|
||||
sha1sum -c $<
|
||||
touch $@
|
||||
|
||||
#
|
||||
# Generate orig images so that we can diff against them later
|
||||
# If we have an extractor for this image, use it
|
||||
%.img: %.extract %.img.sha1
|
||||
%.img.orig: %.extract %.img.orig.sha1
|
||||
./$< $@
|
||||
sha1sum -c $@.sha1
|
||||
|
||||
# Generate a working file that we can patch
|
||||
%.img: %.img.orig
|
||||
cp $< $@
|
||||
|
||||
# keep intermediate files
|
||||
.SECONDARY:
|
||||
|
||||
mec-tools/Makefile:
|
||||
git submodule update --init --remote
|
||||
|
||||
|
1
x220.8DHT34WW.img.orig.sha1
Normal file
1
x220.8DHT34WW.img.orig.sha1
Normal file
@ -0,0 +1 @@
|
||||
d3c3db9352f8e3b5decc69abe08e725958f2284f x220.8DHT34WW.img.orig
|
@ -1 +0,0 @@
|
||||
d3c3db9352f8e3b5decc69abe08e725958f2284f x220.8DHT34WW.img
|
@ -12,7 +12,7 @@ if [ -z "$OUTPUT" ]; then
|
||||
exit 1
|
||||
fi
|
||||
|
||||
OUT1="${OUTPUT}.encrypted.orig"
|
||||
OUT1="${OUTPUT}.encrypted"
|
||||
|
||||
dd if=g2uj23us.iso bs=$[0x01076600] skip=1 | dd bs=196608 count=1 of="$OUT1"
|
||||
|
||||
|
1
x230.G2HT35WW.img.orig.sha1
Normal file
1
x230.G2HT35WW.img.orig.sha1
Normal file
@ -0,0 +1 @@
|
||||
d70f5434ef316a66a6195651d9e231e84a2464a1 x230.G2HT35WW.img.orig
|
@ -1 +0,0 @@
|
||||
d70f5434ef316a66a6195651d9e231e84a2464a1 x230.G2HT35WW.img
|
Loading…
Reference in New Issue
Block a user