From 8e69f8cdbfb35b8947792e037d528bce136680f7 Mon Sep 17 00:00:00 2001 From: Jean-Marie Verdun Date: Mon, 12 Mar 2018 10:28:35 +0100 Subject: [PATCH] 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 --- modules/u-root | 3 +++ 1 file changed, 3 insertions(+) diff --git a/modules/u-root b/modules/u-root index 0720a640..73936f22 100644 --- a/modules/u-root +++ b/modules/u-root @@ -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