[OE-core] [PATCH] nss: improve the script signlibs.sh

jackie.huang at windriver.com jackie.huang at windriver.com
Wed Mar 25 02:19:15 UTC 2015


From: Jackie Huang <jackie.huang at windriver.com>

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 at windriver.com>
---
 meta/recipes-support/nss/nss/signlibs.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/meta/recipes-support/nss/nss/signlibs.sh b/meta/recipes-support/nss/nss/signlibs.sh
index 1ec79f4..a74e499 100644
--- a/meta/recipes-support/nss/nss/signlibs.sh
+++ b/meta/recipes-support/nss/nss/signlibs.sh
@@ -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
-- 
1.9.1




More information about the Openembedded-core mailing list