blob: 954c32e989ca35b891f5c03dd6b4bf3b9868f52f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
|
obj-m := gpu_sysfs.o
# Common files.
gpu_sysfs-y := gpu_sysfs_main.o \
gpu_sysfs_util.o
# Platform specific files.
# ==================================
# Start ----- Mali T7xx device -----
ifeq ($(CONFIG_MALI_T7XX),y)
# --- For EXYNOS7420(MaliT760) Device.
ifeq ($(CONFIG_SOC_EXYNOS7420),y)
gpu_sysfs-y += gpu_sysfs_target_exynos7420.o
# Verify: target specific file is defined.
GPU_SYSFS_TARGET_FILE_DEFINED=1
endif
# --- For EXYNOS5433(MaliT760) Device.
ifeq ($(CONFIG_SOC_EXYNOS5433),y)
gpu_sysfs-y += gpu_sysfs_target_exynos5433.o
# Verify: target specific file is defined.
GPU_SYSFS_TARGET_FILE_DEFINED=1
endif
endif
# End ----- Mali T7xx device -------
# ==================================
# ==================================
# Start ---- ARM Midgard-WK04 device
ifeq ($(CONFIG_MALI_MIDGARD_WK04),y)
# --- For EXYNOS5430(MaliT628) Device.
ifeq ($(CONFIG_SOC_EXYNOS5430),y)
gpu_sysfs-y += gpu_sysfs_target_exynos5430.o
# Verify: target specific file is defined.
GPU_SYSFS_TARGET_FILE_DEFINED=1
endif
endif
# End ------ ARM Midgard-WK04 device
# ==================================
# ==================================
# Start ---- ARM Midgard device ----
ifeq ($(CONFIG_MALI_MIDGARD),y)
# --- For EXYNOS5422(MaliT628) Device.
ifeq ($(CONFIG_SOC_EXYNOS5422),y)
gpu_sysfs-y += gpu_sysfs_target_exynos5422.o
# Verify: target specific file is defined.
GPU_SYSFS_TARGET_FILE_DEFINED=1
endif
endif
# End ---- ARM Midgard device ------
# ==================================
# ==================================
# Generate error if the TARGET
# specific file is not defined OR
# picked using the PLATFORM configs.
# ---- Temporary Patch for removing WARNING LOG by steeze.kim(Graphics) ----
#ifndef GPU_SYSFS_TARGET_FILE_DEFINED
#$(warning **** Make sure target file is defined. \
# Check the TARGET and GPU configs in Makefile and Kernel Config. \
# Module won't work without target file. ****)
#endif
# ---- Temporary Patch for removing WARNING LOG by steeze.kim(Graphics) ----
clean:
rm -f *.o .*.cmd modules.order Module.symvers gpu_sysfs.ko gpu_sysfs.mod.c
rm -rf .tmp_versions
|