-
Notifications
You must be signed in to change notification settings - Fork 53
/
dkms.conf
132 lines (104 loc) · 3.45 KB
/
dkms.conf
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
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
PACKAGE_NAME=ipu6-drivers
PACKAGE_VERSION=0.0.0
MAKE="make KERNELRELEASE=$kernelver KERNEL_SRC=$kernel_source_dir"
CLEAN="make KERNELRELEASE=$kernelver KERNEL_SRC=$kernel_source_dir clean"
AUTOINSTALL="yes"
BUILD_EXCLUSIVE_CONFIG="CONFIG_VIDEO_V4L2_I2C"
version_lt() {
IFS='.' read -r i j k <<< "$1"
IFS='.' read -r a b c <<< "$2"
i=${i:-0}
j=${j:-0}
k=${k:-0}
a=${a:-0}
b=${b:-0}
c=${c:-0}
if [ "$i" -lt "$a" ]; then
return 0
elif [ "$i" -eq "$a" ]; then
if [ "$j" -lt "$b" ]; then
return 0
elif [ "$j" -eq "$b" ]; then
if [ "$k" -lt "$c" ]; then
return 0
fi
fi
fi
return 1
}
KERNEL_VERSION=$(echo ${kernelver} | sed 's/[^0-9.]*\([0-9.]*\).*/\1/')
KV_IVSC=6.6.0
KV_OV2740=6.8.0
KV_OV05C10=6.8.0
KV_IPU6_ISYS=6.10.0
BUILT_MODULE_NAME[0]="hm11b1"
BUILT_MODULE_LOCATION[0]="drivers/media/i2c"
DEST_MODULE_LOCATION[0]="/updates"
BUILT_MODULE_NAME[1]="ov01a1s"
BUILT_MODULE_LOCATION[1]="drivers/media/i2c"
DEST_MODULE_LOCATION[1]="/updates"
BUILT_MODULE_NAME[2]="ov01a10"
BUILT_MODULE_LOCATION[2]="drivers/media/i2c"
DEST_MODULE_LOCATION[2]="/updates"
BUILT_MODULE_NAME[3]="ov02c10"
BUILT_MODULE_LOCATION[3]="drivers/media/i2c"
DEST_MODULE_LOCATION[3]="/updates"
BUILT_MODULE_NAME[4]="ov02e10"
BUILT_MODULE_LOCATION[4]="drivers/media/i2c"
DEST_MODULE_LOCATION[4]="/updates"
BUILT_MODULE_NAME[5]="hm2170"
BUILT_MODULE_LOCATION[5]="drivers/media/i2c"
DEST_MODULE_LOCATION[5]="/updates"
BUILT_MODULE_NAME[6]="hm2172"
BUILT_MODULE_LOCATION[6]="drivers/media/i2c"
DEST_MODULE_LOCATION[6]="/updates"
BUILT_MODULE_NAME[7]="hi556"
BUILT_MODULE_LOCATION[7]="drivers/media/i2c"
DEST_MODULE_LOCATION[7]="/updates"
if ! version_lt ${KERNEL_VERSION} ${KV_OV05C10}; then
BUILD_EXCLUSIVE_CONFIG="CONFIG_VIDEO_V4L2_I2C CONFIG_V4L2_CCI_I2C"
BUILT_MODULE_NAME[8]="ov05c10"
BUILT_MODULE_LOCATION[8]="drivers/media/i2c"
DEST_MODULE_LOCATION[8]="/updates"
fi
if version_lt ${KERNEL_VERSION} ${KV_OV2740}; then
BUILT_MODULE_NAME[8]="ov2740"
BUILT_MODULE_LOCATION[8]="drivers/media/i2c"
DEST_MODULE_LOCATION[8]="/updates"
fi
if ! version_lt ${KERNEL_VERSION} ${KV_IPU6_ISYS}; then
PATCH[0]="0001-v6.10-IPU6-headers-used-by-PSYS.patch"
fi
BUILT_MODULE_NAME[9]="intel-ipu6-psys"
BUILT_MODULE_LOCATION[9]="drivers/media/pci/intel/ipu6/psys"
DEST_MODULE_LOCATION[9]="/updates"
if version_lt ${KERNEL_VERSION} ${KV_IPU6_ISYS}; then
BUILT_MODULE_NAME[10]="intel-ipu6"
BUILT_MODULE_LOCATION[10]="drivers/media/pci/intel/ipu6"
DEST_MODULE_LOCATION[10]="/updates"
BUILT_MODULE_NAME[11]="intel-ipu6-isys"
BUILT_MODULE_LOCATION[11]="drivers/media/pci/intel/ipu6"
DEST_MODULE_LOCATION[11]="/updates"
fi
if version_lt ${KERNEL_VERSION} ${KV_IVSC}; then
BUILT_MODULE_NAME[12]="ljca"
DEST_MODULE_LOCATION[12]="/updates"
BUILT_MODULE_NAME[13]="spi-ljca"
DEST_MODULE_LOCATION[13]="/updates"
BUILT_MODULE_NAME[14]="gpio-ljca"
DEST_MODULE_LOCATION[14]="/updates"
BUILT_MODULE_NAME[15]="i2c-ljca"
DEST_MODULE_LOCATION[15]="/updates"
BUILT_MODULE_NAME[16]="mei-vsc"
DEST_MODULE_LOCATION[16]="/updates"
BUILT_MODULE_NAME[17]="intel_vsc"
DEST_MODULE_LOCATION[17]="/updates"
BUILT_MODULE_NAME[18]="mei_csi"
DEST_MODULE_LOCATION[18]="/updates"
BUILT_MODULE_NAME[19]="mei_ace"
DEST_MODULE_LOCATION[19]="/updates"
BUILT_MODULE_NAME[20]="mei_pse"
DEST_MODULE_LOCATION[20]="/updates"
BUILT_MODULE_NAME[21]="mei_ace_debug"
DEST_MODULE_LOCATION[21]="/updates"
fi