linux-dey: fix kernel build configuration
Commit 8cba3aaefb in 'meta-freescale' changed the kernel_localversion function we are using in our kernel recipe. This leads to a not-properly configured kernel build, where CONFIG_MODULES is disabled. That config option is needed to build external kernel modules in other recipes, so those recipes (kernel-module-qualcomm, cryptodev-module, etc) fail to build. The commit makes sure the kernel is properly configured for building by extending the do_configure function in a "prepend". Signed-off-by: Javier Viguera <javier.viguera@digi.com>
This commit is contained in:
parent
a8d7b3c623
commit
482339617b
|
|
@ -24,6 +24,15 @@ require ${@oe.utils.conditional('TRUSTFENCE_SIGN', '1', 'recipes-kernel/linux/li
|
|||
# Use custom provided 'defconfig' if variable KERNEL_DEFCONFIG is cleared
|
||||
SRC_URI +="${@oe.utils.conditional('KERNEL_DEFCONFIG', '', 'file://defconfig', '', d)}"
|
||||
|
||||
# This is needed because kernel_localversion (in fsl-kernel-localversion.bbclass)
|
||||
# creates a basic ${B}/.config file and because that file exists, kernel_do_configure
|
||||
# (in kernel.bbclass) does not apply our defconfig.
|
||||
do_configure:prepend:imx-nxp-bsp() {
|
||||
if [ -f "${WORKDIR}/defconfig" ] && [ -f "${B}/.config" ]; then
|
||||
cat "${WORKDIR}/defconfig" >> "${B}/.config"
|
||||
fi
|
||||
}
|
||||
|
||||
# Apply configuration fragments
|
||||
do_configure:append() {
|
||||
# Only accept fragments ending in .cfg. If the fragments contain
|
||||
|
|
|
|||
Loading…
Reference in New Issue