forked from RehabMan/HP-ProBook-4x30s-DSDT-Patch
-
Notifications
You must be signed in to change notification settings - Fork 0
/
makefile
428 lines (367 loc) · 18.2 KB
/
makefile
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
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
# makefile
#
# Patches/Installs/Builds DSDT patches for HP ProBook/EliteBook/ZBook
#
# Created by RehabMan
#
BUILDDIR=./build
HOTPATCH=./hotpatch
HACK=$(wildcard $(HOTPATCH)/*.dsl)
HACK:=$(subst $(HOTPATCH),$(BUILDDIR),$(HACK))
HACK:=$(subst .dsl,.aml,$(HACK))
HACK:=$(HACK) $(BUILDDIR)/SSDT-IGPUH.aml
HACK:=$(HACK) $(BUILDDIR)/SSDT-FANQ.aml $(BUILDDIR)/SSDT-FANRM.aml $(BUILDDIR)/SSDT-FANGRAP.aml
# system specfic config.plist
PLIST:= \
config/config_4x30.plist config/config_4x40.plist \
config/config_4x0_G0.plist config/config_4x0_G1_Ivy.plist config/config_ZBook_G0.plist \
config/config_8x0_G1_Ivy.plist config/config_9x70m.plist \
config/config_9x80m.plist \
config/config_2x60p.plist config/config_6x60p.plist config/config_8x60p.plist config/config_5x30m.plist \
config/config_6x70p.plist config/config_8x70p.plist config/config_2x70p.plist \
config/config_3x0_G1.plist \
config/config_8x0_G1_Haswell.plist config/config_4x0_G1_Haswell.plist \
config/config_4x0_G2_Haswell.plist config/config_8x0_G2_Haswell.plist \
config/config_4x0_G2_Broadwell.plist config/config_8x0_G2_Broadwell.plist config/config_8x0_G3_Broadwell.plist \
config/config_1020_G1_Broadwell.plist \
config/config_ZBook_G1_Haswell.plist config/config_ZBook_G2_Haswell.plist config/config_ZBook_G2_Broadwell.plist \
config/config_ZBook_G2_Haswell_ALC280.plist \
config/config_ZBook_G3_Skylake.plist \
config/config_4x0_G3_Skylake.plist \
config/config_8x0_G3_Skylake.plist \
config/config_1030_G1_Skylake.plist \
config/config_6x0_G2_Skylake.plist \
config/config_1040_G1_Haswell.plist config/config_6x0_G1_Haswell.plist \
config/config_1040_G3_Skylake.plist config/config_1050_G1_KabyLake-R.plist \
config/config_4x0_G4_Kabylake.plist config/config_4x0_G5_Kabylake-R.plist config/config_8x0_G4_Kabylake.plist
.PHONY: all
all : $(HACK) $(PLIST)
.PHONY: clean
clean:
rm -f $(HACK) $(PLIST)
make_config.sh: makefile
echo '#!/bin/bash'>$@
make -n -B -s $(PLIST) >>$@
chmod +x $@
make_acpi.sh: makefile
echo '#!/bin/bash'>$@
make -n -B -s $(HACK) >>$@
chmod +x $@
install_acpi_include.sh: makefile
echo CORE=\"$(CORE)\">$@
chmod +x $@
.PHONY: force_update
force_update:
make -B make_config.sh make_acpi.sh
make -B install_acpi_include.sh
./find_dependencies.sh >makefile.d
# dependencies for model specific SSDTs
include makefile.d
# generated config.plist files
PARTS=config_parts
# 4x30s is IDT76d1, HD3000, HDMI, non-Intel USB3
config/config_4x30.plist : $(PARTS)/config_master.plist $(PARTS)/config_HD3000-4000_hdmi.plist $(PARTS)/config_non_Intel_USB3.plist
@printf "!! creating $@\n"
cp $(PARTS)/config_master.plist $@
/usr/libexec/PlistBuddy -c "Set KernelAndKextPatches:KernelPm false" $@
/usr/libexec/PlistBuddy -c "Set ACPI:SSDT:Generate:PluginType false" $@
/usr/libexec/PlistBuddy -c "Set SMBIOS:ProductName MacBookPro8,1" $@
./merge_plist.sh "Devices:Properties" $(PARTS)/config_HD3000-4000_hdmi.plist $@
./merge_plist.sh "KernelAndKextPatches:KextsToPatch" $(PARTS)/config_non_Intel_USB3.plist $@
@printf "\n"
# 4x40s is IDT76d9, HD3000 or HD4000, HDMI
config/config_4x40.plist : $(PARTS)/config_master.plist $(PARTS)/config_HD3000-4000_hdmi.plist
@printf "!! creating $@\n"
cp $(PARTS)/config_master.plist $@
/usr/libexec/PlistBuddy -c "Set ACPI:SSDT:Generate:PluginType false" $@
/usr/libexec/PlistBuddy -c "Set :SMBIOS:ProductName MacBookPro9,2" $@
./merge_plist.sh "Devices:Properties" $(PARTS)/config_HD3000-4000_hdmi.plist $@
@printf "\n"
# 4x0_G0 is IDT 76e0, HD4000, HDMI
config/config_4x0_G0.plist : $(PARTS)/config_master.plist $(PARTS)/config_HD3000-4000_hdmi.plist
@printf "!! creating $@\n"
cp $(PARTS)/config_master.plist $@
/usr/libexec/PlistBuddy -c "Set ACPI:SSDT:Generate:PluginType false" $@
/usr/libexec/PlistBuddy -c "Set :SMBIOS:ProductName MacBookPro9,2" $@
./merge_plist.sh "Devices:Properties" $(PARTS)/config_HD3000-4000_hdmi.plist $@
@printf "\n"
# 4x0_G1_Ivy is same as 4x0_G0
config/config_4x0_G1_Ivy.plist: config/config_4x0_G0.plist
@printf "!! creating $@\n"
cp config/config_4x0_G0.plist $@
@printf "\n"
# 8x0_G1_Ivy is IDT 76e0, HD4000, DP
config/config_8x0_G1_Ivy.plist: $(PARTS)/config_master.plist $(PARTS)/config_HD3000-4000_dp.plist
@printf "!! creating $@\n"
cp $(PARTS)/config_master.plist $@
/usr/libexec/PlistBuddy -c "Set ACPI:SSDT:Generate:PluginType false" $@
/usr/libexec/PlistBuddy -c "Set :SMBIOS:ProductName MacBookPro9,2" $@
./merge_plist.sh "Devices:Properties" $(PARTS)/config_HD3000-4000_dp.plist $@
@printf "\n"
# ZBook_G0 is same as 8x0_G1_Ivy
config/config_ZBook_G0.plist: config/config_8x0_G1_Ivy.plist
@printf "!! creating $@\n"
cp config/config_8x0_G1_Ivy.plist $@
@printf "\n"
# 9x70m is IDT 76e0, HD4000, DP
config/config_9x70m.plist : $(PARTS)/config_master.plist $(PARTS)/config_HD3000-4000_dp.plist
@printf "!! creating $@\n"
cp $(PARTS)/config_master.plist $@
/usr/libexec/PlistBuddy -c "Set ACPI:SSDT:Generate:PluginType false" $@
/usr/libexec/PlistBuddy -c "Set :SMBIOS:ProductName MacBookPro9,2" $@
./merge_plist.sh "Devices:Properties" $(PARTS)/config_HD3000-4000_dp.plist $@
@printf "\n"
# 9x80m is ALC280, HD4400, DP
config/config_9x80m.plist : $(PARTS)/config_master.plist $(PARTS)/config_Haswell_dp.plist
@printf "!! creating $@\n"
cp $(PARTS)/config_master.plist $@
/usr/libexec/PlistBuddy -c "Set KernelAndKextPatches:AppleIntelCPUPM false" $@
/usr/libexec/PlistBuddy -c "Set :SMBIOS:ProductName MacBookAir6,2" $@
./merge_plist.sh "Devices:Properties" $(PARTS)/config_Haswell_dp.plist $@
@printf "\n"
# 4x0_G1_Haswell is IDT 76e0, HD4400, HDMI
config/config_4x0_G1_Haswell.plist : $(PARTS)/config_master.plist $(PARTS)/config_Haswell_hdmi.plist
@printf "!! creating $@\n"
cp $(PARTS)/config_master.plist $@
/usr/libexec/PlistBuddy -c "Set KernelAndKextPatches:AppleIntelCPUPM false" $@
/usr/libexec/PlistBuddy -c "Set :SMBIOS:ProductName MacBookAir6,2" $@
./merge_plist.sh "Devices:Properties" $(PARTS)/config_Haswell_hdmi.plist $@
@printf "\n"
# 8x0_G1_Haswell is IDT 76e0, HD4400, DP
config/config_8x0_G1_Haswell.plist : $(PARTS)/config_master.plist $(PARTS)/config_Haswell_dp.plist
@printf "!! creating $@\n"
cp $(PARTS)/config_master.plist $@
/usr/libexec/PlistBuddy -c "Set KernelAndKextPatches:AppleIntelCPUPM false" $@
/usr/libexec/PlistBuddy -c "Set :SMBIOS:ProductName MacBookAir6,2" $@
./merge_plist.sh "Devices:Properties" $(PARTS)/config_Haswell_dp.plist $@
@printf "\n"
# 6x0_G1_Haswell is same as 8x0_G1_Haswell
config/config_6x0_G1_Haswell.plist : config/config_8x0_G1_Haswell.plist
@printf "!! creating $@\n"
cp config/config_8x0_G1_Haswell.plist $@
@printf "\n"
# 1040_G1_Haswell is same as 8x0_G1_Haswell
config/config_1040_G1_Haswell.plist : config/config_8x0_G1_Haswell.plist
@printf "!! creating $@\n"
cp config/config_8x0_G1_Haswell.plist $@
@printf "\n"
# 6x60p is IDT7605, HD3000, non-Intel USB3, DP
config/config_6x60p.plist : $(PARTS)/config_master.plist $(PARTS)/config_HD3000-4000_dp.plist $(PARTS)/config_non_Intel_USB3.plist
@printf "!! creating $@\n"
cp $(PARTS)/config_master.plist $@
/usr/libexec/PlistBuddy -c "Set ACPI:SSDT:Generate:PluginType false" $@
/usr/libexec/PlistBuddy -c "Set KernelAndKextPatches:KernelPm false" $@
/usr/libexec/PlistBuddy -c "Set SMBIOS:ProductName MacBookPro8,1" $@
./merge_plist.sh "Devices:Properties" $(PARTS)/config_HD3000-4000_dp.plist $@
./merge_plist.sh "KernelAndKextPatches:KextsToPatch" $(PARTS)/config_non_Intel_USB3.plist $@
@printf "\n"
# 8x60p is same as 6x60p
config/config_8x60p.plist : config/config_6x60p.plist
@printf "!! creating $@\n"
cp config/config_6x60p.plist $@
@printf "\n"
# 2x60p is same as 6x60p
config/config_2x60p.plist : config/config_6x60p.plist
@printf "!! creating $@\n"
cp config/config_6x60p.plist $@
@printf "\n"
# 5x30m is IDT7605, HD3000, non-Intel USB3, HDMI
config/config_5x30m.plist : $(PARTS)/config_master.plist $(PARTS)/config_HD3000-4000_hdmi.plist
@printf "!! creating $@\n"
cp $(PARTS)/config_master.plist $@
/usr/libexec/PlistBuddy -c "Set ACPI:SSDT:Generate:PluginType false" $@
/usr/libexec/PlistBuddy -c "Set KernelAndKextPatches:KernelPm false" $@
/usr/libexec/PlistBuddy -c "Set SMBIOS:ProductName MacBookPro8,1" $@
./merge_plist.sh "Devices:Properties" $(PARTS)/config_HD3000-4000_hdmi.plist $@
./merge_plist.sh "KernelAndKextPatches:KextsToPatch" $(PARTS)/config_non_Intel_USB3.plist $@
@printf "\n"
# 6x70p is IDT7605, HD4000, DP
config/config_6x70p.plist : $(PARTS)/config_master.plist $(PARTS)/config_HD3000-4000_dp.plist
@printf "!! creating $@\n"
cp $(PARTS)/config_master.plist $@
/usr/libexec/PlistBuddy -c "Set ACPI:SSDT:Generate:PluginType false" $@
/usr/libexec/PlistBuddy -c "Set :SMBIOS:ProductName MacBookPro9,2" $@
./merge_plist.sh "Devices:Properties" $(PARTS)/config_HD3000-4000_dp.plist $@
@printf "\n"
# 8x70p is same as 6x70p
config/config_8x70p.plist : config/config_6x70p.plist
@printf "!! creating $@\n"
cp config/config_6x70p.plist $@
@printf "\n"
# 2x70p is same as 6x70p
config/config_2x70p.plist : config/config_6x70p.plist
@printf "!! creating $@\n"
cp config/config_6x70p.plist $@
@printf "\n"
# 3x0_G1 is IDT7695, HD4000, HDMI
config/config_3x0_G1.plist : $(PARTS)/config_master.plist $(PARTS)/config_HD3000-4000_hdmi.plist
@printf "!! creating $@\n"
cp $(PARTS)/config_master.plist $@
/usr/libexec/PlistBuddy -c "Set ACPI:SSDT:Generate:PluginType false" $@
/usr/libexec/PlistBuddy -c "Set :SMBIOS:ProductName MacBookPro9,2" $@
./merge_plist.sh "Devices:Properties" $(PARTS)/config_HD3000-4000_hdmi.plist $@
@printf "\n"
# 4x0_G2_Haswell is ALC282, Haswell, HDMI
config/config_4x0_G2_Haswell.plist : $(PARTS)/config_master.plist $(PARTS)/config_Haswell_hdmi.plist
@printf "!! creating $@\n"
cp $(PARTS)/config_master.plist $@
/usr/libexec/PlistBuddy -c "Set KernelAndKextPatches:AppleIntelCPUPM false" $@
/usr/libexec/PlistBuddy -c "Set :SMBIOS:ProductName MacBookAir6,2" $@
./merge_plist.sh "Devices:Properties" $(PARTS)/config_Haswell_hdmi.plist $@
@printf "\n"
# 8x0_G2_Haswell is ALC282, Haswell, DP
config/config_8x0_G2_Haswell.plist: $(PARTS)/config_master.plist $(PARTS)/config_Haswell_dp.plist
@printf "!! creating $@\n"
cp $(PARTS)/config_master.plist $@
/usr/libexec/PlistBuddy -c "Set KernelAndKextPatches:AppleIntelCPUPM false" $@
/usr/libexec/PlistBuddy -c "Set :SMBIOS:ProductName MacBookAir6,2" $@
./merge_plist.sh "Devices:Properties" $(PARTS)/config_Haswell_dp.plist $@
@printf "\n"
# 4x0_G2_Broadwell is ALC282, Broadwell, HDMI
config/config_4x0_G2_Broadwell.plist : $(PARTS)/config_master.plist $(PARTS)/config_Broadwell_hdmi.plist
@printf "!! creating $@\n"
cp $(PARTS)/config_master.plist $@
/usr/libexec/PlistBuddy -c "Set KernelAndKextPatches:AppleIntelCPUPM false" $@
/usr/libexec/PlistBuddy -c "Set :SMBIOS:ProductName MacBookAir7,2" $@
./merge_plist.sh "Devices:Properties" $(PARTS)/config_Broadwell_hdmi.plist $@
@printf "\n"
# 8x0_G2_Broadwell is ALC280, Broadwell, DP
config/config_8x0_G2_Broadwell.plist : $(PARTS)/config_master.plist $(PARTS)/config_Broadwell_dp.plist
@printf "!! creating $@\n"
cp $(PARTS)/config_master.plist $@
/usr/libexec/PlistBuddy -c "Set KernelAndKextPatches:AppleIntelCPUPM false" $@
/usr/libexec/PlistBuddy -c "Set :SMBIOS:ProductName MacBookAir7,2" $@
./merge_plist.sh "Devices:Properties" $(PARTS)/config_Broadwell_dp.plist $@
@printf "\n"
# 8x0_G3_Broadwell is same as 8x0_G2_Broadwell
config/config_8x0_G3_Broadwell.plist : config/config_8x0_G2_Broadwell.plist
@printf "!! creating $@\n"
cp config/config_8x0_G2_Broadwell.plist $@
@printf "\n"
# 1020_G1_Broadwell is ALC286, Broadwell, HDMI
config/config_1020_G1_Broadwell.plist : $(PARTS)/config_master.plist $(PARTS)/config_Broadwell_hdmi.plist
@printf "!! creating $@\n"
cp $(PARTS)/config_master.plist $@
/usr/libexec/PlistBuddy -c "Set KernelAndKextPatches:AppleIntelCPUPM false" $@
/usr/libexec/PlistBuddy -c "Set :SMBIOS:ProductName MacBookAir7,2" $@
./merge_plist.sh "Devices:Properties" $(PARTS)/config_Broadwell_hdmi.plist $@
@printf "\n"
# ZBook_G2_Haswell is IDT 76e0, Haswell, no external ports for Intel graphics
# confirmed here: http://www.tonymacx86.com/el-capitan-laptop-guides/189416-guide-hp-probook-elitebook-zbook-using-clover-uefi-hotpatch-10-11-a-76.html#post1242529
config/config_ZBook_G2_Haswell.plist : $(PARTS)/config_master.plist $(PARTS)/config_Haswell_no_hdmi_dp.plist
@printf "!! creating $@\n"
cp $(PARTS)/config_master.plist $@
/usr/libexec/PlistBuddy -c "Set KernelAndKextPatches:AppleIntelCPUPM false" $@
/usr/libexec/PlistBuddy -c "Set :SMBIOS:ProductName MacBookPro11,1" $@
./merge_plist.sh "Devices:Properties" $(PARTS)/config_Haswell_no_hdmi_dp.plist $@
@printf "\n"
# ZBook_G1_Haswell is same as ZBook_G2_Haswell
config/config_ZBook_G1_Haswell.plist : config/config_ZBook_G2_Haswell.plist
@printf "!! creating $@\n"
cp config/config_ZBook_G2_Haswell.plist $@
@printf "\n"
# ZBook_G2_Haswell_ALC280 is ALC280, Haswell, DP
config/config_ZBook_G2_Haswell_ALC280.plist : $(PARTS)/config_master.plist $(PARTS)/config_Haswell_dp.plist
@printf "!! creating $@\n"
cp $(PARTS)/config_master.plist $@
/usr/libexec/PlistBuddy -c "Set KernelAndKextPatches:AppleIntelCPUPM false" $@
/usr/libexec/PlistBuddy -c "Set :SMBIOS:ProductName MacBookPro11,1" $@
./merge_plist.sh "Devices:Properties" $(PARTS)/config_Haswell_dp.plist $@
@printf "\n"
# ZBook_G2_Broadwell is ALC280, Broadwell, DP
config/config_ZBook_G2_Broadwell.plist : $(PARTS)/config_master.plist $(PARTS)/config_Broadwell_dp.plist
@printf "!! creating $@\n"
cp $(PARTS)/config_master.plist $@
/usr/libexec/PlistBuddy -c "Set KernelAndKextPatches:AppleIntelCPUPM false" $@
/usr/libexec/PlistBuddy -c "Set :SMBIOS:ProductName MacBookPro11,1" $@
./merge_plist.sh "Devices:Properties" $(PARTS)/config_Broadwell_dp.plist $@
@printf "\n"
# ProBook_4x0_G3_Skylake is CX20724, Skylake, HDMI
config/config_4x0_G3_Skylake.plist : $(PARTS)/config_master.plist $(PARTS)/config_Skylake_hdmi.plist
@printf "!! creating $@\n"
cp $(PARTS)/config_master.plist $@
/usr/libexec/PlistBuddy -c "Set KernelAndKextPatches:AppleIntelCPUPM false" $@
/usr/libexec/PlistBuddy -c "Set :SMBIOS:ProductName MacBookPro11,1" $@
./merge_plist.sh "Devices:Properties" $(PARTS)/config_Skylake_hdmi.plist $@
@printf "\n"
# ProBook_8x0_G3_Skylake is CX20724, Skylake, DP
config/config_8x0_G3_Skylake.plist : $(PARTS)/config_master.plist $(PARTS)/config_Skylake_dp.plist
@printf "!! creating $@\n"
cp $(PARTS)/config_master.plist $@
/usr/libexec/PlistBuddy -c "Set KernelAndKextPatches:AppleIntelCPUPM false" $@
/usr/libexec/PlistBuddy -c "Set :SMBIOS:ProductName MacBookPro11,1" $@
./merge_plist.sh "Devices:Properties" $(PARTS)/config_Skylake_dp.plist $@
@printf "\n"
# EliteBook 1030_G1_Skylake is same as 8x0_G3_Skylake
config/config_1030_G1_Skylake.plist : config/config_8x0_G3_Skylake.plist
@printf "!! creating $@\n"
cp config/config_8x0_G3_Skylake.plist $@
@printf "\n"
# ZBook_G3_Skylake is same as 8x0_G3_Skylake
config/config_ZBook_G3_Skylake.plist : config/config_8x0_G3_Skylake.plist
@printf "!! creating $@\n"
cp config/config_8x0_G3_Skylake.plist $@
@printf "\n"
# ProBook_6x0_G2_Skylake is CX20724, Skylake, DP
config/config_6x0_G2_Skylake.plist : $(PARTS)/config_master.plist $(PARTS)/config_Skylake_dp.plist
@printf "!! creating $@\n"
cp $(PARTS)/config_master.plist $@
/usr/libexec/PlistBuddy -c "Set KernelAndKextPatches:AppleIntelCPUPM false" $@
/usr/libexec/PlistBuddy -c "Set :SMBIOS:ProductName MacBookPro11,1" $@
./merge_plist.sh "Devices:Properties" $(PARTS)/config_Skylake_dp.plist $@
@printf "\n"
# EliteBook 1040_G3_Skylake is CX20724, Skylake, DP
config/config_1040_G3_Skylake.plist : $(PARTS)/config_master.plist $(PARTS)/config_Skylake_dp.plist
@printf "!! creating $@\n"
cp $(PARTS)/config_master.plist $@
/usr/libexec/PlistBuddy -c "Set KernelAndKextPatches:AppleIntelCPUPM false" $@
/usr/libexec/PlistBuddy -c "Set :SMBIOS:ProductName MacBookPro11,1" $@
./merge_plist.sh "Devices:Properties" $(PARTS)/config_Skylake_dp.plist $@
@printf "\n"
#REVIEW: CX20724 is not correct for the 1050 (it uses a new audio codec)
# EliteBook 1050_G1_KabyLake-R is CX20724, KabyLake-R, DP
config/config_1050_G1_KabyLake-R.plist : $(PARTS)/config_master.plist $(PARTS)/config_Kabylake_dp.plist
@printf "!! creating $@\n"
cp $(PARTS)/config_master.plist $@
/usr/libexec/PlistBuddy -c "Set KernelAndKextPatches:AppleIntelCPUPM false" $@
/usr/libexec/PlistBuddy -c "Set :SMBIOS:ProductName MacBookPro11,1" $@
./merge_plist.sh "Devices:Properties" $(PARTS)/config_Kabylake_dp.plist $@
@printf "\n"
# ProBook_4x0_G4_Kabylake is CX8200, Kabylake, HDMI
config/config_4x0_G4_Kabylake.plist : $(PARTS)/config_master.plist $(PARTS)/config_Kabylake_hdmi.plist
@printf "!! creating $@\n"
cp $(PARTS)/config_master.plist $@
/usr/libexec/PlistBuddy -c "Set KernelAndKextPatches:AppleIntelCPUPM false" $@
/usr/libexec/PlistBuddy -c "Set :SMBIOS:ProductName MacBookPro11,1" $@
./merge_plist.sh "Devices:Properties" $(PARTS)/config_Kabylake_hdmi.plist $@
@printf "\n"
# ProBook_4x0_G5_Kabylake-R is same as 4x0_G4_Kabylake
config/config_4x0_G5_Kabylake-R.plist : config/config_4x0_G4_Kabylake.plist
@printf "!! creating $@\n"
cp config/config_4x0_G4_Kabylake.plist $@
@printf "\n"
# EliteBook_8x0_G4_Kabylake is CX8200, Kabylake, DP
config/config_8x0_G4_Kabylake.plist : $(PARTS)/config_master.plist $(PARTS)/config_Kabylake_dp.plist
@printf "!! creating $@\n"
cp $(PARTS)/config_master.plist $@
/usr/libexec/PlistBuddy -c "Set KernelAndKextPatches:AppleIntelCPUPM false" $@
/usr/libexec/PlistBuddy -c "Set :SMBIOS:ProductName MacBookPro11,1" $@
./merge_plist.sh "Devices:Properties" $(PARTS)/config_Kabylake_dp.plist $@
@printf "\n"
# new hotpatch SSDTs
IASLOPTS=-vw 2095 -vw 2146 -vw 2089 -vw 4089 -vi -vr
# note: "-oe" is undocumented flag to turn off external opcode in iasl AML compilation result
# Snow Leopard cannot handle SSDTs with the external opcode, so Snow Leopard users must enable this flag
#IASLOPTS:=$(IASLOPTS) -oe
$(BUILDDIR)/%.aml : $(HOTPATCH)/%.dsl
iasl $(IASLOPTS) -p $@ $<
$(BUILDDIR)/SSDT-IGPU.aml : $(HOTPATCH)/SSDT-IGPU.dsl $(HOTPATCH)/SSDT-PNLF.asl
$(BUILDDIR)/SSDT-IGPUH.aml : $(HOTPATCH)/SSDT-IGPU.dsl $(HOTPATCH)/SSDT-PNLF.asl
iasl -D HIRES $(IASLOPTS) -p $@ $<
$(BUILDDIR)/SSDT-FANQ.aml : $(HOTPATCH)/SSDT-FANQ.dsl
iasl -D QUIET $(IASLOPTS) -p $@ $<
$(BUILDDIR)/SSDT-FANRM.aml : $(HOTPATCH)/SSDT-FANQ.dsl
iasl -D REHABMAN $(IASLOPTS) -p $@ $<
$(BUILDDIR)/SSDT-FANGRAP.aml : $(HOTPATCH)/SSDT-FANQ.dsl
iasl -D GRAPPLER $(IASLOPTS) -p $@ $<
#EOF