diff options
| author | David Bauer | 2025-05-13 23:32:34 +0000 |
|---|---|---|
| committer | David Bauer | 2025-05-14 16:39:56 +0000 |
| commit | d97c01a11f7397de960fcac642bee49847176ade (patch) | |
| tree | 31d36a8d772a6cd3c995d2fef3d8b544f869c9de | |
| parent | 61da745817f28673b193d60bb4bc5b76dd215246 (diff) | |
| download | openwrt-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-x | target/linux/ramips/image/mt7621.mk | 2 |
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 |