]> git.alsa-project.org Git - alsa-topology-conf.git/commitdiff
Introduce Makefile to simplify the binary files availability
authorJaroslav Kysela <perex@perex.cz>
Thu, 11 Mar 2021 14:00:20 +0000 (15:00 +0100)
committerJaroslav Kysela <perex@perex.cz>
Thu, 11 Mar 2021 14:01:34 +0000 (15:01 +0100)
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
Makefile [new file with mode: 0644]
README.md

diff --git a/Makefile b/Makefile
new file mode 100644 (file)
index 0000000..ef8c367
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,16 @@
+#
+# Compile and install the firmware files to /lib/firmware tree
+# Requires the alsatplg tool (alsa-utils)
+#
+
+FWPATH ?= /lib/firmware
+
+targets = $(FWPATH)/skl_hda_dsp_generic-tplg.bin
+
+all: firmware
+
+$(FWPATH)/skl_hda_dsp_generic-tplg.bin: topology/hda-dsp/skl_hda_dsp_generic-tplg.conf
+       alsatplg -c $< -o $@
+
+.DUMMY: firmware
+firmware: $(targets)
index f54a79cc1ef27735fee462c085b2e55815bd2a76..834f2a0ef29aa7b3edc5d2543daa78400819cab1 100644 (file)
--- a/README.md
+++ b/README.md
@@ -1,2 +1,5 @@
 # alsa-topology-conf
 ALSA topology configuration files
+
+Use 'make firmware' to compile and install the topology files
+to the /lib/firmware tree.