[oe-commits] Tomas Frydrych : package.bbclass: fix stripping for kernel modules

git at git.openembedded.org git at git.openembedded.org
Sun Sep 2 12:57:29 UTC 2012


Module: openembedded-core.git
Branch: master
Commit: 67f21c6c698464959c27c7e65ee537ab4c378944
URL:    http://git.openembedded.org/?p=openembedded-core.git&a=commit;h=67f21c6c698464959c27c7e65ee537ab4c378944

Author: Tomas Frydrych <tomas at sleepfive.com>
Date:   Fri Aug 31 12:02:18 2012 +0100

package.bbclass: fix stripping for kernel modules

runstrip(path, elftype, d) does bitwise & on the elftype parameter, so it has
to be passed an integer. Passing None fails with: TypeError: unsupported
operand type(s) for &: 'NoneType' and 'int'.

Signed-off-by: Tomas Frydrych <tomas at sleepfive.com>
Signed-off-by: Saul Wold <sgw at linux.intel.com>

---

 meta/classes/package.bbclass |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/meta/classes/package.bbclass b/meta/classes/package.bbclass
index 46facf7..78af693 100644
--- a/meta/classes/package.bbclass
+++ b/meta/classes/package.bbclass
@@ -917,7 +917,7 @@ python split_and_strip_files () {
             for f in files:
                 if not f.endswith(".ko"):
                     continue
-                runstrip(os.path.join(root, f), None, d)
+                runstrip(os.path.join(root, f), 0, d)
     #
     # End of strip
     #





More information about the Openembedded-commits mailing list