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:
parent
2be98db644
commit
ffd64a8703
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue