Skip to contentSkip to conversation

manuals: kernel-dev: Fix BSP in recipe space

PATCH Applied Vyacheslav Yurkov 3 participants 4 messages Feb 21, 2024 – Feb 26, 2024

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 manuals: kernel-dev: Fix BSP in recipe space

File fetcher doesn't have destsuffix parameter.

---
 documentation/kernel-dev/advanced.rst | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
documentation/kernel-dev/advanced.rst +1 -1
index bcaaaeed1..bddff1158 100644
@@ -718,7 +718,7 @@ If the BSP description is in recipe space, you cannot simply list the
 form from your kernel append file::
 
    SRC_URI:append:myplatform = " \
-       file://myplatform;type=kmeta;destsuffix=myplatform \
+       file://myplatform;type=kmeta;subdir=myplatfrom \
        "
 
 Metadata Outside the Recipe-Space
Signature · 1 line
2.35.1
Reviewed-by on v1 1/1 Applied
#1 lore raw

Hi Slava

Quoted 12 lines · Vyacheslav Yurkov

File fetcher doesn't have destsuffix parameter.

---
  documentation/kernel-dev/advanced.rst | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
documentation/kernel-dev/advanced.rst +0 -0
index bcaaaeed1..bddff1158 100644

documentation/kernel-dev/advanced.rst If the BSP description is in recipe space, you cannot simply list the · line 721

Quoted 5 lines
documentation/kernel-dev/advanced.rst +1 -1
@@ -718,7 +718,7 @@ If the BSP description is in recipe space, you cannot simply list the
  form from your kernel append file::
 
     SRC_URI:append:myplatform = " \
-       file://myplatform;type=kmeta;destsuffix=myplatform \
+       file://myplatform;type=kmeta;subdir=myplatfrom \

Many thanks for this fix.

Merged into "master-next".

Cheers
Michael.

Signature · 3 lines
Michael Opdenacker, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
#2 lore raw
In reply to Vyacheslav Yurkov
Quoted 3 lines · Vyacheslav Yurkov

File fetcher doesn't have destsuffix parameter.

While the file fetcher doesn't have that option, it was the fact that it didn't have it that kept things working.

If you use subdir, then in fact, a recipe space BSP doesn't work at all as the tools can't find the BSP definition.

The kernel-yocto bbclass is what is using this to set up search paths for kernel features when it sees the type=kmeta.

The option could have had a less confusing name (since it is effectively passthrough like "type=kmeta", but that's not something that I'm willing to change right now (I'll do it post release)

But the documents are correct, you do need destsuffix or the recipe-space BSP will not work.

Bruce

Quoted 22 lines
---
 documentation/kernel-dev/advanced.rst | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
documentation/kernel-dev/advanced.rst +1 -2
index bcaaaeed1..bddff1158 100644
@@ -718,7 +718,7 @@ If the BSP description is in recipe space, you cannot simply list the
 form from your kernel append file::
 
    SRC_URI:append:myplatform = " \
-       file://myplatform;type=kmeta;destsuffix=myplatform \
+       file://myplatform;type=kmeta;subdir=myplatfrom \
        "
 
 Metadata Outside the Recipe-Space
--

2.35.1

Quoted 8 lines

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#4852): https://lists.yoctoproject.org/g/docs/message/4852
Mute This Topic: https://lists.yoctoproject.org/mt/104484337/1050810
Group Owner: [email protected]
Unsubscribe: https://lists.yoctoproject.org/g/docs/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

--
- Thou shalt not follow the NULL pointer, for chaos and madness await thee at its end
- "Use the force Harry" - Gandalf, Star Trek II

#3 lore raw
Quoted 12 lines · Bruce Ashfield
Quoted 2 lines · Vyacheslav Yurkov

File fetcher doesn't have destsuffix parameter.

While the file fetcher doesn't have that option, it was the fact that it didn't have it that kept things working.

If you use subdir, then in fact, a recipe space BSP doesn't work at all as the tools can't find the BSP definition.

The kernel-yocto bbclass is what is using this to set up search paths for kernel features when it sees the type=kmeta.

Quoted 9 lines

The option could have had a less confusing name (since it is effectively passthrough like "type=kmeta", but that's not something that I'm willing to change right now (I'll do it post release)

But the documents are correct, you do need destsuffix or the recipe-space BSP will not work.

Bruce

Oh, interesting. Perhaps the recipe-space BSP works this way, but the recipe-space additions for other parts of 'kmeta' didn't work for me. Whenever I wanted to extend kernel features that yocto-kernel-cache didn't have, I had to use subdir.

Slava