diff options
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/Kbuild.include | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/scripts/Kbuild.include b/scripts/Kbuild.include index dfadb1c94368..064f477dfdca 100644 --- a/scripts/Kbuild.include +++ b/scripts/Kbuild.include | |||
@@ -105,6 +105,12 @@ endif | |||
105 | $(make-cache): ; | 105 | $(make-cache): ; |
106 | -include $(make-cache) | 106 | -include $(make-cache) |
107 | 107 | ||
108 | # If cache exceeds 1000 lines, shrink it down to 500. | ||
109 | ifneq ($(word 1000,$(filter __cached_%, $(.VARIABLES))),) | ||
110 | $(shell tail -n 500 $(make-cache) > $(make-cache).tmp; \ | ||
111 | mv $(make-cache).tmp $(make-cache)) | ||
112 | endif | ||
113 | |||
108 | # Usage: $(call __sanitize-opt,Hello=Hola$(comma)Goodbye Adios) | 114 | # Usage: $(call __sanitize-opt,Hello=Hola$(comma)Goodbye Adios) |
109 | # | 115 | # |
110 | # Convert all '$', ')', '(', '\', '=', ' ', ',', ':' to '_' | 116 | # Convert all '$', ')', '(', '\', '=', ' ', ',', ':' to '_' |