summaryrefslogtreecommitdiff
path: root/classes/kernel-module-split-blacklist.bbclass
AgeCommit message (Collapse)Author
2015-10-20kernel-module-split-blacklist.bbclass: fix bugStefan Christ
Sometimes while rebuilding linux-mainline you get the error: The stack trace of python calls that resulted in this exception/failure was: File: 'split_kernel_module_packages', lineno: 185, function: <module> 0181: d.setVar("RDEPENDS_%s" % (kernel_modules), ' '.join(rdepends)) 0182: 0183: 0184: *** 0185:split_kernel_module_packages(d) 0186: File: 'split_kernel_module_packages', lineno: 180, function: split_kernel_module_packages 0176: # After that the package 'kernel-modules' doesn't pull these packages onto 0177: # the rootfs automatically. 0178: kernel_modules = d.getVar("KERNEL_MODULES_META_PACKAGE", True) 0179: rdepends = d.getVar("RDEPENDS_%s" % (kernel_modules), True) *** 0180: rdepends = [pkg for pkg in rdepends.split(" ") if pkg not in blacklisted_modules] 0181: d.setVar("RDEPENDS_%s" % (kernel_modules), ' '.join(rdepends)) 0182: 0183: 0184: Exception: AttributeError: 'NoneType' object has no attribute 'split' To fix this the patch rewrites the code to handle the cases when d.getVar() returns None. Signed-off-by: Stefan Christ <s.christ@phytec.de> Signed-off-by: Stefan Müller-Klieser <s.mueller-klieser@phytec.de>
2015-06-09classes: add kernel-module-split-blacklist.bbclassStefan Christ
This bbclass is a helper class to modify the runtime dependency list of the empty package 'kernel-modules'. The variable KERNEL_MODULES_RDEPENDS_BLACKLIST can be used to remove some packages from the dependency list. It's useful if you want to install some kernel module packages by hand on the rootfs. Signed-off-by: Stefan Christ <s.christ@phytec.de> Signed-off-by: Stefan Müller-Klieser <s.mueller-klieser@phytec.de>