aboutsummaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorAlexey Neyman <stilor@att.net>2022-01-06 13:10:07 -0800
committerAlexey Neyman <stilor@att.net>2022-02-11 00:47:50 -0800
commit196f62e18ca16a1d6408d8e80989870e4ea93ef9 (patch)
tree09a01c7e8e05f0b8581c686bcea6f9f51109acd9 /scripts
parentcc6b7fad46f5cb3d84cf87ae47c5f723803a67a3 (diff)
downloadcrosstool-ng-196f62e18ca16a1d6408d8e80989870e4ea93ef9.tar.gz
crosstool-ng-196f62e18ca16a1d6408d8e80989870e4ea93ef9.tar.bz2
crosstool-ng-196f62e18ca16a1d6408d8e80989870e4ea93ef9.zip
Upgrade script for uClibc retirement
Run samples through upgrade and fix accumulated breakages: *-centos6-*: After 2.12.2 retirement, the samples selected most recent glibc (2.34) which also forced kernels 3.2+. Revert to 2.12.1 and 2.6.32.71, respectively. Interestingly, 2.12.1 was marked as being used in CentOS6, but the samples selected 2.12.2. Anyway, CentOS6 is EOL now and glibc 2.12 is going to be marked obsolete, and retired soon. arc-*: Make TARGET_VENDOR match the sample's name; otherwise `ct-ng saveconfig` places the config file into a different location. Fix 'savedefconfig' which was not saving the configuration file version (CT_VCHECK was set to 'load' after CT_LoadConfig call). Signed-off-by: Alexey Neyman <stilor@att.net>
Diffstat (limited to 'scripts')
-rw-r--r--scripts/saveSample.sh4
-rw-r--r--scripts/upgrade/v312
2 files changed, 16 insertions, 0 deletions
diff --git a/scripts/saveSample.sh b/scripts/saveSample.sh
index 2f4a10b1..e367e6e5 100644
--- a/scripts/saveSample.sh
+++ b/scripts/saveSample.sh
@@ -11,6 +11,10 @@
CT_LoadConfig
+# Override CT_VCHECK: we're going to be saving it so need to force saving of
+# the config version.
+export CT_VCHECK=save
+
# We can not reliably save a sample which either uses local patches
# and/or custom Linux kernel headers. Warn the user about this issue
# and continue if he/she confirms sving the sample.
diff --git a/scripts/upgrade/v3 b/scripts/upgrade/v3
new file mode 100644
index 00000000..1b8fce83
--- /dev/null
+++ b/scripts/upgrade/v3
@@ -0,0 +1,12 @@
+# vim: set filetype=sh :
+
+# Upgrade v3 -> v4:
+# - uClibc retired, leaving only uClibc-ng
+upgrade()
+{
+ case "${opt}" in
+ CT_LIBC_UCLIBC)
+ replace CT_LIBC_UCLIBC_NG
+ ;;
+ esac
+}