Commit Graph

7 Commits

Author SHA1 Message Date
Alexey Neyman
74a53fdf3e Use enhanced framework for 'ct-ng update-samples'
Signed-off-by: Alexey Neyman <stilor@att.net>
2019-02-09 15:55:16 -08:00
Alexey Neyman
09cb590847 Improve upgradability of defconfig files
- Switch to two-pass reading of the config file to track both (a) the
option's value and (b) if the option has been explicitly called out in
the .config being processed.
- Split off per-version functions into separate files.
- Add a README with some guidelines on writing new upgrade scripts.

Signed-off-by: Alexey Neyman <stilor@att.net>
2019-02-09 14:09:20 -08:00
Alexey Neyman
27f0c8b838 Add a few tests to upgrade testsuite
... coverage not complete, but pretty diverse and covers most
non-trivial conversions. PRs with better coverage for 1.23.o options
welcome.

Signed-off-by: Alexey Neyman <stilor@att.net>
2019-02-06 00:01:55 -08:00
Alexey Neyman
523534c9db Start a testsuite for upgrade script
Signed-off-by: Alexey Neyman <stilor@att.net>
2019-02-05 00:53:36 -08:00
Alexey Neyman
3b86d2d0e6 Upgrade script for v2 of the config
Signed-off-by: Alexey Neyman <stilor@att.net>
2019-02-01 00:15:20 -08:00
Alexey Neyman
adc16046f7 Add upgrade logic to version-check.sh
Slightly rework config version detector to catch the case where neither
CONFIG_VERSION/CONFIG_VERSION_CURRENT is defined in the config file.

Add olddefconfig and use it after the upgrade.

Signed-off-by: Alexey Neyman <stilor@att.net>
2019-01-27 22:55:26 -08:00
Alexey Neyman
57e5be632d Basic framework for checking config file version
Signed-off-by: Alexey Neyman <stilor@att.net>
2019-01-26 13:13:32 -08:00