Now that kconfig can load multiple configurations, it becomes simple to integrate the split config step, by simply comparing the new .config file with the old auto.conf (and then saving the new auto.conf). A nice side effect is that this saves a bit of disk space and cache, as no data needs to be read from or saved into the splitted config files anymore (e.g. include/config is now 648KB instead of 5.2MB).
Showing the changes to scripts/basic/Makefile (1 of 8 files). Show all
Unified · Split
| @@ -1,17 +1,15 @@ | |||
| 1 | ### | 1 | ### |
| 2 | # Makefile.basic list the most basic programs used during the build process. | 2 | # Makefile.basic list the most basic programs used during the build process. |
| 3 | # The programs listed herein is what is needed to do the basic stuff, | 3 | # The programs listed herein is what is needed to do the basic stuff, |
| 4 | # such as splitting .config and fix dependency file. | 4 | # such as fix dependency file. |
| 5 | # This initial step is needed to avoid files to be recompiled | 5 | # This initial step is needed to avoid files to be recompiled |
| 6 | # when kernel configuration changes (which is what happens when | 6 | # when kernel configuration changes (which is what happens when |
| 7 | # .config is included by main Makefile. | 7 | # .config is included by main Makefile. |
| 8 | # --------------------------------------------------------------------------- | 8 | # --------------------------------------------------------------------------- |
| 9 | # fixdep: Used to generate dependency information during build process | 9 | # fixdep: Used to generate dependency information during build process |
| 10 | # split-include: Divide all config symbols up in a number of files in | ||
| 11 | # include/config/... | ||
| 12 | # docproc: Used in Documentation/docbook | 10 | # docproc: Used in Documentation/docbook |
| 13 | 11 | ||
| 14 | hostprogs-y := fixdep split-include docproc | 12 | hostprogs-y := fixdep docproc |
| 15 | always := $(hostprogs-y) | 13 | always := $(hostprogs-y) |
| 16 | 14 | ||
| 17 | # fixdep is needed to compile other host programs | 15 | # fixdep is needed to compile other host programs |