Discussion:
[yocto] QEMU kernel defconfigs
Jon Mason
2018-11-15 17:29:04 UTC
Permalink
I'm having difficulty determining where the kernel defconfigs are
defined and located. I'm specifically looking for the qemuarm and
qemuarm64 kernel defconfigs. I've looked at the relevant
documentation, https://www.yoctoproject.org/docs/2.5.1/kernel-dev/kernel-dev.html#using-an-in-tree-defconfig-file
and
no SRC_URI with defconfig or KBUILD_DEFCONFIG_KMACHINE defined in
meta/recipes-kernel/linux/linux-yocto_4.18.bb

What am I missing?

Also, "A defconfig file is simply a .config renamed to "defconfig"."
is not correct. A properly created defconfig is created by `make
savedefconfig` and is a minimal file which only has the delta between
the desired config and defaults from the Kconfig files.
https://www.yoctoproject.org/docs/2.5.1/kernel-dev/kernel-dev.html#creating-a-defconfig-file

Thanks,
Jon
--
Bruce Ashfield
2018-11-15 20:08:22 UTC
Permalink
Post by Jon Mason
I'm having difficulty determining where the kernel defconfigs are
defined and located. I'm specifically looking for the qemuarm and
qemuarm64 kernel defconfigs. I've looked at the relevant
documentation, https://www.yoctoproject.org/docs/2.5.1/kernel-dev/kernel-dev.html#using-an-in-tree-defconfig-file
and
no SRC_URI with defconfig or KBUILD_DEFCONFIG_KMACHINE defined in
meta/recipes-kernel/linux/linux-yocto_4.18.bb
What am I missing?
The reference machines with linux-yocto don't use defconfigs at all.
They are fully assembled from the configuration fragments in the
kernel-cache repo.

You'll see the location of the kernel-cache, and the routines that
gather up the fragments in the linux-yocto* recipes.

The kernel development manual has that detail as well:

https://www.yoctoproject.org/docs/2.5.1/kernel-dev/kernel-dev.html#kernel-dev-advanced

Bruce
Post by Jon Mason
Also, "A defconfig file is simply a .config renamed to "defconfig"."
is not correct. A properly created defconfig is created by `make
savedefconfig` and is a minimal file which only has the delta between
the desired config and defaults from the Kconfig files.
https://www.yoctoproject.org/docs/2.5.1/kernel-dev/kernel-dev.html#creating-a-defconfig-file
Thanks,
Jon
--
Scott Rifenbark
2018-11-15 22:46:27 UTC
Permalink
On Thu, Nov 15, 2018 at 12:08 PM Bruce Ashfield <
Post by Jon Mason
Post by Jon Mason
I'm having difficulty determining where the kernel defconfigs are
defined and located. I'm specifically looking for the qemuarm and
qemuarm64 kernel defconfigs. I've looked at the relevant
documentation,
https://www.yoctoproject.org/docs/2.5.1/kernel-dev/kernel-dev.html#using-an-in-tree-defconfig-file
Post by Jon Mason
and
no SRC_URI with defconfig or KBUILD_DEFCONFIG_KMACHINE defined in
meta/recipes-kernel/linux/linux-yocto_4.18.bb
What am I missing?
The reference machines with linux-yocto don't use defconfigs at all.
They are fully assembled from the configuration fragments in the
kernel-cache repo.
You'll see the location of the kernel-cache, and the routines that
gather up the fragments in the linux-yocto* recipes.
https://www.yoctoproject.org/docs/2.5.1/kernel-dev/kernel-dev.html#kernel-dev-advanced
Bruce
Post by Jon Mason
Also, "A defconfig file is simply a .config renamed to "defconfig"."
is not correct. A properly created defconfig is created by `make
savedefconfig` and is a minimal file which only has the delta between
the desired config and defaults from the Kconfig files.
https://www.yoctoproject.org/docs/2.5.1/kernel-dev/kernel-dev.html#creating-a-defconfig-file
Post by Jon Mason
Thanks,
Jon
Jon - see
https://www.yoctoproject.org/docs/2.5.1/kernel-dev/kernel-dev.html#creating-a-defconfig-file
for some re-phrasing.
Post by Jon Mason
--
_______________________________________________
yocto mailing list
https://lists.yoctoproject.org/listinfo/yocto
Loading...