summaryrefslogtreecommitdiffstats
path: root/poky/meta/recipes-support/nss/nss/signlibs.sh
diff options
context:
space:
mode:
Diffstat (limited to 'poky/meta/recipes-support/nss/nss/signlibs.sh')
-rw-r--r--poky/meta/recipes-support/nss/nss/signlibs.sh20
1 files changed, 20 insertions, 0 deletions
diff --git a/poky/meta/recipes-support/nss/nss/signlibs.sh b/poky/meta/recipes-support/nss/nss/signlibs.sh
new file mode 100644
index 000000000..a74e499f8
--- /dev/null
+++ b/poky/meta/recipes-support/nss/nss/signlibs.sh
@@ -0,0 +1,20 @@
+#!/bin/sh
+
+# signlibs.sh
+#
+# (c)2010 Wind River Systems, Inc.
+#
+# regenerates the .chk files for the NSS libraries that require it
+# since the ones that are built have incorrect checksums that were
+# calculated on the host where they really need to be done on the
+# target
+
+CHK_FILES=`ls /lib*/*.chk /usr/lib*/*.chk 2>/dev/null`
+SIGN_BINARY=`which shlibsign`
+for I in $CHK_FILES
+do
+ DN=`dirname $I`
+ BN=`basename $I .chk`
+ FN=$DN/$BN.so
+ $SIGN_BINARY -i $FN
+done
OpenPOWER on IntegriCloud