summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJames O'Shannessy <james.oshannessy@fiberdyne.com.au>2018-09-15 00:44:37 -0700
committerMark Farrugia <mark.farrugia@fiberdyne.com.au>2018-10-26 17:27:27 +1100
commitc656cad43025265094bf5139c1265d4bcc0ba84c (patch)
tree1b0a154979075c7e039adc2b862af628927f9ab3
parent38d172808a61a6d0b404abea4db95cd4ee03b06e (diff)
Add updates to Makefiles and tasks for building
Add required changes to Makefile and KConfig to implement building of loopback audio path as part of standard make execution. Signed-off-by: James O'Shannessy <james.oshannessy@fiberdyne.com.au>
-rw-r--r--.vscode/tasks.json4
-rw-r--r--Kconfig1
-rw-r--r--Makefile5
3 files changed, 7 insertions, 3 deletions
diff --git a/.vscode/tasks.json b/.vscode/tasks.json
index c901648..d8063e7 100644
--- a/.vscode/tasks.json
+++ b/.vscode/tasks.json
@@ -9,7 +9,7 @@
"tasks": [
{
"label": "Make Driver",
- "command": "CONFIG_AVIRT=m CONFIG_AVIRT_BUILDLOCAL=y CONFIG_AVIRT_DUMMYAP=m make -C /lib/modules/$(uname -r)/build/ M=$(pwd)",
+ "command": "CONFIG_AVIRT=m CONFIG_AVIRT_BUILDLOCAL=y CONFIG_AVIRT_DUMMYAP=m CONFIG_AVIRT_LOOPBACKAP=m make -C /lib/modules/$(uname -r)/build/ M=$(pwd)",
"group": "build",
"problemMatcher": [
"$gcc"
@@ -17,7 +17,7 @@
},
{
"label": "Clean Driver",
- "command": "CONFIG_AVIRT=m CONFIG_AVIRT_BUILDLOCAL=y CONFIG_AVIRT_DUMMYAP=m make -C /lib/modules/$(uname -r)/build/ M=$(pwd) clean",
+ "command": "CONFIG_AVIRT=m CONFIG_AVIRT_BUILDLOCAL=y CONFIG_AVIRT_DUMMYAP=m CONFIG_AVIRT_LOOPBACKAP=m make -C /lib/modules/$(uname -r)/build/ M=$(pwd) clean",
"group": "build",
"problemMatcher": [
"$gcc"
diff --git a/Kconfig b/Kconfig
index 0e2a52a..b15bcbe 100644
--- a/Kconfig
+++ b/Kconfig
@@ -16,5 +16,6 @@ menuconfig AVIRT
if AVIRT
source "drivers/staging/avirt/dummy/Kconfig"
+source "drivers/staging/avirt/loopback/Kconfig"
endif
diff --git a/Makefile b/Makefile
index 0c02c23..dfdc715 100644
--- a/Makefile
+++ b/Makefile
@@ -14,6 +14,7 @@ ccflags-y += -I${CCFLAGS_AVIRT}
$(info $(KERNELRELEASE))
obj-$(CONFIG_AVIRT_DUMMYAP) += dummy/
+obj-$(CONFIG_AVIRT_LOOPBACKAP) += loopback/
###
# For out-of-tree building
@@ -27,7 +28,9 @@ else
endif
all:
- CONFIG_AVIRT=m CONFIG_AVIRT_BUILDLOCAL=y CONFIG_AVIRT_DUMMYAP=m \
+ CONFIG_AVIRT=m CONFIG_AVIRT_BUILDLOCAL=y \
+ CONFIG_AVIRT_DUMMYAP=m \
+ CONFIG_AVIRT_LOOPBACKAP=m \
make -C $(KERNEL_SRC) M=$(PWD)
clean: