From 7a523569f7f403cdd7c2074cc49920f1dd7ecc70 Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Wed, 18 Jan 2017 15:37:57 +0100 Subject: build: add support for automatically removing build dir contents during build This is used to save space on buildbot instances. If any part of a package needs to be rebuild, the whole package is rebuilt from scratch. Stamp files are preserved to allow dependency checks to work Signed-off-by: Felix Fietkau --- package/Makefile | 1 + 1 file changed, 1 insertion(+) (limited to 'package/Makefile') diff --git a/package/Makefile b/package/Makefile index 3250e7b7d0..3cf500d461 100644 --- a/package/Makefile +++ b/package/Makefile @@ -10,6 +10,7 @@ curdir:=package include $(INCLUDE_DIR)/rootfs.mk -include $(TMP_DIR)/.packagedeps +$(curdir)/autoremove:=1 $(curdir)/builddirs:=$(sort $(package-) $(package-y) $(package-m)) $(curdir)/builddirs-install:=. $(curdir)/builddirs-default:=. $(sort $(package-y) $(package-m)) -- cgit v1.2.3