Use sparse allocation of extra.img on Linux too

fallocate immediately allocates the full size of the file, even though
it likely won't end up being used.
This commit is contained in:
bjorn3 2023-12-17 12:44:30 +01:00
commit ffd64a8703

View file

@ -129,13 +129,8 @@ ifeq ($(UNAME),Darwin)
QEMUFLAGS+=-cpu $(QEMU_CPU)
endif
ifeq ($(UNAME),Linux)
$(BUILD)/extra.img:
fallocate --posix --length 1G $@
else
$(BUILD)/extra.img:
truncate -s 1g $@
endif
$(BUILD)/firmware.rom:
ifeq ($(ARCH),aarch64)