From a192ba876959823534ebfbe2fcb7989a02f68810 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Wed, 21 Dec 2011 11:36:31 -0800 Subject: [PATCH] install_qa_check: more RESTRICT=binchecks --- bin/misc-functions.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/bin/misc-functions.sh b/bin/misc-functions.sh index b536a63e9..b6bd8ed36 100755 --- a/bin/misc-functions.sh +++ b/bin/misc-functions.sh @@ -309,7 +309,8 @@ install_qa_check() { fi # Check for files built without respecting CFLAGS - if [[ "${CFLAGS}" == *-frecord-gcc-switches* ]] && [[ "${PN}" != *-bin ]] ; then + if [[ "${CFLAGS}" == *-frecord-gcc-switches* ]] && \ + ! has binchecks ${RESTRICT} ; then qa_var="QA_DT_SWITCHES_${ARCH/-/_}" eval "[[ -n \${!qa_var} ]] && QA_DT_SWITCHES=(\"\${${qa_var}[@]}\")" f=$(scanelf -qyRF '%k %p' -k \!.GCC.command.line "${ED}" | sed -e "s:\!.GCC.command.line ::") @@ -349,7 +350,8 @@ install_qa_check() { fi # Check for files built without respecting LDFLAGS - if [[ "${LDFLAGS}" == *,--hash-style=gnu* ]] && [[ "${PN}" != *-bin ]] ; then + if [[ "${LDFLAGS}" == *,--hash-style=gnu* ]] && \ + ! has binchecks ${RESTRICT} ; then qa_var="QA_DT_HASH_${ARCH/-/_}" eval "[[ -n \${!qa_var} ]] && QA_DT_HASH=(\"\${${qa_var}[@]}\")" f=$(scanelf -qyRF '%k %p' -k .hash "${ED}" | sed -e "s:\.hash ::") -- 2.26.2