Add a check that the correct qemu hard drive patch exists

pull/30/head
Hamish Coleman 7 years ago
parent 4cbc329c4a
commit b11165457f

@ -261,6 +261,11 @@ GETELTORITO := ./scripts/geteltorito
# extract the DOS boot image from an iso (and fix it up so qemu can boot it)
%.img: %.iso
$(GETELTORITO) -o $@ $<
if [ ! -e fix-hdd-image-`stat -c %s $@`.patch ]; then \
echo ERROR: need the correct fix-hdd-image patch; \
rm -f $@; \
false; \
fi
./scripts/hexpatch.pl --rm_on_fail $@ fix-hdd-image-`stat -c %s $@`.patch
$(call build_info,$<.bat)

Loading…
Cancel
Save