Automatically remove u-root.cpio before compilation. u-root doesn't do that

and if the file is soon created, it will dropped the creation of a new initramfs
This commit is contained in:
Jean-Marie Verdun 2018-03-12 10:28:35 +01:00
parent d6743abcc4
commit 8e69f8cdbf

View File

@ -7,6 +7,9 @@
u-root_url := github.com/u-root/u-root
u-root_output := $(build)/$(BOARD)/u-root.cpio
ifeq ($(shell test -e build/$(BOARD)/u-root.cpio && echo -n yes),yes)
$(shell rm $(build)/$(BOARD)/u-root.cpio)
endif
export GOPATH=$(build)/go