From: David Bauer Date: Tue, 13 May 2025 23:32:34 +0000 (+0200) Subject: ramips: clean UBI tempdir before image creation X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d97c01a11f7397de960fcac642bee49847176ade;p=thirdparty%2Fopenwrt.git ramips: clean UBI tempdir before image creation Clean the temporary directory the UBI image is generated from before generation. Currently it is removed after the image generation, which leads to files possibly not being cleared after a build failure in this step. Signed-off-by: David Bauer --- diff --git a/target/linux/ramips/image/mt7621.mk b/target/linux/ramips/image/mt7621.mk index 38f102c1b6e..79027c8c32a 100755 --- a/target/linux/ramips/image/mt7621.mk +++ b/target/linux/ramips/image/mt7621.mk @@ -92,6 +92,7 @@ define Build/inteno-y3-header endef define Build/inteno-bootfs + rm -rf $@.ubifs-dir mkdir -p $@.ubifs-dir/boot # populate the boot fs with the dtb and the kernel image @@ -100,7 +101,6 @@ define Build/inteno-bootfs # create ubifs $(STAGING_DIR_HOST)/bin/mkfs.ubifs ${MKUBIFS_OPTS} -r $@.ubifs-dir/ -o $@.new - rm -rf $@.ubifs-dir mv $@.new $@ endef