From 8c4c336c621a51524e60a49c6445b0333424e1e2 Mon Sep 17 00:00:00 2001 From: Stephane Desneux Date: Wed, 13 Jun 2018 11:28:36 +0200 Subject: agl-audio-4a-framework: enable specific kernel config 4A requires some specific options in the linux kernel, like CONFIG_SND_ALOOP for softmixer. This patch adds config fragments to the default linux kernel recipe only when feature agl-audio-4a-framework is enabled. Change-Id: I443219998652562e9aed963d4e835aa4de60e614 Signed-off-by: Stephane Desneux --- .../recipes-kernel/linux/files/4a-sound.cfg | 1 + .../recipes-kernel/linux/linux-%.bbappend | 21 +++++++++++++++++++++ 2 files changed, 22 insertions(+) create mode 100644 meta-audio-4a-framework/recipes-kernel/linux/files/4a-sound.cfg create mode 100644 meta-audio-4a-framework/recipes-kernel/linux/linux-%.bbappend (limited to 'meta-audio-4a-framework') diff --git a/meta-audio-4a-framework/recipes-kernel/linux/files/4a-sound.cfg b/meta-audio-4a-framework/recipes-kernel/linux/files/4a-sound.cfg new file mode 100644 index 00000000..780e1ad5 --- /dev/null +++ b/meta-audio-4a-framework/recipes-kernel/linux/files/4a-sound.cfg @@ -0,0 +1 @@ +CONFIG_SND_ALOOP=y diff --git a/meta-audio-4a-framework/recipes-kernel/linux/linux-%.bbappend b/meta-audio-4a-framework/recipes-kernel/linux/linux-%.bbappend new file mode 100644 index 00000000..cc613708 --- /dev/null +++ b/meta-audio-4a-framework/recipes-kernel/linux/linux-%.bbappend @@ -0,0 +1,21 @@ +FILESEXTRAPATHS_prepend := "${THISDIR}/files:" + +IS_KERNEL_RECIPE := "${@bb.data.inherits_class('kernel', d) and 'yes' or 'no'}" + +4A_KERNEL_SRC_URI_no = "" +4A_KERNEL_SRC_URI_yes = "" + +4A_KERNEL_CONFIG_FRAGMENT_no = "" +4A_KERNEL_CONFIG_FRAGMENT_yes = "" + +# ---------- 4a-sound.cfg ------------ + +4A_KERNEL_SRC_URI_yes += "file://4a-sound.cfg" +4A_KERNEL_CONFIG_FRAGMENT_yes += "${WORKDIR}/4a-sound.cfg" + + +# append to SRC_URI and KERNEL_CONFIG_FRAGMENTS (see meta-agl/meta-agl-bsp/recipes-kernel/linux/linux-agl.inc) + +SRC_URI_append = " ${4A_KERNEL_SRC_URI_${IS_KERNEL_RECIPE}}" +KERNEL_CONFIG_FRAGMENTS_append = " ${4A_KERNEL_CONFIG_FRAGMENT_${IS_KERNEL_RECIPE}}" + -- cgit 1.2.3-korg