aboutsummaryrefslogtreecommitdiffstats
path: root/classes
diff options
context:
space:
mode:
authorHolger Freyther <zecke@selfish.org>2006-09-12 07:57:45 +0000
committerHolger Freyther <zecke@selfish.org>2006-09-12 07:57:45 +0000
commit2fdcfd98504544d0cb1773862acba9a2164e72b9 (patch)
treecaf9206f14425768d124e6c58dbbba9dc082e1d4 /classes
parent99392e1c17c790e5a76e2e0d2094721b0a080715 (diff)
parent7ed76d54a2105ee7df762c267ba60497f15c1a69 (diff)
downloadopenembedded-2fdcfd98504544d0cb1773862acba9a2164e72b9.tar.gz
merge of '9fa7d7e59941b8d15fcc1dc722bd3d781d3a4407'
and 'dbb377d00572c21544539346dc158feea2cfd1d6'
Diffstat (limited to 'classes')
-rw-r--r--classes/package.bbclass8
1 files changed, 5 insertions, 3 deletions
diff --git a/classes/package.bbclass b/classes/package.bbclass
index 03999a54ef..8dbc5d7b25 100644
--- a/classes/package.bbclass
+++ b/classes/package.bbclass
@@ -170,6 +170,8 @@ def do_split_packages(d, root, file_regex, output_pattern, description, postinst
# is necessary for this stuff to work.
PACKAGE_DEPENDS ?= "file-native"
DEPENDS_prepend =+ "${PACKAGE_DEPENDS} "
+# file(1) output to match to consider a file an unstripped executable
+FILE_UNSTRIPPED_MATCH ?= "not stripped"
#FIXME: this should be "" when any errors are gone!
IGNORE_STRIP_ERRORS ?= "1"
@@ -178,9 +180,9 @@ runstrip() {
st=0
if { file "$1" || {
oewarn "file $1: failed (forced strip)" >&2
- echo 'not stripped'
+ echo '${FILE_UNSTRIPPED_MATCH}'
}
- } | grep -q 'not stripped'
+ } | grep -q '${FILE_UNSTRIPPED_MATCH}'
then
oenote "${STRIP} $1"
ro=
@@ -188,7 +190,7 @@ runstrip() {
ro=1
chmod +w "$1"
}
- mkdir $(dirname "$1")/.debug
+ mkdir -p $(dirname "$1")/.debug
debugfile="$(dirname "$1")/.debug/$(basename "$1")"
'${OBJCOPY}' --only-keep-debug "$1" "$debugfile"
'${STRIP}' "$1"