From: Chih-Wei Huang Date: Fri, 19 May 2017 06:34:37 +0000 (+0800) Subject: android: add rules to build vbox modules X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=refs%2Fheads%2Fnougat-x86;p=android-x86%2Fexternal-vboxguest-linux-modules.git android: add rules to build vbox modules --- diff --git a/Android.mk b/Android.mk new file mode 100644 index 0000000..ad28a4c --- /dev/null +++ b/Android.mk @@ -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)