summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGowtham Tammana2017-07-05 17:54:11 -0500
committerGowtham Tammana2017-07-05 17:54:11 -0500
commit0d62f3a5ab55d3fb476f0107b693379838111ee6 (patch)
tree4014fbc386891fb631cca47ded19419d3cc83559
parentd188246f28ad52410bc303c26a873e2cc0f82090 (diff)
downloadti-gc320-driver-ti-5.0.11.p7-k4.4.tar.gz
ti-gc320-driver-ti-5.0.11.p7-k4.4.tar.xz
ti-gc320-driver-ti-5.0.11.p7-k4.4.zip
Add Android makefileti-5.0.11.p7-k4.4
A new build file `Android.mk` is added for building kernel module using Android build infrastructure. By this the kernel module gets placed in the appropriate location in the Android $OUT path. Signed-off-by: Gowtham Tammana <g-tammana@ti.com>
-rw-r--r--src/Android.mk38
1 files changed, 38 insertions, 0 deletions
diff --git a/src/Android.mk b/src/Android.mk
new file mode 100644
index 0000000..ce38769
--- /dev/null
+++ b/src/Android.mk
@@ -0,0 +1,38 @@
1LOCAL_PATH := $(call my-dir)
2include $(LOCAL_PATH)/config.j6
3
4include $(CLEAR_VARS)
5.PHONY: KBUILD
6
7AQROOT := $(LOCAL_PATH)
8GALCORE := $(AQROOT)/galcore.ko
9
10$(GALCORE): KBUILD
11 @$(MAKE) -f Kbuild -C $(AQROOT) \
12 AQROOT=$(abspath $(AQROOT)) \
13 ARCH_TYPE=$(ARCH_TYPE) \
14 CROSS_COMPILE=arm-linux-androideabi- \
15 KERNEL_DIR=$(KERNEL_DIR) \
16 SDK_DIR=$(SDK_DIR) \
17 VIVANTE_ENABLE_2D=$(VIVANTE_ENABLE_2D) \
18 VIVANTE_ENABLE_3D=$(VIVANTE_ENABLE_3D) \
19 VIVANTE_ENABLE_VG=$(VIVANTE_ENABLE_VG) \
20 FORCE_ALL_VIDEO_MEMORY_CACHED=$(FORCE_ALL_VIDEO_MEMORY_CACHED) \
21 NONPAGED_MEMORY_CACHEABLE=$(NONPAGED_MEMORY_CACHEABLE) \
22 NONPAGED_MEMORY_BUFFERABLE=$(NONPAGED_MEMORY_BUFFERABLE) \
23 ENABLE_OUTER_CACHE_PATCH=$(ENABLE_OUTER_CACHE_PATCH) \
24 USE_BANK_ALIGNMENT=$(USE_BANK_ALIGNMENT) \
25 BANK_BIT_START=$(BANK_BIT_START) \
26 BANK_BIT_END=$(BANK_BIT_END) \
27 BANK_CHANNEL_BIT=$(BANK_CHANNEL_BIT) \
28
29LOCAL_SRC_FILES := galcore.ko
30
31LOCAL_GENERATED_SOURCES := $(GALCORE)
32
33LOCAL_MODULE := galcore.ko
34LOCAL_MODULE_TAGS := optional
35LOCAL_MODULE_CLASS := ETC
36LOCAL_MODULE_PATH := $(TARGET_OUT_SHARED_LIBRARIES)/modules
37LOCAL_STRIP_MODULE := false
38include $(BUILD_PREBUILT)