OSDN Git Service

android: add rules to build vbox modules nougat-x86
authorChih-Wei Huang <cwhuang@linux.org.tw>
Fri, 19 May 2017 06:34:37 +0000 (14:34 +0800)
committerChih-Wei Huang <cwhuang@linux.org.tw>
Fri, 19 May 2017 06:34:37 +0000 (14:34 +0800)
Android.mk [new file with mode: 0644]

diff --git a/Android.mk b/Android.mk
new file mode 100644 (file)
index 0000000..ad28a4c
--- /dev/null
@@ -0,0 +1,23 @@
+#
+# Copyright (C) 2017 The Android-x86 Open Source Project
+#
+# Licensed under the GNU General Public License Version 2 or later.
+# You may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+#      http://www.gnu.org/licenses/gpl.html
+#
+
+define vboxmod
+LOCAL_MODULE := $(1)
+EXTRA_KERNEL_MODULE_PATH_$(1) := $(LOCAL_PATH)/$(1)
+endef
+
+LOCAL_PATH := $(my-dir)
+include $(CLEAR_VARS)
+
+VBOX_KERNEL_MODULES := vboxguest vboxsf vboxvideo
+
+$(foreach v,$(VBOX_KERNEL_MODULES),$(eval $(call vboxmod,$(v))))
+
+TARGET_EXTRA_KERNEL_MODULES += $(VBOX_KERNEL_MODULES)