1 |
commit: 12c8ca76588cb2acbe4c51b71bb062581a550e90 |
2 |
Author: Guy Martin <gmsoft <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Feb 5 10:40:00 2014 +0000 |
4 |
Commit: Brian Dolbec <brian.dolbec <AT> gmail <DOT> com> |
5 |
CommitDate: Mon Mar 24 16:07:07 2014 +0000 |
6 |
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/catalyst.git;a=commit;h=12c8ca76 |
7 |
|
8 |
Rename System.map in a way that it won't be matched if multiple kernel are used. |
9 |
|
10 |
The System.map-version file gets renamed to System.map-${kname}. |
11 |
This causes some trouble when you have more than one kernel as the file from |
12 |
the previous kernel will be matched as well. To prevent that, I change |
13 |
the naming slightly. |
14 |
|
15 |
--- |
16 |
targets/support/functions.sh | 4 ++-- |
17 |
targets/support/netboot2-final.sh | 2 +- |
18 |
2 files changed, 3 insertions(+), 3 deletions(-) |
19 |
|
20 |
diff --git a/targets/support/functions.sh b/targets/support/functions.sh |
21 |
index 80e371c..b4335a5 100644 |
22 |
--- a/targets/support/functions.sh |
23 |
+++ b/targets/support/functions.sh |
24 |
@@ -106,9 +106,9 @@ extract_kernels() { |
25 |
mv ${1}/initramfs-* ${1}/${x}.igz |
26 |
fi |
27 |
|
28 |
- if [ -e ${1}/System.map-* ]; |
29 |
+ if [ -e ${1}/System.map-* ] |
30 |
then |
31 |
- mv ${1}/System.map-* ${1}/System.map-${x} |
32 |
+ mv ${1}/System.map-* ${1}/System-${x}.map |
33 |
fi |
34 |
done |
35 |
} |
36 |
|
37 |
diff --git a/targets/support/netboot2-final.sh b/targets/support/netboot2-final.sh |
38 |
index 2ee207e..7f85538 100644 |
39 |
--- a/targets/support/netboot2-final.sh |
40 |
+++ b/targets/support/netboot2-final.sh |
41 |
@@ -14,7 +14,7 @@ mkdir ${clst_target_path}kernels/misc |
42 |
for x in ${clst_boot_kernel}; do |
43 |
mv ${clst_target_path}boot/${x} ${clst_target_path}kernels |
44 |
mv ${clst_target_path}boot/${x}.igz ${clst_target_path}kernels/misc |
45 |
- mv ${clst_target_path}boot/System.map* ${clst_target_path}kernels/misc/System.map-${x} |
46 |
+ mv ${clst_target_path}boot/System-${x}.map ${clst_target_path}kernels/misc |
47 |
done |
48 |
|
49 |
rmdir ${clst_target_path}boot |