summaryrefslogtreecommitdiff
path: root/scripts/saveSample.sh
diff options
context:
space:
mode:
authorAlexey Neyman <stilor@att.net>2022-01-06 21:10:07 (GMT)
committerAlexey Neyman <stilor@att.net>2022-02-11 08:47:50 (GMT)
commit196f62e18ca16a1d6408d8e80989870e4ea93ef9 (patch)
tree09a01c7e8e05f0b8581c686bcea6f9f51109acd9 /scripts/saveSample.sh
parentcc6b7fad46f5cb3d84cf87ae47c5f723803a67a3 (diff)
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/saveSample.sh')
-rw-r--r--scripts/saveSample.sh4
1 files changed, 4 insertions, 0 deletions
diff --git a/scripts/saveSample.sh b/scripts/saveSample.sh
index 2f4a10b..e367e6e 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.