The multi-image install is a bit peculiar. It installs several target images and decides to softlink the last image to barebox-image, which is then used for image installs etc. The barebox-image only by chance pointing at the desired image.
When removing images, only the softlink is removed. We could go with removal of barebox* but I find that a bit too indiscriminating. So add removal of anything called barebox-*.img. Signed-off-by: Christian Melki <[email protected]> --- rules/barebox.make | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rules/barebox.make b/rules/barebox.make index 1c8463e63..dc37e7a62 100644 --- a/rules/barebox.make +++ b/rules/barebox.make @@ -212,7 +212,7 @@ $(STATEDIR)/barebox.clean: @$(call clean_pkg, BAREBOX) @$(foreach prog, $(BAREBOX_PROGS_HOST), \ rm -vf $(PTXDIST_SYSROOT_HOST)/bin/$(notdir $(prog))$(ptx/nl)) - @rm -vf $(IMAGEDIR)/barebox-image $(IMAGEDIR)/barebox-default-environment + @rm -vf $(IMAGEDIR)/barebox-image $(IMAGEDIR)/barebox-*.img $(IMAGEDIR)/barebox-default-environment # ---------------------------------------------------------------------------- # oldconfig / menuconfig -- 2.30.2 _______________________________________________ ptxdist mailing list [email protected] To unsubscribe, send a mail with subject "unsubscribe" to [email protected]
