diff options
author | Zoltán Böszörményi <zboszor@gmail.com> | 2021-08-23 16:54:48 +0200 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2021-08-27 11:54:33 +0100 |
commit | e6fae346ea93a2cbb52bb2be01013aabae1215cd (patch) | |
tree | 8a7ae0e83936be07d000d8cc7d2adb53d2d1b970 /meta/classes/kernel.bbclass | |
parent | 2190abe8bbd633b72d8605c7808df634dd33274c (diff) | |
download | poky-e6fae346ea93a2cbb52bb2be01013aabae1215cd.tar.gz |
Allow opt-out of split kernel modules
For some use cases, a monolithic kernel-modules package containing
all modules built from the kernel sources may be preferred.
For one, download time is shorter and installation time is faster.
Set KERNEL_SPLIT_MODULES="0" for this in. The default is one subpackage
per module.
Also, adapt kernel.bbclass to KERNEL_SPLIT_MODULES != "1" case
Extra RDEPENDS and other inter-package references are needed in
this case.
(From OE-Core rev: 4b13409d82e9d576e32b978f7a42a143127ab894)
Signed-off-by: Zoltán Böszörményi <zboszor@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes/kernel.bbclass')
-rw-r--r-- | meta/classes/kernel.bbclass | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/meta/classes/kernel.bbclass b/meta/classes/kernel.bbclass index 027e66eec7..6dc5387a9b 100644 --- a/meta/classes/kernel.bbclass +++ b/meta/classes/kernel.bbclass | |||
@@ -98,6 +98,13 @@ python __anonymous () { | |||
98 | d.appendVar('PACKAGES', ' %s-image-%s' % (kname, typelower)) | 98 | d.appendVar('PACKAGES', ' %s-image-%s' % (kname, typelower)) |
99 | d.setVar('FILES:' + kname + '-image-' + typelower, '/' + imagedest + '/' + type + '-${KERNEL_VERSION_NAME}' + ' /' + imagedest + '/' + type) | 99 | d.setVar('FILES:' + kname + '-image-' + typelower, '/' + imagedest + '/' + type + '-${KERNEL_VERSION_NAME}' + ' /' + imagedest + '/' + type) |
100 | d.appendVar('RDEPENDS:%s-image' % kname, ' %s-image-%s' % (kname, typelower)) | 100 | d.appendVar('RDEPENDS:%s-image' % kname, ' %s-image-%s' % (kname, typelower)) |
101 | splitmods = d.getVar("KERNEL_SPLIT_MODULES") | ||
102 | if splitmods != '1': | ||
103 | d.appendVar('RDEPENDS:%s-image' % kname, ' %s-modules' % kname) | ||
104 | d.appendVar('RDEPENDS:%s-image-%s' % (kname, typelower), ' %s-modules-${KERNEL_VERSION_PKG_NAME}' % kname) | ||
105 | d.setVar('PKG:%s-modules' % kname, '%s-modules-${KERNEL_VERSION_PKG_NAME}' % kname) | ||
106 | d.appendVar('RPROVIDES:%s-modules' % kname, '%s-modules-${KERNEL_VERSION_PKG_NAME}' % kname) | ||
107 | |||
101 | d.setVar('PKG:%s-image-%s' % (kname,typelower), '%s-image-%s-${KERNEL_VERSION_PKG_NAME}' % (kname, typelower)) | 108 | d.setVar('PKG:%s-image-%s' % (kname,typelower), '%s-image-%s-${KERNEL_VERSION_PKG_NAME}' % (kname, typelower)) |
102 | d.setVar('ALLOW_EMPTY:%s-image-%s' % (kname, typelower), '1') | 109 | d.setVar('ALLOW_EMPTY:%s-image-%s' % (kname, typelower), '1') |
103 | d.setVar('pkg_postinst:%s-image-%s' % (kname,typelower), """set +e | 110 | d.setVar('pkg_postinst:%s-image-%s' % (kname,typelower), """set +e |