kernel-devsrc.bb: Stop copying the System.map files
RFC PATCH 1/1 kernel-devsrc.bb: Stop copying the System.map files
Currently there are two .map files being copied to $kerneldir/build. One file is System.map and the other is System.map-<kernel-version>. Each .map file takes up about 5MB and does not seem to be required for the compilation of driver software via dkms. This change stops copying both .map files to save disk space.
Another solution could also be to only copy one .map file to $kerneldir/build or have one of the .map files by a symlink. If both .map files are required then this patch can be abandoned.
--- meta/recipes-kernel/linux/kernel-devsrc.bb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
meta/recipes-kernel/linux/kernel-devsrc.bb +1 -1
@@ -75,7 +75,7 @@ do_install() { if [ -s Module.symvers ]; then cp Module.symvers $kerneldir/build fi - cp System.map* $kerneldir/build + if [ -s Module.markers ]; then cp Module.markers $kerneldir/build fi
Signature · 1 line
2.43.0
Quoted 6 lines · Erick Shepherd via lists.openembedded.org
Currently there are two .map files being copied to $kerneldir/build. One file is System.map and the other is System.map-<kernel-version>. Each .map file takes up about 5MB and does not seem to be required for the compilation of driver software via dkms. This change stops copying both .map files to save disk space.
dkms isn't something that is relevant for why we copy the .map file
It is used for debug and in some scenarios linking.
kernel devsrc by definition is not trying to be small, but if the two .map files are exactly the same then a symlink should suffice, or just a single copy.
Quoted 39 lines
Another solution could also be to only copy one .map file to $kerneldir/build or have one of the .map files by a symlink. If both .map files are required then this patch can be abandoned.
Signed-off-by Erick Shepherd <[email protected]>--- meta/recipes-kernel/linux/kernel-devsrc.bb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)meta/recipes-kernel/linux/kernel-devsrc.bb +1
-2@@ -75,7 +75,7 @@ do_install() { if [ -s Module.symvers ]; then cp Module.symvers $kerneldir/build fi - cp System.map* $kerneldir/build + if [ -s Module.markers ]; then cp Module.markers $kerneldir/build fi --2.43.0
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group. View/Reply Online (#216244):
https://lists.openembedded.org/g/openembedded-core/message/216244
Mute This Topic: https://lists.openembedded.org/mt/112903585/1050810
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [ [email protected]]
-=-=-=-=-=-=-=-=-=-=-=-
Signature · 3 lines
- Thou shalt not follow the NULL pointer, for chaos and madness await thee at its end - "Use the force Harry" - Gandalf, Star Trek II