diff options
author | Erick Shepherd <erick.shepherd@ni.com> | 2025-05-13 14:47:42 -0500 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2025-05-15 10:55:26 +0100 |
commit | 62ef49172294dcef887b7a044f719926904ddb54 (patch) | |
tree | ac3c4975f6699e595192270c7f38537a1c0ab7c2 | |
parent | c97e3e21d6c8f670da8814d922c2ce8faa7a8611 (diff) | |
download | poky-62ef49172294dcef887b7a044f719926904ddb54.tar.gz |
kernel-devsrc.bb: Replace extra System.map file with symlink
Currently there are two .map files being copied to $kerneldir/build.
One of the files is System.map and the other is
System.map-<kernel version>. Each .map file takes up about 5MB and
have identical sha256sum hashes. This change will make it so only
System.map-<kernel version> is copied in order to save disk space.
It also recreates System.map as a symlink to that .map file.
(From OE-Core rev: cc971fffb134aa6af9edeabb7a5f4143dee2151e)
Signed-off-by: Erick Shepherd <erick.shepherd@ni.com>
Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r-- | meta/recipes-kernel/linux/kernel-devsrc.bb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/meta/recipes-kernel/linux/kernel-devsrc.bb b/meta/recipes-kernel/linux/kernel-devsrc.bb index 935e3f45dd..7ad848c35e 100644 --- a/meta/recipes-kernel/linux/kernel-devsrc.bb +++ b/meta/recipes-kernel/linux/kernel-devsrc.bb | |||
@@ -75,7 +75,8 @@ do_install() { | |||
75 | if [ -s Module.symvers ]; then | 75 | if [ -s Module.symvers ]; then |
76 | cp Module.symvers $kerneldir/build | 76 | cp Module.symvers $kerneldir/build |
77 | fi | 77 | fi |
78 | cp System.map* $kerneldir/build | 78 | cp System.map-* $kerneldir/build |
79 | ln -s System.map-* $kerneldir/build/System.map | ||
79 | if [ -s Module.markers ]; then | 80 | if [ -s Module.markers ]; then |
80 | cp Module.markers $kerneldir/build | 81 | cp Module.markers $kerneldir/build |
81 | fi | 82 | fi |