Re: Honister customer defconfig replacement doesn't work

Bruce Ashfield

On Wed, Apr 27, 2022 at 6:09 PM JH <jupiter.hce@...> wrote:


My apology, I am not sure which group is working on defconfig syntax
for version 3.4 Honister branch. I posted the question to Yocto list
without response, let me rephrase it again:
oe-core/yocto are the right place to ask. I can follow up there.


According to the Yocto document 3.4, out tree customer defconfig can
be used to replace the build/.config, I used a working kernel
defconfig to disable configures, I tried many tricks found from the
mailing lists, but none of works for 3.4 and branch Honister in a
kernel build bbappend file to add KCONFIG_MODE = "allnoconfig" or
KCONFIG_MODE = "alldefconfig":

FILESEXTRAPATHS:prepend := "${THISDIR}/files:"
SRC_URI:append = " file://defconfig"
KCONFIG_MODE = "allnoconfig"
do_configure:prepend () {
cp ${WORKDIR}/defconfig ${B}/.config

It still generated build/.config in do_configure

# configuration written to .config

I changed to:

do_compile:prepend () {
cp ${WORKDIR}/defconfig ${B}/.config

It still restarted config to generate build/.config

* Restart config...
* Kernel Features


Is it possible to disable KBUILD_DEFCONFIG and to use customer defconfig?

Thank you very much.

Kind regards,

- jupiter

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

Join to automatically receive all group messages.