]> git.alsa-project.org Git - alsa-topology-conf.git/commitdiff
Makefile: add SRCPATH to override the source .conf tree master reltest v1.2.5 v1.2.5.1
authorJaroslav Kysela <perex@perex.cz>
Thu, 11 Mar 2021 18:48:46 +0000 (19:48 +0100)
committerJaroslav Kysela <perex@perex.cz>
Thu, 11 Mar 2021 18:48:49 +0000 (19:48 +0100)
It may be handy to use:

  make SRCPATH=/usr/share/alsa firmware

Signed-off-by: Jaroslav Kysela <perex@perex.cz>
Makefile

index ef8c367aa7715c5f443aba15b40905ef3192b9b2..936d3f2bb954126dd3576033added2bdfab3a892 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -3,13 +3,14 @@
 # Requires the alsatplg tool (alsa-utils)
 #
 
 # Requires the alsatplg tool (alsa-utils)
 #
 
+SRCPATH ?= .
 FWPATH ?= /lib/firmware
 
 targets = $(FWPATH)/skl_hda_dsp_generic-tplg.bin
 
 all: firmware
 
 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
+$(FWPATH)/skl_hda_dsp_generic-tplg.bin: $(SRCPATH)/topology/hda-dsp/skl_hda_dsp_generic-tplg.conf
        alsatplg -c $< -o $@
 
 .DUMMY: firmware
        alsatplg -c $< -o $@
 
 .DUMMY: firmware