summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrendan Le Foll <brendan.le.foll@intel.com>2016-03-22 09:53:34 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2016-03-25 10:29:16 +0000
commit959b7f204ea009fcf4ff0de30522ecf17cb64488 (patch)
tree0c3ea31b65b0cdd072450aa54024c56e0e40e5b9
parente0bc781ce06262632fec441b47551abe116458d4 (diff)
downloadpoky-959b7f204ea009fcf4ff0de30522ecf17cb64488.tar.gz
package.bbclass: Treat .node files same as .so when checking what to strip
Typically in a node/npm compiled modules the module is named .node. This is a binary module without a wrapper so it can actually be relatively large if unstripped. (From OE-Core rev: d14bc2667575bc0e29b9e90d80c01703639b76f1) Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--meta/classes/package.bbclass2
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/classes/package.bbclass b/meta/classes/package.bbclass
index ef80e505b2..5a84255666 100644
--- a/meta/classes/package.bbclass
+++ b/meta/classes/package.bbclass
@@ -907,7 +907,7 @@ python split_and_strip_files () {
907 continue 907 continue
908 # Check its an excutable 908 # Check its an excutable
909 if (s[stat.ST_MODE] & stat.S_IXUSR) or (s[stat.ST_MODE] & stat.S_IXGRP) or (s[stat.ST_MODE] & stat.S_IXOTH) \ 909 if (s[stat.ST_MODE] & stat.S_IXUSR) or (s[stat.ST_MODE] & stat.S_IXGRP) or (s[stat.ST_MODE] & stat.S_IXOTH) \
910 or ((file.startswith(libdir) or file.startswith(baselibdir)) and ".so" in f): 910 or ((file.startswith(libdir) or file.startswith(baselibdir)) and (".so" in f or ".node" in f)):
911 # If it's a symlink, and points to an ELF file, we capture the readlink target 911 # If it's a symlink, and points to an ELF file, we capture the readlink target
912 if cpath.islink(file): 912 if cpath.islink(file):
913 target = os.readlink(file) 913 target = os.readlink(file)