]> code.ossystems Code Review - openembedded-core.git/commitdiff
nss: improve the script signlibs.sh
authorJackie Huang <jackie.huang@windriver.com>
Wed, 25 Mar 2015 02:19:15 +0000 (10:19 +0800)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 24 Apr 2015 10:05:56 +0000 (11:05 +0100)
The *.chk files are installed in ${libdir} by nss,
which is already known, no need to 'find' to get the
file list, and 'ls' is more faster than 'find'.

Signed-off-by: Jackie Huang <jackie.huang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-support/nss/nss/signlibs.sh

index 1ec79f457638f4e42eb458ec6b2729a266d4c212..a74e499f8c2cf6e1c4a5476e18eb61a4230af378 100644 (file)
@@ -9,7 +9,7 @@
 # calculated on the host where they really need to be done on the
 # target
 
-CHK_FILES=`find /lib* /usr/lib* -name "*.chk"`
+CHK_FILES=`ls /lib*/*.chk /usr/lib*/*.chk 2>/dev/null`
 SIGN_BINARY=`which shlibsign`
 for I in $CHK_FILES
 do