1
0
mirror of https://git.openwrt.org/openwrt/openwrt.git synced 2024-10-19 05:58:53 +02:00
openwrt/include
Paul Spooren fee31628c4 imagebuilder: clean KDIR_TMP before building
Building images usally stores them in KDIR_TMP and then copies them over
to BIN_DIR. This is fine as rebuilding of images overwrites existing
images. When using the EXTRA_IMAGE_NAME variable frequently this fills
up the ImageBuilder KDIR_TMP folder since every built image is stored
forever.

This commit clears the KDIR_TMP folder before building a new image.

Below an example how sysupgrade.openwrt.org filled up after the release
of 22.03.0 where every created image contains a hash of the package
selction in the filename:

     aparcar@asu-01:~/asu/worker1/cache/22.03.0$ du -d 1 -h
     400M    ./kirkwood
     260M    ./gemini
     2.0G    ./ipq806x
     1.7G    ./ipq40xx
     8.1G    ./ramips
     4.0K    ./octeon
     495M    ./sunxi
     728M    ./lantiq
     1.8G    ./rockchip
     3.7G    ./mediatek
     4.0K    ./realtek
     5.4G    ./mvebu
     8.9G    ./ath79
     3.0G    ./bcm47xx
     14G     ./bcm27xx
     11G     ./x86
     4.0K    ./bcm63xx
     312M    ./mpc85xx
     600M    ./apm821xx
     5.4G    ./bcm53xx
     66G     .

Signed-off-by: Paul Spooren <mail@aparcar.org>
2022-09-10 21:07:24 +02:00
..
site
autotools.mk libiconv-stub: remove 2022-07-15 15:21:44 +02:00
bpf.mk
cmake.mk
debug.mk
depends.mk
device_table.txt
download.mk
feeds.mk
hardened-ld-pie.specs
hardening.mk
host-build.mk
image-commands.mk image-commands: fix generating out-of-tree DTO 2022-07-30 19:04:36 +02:00
image.mk imagebuilder: clean KDIR_TMP before building 2022-09-10 21:07:24 +02:00
kernel-5.10 kernel: bump 5.10 to 5.10.139 2022-08-31 23:25:39 +02:00
kernel-5.15 kernel: bump 5.15 to 5.15.67 2022-09-09 21:08:37 +01:00
kernel-build.mk build: drop HOST_LOADLIBES 2022-05-18 13:32:06 +03:00
kernel-defaults.mk kernel: set SOURCE_DATE_EPOCH for initramfs root dir 2022-04-06 12:20:26 +01:00
kernel-version.mk
kernel.mk kernel: filter -no-plt from KCFLAGS 2022-06-21 16:41:17 +01:00
logo.png include: update logo with better kerning 2021-01-18 09:31:39 -10:00
logo.svg
meson.mk tools/meson: update to 0.61.4 2022-04-09 15:56:04 +02:00
netfilter.mk kernel: kmod-ipt-ulog: Remove package 2022-08-10 21:36:17 +02:00
nls.mk libiconv-stub: remove 2022-07-15 15:21:44 +02:00
openssl-engine.mk openssl: move engine.mk to INCLUDE_DIR 2022-03-23 23:13:51 +00:00
package-bin.mk
package-defaults.mk
package-dumpinfo.mk
package-ipkg.mk tools: build bash on macOS and use it for ipkg-build 2022-01-27 13:38:48 +01:00
package-seccomp.mk
package.mk
prereq-build.mk build: provide xxd -i with scripts/xxdi.pl 2022-09-06 08:04:53 +02:00
prereq.mk
quilt.mk quilt.mk: fix typo in the Host section 2022-03-19 16:13:58 +01:00
rootfs.mk
scan.awk
scan.mk build: fix find warning with SCAN_EXTRA 2022-06-05 15:38:27 +02:00
shell.sh
subdir.mk
target.mk build: target: improve UX of CONFIG_TARGET handling 2022-04-15 07:11:18 +02:00
toolchain-build.mk toolchain: fix dangling symlink to self in FixupLibdir 2022-07-01 19:17:36 +02:00
toplevel.mk build: export STAGING_DIR_HOST in toplevel make code 2022-09-05 11:17:19 +02:00
trusted-firmware-a.mk trusted-firmware-a.mk: pass DTC path similar to u-boot.mk 2022-08-28 19:01:55 +01:00
u-boot.mk u-boot.mk: add LOCALVERSION (explicitly specify OpenWrt build) 2022-02-28 23:54:52 +01:00
uclibc++.mk
unpack.mk
verbose.mk verbose.mk: print ERROR messages in non-verbose 2022-02-28 23:52:13 +01:00
version.mk