diff options
Diffstat (limited to 'meta-audio-4a-framework/recipes-kernel/linux')
-rw-r--r-- | meta-audio-4a-framework/recipes-kernel/linux/files/4a-sound.cfg | 1 | ||||
-rw-r--r-- | meta-audio-4a-framework/recipes-kernel/linux/linux-%.bbappend | 21 |
2 files changed, 22 insertions, 0 deletions
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}}" + |