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>
This commit is contained in:
David Bauer 2025-05-14 01:32:34 +02:00
parent 61da745817
commit d97c01a11f
1 changed files with 1 additions and 1 deletions

View File

@ -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