From: Tomas Frydrych Date: Fri, 31 Aug 2012 11:02:18 +0000 (+0100) Subject: package.bbclass: fix stripping for kernel modules X-Git-Tag: rev_ivi_2015_02_04~15766 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=031208bf01d6e53237e0f91d0079e0035ba22502;p=scm%2Fbb%2Ftizen-distro.git 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'. (From OE-Core rev: 67f21c6c698464959c27c7e65ee537ab4c378944) Signed-off-by: Tomas Frydrych Signed-off-by: Saul Wold Signed-off-by: Richard Purdie --- 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 #