Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 1 | #!/bin/sh |
| 2 | |
| 3 | # signlibs.sh |
| 4 | # |
| 5 | # (c)2010 Wind River Systems, Inc. |
| 6 | # |
| 7 | # regenerates the .chk files for the NSS libraries that require it |
| 8 | # since the ones that are built have incorrect checksums that were |
| 9 | # calculated on the host where they really need to be done on the |
| 10 | # target |
| 11 | |
| 12 | CHK_FILES=`ls /lib*/*.chk /usr/lib*/*.chk 2>/dev/null` |
| 13 | SIGN_BINARY=`which shlibsign` |
| 14 | for I in $CHK_FILES |
| 15 | do |
| 16 | DN=`dirname $I` |
| 17 | BN=`basename $I .chk` |
| 18 | FN=$DN/$BN.so |
| 19 | $SIGN_BINARY -i $FN |
| 20 | done |