Openembedded Core Discussions
 help / color / mirror / Atom feed
* [RFC][PATCH] package.bbclass: fix strip and split logic
@ 2014-01-21  9:47 Koen Kooi
  2014-01-21 13:57 ` Richard Purdie
  0 siblings, 1 reply; 15+ messages in thread
From: Koen Kooi @ 2014-01-21  9:47 UTC (permalink / raw)
  To: openembedded-core; +Cc: Koen Kooi

Marks original commit message and variable documentation state that stripping and splitting are independent of eachother, but package.bbclass ANDs the two INHIBIT flags to see which files can be stripped and/or split.

Original behaviour:

INHIBIT_PACKAGE_STRIP: no strip, no debug split
INHIBIT_PACAKGE_DEBUG_SPLIT: no strip, no debug split

Behaviour after this patch:

INHIBIT_PACKAGE_STRIP: no strip, no debug split
INHIBIT_PACKAGE_DEBUG_SPLIT: strip, no split

Signed-off-by: Koen Kooi <koen.kooi@linaro.org>
---
 meta/classes/package.bbclass | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/meta/classes/package.bbclass b/meta/classes/package.bbclass
index 768047c..fa0b7eb 100644
--- a/meta/classes/package.bbclass
+++ b/meta/classes/package.bbclass
@@ -781,8 +781,7 @@ python split_and_strip_files () {
     kernmods = []
     libdir = os.path.abspath(dvar + os.sep + d.getVar("libdir", True))
     baselibdir = os.path.abspath(dvar + os.sep + d.getVar("base_libdir", True))
-    if (d.getVar('INHIBIT_PACKAGE_DEBUG_SPLIT', True) != '1') and \
-            (d.getVar('INHIBIT_PACKAGE_STRIP', True) != '1'):
+    if (d.getVar('INHIBIT_PACKAGE_STRIP', True) != '1'):
         for root, dirs, files in cpath.walk(dvar):
             for f in files:
                 file = os.path.join(root, f)
-- 
1.8.4.2



^ permalink raw reply related	[flat|nested] 15+ messages in thread

end of thread, other threads:[~2014-02-04 12:12 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-01-21  9:47 [RFC][PATCH] package.bbclass: fix strip and split logic Koen Kooi
2014-01-21 13:57 ` Richard Purdie
2014-01-21 14:03   ` Koen Kooi
2014-01-21 15:04     ` Mark Hatle
2014-01-21 15:09     ` Richard Purdie
2014-01-23  9:34       ` Koen Kooi
2014-01-23 11:33         ` Otavio Salvador
2014-01-23 12:41         ` Martin Jansa
2014-02-04  8:58       ` Koen Kooi
2014-02-04  9:32         ` Richard Purdie
2014-02-04 11:20           ` Otavio Salvador
2014-02-04 11:27             ` Koen Kooi
2014-02-04 12:12               ` Otavio Salvador
2014-02-04 10:10         ` Paul Eggleton
2014-02-04 11:01           ` Koen Kooi

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox