linux-dey: add support for configuration fragments
This allows users to apply small changes to our kernel configuration without having to create a completely new defconfig. Use a simplified version of the kernel-yocto.bbclass implementation. https://onedigi.atlassian.net/browse/DEL-6706 Signed-off-by: Gabriel Valcazar <gabriel.valcazar@digi.com>
This commit is contained in:
parent
abba0948a9
commit
32a39c7910
|
|
@ -88,4 +88,14 @@ do_copy_defconfig () {
|
|||
}
|
||||
addtask copy_defconfig after do_patch before do_kernel_localversion
|
||||
|
||||
# Apply configuration fragments
|
||||
do_configure_append() {
|
||||
# Only accept fragments ending in .cfg. If the fragments contain
|
||||
# something other than kernel configs, it will be filtered out
|
||||
# automatically.
|
||||
if [ -f ${WORKDIR}/*.cfg ]; then
|
||||
${S}/scripts/kconfig/merge_config.sh -O ${B} ${B}/.config ${WORKDIR}/*.cfg
|
||||
fi
|
||||
}
|
||||
|
||||
COMPATIBLE_MACHINE = "(ccimx6ul|ccimx8x|ccimx8m|ccimx6)"
|
||||
|
|
|
|||
Loading…
Reference in New Issue