]> code.ossystems Code Review - openembedded-core.git/commitdiff
package.bbclass: Treat .node files same as .so when checking what to strip
authorBrendan Le Foll <brendan.le.foll@intel.com>
Tue, 22 Mar 2016 09:53:34 +0000 (09:53 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 24 Mar 2016 21:44:26 +0000 (21:44 +0000)
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.

Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
meta/classes/package.bbclass

index ef80e505b29cf1d960c31c4e16fa8dddd8e5a266..5a842556662ca7933ca7ff14361c6943809d0971 100644 (file)
@@ -907,7 +907,7 @@ python split_and_strip_files () {
                     continue
                 # Check its an excutable
                 if (s[stat.ST_MODE] & stat.S_IXUSR) or (s[stat.ST_MODE] & stat.S_IXGRP) or (s[stat.ST_MODE] & stat.S_IXOTH) \
-                        or ((file.startswith(libdir) or file.startswith(baselibdir)) and ".so" in f):
+                        or ((file.startswith(libdir) or file.startswith(baselibdir)) and (".so" in f or ".node" in f)):
                     # If it's a symlink, and points to an ELF file, we capture the readlink target
                     if cpath.islink(file):
                         target = os.readlink(file)