thinkpad-ec/Makefile

38 lines
893 B
Makefile
Raw Normal View History

2016-04-19 08:54:06 +00:00
all:
false
#
# Radare didnt seem to let me specify the direcrory to store the project file,
# so this target hacks around that
#
install.radare.projects:
mkdir -p ~/.config/radare2/projects/x220.8DHT34WW.d
cp -s $(PWD)/radare/x220.8DHT34WW ~/.config/radare2/projects
2016-04-19 09:02:49 +00:00
#
# Download any ISO image that we have a checksum for
# NOTE: makes an assumption about the Lenovo URL not changing
%.iso: %.iso.sha1
wget -O $@ https://download.lenovo.com/pccbbs/mobiles/$@
sha1sum -c $<
touch $@
2016-04-19 09:20:27 +00:00
#
# If we have an extractor for this image, use it
%.img: %.extract %.img.sha1
2016-04-19 09:39:23 +00:00
./$< $@
sha1sum -c $@.sha1
2016-04-19 09:20:27 +00:00
2016-04-19 09:39:23 +00:00
mec-tools/Makefile:
git submodule update --init --remote
mec-tools/mec_encrypt: mec-tools/Makefile
make -C mec-tools
#
# TODO:
# - most of these dependancies could be automatically calculated
x220.8DHT34WW.extract: 8duj27us.iso
x230.G2HT35WW.extract: g2uj23us.iso mec-tools/mec_encrypt