* [PATCH] package.bbclass: Treat .node files same as .so
@ 2016-03-21 22:52 brendan.le.foll
2016-03-22 9:41 ` Richard Purdie
0 siblings, 1 reply; 2+ messages in thread
From: brendan.le.foll @ 2016-03-21 22:52 UTC (permalink / raw)
To: openembedded-core
From: Brendan Le Foll <brendan.le.foll@intel.com>
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>
---
meta/classes/package.bbclass | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/meta/classes/package.bbclass b/meta/classes/package.bbclass
index ef80e50..cd9d5a6 100644
--- a/meta/classes/package.bbclass
+++ b/meta/classes/package.bbclass
@@ -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" 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)
--
2.7.2
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2016-03-22 9:41 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-03-21 22:52 [PATCH] package.bbclass: Treat .node files same as .so brendan.le.foll
2016-03-22 9:41 ` Richard Purdie
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox