package.bbclass: fix stripping for kernel modules
authorTomas Frydrych <tomas@sleepfive.com>
Fri, 31 Aug 2012 11:02:18 +0000 (12:02 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sun, 2 Sep 2012 12:52:09 +0000 (05:52 -0700)
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'.

(From OE-Core rev: 67f21c6c698464959c27c7e65ee537ab4c378944)

Signed-off-by: Tomas Frydrych <tomas@sleepfive.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes/package.bbclass

index 46facf7..78af693 100644 (file)
@@ -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
     #