summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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: