]> code.ossystems Code Review - openembedded-core.git/commit
chrpath: do less work
authorRoss Burton <ross.burton@intel.com>
Thu, 12 Dec 2019 13:13:55 +0000 (13:13 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sat, 28 Dec 2019 23:25:34 +0000 (23:25 +0000)
commit977f4baacf7c8d06d9cfe5c5e39bb8bc19f27028
treea1e1b3ec8b89c97f6a8c3e92b0ec57af9102db78
parentde1b57acedaaf01e10059792eb0031ceafcc8b97
chrpath: do less work

Instead of trying to change the RPATH in every file under the binary
directories, check that the file is an ELF first.

This means that we don't attempt to change the RPATH on the entire
Python standard library, for example.

Also return early if the directory to iterate doesn't exist.

Signed-off-by: Ross Burton <ross.burton@intel.com>
meta/classes/chrpath.bbclass