<div dir="ltr"><div style="font-size:14px">Hi List,</div><div style="font-size:14px"><br></div><div style="font-size:14px">I am using Yocto 1.7.1 to build linux-mainline. I found defconfig will not be used when using <a href="http://linux-yocto-custom.bb/" target="_blank">linux-yocto-custom.bb</a> (maybe also happens on linux-yocto).<br></div><div style="font-size:14px"><br></div><div style="font-size:14px">I think below is the reason,</div><div style="font-size:14px"><br></div><div style="font-size:14px">1. kernel_do_configure is run after do_kernel_configme.The last line of do_kernel_configme is echo "CONFIG_LOCALVERSION="\"${LINUX_VERSION_EXTENSION}\" >> ${B}/.config</div><div style="font-size:14px"><br></div><div style="font-size:14px">2. Following are the code to use defconfig,</div><div style="font-size:14px"><br></div><div style="font-size:14px"><div><span style="white-space:pre-wrap"> </span># Copy defconfig to .config if .config does not exist. This allows</div><div><span style="white-space:pre-wrap"> </span># recipes to manage the .config themselves in do_configure_prepend().</div><div><span style="white-space:pre-wrap"> </span>if [ -f "${WORKDIR}/defconfig" ] && [ ! -f "${B}/.config" ]; then</div><div><span style="white-space:pre-wrap"> </span>cp "${WORKDIR}/defconfig" "${B}/.config"</div></div><div style="font-size:14px"><br></div><div style="font-size:14px">The condition '[ ! -f "${B}/.config"]' will not be true, so recepe-kernel/linux/linux-yocto-custom/defconfig will nerver be used.</div><div style="font-size:14px"><br></div><div style="font-size:14px"><br></div><div style="font-size:14px">To use defconfig is one of the method suggested in Kernel developer manual.</div><div style="font-size:14px"><br></div><div style="font-size:14px">Thanks and Regards,</div><div style="font-size:14px">Chungyeh</div></div>