Skip to contentSkip to conversation

kernel-yocto: log some kmeta information to assist in developing a bsp

PATCH In review Yann Dirson 2 participants 7 messages Mar 30, 2021 – Mar 31, 2021 2 messages not in the archive

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 kernel-yocto: log some kmeta information to assist in developing a bsp

From: Yann Dirson <[email protected]>

This is not quite enough for the lack of a BSP to stand out clearly to an unsuspecting user's eyes, but at least this line in the logs should help some of us to get a clue:

NOTE: Using kmeta BSP ''

---
 meta/classes/kernel-yocto.bbclass | 3 +++
 1 file changed, 3 insertions(+)
meta/classes/kernel-yocto.bbclass +3 -0
index 35587dd564..c6228ad0b8 100644
@@ -234,6 +234,7 @@ do_kernel_metadata() {
 		    KMETA_EXTERNAL_BSPS="t"
 		fi
 	fi
+	bbnote "Using kmeta BSP '$bsp_definition'"
 	meta_dir=$(kgit --meta)
 
 	KERNEL_FEATURES_FINAL=""
@@ -264,6 +265,7 @@ do_kernel_metadata() {
 	if [ "$mode" = "config" ]; then
 		# run1: pull all the configuration fragments, no matter where they come from
 		elements="`echo -n ${bsp_definition} $sccs_defconfig ${sccs} ${patches} $KERNEL_FEATURES_FINAL`"
+		bbnote "config: kmeta configuration fragments: $elements"
 		if [ -n "${elements}" ]; then
 			echo "${bsp_definition}" > ${S}/${meta_dir}/bsp_definition
 			scc --force -o ${S}/${meta_dir}:cfg,merge,meta ${includes} $sccs_defconfig $bsp_definition $sccs $patches $KERNEL_FEATURES_FINAL
@@ -283,6 +285,7 @@ do_kernel_metadata() {
 	if [ "$mode" = "patch" ]; then
 		# run2: only generate patches for elements that have been passed on the SRC_URI
 		elements="`echo -n ${sccs} ${patches} $KERNEL_FEATURES_FINAL`"
+		bbnote "patch: kmeta configuration fragments: $elements"
 		if [ -n "${elements}" ]; then
 			scc --force -o ${S}/${meta_dir}:patch --cmds patch ${includes} ${sccs} ${patches} $KERNEL_FEATURES_FINAL
 			if [ $? -ne 0 ]; then
Signature · 1 line
2.30.2
#1 lore raw
Quoted 8 lines · Yann Dirson

From: Yann Dirson <[email protected]>

This is not quite enough for the lack of a BSP to stand out clearly to an unsuspecting user's eyes, but at least this line in the logs should help some of us to get a clue:

NOTE: Using kmeta BSP ''

Sorry, but no on this.

There are already logs that are kept in the build directories themselves. They can be further exposed via some of the existing debug knobs that I have, but this is just noise in the general logs.

Cheers,

Bruce

Quoted 40 lines
---
 meta/classes/kernel-yocto.bbclass | 3 +++
 1 file changed, 3 insertions(+)
meta/classes/kernel-yocto.bbclass +3 -1
index 35587dd564..c6228ad0b8 100644
@@ -234,6 +234,7 @@ do_kernel_metadata() {
                    KMETA_EXTERNAL_BSPS="t"
                fi
        fi
+       bbnote "Using kmeta BSP '$bsp_definition'"
        meta_dir=$(kgit --meta)
 
        KERNEL_FEATURES_FINAL=""
@@ -264,6 +265,7 @@ do_kernel_metadata() {
        if [ "$mode" = "config" ]; then
                # run1: pull all the configuration fragments, no matter where they come from
                elements="`echo -n ${bsp_definition} $sccs_defconfig ${sccs} ${patches} $KERNEL_FEATURES_FINAL`"
+               bbnote "config: kmeta configuration fragments: $elements"
                if [ -n "${elements}" ]; then
                        echo "${bsp_definition}" > ${S}/${meta_dir}/bsp_definition
                        scc --force -o ${S}/${meta_dir}:cfg,merge,meta ${includes} $sccs_defconfig $bsp_definition $sccs $patches $KERNEL_FEATURES_FINAL
@@ -283,6 +285,7 @@ do_kernel_metadata() {
        if [ "$mode" = "patch" ]; then
                # run2: only generate patches for elements that have been passed on the SRC_URI
                elements="`echo -n ${sccs} ${patches} $KERNEL_FEATURES_FINAL`"
+               bbnote "patch: kmeta configuration fragments: $elements"
                if [ -n "${elements}" ]; then
                        scc --force -o ${S}/${meta_dir}:patch --cmds patch ${includes} ${sccs} ${patches} $KERNEL_FEATURES_FINAL
                        if [ $? -ne 0 ]; then
--

2.30.2

Signature · 3 lines
- Thou shalt not follow the NULL pointer, for chaos and madness await
thee at its end
- "Use the force Harry" - Gandalf, Star Trek II
#2 lore raw

Hi Bruce,

Quoted 9 lines · Bruce Ashfield
Quoted 7 lines · Yann Dirson

From: Yann Dirson <[email protected]>

This is not quite enough for the lack of a BSP to stand out clearly to an unsuspecting user's eyes, but at least this line in the logs should help some of us to get a clue:

Quoted 7 lines
Quoted 1 line

NOTE: Using kmeta BSP ''

Sorry, but no on this.

There are already logs that are kept in the build directories themselves. They can be further exposed via some of the existing debug knobs that I have, but this is just noise in the general logs.

I must say I did not find any existing logs on this, where can I find them ?

Quoted 51 lines

Cheers,

Bruce

Quoted 35 lines
---
 meta/classes/kernel-yocto.bbclass | 3 +++
 1 file changed, 3 insertions(+)
meta/classes/kernel-yocto.bbclass +3 -1
index 35587dd564..c6228ad0b8 100644
@@ -234,6 +234,7 @@ do_kernel_metadata() {
                    KMETA_EXTERNAL_BSPS="t"
                fi
        fi
+       bbnote "Using kmeta BSP '$bsp_definition'"
        meta_dir=$(kgit --meta)
 
        KERNEL_FEATURES_FINAL=""
@@ -264,6 +265,7 @@ do_kernel_metadata() {
        if [ "$mode" = "config" ]; then
                # run1: pull all the configuration fragments, no matter where they come from
                elements="`echo -n ${bsp_definition} $sccs_defconfig ${sccs} ${patches} $KERNEL_FEATURES_FINAL`"
+               bbnote "config: kmeta configuration fragments: $elements"
                if [ -n "${elements}" ]; then
                        echo "${bsp_definition}" > ${S}/${meta_dir}/bsp_definition
                        scc --force -o ${S}/${meta_dir}:cfg,merge,meta ${includes} $sccs_defconfig $bsp_definition $sccs $patches $KERNEL_FEATURES_FINAL
@@ -283,6 +285,7 @@ do_kernel_metadata() {
        if [ "$mode" = "patch" ]; then
                # run2: only generate patches for elements that have been passed on the SRC_URI
                elements="`echo -n ${sccs} ${patches} $KERNEL_FEATURES_FINAL`"
+               bbnote "patch: kmeta configuration fragments: $elements"
                if [ -n "${elements}" ]; then
                        scc --force -o ${S}/${meta_dir}:patch --cmds patch ${includes} ${sccs} ${patches} $KERNEL_FEATURES_FINAL
                        if [ $? -ne 0 ]; then
--
Quoted 5 lines

2.30.2

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

Signature · 2 lines
Yann Dirson <[email protected]>
Blade / Shadow -- http://shadow.tech

A message that is not in the archive (sent off-list or not yet received): [email protected]

#4 lore raw
Quoted 16 lines · Yann Dirson via lists.openembedded.org

Hi Bruce,

Quoted 11 lines · Bruce Ashfield
Quoted 8 lines · Yann Dirson

From: Yann Dirson <[email protected]>

This is not quite enough for the lack of a BSP to stand out clearly to an unsuspecting user's eyes, but at least this line in the logs should help some of us to get a clue:

NOTE: Using kmeta BSP ''

Quoted 7 lines
Quoted 5 lines

Sorry, but no on this.

There are already logs that are kept in the build directories themselves. They can be further exposed via some of the existing debug knobs that I have, but this is just noise in the general logs.

I must say I did not find any existing logs on this, where can I find them ?

After some digging in the source I finally noticed the merge_config.sh output being saved
under $meta_dir. It still took me an additional log to locate the log under work-shared/.../kernel-source/.
I'm pretty sure I was pointed to this file in the past, but I find it unnecessarily difficult to locate.

Still, this log does not contain the name of the top-level $KMACHINE-$KTYPE.scc, which is the
information I'm after.

I do agree however that it make it unnecessary to log the whole $elements list, as long it is easy enough to locate the information. Here is a proposal to address this last point, so that
a user looking at the task logs gets the path to it. Does that one look OK to you ?

(quoted diff) +0 -0

b/meta/classes/kernel-yocto.bbclass
index 9aa0eb07c6..e3efa34671 100644

meta/classes/kernel-yocto.bbclass +0 -0
@@ -430,6 +430,8 @@ do_kernel_configme() {
                else
                        bbfatal_log "Details can be found at:

${S}/${meta_dir}/cfg/merge_config_build.log"
fi
+ else
+ bbnote "Detailed merge_config.sh output can be found
at: ${S}/${meta_dir}/cfg/merge_config_build.log"

        fi

        if [ ! -z "${LINUX_VERSION_EXTENSION}" ]; then
Quoted 61 lines
Quoted 44 lines

Cheers,

Bruce

Quoted 38 lines
---
 meta/classes/kernel-yocto.bbclass | 3 +++
 1 file changed, 3 insertions(+)
meta/classes/kernel-yocto.bbclass +3 -1
index 35587dd564..c6228ad0b8 100644
@@ -234,6 +234,7 @@ do_kernel_metadata() {
                    KMETA_EXTERNAL_BSPS="t"
                fi
        fi
+       bbnote "Using kmeta BSP '$bsp_definition'"
        meta_dir=$(kgit --meta)
 
        KERNEL_FEATURES_FINAL=""
@@ -264,6 +265,7 @@ do_kernel_metadata() {
        if [ "$mode" = "config" ]; then
                # run1: pull all the configuration fragments, no matter where they come from
                elements="`echo -n ${bsp_definition} $sccs_defconfig ${sccs} ${patches} $KERNEL_FEATURES_FINAL`"
+               bbnote "config: kmeta configuration fragments: $elements"
                if [ -n "${elements}" ]; then
                        echo "${bsp_definition}" > ${S}/${meta_dir}/bsp_definition
                        scc --force -o ${S}/${meta_dir}:cfg,merge,meta ${includes} $sccs_defconfig $bsp_definition $sccs $patches $KERNEL_FEATURES_FINAL
@@ -283,6 +285,7 @@ do_kernel_metadata() {
        if [ "$mode" = "patch" ]; then
                # run2: only generate patches for elements that have been passed on the SRC_URI
                elements="`echo -n ${sccs} ${patches} $KERNEL_FEATURES_FINAL`"
+               bbnote "patch: kmeta configuration fragments: $elements"
                if [ -n "${elements}" ]; then
                        scc --force -o ${S}/${meta_dir}:patch --cmds patch ${includes} ${sccs} ${patches} $KERNEL_FEATURES_FINAL
                        if [ $? -ne 0 ]; then
--

2.30.2

Quoted 8 lines
Quoted 2 lines

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

--
Yann Dirson <[email protected]>
Blade / Shadow -- http://shadow.tech

Signature · 2 lines
Yann Dirson <[email protected]>
Blade / Shadow -- http://shadow.tech
#5 lore raw
Quoted 25 lines · Yann Dirson
Quoted 22 lines · Yann Dirson via lists.openembedded.org

Hi Bruce,

Quoted 16 lines · Bruce Ashfield
Quoted 8 lines · Yann Dirson

From: Yann Dirson <[email protected]>

This is not quite enough for the lack of a BSP to stand out clearly to an unsuspecting user's eyes, but at least this line in the logs should help some of us to get a clue:

NOTE: Using kmeta BSP ''

Sorry, but no on this.

There are already logs that are kept in the build directories themselves. They can be further exposed via some of the existing debug knobs that I have, but this is just noise in the general logs.

Quoted 8 lines
Quoted 1 line

I must say I did not find any existing logs on this, where can I find them ?

After some digging in the source I finally noticed the merge_config.sh output being saved
under $meta_dir. It still took me an additional log to locate the log under work-shared/.../kernel-source/.
I'm pretty sure I was pointed to this file in the past, but I find it unnecessarily difficult to locate.

As opposed to any of the other random log files that contain somewhat internal information ? This isn't something that the majority of people need to see, so it stays local to what the recipes are building (the kernel). The use facing distillation of that information is the kernel configuration audit.

In the past 10 years or so, I've bounced back and forth between exposing more information, getting complaints/comments about the amount of noise and fine tuning the signal to noise in the information. That's what is being balanced here.

Quoted 4 lines

Still, this log does not contain the name of the top-level $KMACHINE-$KTYPE.scc, which is the
information I'm after.

That's logged in a file in the .kernel-meta directory. (${S}/${meta_dir}/bsp_definition)

Quoted 7 lines

I do agree however that it make it unnecessary to log the whole $elements list, as long it is easy enough to locate the information. Here is a proposal to address this last point, so that
a user looking at the task logs gets the path to it. Does that one look OK to you ?

There's already a kernel config audit task, and that's where any enhanced information really needs to go.

There's no need to rush through anything on this, since we are right on top of a release, and although minor, I wouldn't push for it to go in at this point.

But I do agree, we can tweak things to expose a bit more information that aids in development of new BSPs/fragments than is currently available.

I can float some RFC patches in a few weeks and see if they meet the need.

Bruce

Quoted 83 lines
meta/classes/kernel-yocto.bbclass +0 -0
index 9aa0eb07c6..e3efa34671 100644
@@ -430,6 +430,8 @@ do_kernel_configme() {
                else
                        bbfatal_log "Details can be found at:

${S}/${meta_dir}/cfg/merge_config_build.log"
fi

meta/classes/kernel-yocto.bbclass +2 -0
+       else
+               bbnote "Detailed merge_config.sh output can be found

at: ${S}/${meta_dir}/cfg/merge_config_build.log"

        fi

        if [ ! -z "${LINUX_VERSION_EXTENSION}" ]; then
Quoted 55 lines
Quoted 44 lines

Cheers,

Bruce

Quoted 38 lines
---
 meta/classes/kernel-yocto.bbclass | 3 +++
 1 file changed, 3 insertions(+)
meta/classes/kernel-yocto.bbclass +3 -1
index 35587dd564..c6228ad0b8 100644
@@ -234,6 +234,7 @@ do_kernel_metadata() {
                    KMETA_EXTERNAL_BSPS="t"
                fi
        fi
+       bbnote "Using kmeta BSP '$bsp_definition'"
        meta_dir=$(kgit --meta)
 
        KERNEL_FEATURES_FINAL=""
@@ -264,6 +265,7 @@ do_kernel_metadata() {
        if [ "$mode" = "config" ]; then
                # run1: pull all the configuration fragments, no matter where they come from
                elements="`echo -n ${bsp_definition} $sccs_defconfig ${sccs} ${patches} $KERNEL_FEATURES_FINAL`"
+               bbnote "config: kmeta configuration fragments: $elements"
                if [ -n "${elements}" ]; then
                        echo "${bsp_definition}" > ${S}/${meta_dir}/bsp_definition
                        scc --force -o ${S}/${meta_dir}:cfg,merge,meta ${includes} $sccs_defconfig $bsp_definition $sccs $patches $KERNEL_FEATURES_FINAL
@@ -283,6 +285,7 @@ do_kernel_metadata() {
        if [ "$mode" = "patch" ]; then
                # run2: only generate patches for elements that have been passed on the SRC_URI
                elements="`echo -n ${sccs} ${patches} $KERNEL_FEATURES_FINAL`"
+               bbnote "patch: kmeta configuration fragments: $elements"
                if [ -n "${elements}" ]; then
                        scc --force -o ${S}/${meta_dir}:patch --cmds patch ${includes} ${sccs} ${patches} $KERNEL_FEATURES_FINAL
                        if [ $? -ne 0 ]; then
--

2.30.2

Quoted 8 lines
Quoted 2 lines

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

Quoted 6 lines

--
Yann Dirson <[email protected]>
Blade / Shadow -- http://shadow.tech

--
Yann Dirson <[email protected]>
Blade / Shadow -- http://shadow.tech

Signature · 3 lines
- Thou shalt not follow the NULL pointer, for chaos and madness await
thee at its end
- "Use the force Harry" - Gandalf, Star Trek II
#6 lore raw
Quoted 63 lines · Bruce Ashfield
Quoted 25 lines · Yann Dirson
Quoted 22 lines · Yann Dirson via lists.openembedded.org

Hi Bruce,

Quoted 16 lines · Bruce Ashfield
Quoted 8 lines · Yann Dirson

From: Yann Dirson <[email protected]>

This is not quite enough for the lack of a BSP to stand out clearly to an unsuspecting user's eyes, but at least this line in the logs should help some of us to get a clue:

NOTE: Using kmeta BSP ''

Sorry, but no on this.

There are already logs that are kept in the build directories themselves. They can be further exposed via some of the existing debug knobs that I have, but this is just noise in the general logs.

Quoted 8 lines
Quoted 1 line

I must say I did not find any existing logs on this, where can I find them ?

After some digging in the source I finally noticed the merge_config.sh output being saved
under $meta_dir. It still took me an additional log to locate the log under work-shared/.../kernel-source/.
I'm pretty sure I was pointed to this file in the past, but I find it unnecessarily difficult to locate.

As opposed to any of the other random log files that contain somewhat internal information ? This isn't something that the majority of people need to see, so it stays local to what the recipes are building (the kernel). The use facing distillation of that information is the kernel configuration audit.

In the past 10 years or so, I've bounced back and forth between exposing more information, getting complaints/comments about the amount of noise and fine tuning the signal to noise in the information. That's what is being balanced here.

Quoted 4 lines

Still, this log does not contain the name of the top-level $KMACHINE-$KTYPE.scc, which is the
information I'm after.

That's logged in a file in the .kernel-meta directory. (${S}/${meta_dir}/bsp_definition)

Quoted 7 lines

I do agree however that it make it unnecessary to log the whole $elements list, as long it is easy enough to locate the information. Here is a proposal to address this last point, so that
a user looking at the task logs gets the path to it. Does that one look OK to you ?

Quoted 8 lines

There's already a kernel config audit task, and that's where any enhanced information really needs to go.

There's no need to rush through anything on this, since we are right on top of a release, and although minor, I wouldn't push for it to go in at this point.

But I do agree, we can tweak things to expose a bit more information that aids in development of new BSPs/fragments than is currently available.

I understand that the details about the BSP contents don't get exposed to the user by default. However, it would look sane to me that the selected BSP would be more visible: it is really important for people trying to use different kernel
configurations on a given board, as the BSP selected when there is no exact match
seems to require today to dive into the recipe-specific logs.

But in fact, when I select, say PREFERRED_PROVIDER_virtual/kernel = "linux-yocto-rt"
for this nanopi-m4 for which I only added "standard" and "tiny":
kernel-source/.kernel-meta/bsp_definition then contains just an empty line, ie. the
bbnote "Using kmeta BSP '$bsp_definition'" in my original patch seems to give exactly
the same amount of information.

Isn't the actually-selected BSP available somewhere in this case ? This ends up with scsi configuration fragments being selected, but I have no clue where they're
coming from:

$ cat /tmp/work-shared/nanopi-m4-2gb/kernel-source/.kernel-meta/config.queue
configs///defconfig # non-hardware
configs//features/netfilter/netfilter.cfg # non-hardware
configs//features/taskstats/taskstats.cfg # non-hardware
configs//features/scsi/scsi.cfg # hardware
configs//features/scsi/scsi-debug.cfg # hardware
configs//features/gpio/mockup.cfg # non-hardware
Quoted 95 lines

I can float some RFC patches in a few weeks and see if they meet the need.

Bruce

Quoted 80 lines
meta/classes/kernel-yocto.bbclass +0 -0
index 9aa0eb07c6..e3efa34671 100644
@@ -430,6 +430,8 @@ do_kernel_configme() {
                else
                        bbfatal_log "Details can be found at:

${S}/${meta_dir}/cfg/merge_config_build.log"
fi

meta/classes/kernel-yocto.bbclass +2 -0
+       else
+               bbnote "Detailed merge_config.sh output can be found

at: ${S}/${meta_dir}/cfg/merge_config_build.log"

        fi

        if [ ! -z "${LINUX_VERSION_EXTENSION}" ]; then
Quoted 55 lines
Quoted 44 lines

Cheers,

Bruce

Quoted 38 lines
---
 meta/classes/kernel-yocto.bbclass | 3 +++
 1 file changed, 3 insertions(+)
meta/classes/kernel-yocto.bbclass +3 -1
index 35587dd564..c6228ad0b8 100644
@@ -234,6 +234,7 @@ do_kernel_metadata() {
                    KMETA_EXTERNAL_BSPS="t"
                fi
        fi
+       bbnote "Using kmeta BSP '$bsp_definition'"
        meta_dir=$(kgit --meta)
 
        KERNEL_FEATURES_FINAL=""
@@ -264,6 +265,7 @@ do_kernel_metadata() {
        if [ "$mode" = "config" ]; then
                # run1: pull all the configuration fragments, no matter where they come from
                elements="`echo -n ${bsp_definition} $sccs_defconfig ${sccs} ${patches} $KERNEL_FEATURES_FINAL`"
+               bbnote "config: kmeta configuration fragments: $elements"
                if [ -n "${elements}" ]; then
                        echo "${bsp_definition}" > ${S}/${meta_dir}/bsp_definition
                        scc --force -o ${S}/${meta_dir}:cfg,merge,meta ${includes} $sccs_defconfig $bsp_definition $sccs $patches $KERNEL_FEATURES_FINAL
@@ -283,6 +285,7 @@ do_kernel_metadata() {
        if [ "$mode" = "patch" ]; then
                # run2: only generate patches for elements that have been passed on the SRC_URI
                elements="`echo -n ${sccs} ${patches} $KERNEL_FEATURES_FINAL`"
+               bbnote "patch: kmeta configuration fragments: $elements"
                if [ -n "${elements}" ]; then
                        scc --force -o ${S}/${meta_dir}:patch --cmds patch ${includes} ${sccs} ${patches} $KERNEL_FEATURES_FINAL
                        if [ $? -ne 0 ]; then
--

2.30.2

Quoted 8 lines
Quoted 2 lines

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

Quoted 6 lines

--
Yann Dirson <[email protected]>
Blade / Shadow -- http://shadow.tech

Quoted 3 lines

--
Yann Dirson <[email protected]>
Blade / Shadow -- http://shadow.tech

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

Signature · 2 lines
Yann Dirson <[email protected]>
Blade / Shadow -- http://shadow.tech

A message that is not in the archive (sent off-list or not yet received): [email protected]

#8 lore raw
Quoted 9 lines · Bruce Ashfield via lists.openembedded.org
Quoted 7 lines · Yann Dirson

From: Yann Dirson <[email protected]>

This is not quite enough for the lack of a BSP to stand out clearly to an unsuspecting user's eyes, but at least this line in the logs should help some of us to get a clue:

Quoted 7 lines
Quoted 1 line

NOTE: Using kmeta BSP ''

Sorry, but no on this.

There are already logs that are kept in the build directories themselves. They can be further exposed via some of the existing debug knobs that I have, but this is just noise in the general logs.

I should clarify that I can come up with some different logging, after the upcoming release is done. I have old patches that have a variety of different debug/development modes and I can resurrect them.

I'll open a feature in bugzilla to track it.

Bruce

Quoted 54 lines

Cheers,

Bruce

Quoted 35 lines
---
 meta/classes/kernel-yocto.bbclass | 3 +++
 1 file changed, 3 insertions(+)
meta/classes/kernel-yocto.bbclass +3 -1
index 35587dd564..c6228ad0b8 100644
@@ -234,6 +234,7 @@ do_kernel_metadata() {
                    KMETA_EXTERNAL_BSPS="t"
                fi
        fi
+       bbnote "Using kmeta BSP '$bsp_definition'"
        meta_dir=$(kgit --meta)
 
        KERNEL_FEATURES_FINAL=""
@@ -264,6 +265,7 @@ do_kernel_metadata() {
        if [ "$mode" = "config" ]; then
                # run1: pull all the configuration fragments, no matter where they come from
                elements="`echo -n ${bsp_definition} $sccs_defconfig ${sccs} ${patches} $KERNEL_FEATURES_FINAL`"
+               bbnote "config: kmeta configuration fragments: $elements"
                if [ -n "${elements}" ]; then
                        echo "${bsp_definition}" > ${S}/${meta_dir}/bsp_definition
                        scc --force -o ${S}/${meta_dir}:cfg,merge,meta ${includes} $sccs_defconfig $bsp_definition $sccs $patches $KERNEL_FEATURES_FINAL
@@ -283,6 +285,7 @@ do_kernel_metadata() {
        if [ "$mode" = "patch" ]; then
                # run2: only generate patches for elements that have been passed on the SRC_URI
                elements="`echo -n ${sccs} ${patches} $KERNEL_FEATURES_FINAL`"
+               bbnote "patch: kmeta configuration fragments: $elements"
                if [ -n "${elements}" ]; then
                        scc --force -o ${S}/${meta_dir}:patch --cmds patch ${includes} ${sccs} ${patches} $KERNEL_FEATURES_FINAL
                        if [ $? -ne 0 ]; then
--
Quoted 5 lines

2.30.2

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

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