summaryrefslogtreecommitdiff
path: root/genconfig.py
AgeCommit message (Collapse)Author
2018-12-08genconfig: Do not generate *.old files for --config-outUlf Magnusson
Configuration files generated by --config-out would usually be an internal detail of the build system, so it's probably not helpful to generate *.old files for them. Pass save_old=False to write_config() to skip it.
2018-12-08Make {load,write}_config(filename=None) implement the standard behaviorUlf Magnusson
Make the previously obligatory 'filename' argument to load_config() and write_config() default to None, and have that implement the behavior you'd usually want: read/write either KCONFIG_CONFIG or ".config" if unset, and read the 'option defconfig_list' configuration file if KCONFIG_CONFIG/".config" doesn't exist. For load_config(), filename=None also allows the configuration file to be missing without raising an error. load_config() returns True if a local configuration file was loaded, which is useful to check in the menuconfig (if no local configuration file exists, we always want to prompt for saving the configuration when exiting). Also add a 'verbose' argument (default True) to load_config() and read_config() that makes them print which files were read/written in filename=None mode. Also generalize olddefconfig.py and oldconfig.py to not require there to already be a local configuration file. This was a bit silly for olddefconfig.py in particular. Remove the examples/defconfig.py script. It's a duplicate of olddefconfig.py.
2018-10-06Update genconfig usage descriptionUlf Magnusson
Didn't mention --config-out.
2018-10-03genconfig: Allow writing a full .config without incremental build infoUlf Magnusson
For projects that don't use incremental build information, it's a bit wasteful to generate it just to get an updated .config file to include in Makefiles. Add a '--config-out <filename>' option that just writes the updated .config file, for those cases. Also remove a redundant default=None argument for --sync-deps. None is the default value.
2018-06-22genconfig: Remove unused sys importUlf Magnusson
2018-06-06genconfig: Fix weird wording in descriptionUlf Magnusson
2018-06-06Add license tags to scriptsUlf Magnusson
Everything's ISC.
2018-06-05Turn syncconfig.py into genconfig.py and generate headerUlf Magnusson
There should be a script available that generates the output header for the build. It usually makes sense to generate both the header and any incremental build information at the same time (automatically during build), so roll them both into the same script.