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
parent 2be98db644
commit ffd64a8703

View file

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