[Sound-open-firmware] [PATCH 6/6] topology: Add build support for topology files.
Liam Girdwood
liam.r.girdwood at linux.intel.com
Thu Jul 6 17:53:05 CEST 2017
Add support to build topology text files into binary files understood
by the drivers. This is a two stage build, the first stage is to
pre-process the files with M4 into regular alsa-conf format and the second
stage is to compile with the alsa topology compiler.
Signed-off-by: Liam Girdwood <liam.r.girdwood at linux.intel.com>
---
.gitignore | 3 +++
Makefile.am | 2 +-
configure.ac | 3 ++-
topology/Makefile.am | 41 +++++++++++++++++++++++++++++++++++++++++
4 files changed, 47 insertions(+), 2 deletions(-)
create mode 100644 topology/Makefile.am
diff --git a/.gitignore b/.gitignore
index 145a58d..bc827b4 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,5 +1,6 @@
*.o
*.in
+*~
autom4te*
*.Po
*.swp
@@ -16,3 +17,5 @@ ltmain.sh
rimage/rimage
rmbox/rmbox
rwav/rwav
+*.tplg
+topology/*.conf
diff --git a/Makefile.am b/Makefile.am
index 3373168..ea01286 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -1 +1 @@
-SUBDIRS = rimage rmbox
+SUBDIRS = rimage rmbox topology
diff --git a/configure.ac b/configure.ac
index b3d4473..87c7519 100644
--- a/configure.ac
+++ b/configure.ac
@@ -16,6 +16,7 @@ AC_OUTPUT([
Makefile
rimage/Makefile
rmbox/Makefile
+ topology/Makefile
])
echo "
@@ -23,4 +24,4 @@ echo "
prefix: ${prefix}
Compiler: ${CC}
CFLAGS: ${CFLAGS}
-"
\ No newline at end of file
+"
diff --git a/topology/Makefile.am b/topology/Makefile.am
new file mode 100644
index 0000000..98661f7
--- /dev/null
+++ b/topology/Makefile.am
@@ -0,0 +1,41 @@
+
+#
+# Dependencies
+#
+
+DEPS = \
+ dsps/*.m4 \
+ common/*.m4 \
+ m4/*.m4 \
+ sof/*.m4
+
+#
+# Machines
+#
+
+MACHINES = \
+ reef-cht-nocodec.tplg \
+ reef-apl-nocodec.tplg \
+ reef-bxt-nocodec.tplg \
+ reef-byt-nocodec.tplg \
+ reef-bdw-rt286.tplg \
+ reef-bdw-rt5640.tplg \
+ reef-byt-rt5640.tplg \
+ reef-byt-rt5651.tplg \
+ reef-hsw-rt5640.tplg
+
+# Uncomment the following line if you want to debug conf files
+.PRECIOUS: %.conf
+
+%.conf : %.m4 ${DEPS}
+ m4 -I m4 $< > $@
+
+%.tplg : %.conf
+ alsatplg -v 1 -c $< -o $@
+
+all: ${MACHINES}
+
+clean:
+ rm -f *.conf
+ rm -f *.tplg
+
--
2.11.0
More information about the Sound-open-firmware
mailing list