colleague is playing with RISC-V, building QEMU images, and wanted
to know how the kernel is fetched and configured and built and so on,
so i decided to list the kernel tasks and write a short summary of
what each does (since i think this will be useful shortly), and what
artifacts it generates for use by subsequent steps, and i was doing
fine until i got to do_kernel_metadata(), where i can see that it is
invoked twice:

  - first time in "patch" mode
  - second time from do_kernel_configme() in "config" mode

  but when i bitbake'd the kernel_metadata task for my generic x86-64
kernel, i couldn't find any generated artifacts from that step.

  certainly, stuff is going to be created later during the
kernel_configme() task when that task is invoked again, and it appears
that a fair bit of code will be re-run, but is it the case that,
because i'm building a really trivial configuration (all i've added is
a single .cfg file to demonstrate how it's processed), that the first
call to kernel_metadata() figures it has nothing to generate?

  i can see all of the output from the tail end of that routine:

  if [ ${KCONF_AUDIT_LEVEL} -gt 0 ]; then
    bbnote "kernel meta data summary for ${KMACHINE} (${LINUX_KERNEL_TYPE}):"
    bbnote 
"======================================================================"
    if [ -n "${KMETA_EXTERNAL_BSPS}" ]; then
      bbnote "Non kernel-cache (external) bsp"
    fi
    bbnote "BSP entry point / definition: $bsp_definition"
    if [ -n "$in_tree_defconfig" ]; then
      bbnote "KBUILD_DEFCONFIG: ${KBUILD_DEFCONFIG}"
    fi
    bbnote "Fragments from SRC_URI: $sccs_from_src_uri"
    bbnote "KERNEL_FEATURES: $KERNEL_FEATURES_FINAL"
    bbnote "Final scc/cfg list: $sccs_defconfig $bsp_definition $sccs 
$KERNEL_FEATURES_FINAL"
  fi

but i don't see where in kernel_metadata() any of that is *saved* so
that it doesn't have to be recalculated. again, i'm building a stock
qemux86-64 image, and adding a single .cfg file (no patches), so maybe
this example is so trivial that nothing is generated.

  thoughts?

rday
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#162787): 
https://lists.openembedded.org/g/openembedded-core/message/162787
Mute This Topic: https://lists.openembedded.org/mt/89590057/21656
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to