summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Bauer2025-05-13 23:32:34 +0000
committerDavid Bauer2025-05-14 16:39:56 +0000
commitd97c01a11f7397de960fcac642bee49847176ade (patch)
tree31d36a8d772a6cd3c995d2fef3d8b544f869c9de
parent61da745817f28673b193d60bb4bc5b76dd215246 (diff)
downloadopenwrt-d97c01a11f7397de960fcac642bee49847176ade.tar.gz
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 <mail@david-bauer.net>
-rwxr-xr-xtarget/linux/ramips/image/mt7621.mk2
1 files changed, 1 insertions, 1 deletions
diff --git a/target/linux/ramips/image/mt7621.mk b/target/linux/ramips/image/mt7621.mk
index 38f102c1b6..79027c8c32 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