public inbox for isar-users@googlegroups.com
 help / color / mirror / Atom feed
* [PATCH] linux-custom: Fix provides for custom kernels
@ 2023-09-20 19:02 Anton Mikanovich
  2023-09-29  6:44 ` Uladzimir Bely
  0 siblings, 1 reply; 2+ messages in thread
From: Anton Mikanovich @ 2023-09-20 19:02 UTC (permalink / raw)
  To: isar-users; +Cc: Anton Mikanovich

There are several binary packages described in control file not
mentioned in PROVIDES for correct dependency resolving by bitbake.

Signed-off-by: Anton Mikanovich <amikan@ilbers.de>
---
 meta/recipes-kernel/linux/linux-custom.inc | 9 +++++++--
 1 file changed, 7 insertions(+), 2 deletions(-)

diff --git a/meta/recipes-kernel/linux/linux-custom.inc b/meta/recipes-kernel/linux/linux-custom.inc
index 8b367a2f..b8172d72 100644
--- a/meta/recipes-kernel/linux/linux-custom.inc
+++ b/meta/recipes-kernel/linux/linux-custom.inc
@@ -96,10 +96,15 @@ KAFLAGS ?= "-fdebug-prefix-map=${CURDIR}=."
 KERNEL_NAME_PROVIDED ?= "${@ d.getVar('PN').partition('linux-')[2]}"
 
 # Make bitbake know we will be producing linux-image and linux-headers packages
+# Also make it know about other packages from control
 python() {
     kernel_name = d.getVar("KERNEL_NAME_PROVIDED")
-    d.setVar('PROVIDES', 'linux-image-' + kernel_name + ' ' + \
-                         'linux-headers-' + kernel_name)
+    distro_arch = d.getVar("DISTRO_ARCH")
+    d.appendVar('PROVIDES', ' linux-image-' + kernel_name)
+    d.appendVar('PROVIDES', ' linux-headers-' + kernel_name)
+    d.appendVar('PROVIDES', ' linux-libc-dev')
+    d.appendVar('PROVIDES', ' linux-libc-dev-' + distro_arch + '-cross')
+    d.appendVar('PROVIDES', ' linux-image-' + kernel_name + '-dbg')
 }
 
 def get_kernel_arch(d):
-- 
2.34.1


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2023-09-29  6:44 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-09-20 19:02 [PATCH] linux-custom: Fix provides for custom kernels Anton Mikanovich
2023-09-29  6:44 ` Uladzimir Bely

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox