diff options
Diffstat (limited to 'meta/classes-global/utils.bbclass')
-rw-r--r-- | meta/classes-global/utils.bbclass | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/meta/classes-global/utils.bbclass b/meta/classes-global/utils.bbclass index 957389928f..530a490ea8 100644 --- a/meta/classes-global/utils.bbclass +++ b/meta/classes-global/utils.bbclass | |||
@@ -15,7 +15,7 @@ oe_soinstall() { | |||
15 | ;; | 15 | ;; |
16 | esac | 16 | esac |
17 | install -m 755 $1 $2/$libname | 17 | install -m 755 $1 $2/$libname |
18 | sonamelink=`${READELF} -d $1 |grep 'Library soname:' |sed -e 's/.*\[\(.*\)\].*/\1/'` | 18 | sonamelink=`${OBJDUMP} -p $1 | grep SONAME | awk '{print $2}'` |
19 | if [ -z $sonamelink ]; then | 19 | if [ -z $sonamelink ]; then |
20 | bbfatal "oe_soinstall: $libname is missing ELF tag 'SONAME'." | 20 | bbfatal "oe_soinstall: $libname is missing ELF tag 'SONAME'." |
21 | fi | 21 | fi |
@@ -147,7 +147,7 @@ oe_libinstall() { | |||
147 | # special case hack for non-libtool .so.#.#.# links | 147 | # special case hack for non-libtool .so.#.#.# links |
148 | baselibfile=`basename "$libfile"` | 148 | baselibfile=`basename "$libfile"` |
149 | if (echo $baselibfile | grep -qE '^lib.*\.so\.[0-9.]*$'); then | 149 | if (echo $baselibfile | grep -qE '^lib.*\.so\.[0-9.]*$'); then |
150 | sonamelink=`${READELF} -d $libfile |grep 'Library soname:' |sed -e 's/.*\[\(.*\)\].*/\1/'` | 150 | sonamelink=`${OBJDUMP} -p $libfile | grep SONAME | awk '{print $2}'` |
151 | solink=`echo $baselibfile | sed -e 's/\.so\..*/.so/'` | 151 | solink=`echo $baselibfile | sed -e 's/\.so\..*/.so/'` |
152 | if [ -n "$sonamelink" -a x"$baselibfile" != x"$sonamelink" ]; then | 152 | if [ -n "$sonamelink" -a x"$baselibfile" != x"$sonamelink" ]; then |
153 | __runcmd ln -sf $baselibfile $destpath/$sonamelink | 153 | __runcmd ln -sf $baselibfile $destpath/$sonamelink |
@@ -367,3 +367,13 @@ check_git_config() { | |||
367 | git config --local user.name "${PATCH_GIT_USER_NAME}" | 367 | git config --local user.name "${PATCH_GIT_USER_NAME}" |
368 | fi | 368 | fi |
369 | } | 369 | } |
370 | |||
371 | # Sets fixed git committer and author for reproducible commits | ||
372 | reproducible_git_committer_author() { | ||
373 | export GIT_COMMITTER_NAME="${PATCH_GIT_USER_NAME}" | ||
374 | export GIT_COMMITTER_EMAIL="${PATCH_GIT_USER_EMAIL}" | ||
375 | export GIT_COMMITTER_DATE="$(date -d @${SOURCE_DATE_EPOCH})" | ||
376 | export GIT_AUTHOR_NAME="${PATCH_GIT_USER_NAME}" | ||
377 | export GIT_AUTHOR_EMAIL="${PATCH_GIT_USER_EMAIL}" | ||
378 | export GIT_AUTHOR_DATE="$(date -d @${SOURCE_DATE_EPOCH})" | ||
379 | } | ||