diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2021-08-31 14:29:53 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2021-09-01 12:07:38 +0100 |
commit | 3d2904cab5867e450f445a63e0f5e8f7938d355e (patch) | |
tree | 9623285535f67a100e53767eb5bc54d5b1ea54bc /meta | |
parent | 40305d389e8a8d19f4b98cf4d36213fdf281e5b3 (diff) | |
download | poky-3d2904cab5867e450f445a63e0f5e8f7938d355e.tar.gz |
kernel: Use unexpanded EXTENDPKGV
EXTENDPKGV can contain AUTOINC so use an expanded form in the variables allowing
for later expansion during packaging to avoid race issues over the variable and
the build failures that can result.
(From OE-Core rev: 1f93d2426d22c74893e8daec9bb939133c5737c2)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
-rw-r--r-- | meta/classes/kernel.bbclass | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/meta/classes/kernel.bbclass b/meta/classes/kernel.bbclass index 9ec7daa17a..2a7d114ed4 100644 --- a/meta/classes/kernel.bbclass +++ b/meta/classes/kernel.bbclass | |||
@@ -91,18 +91,17 @@ python __anonymous () { | |||
91 | kname = d.getVar('KERNEL_PACKAGE_NAME') or "kernel" | 91 | kname = d.getVar('KERNEL_PACKAGE_NAME') or "kernel" |
92 | imagedest = d.getVar('KERNEL_IMAGEDEST') | 92 | imagedest = d.getVar('KERNEL_IMAGEDEST') |
93 | 93 | ||
94 | fullver = d.getVar('EXTENDPKGV') | ||
95 | for type in types.split(): | 94 | for type in types.split(): |
96 | if bb.data.inherits_class('nopackages', d): | 95 | if bb.data.inherits_class('nopackages', d): |
97 | continue | 96 | continue |
98 | typelower = type.lower() | 97 | typelower = type.lower() |
99 | d.appendVar('PACKAGES', ' %s-image-%s' % (kname, typelower)) | 98 | d.appendVar('PACKAGES', ' %s-image-%s' % (kname, typelower)) |
100 | 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) |
101 | d.appendVar('RDEPENDS:%s-image' % kname, ' %s-image-%s (= %s)' % (kname, typelower, fullver)) | 100 | d.appendVar('RDEPENDS:%s-image' % kname, ' %s-image-%s (= ${EXTENDPKGV})' % (kname, typelower)) |
102 | splitmods = d.getVar("KERNEL_SPLIT_MODULES") | 101 | splitmods = d.getVar("KERNEL_SPLIT_MODULES") |
103 | if splitmods != '1': | 102 | if splitmods != '1': |
104 | d.appendVar('RDEPENDS:%s-image' % kname, ' %s-modules (= %s)' % (kname, fullver)) | 103 | d.appendVar('RDEPENDS:%s-image' % kname, ' %s-modules (= ${EXTENDPKGV})' % kname) |
105 | d.appendVar('RDEPENDS:%s-image-%s' % (kname, typelower), ' %s-modules-${KERNEL_VERSION_PKG_NAME} (= %s)' % (kname, fullver)) | 104 | d.appendVar('RDEPENDS:%s-image-%s' % (kname, typelower), ' %s-modules-${KERNEL_VERSION_PKG_NAME} (= ${EXTENDPKGV})' % kname) |
106 | d.setVar('PKG:%s-modules' % kname, '%s-modules-${KERNEL_VERSION_PKG_NAME}' % kname) | 105 | d.setVar('PKG:%s-modules' % kname, '%s-modules-${KERNEL_VERSION_PKG_NAME}' % kname) |
107 | d.appendVar('RPROVIDES:%s-modules' % kname, '%s-modules-${KERNEL_VERSION_PKG_NAME}' % kname) | 106 | d.appendVar('RPROVIDES:%s-modules' % kname, '%s-modules-${KERNEL_VERSION_PKG_NAME}' % kname) |
108 | 107 | ||