]> git.alsa-project.org Git - alsa-utils.git/commit
topology: pre-processor: Add support for conditional includes
authorRanjani Sridharan <ranjani.sridharan@linux.intel.com>
Mon, 6 Dec 2021 05:10:46 +0000 (21:10 -0800)
committerJaroslav Kysela <perex@perex.cz>
Mon, 6 Dec 2021 08:19:20 +0000 (09:19 +0100)
commitef3a96367e35a28857bb46806c898e3ff49d1498
tree9b5e2485774d39736722d87b75a0c3e98acb78af
parentda8f90c42473976eddd43f9d7037442dd15b7ed3
topology: pre-processor: Add support for conditional includes

Add a new keyword "IncludeByKey" that will be used to conditional
include configuration files based on the argument value supplied during
build time. For example:

IncludeByKey.DMIC_CH_COUNT {
"[1-4]" "include/platform/intel/dmic-generic.conf"
}

The above config will include the dmic-generic.conf file if the argument
value for DMIC_CH_COUNT is between 1 and 4.

Signed-off-by: Ranjani Sridharan <ranjani.sridharan@linux.intel.com>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
topology/pre-processor.c