* [PATCH 0/1] A fix for kernel-module-split.bbclass
@ 2014-06-18 6:04 nitin.a.kamble
2014-06-18 6:04 ` [PATCH 1/1] kernel-module-split.bbclass: fix a typo in var name nitin.a.kamble
0 siblings, 1 reply; 3+ messages in thread
From: nitin.a.kamble @ 2014-06-18 6:04 UTC (permalink / raw)
To: richard.purdie, Openembedded-core
From: Nitin A Kamble <nitin.a.kamble@intel.com>
Here is a build fix for the build breakage of a meta-intel BSP.
Thanks,
Nitin
The following changes since commit f3394914fd209ac186ef6806794dcbd915ef4fed:
linux-yocto/3.10: update to v3.10.43 (2014-06-17 17:56:57 +0100)
are available in the git repository at:
git://git.yoctoproject.org/poky-contrib nitin/misc
http://git.yoctoproject.org/cgit.cgi/poky-contrib/log/?h=nitin/misc
Nitin A Kamble (1):
kernel-module-split.bbclass: fix a typo in var name
meta/classes/kernel-module-split.bbclass | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
--
1.8.1.4
^ permalink raw reply [flat|nested] 3+ messages in thread
* [PATCH 1/1] kernel-module-split.bbclass: fix a typo in var name
2014-06-18 6:04 [PATCH 0/1] A fix for kernel-module-split.bbclass nitin.a.kamble
@ 2014-06-18 6:04 ` nitin.a.kamble
2014-06-18 9:44 ` Richard Purdie
0 siblings, 1 reply; 3+ messages in thread
From: nitin.a.kamble @ 2014-06-18 6:04 UTC (permalink / raw)
To: richard.purdie, Openembedded-core
From: Nitin A Kamble <nitin.a.kamble@intel.com>
The recently added kernel-module-split.bbclass had a bug in processing of
the KERNEL_MODULE_AUTOLOAD variable. It was using the older autload variable
in place of the newer autoloadlist variable, which was causing build failure
as seen below.
The stack trace of python calls that resulted in this exception/failure was:
File: 'split_kernel_module_packages', lineno: 164, function: <module>
0160: if len(os.listdir(dir)) == 0:
0161: os.rmdir(dir)
0162:
0163:
*** 0164:split_kernel_module_packages(d)
0165:
File: 'split_kernel_module_packages', lineno: 150, function: split_kernel_module_packages
0146:
0147: postinst = d.getVar('pkg_postinst_modules', True)
0148: postrm = d.getVar('pkg_postrm_modules', True)
0149:
*** 0150: modules = do_split_packages(d, root='/lib/modules', file_regex=module_regex, output_pattern=module_pattern, description='%s kernel module', postinst=postinst, postrm=postrm, recursive=True, hook=frob_metadata, extra_depends='kernel-%s' % (d.getVar("KERNEL_VERSION", True)))
0151: if modules:
0152: metapkg = d.getVar('KERNEL_MODULES_META_PACKAGE', True)
0153: d.appendVar('RDEPENDS_' + metapkg, ' '+' '.join(modules))
0154:
File: 'package.bbclass', lineno: 148, function: do_split_packages
0144: d.setVar('pkg_postrm_' + pkg, postrm)
0145: else:
0146: d.setVar('FILES_' + pkg, oldfiles + " " + newfile)
0147: if callable(hook):
*** 0148: hook(f, pkg, file_regex, output_pattern, m.group(1))
0149:
0150: d.setVar('PACKAGES', ' '.join(packages))
0151: return split_packages
0152:
File: 'split_kernel_module_packages', lineno: 109, function: frob_metadata
File "split_kernel_module_packages", line 109, in frob_metadata
Exception: AttributeError: 'NoneType' object has no attribute 'split'
ERROR: Function failed: split_kernel_module_packages
Fixes bug:
[Yocto #6461]
Signed-off-by: Nitin A Kamble <nitin.a.kamble@intel.com>
---
meta/classes/kernel-module-split.bbclass | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/meta/classes/kernel-module-split.bbclass b/meta/classes/kernel-module-split.bbclass
index e38a6f6..088de5f 100644
--- a/meta/classes/kernel-module-split.bbclass
+++ b/meta/classes/kernel-module-split.bbclass
@@ -137,7 +137,7 @@ python split_kernel_module_packages () {
if basename in autoloadlist:
name = '%s/etc/modules-load.d/%s.conf' % (dvar, basename)
f = open(name, 'w')
- for m in autoload.split():
+ for m in autoloadlist:
f.write('%s\n' % m)
f.close()
postinst = d.getVar('pkg_postinst_%s' % pkg, True)
--
1.8.1.4
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH 1/1] kernel-module-split.bbclass: fix a typo in var name
2014-06-18 6:04 ` [PATCH 1/1] kernel-module-split.bbclass: fix a typo in var name nitin.a.kamble
@ 2014-06-18 9:44 ` Richard Purdie
0 siblings, 0 replies; 3+ messages in thread
From: Richard Purdie @ 2014-06-18 9:44 UTC (permalink / raw)
To: nitin.a.kamble; +Cc: Openembedded-core
On Tue, 2014-06-17 at 23:04 -0700, nitin.a.kamble@intel.com wrote:
> Exception: AttributeError: 'NoneType' object has no attribute 'split'
>
> ERROR: Function failed: split_kernel_module_packages
>
> Fixes bug:
> [Yocto #6461]
I've merged a slightly different version of this fix.
Cheers,
Richard
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2014-06-18 9:45 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-06-18 6:04 [PATCH 0/1] A fix for kernel-module-split.bbclass nitin.a.kamble
2014-06-18 6:04 ` [PATCH 1/1] kernel-module-split.bbclass: fix a typo in var name nitin.a.kamble
2014-06-18 9:44 ` Richard Purdie
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox