Explorar el Código

build: remove old kernel-headers build directories

Saves space after updating kernel versions

Signed-off-by: Felix Fietkau <[email protected]>
Felix Fietkau hace 8 años
padre
commit
76b62e6022
Se han modificado 1 ficheros con 1 adiciones y 0 borrados
  1. 1 0
      toolchain/kernel-headers/Makefile

+ 1 - 0
toolchain/kernel-headers/Makefile

@@ -71,6 +71,7 @@ define Host/Configure/post/mipsel
 endef
 
 define Host/Prepare
+	rm -rf $(BUILD_DIR_TOOLCHAIN)/linux-*
 	$(call Kernel/Prepare/Default)
 	rm -f $(BUILD_DIR_TOOLCHAIN)/linux
 	ln -s linux-$(LINUX_VERSION) $(BUILD_DIR_TOOLCHAIN)/linux