Makefile: respect strip exclusions for special libraries
authorJohn Keeping <john@metanate.com>
Tue, 3 Jul 2018 10:06:14 +0000 (11:06 +0100)
committerThomas Petazzoni <thomas.petazzoni@bootlin.com>
Mon, 4 Feb 2019 15:56:01 +0000 (16:56 +0100)
commite5e0f637aba9e926c0420ce6e343b734b968d883
tree1c3be98b535f8a5b41f6479fedafedcb74c8ea9f
parentf284b5e7a1618f0f3f2eec0876a0da8d5848b0fa
Makefile: respect strip exclusions for special libraries

ld-*.so and libpthread*.so* are not stripped in the same way as other
binaries because some applications need symbols in these libraries in
order to operate correctly.

However, the special handling for these binaries ignores the usual
BR2_STRIP_EXCLUDE_* rules so it is not possible to build an image which
has debugging symbols in these binaries.

Pull out the common find functionality so that we can build two find
commands that re-use the common exclusion rules.

Fix-suggested-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
Signed-off-by: John Keeping <john@metanate.com>
Tested-by: Matt Weber <matthew.weber@rockwellcollins.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
Makefile