From: Erick Shepherd Date: Tue, 13 May 2025 19:47:42 +0000 (-0500) Subject: kernel-devsrc.bb: Replace extra System.map file with symlink X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cc971fffb134aa6af9edeabb7a5f4143dee2151e;p=thirdparty%2Fopenembedded%2Fopenembedded-core-contrib.git 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-. Each .map file takes up about 5MB and have identical sha256sum hashes. This change will make it so only System.map- is copied in order to save disk space. It also recreates System.map as a symlink to that .map file. Signed-off-by: Erick Shepherd Signed-off-by: Mathieu Dubois-Briand Signed-off-by: Richard Purdie --- 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() { if [ -s Module.symvers ]; then cp Module.symvers $kerneldir/build fi - cp System.map* $kerneldir/build + cp System.map-* $kerneldir/build + ln -s System.map-* $kerneldir/build/System.map if [ -s Module.markers ]; then cp Module.markers $kerneldir/build fi