aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuy Martin <gmsoft@gentoo.org>2014-02-05 11:40:00 +0100
committerBrian Dolbec <dolsen@gentoo.org>2014-03-24 09:07:07 -0700
commit12c8ca76588cb2acbe4c51b71bb062581a550e90 (patch)
treeca908fb74df10aeedbd987ff05b97f68cefa4006
parentFix merging kernel without kerncache enabled. (diff)
downloadcatalyst-12c8ca76588cb2acbe4c51b71bb062581a550e90.tar.gz
catalyst-12c8ca76588cb2acbe4c51b71bb062581a550e90.tar.bz2
catalyst-12c8ca76588cb2acbe4c51b71bb062581a550e90.zip
Rename System.map in a way that it won't be matched if multiple kernel are used.
The System.map-version file gets renamed to System.map-${kname}. This causes some trouble when you have more than one kernel as the file from the previous kernel will be matched as well. To prevent that, I change the naming slightly.
-rw-r--r--targets/support/functions.sh4
-rw-r--r--targets/support/netboot2-final.sh2
2 files changed, 3 insertions, 3 deletions
diff --git a/targets/support/functions.sh b/targets/support/functions.sh
index 80e371cc..b4335a50 100644
--- a/targets/support/functions.sh
+++ b/targets/support/functions.sh
@@ -106,9 +106,9 @@ extract_kernels() {
mv ${1}/initramfs-* ${1}/${x}.igz
fi
- if [ -e ${1}/System.map-* ];
+ if [ -e ${1}/System.map-* ]
then
- mv ${1}/System.map-* ${1}/System.map-${x}
+ mv ${1}/System.map-* ${1}/System-${x}.map
fi
done
}
diff --git a/targets/support/netboot2-final.sh b/targets/support/netboot2-final.sh
index 2ee207e7..7f85538a 100644
--- a/targets/support/netboot2-final.sh
+++ b/targets/support/netboot2-final.sh
@@ -14,7 +14,7 @@ mkdir ${clst_target_path}kernels/misc
for x in ${clst_boot_kernel}; do
mv ${clst_target_path}boot/${x} ${clst_target_path}kernels
mv ${clst_target_path}boot/${x}.igz ${clst_target_path}kernels/misc
- mv ${clst_target_path}boot/System.map* ${clst_target_path}kernels/misc/System.map-${x}
+ mv ${clst_target_path}boot/System-${x}.map ${clst_target_path}kernels/misc
done
rmdir ${clst_target_path}boot