2007-02-24 11:00:05 +00:00
|
|
|
# Overall toolchain configuration: paths, jobs, etc...
|
|
|
|
|
2019-01-21 00:42:12 +00:00
|
|
|
config VERSION
|
2017-09-01 20:31:35 +00:00
|
|
|
string
|
2020-12-09 08:42:54 +00:00
|
|
|
default "$(CT_VERSION)"
|
2017-09-01 20:31:35 +00:00
|
|
|
|
2019-01-21 00:42:12 +00:00
|
|
|
# Config version checking framework. If CONFIG_VERSION is unset in the current .config
|
|
|
|
# or defconfig, it is loaded as 0 (possibly triggering a user prompt during 'ct-ng oldconfig').
|
|
|
|
# If the value of CONFIG_VERSION is older than CONFIG_VERSION_CURRENT, we'll advice the user
|
|
|
|
# to run the configuration through an upgrade. If it is newer, we'll error out - I have no
|
|
|
|
# crystal orb to perform the downgrade.
|
|
|
|
|
|
|
|
# Hack to make kconfig save/load the value for CONFIG_VERSION. Set to empty value (for
|
|
|
|
# normal operations like 'ct-ng menuconfig'); 'load' for creating a configuration from a (potentially)
|
|
|
|
# old file, i.e. 'ct-ng <sample>' or 'ct-ng oldconfig'; 'save' for saving the current configuration,
|
|
|
|
# i.e. 'ct-ng saveconfig' or 'ct-ng savedefconfig'.
|
|
|
|
config VCHECK
|
|
|
|
string
|
2020-12-09 08:42:54 +00:00
|
|
|
default "$(CT_VCHECK)"
|
2019-01-21 00:42:12 +00:00
|
|
|
|
2019-01-28 03:04:15 +00:00
|
|
|
# Kconfig's idiosynchrasy: it does not output the config settings declared with 'option env'
|
|
|
|
# to the generated .config file. Must use one extra level of indirection.
|
|
|
|
config CONFIG_VERSION_ENV
|
|
|
|
string
|
2020-12-09 08:42:54 +00:00
|
|
|
default "$(CT_CONFIG_VERSION_CURRENT)"
|
2019-01-28 03:04:15 +00:00
|
|
|
|
|
|
|
# Up-to-date version of the configuration file. If saving a defconfig, choose a default that
|
|
|
|
# is guaranteed not to match - so that kconfig saves the value to .config.
|
2019-01-21 00:42:12 +00:00
|
|
|
config CONFIG_VERSION_CURRENT
|
|
|
|
string
|
2019-01-28 03:04:15 +00:00
|
|
|
default CONFIG_VERSION_ENV
|
2019-01-21 00:42:12 +00:00
|
|
|
|
2019-01-28 03:04:15 +00:00
|
|
|
# Version used by the config being loaded (e.g. as part of 'oldconfig' or recalling
|
|
|
|
# a defconfig. Make it changeable while loading/saving to force writing it to defconfig.
|
2019-01-21 00:42:12 +00:00
|
|
|
config CONFIG_VERSION
|
|
|
|
string
|
|
|
|
prompt "** make it changeable **" if VCHECK = "load" || VCHECK = "save"
|
2019-01-28 03:04:15 +00:00
|
|
|
default "0" if VCHECK = "load" || VCHECK = "save"
|
2019-01-21 00:42:12 +00:00
|
|
|
default CONFIG_VERSION_CURRENT
|
|
|
|
|
2019-03-25 21:05:25 +00:00
|
|
|
config INVALID_CONFIGURATION
|
|
|
|
bool
|
|
|
|
|
2019-01-21 00:42:12 +00:00
|
|
|
if VCHECK = "warning"
|
|
|
|
comment "*************************************************************************"
|
|
|
|
comment "Loaded configuration was generated by a previous version of crosstool-NG."
|
|
|
|
comment "Saving it will mark the configuration as up-to-date without verifying it."
|
|
|
|
comment "It is recommended to run \"ct-ng upgradeconfig\" before making any "
|
|
|
|
comment "changes to the configuration. "
|
|
|
|
comment "*************************************************************************"
|
|
|
|
endif
|
|
|
|
|
2010-07-28 19:32:42 +00:00
|
|
|
# Allow unconditional usage of tristates
|
|
|
|
config MODULES
|
2019-01-21 00:42:12 +00:00
|
|
|
def_bool y
|
2015-09-07 11:30:18 +00:00
|
|
|
option modules
|
2010-07-28 19:32:42 +00:00
|
|
|
|
2007-02-24 11:00:05 +00:00
|
|
|
menu "Paths and misc options"
|
|
|
|
|
2008-04-17 20:26:25 +00:00
|
|
|
source "config/global/ct-behave.in"
|
2008-07-19 22:39:15 +00:00
|
|
|
source "config/global/paths.in"
|
2008-07-19 21:22:58 +00:00
|
|
|
source "config/global/download.in"
|
|
|
|
source "config/global/extract.in"
|
2008-04-17 20:26:25 +00:00
|
|
|
source "config/global/build-behave.in"
|
|
|
|
source "config/global/logging.in"
|
2007-02-24 11:00:05 +00:00
|
|
|
|
|
|
|
endmenu
|