Makefile:$(RAW_IMAGE) add stage4 tarball as a dependency.

If not then re-making the image won't happen if the image already exists
but older than the stage4.
This commit is contained in:
Albert Hopkins 2015-02-27 20:10:20 +00:00
parent 0799c48705
commit 8240a836e1
1 changed files with 2 additions and 1 deletions

View File

@ -85,7 +85,8 @@ unexport PKGDIR ARCH
all: image all: image
$(RAW_IMAGE): $(RAW_IMAGE): $(STAGE4_TARBALL)
rm -f $(RAW_IMAGE)
qemu-img create -f raw $(RAW_IMAGE).tmp $(DISK_SIZE) qemu-img create -f raw $(RAW_IMAGE).tmp $(DISK_SIZE)
mv $(RAW_IMAGE).tmp $(RAW_IMAGE) mv $(RAW_IMAGE).tmp $(RAW_IMAGE)