forked from RehabMan/Intel-NUC-DSDT-Patch
-
Notifications
You must be signed in to change notification settings - Fork 3
/
makefile
148 lines (122 loc) · 6.33 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
# makefile
#
# Patches/Installs/Builds DSDT patches for Intel NUC (5/6/7/8), Intel Compute Stick (6)
#
# Created by RehabMan
#
# set build products
BUILDDIR=./build
AML_PRODUCTS=$(BUILDDIR)/SSDT-NUC5.aml \
$(BUILDDIR)/SSDT-NUC6.aml $(BUILDDIR)/SSDT-NUC6-SC.aml \
$(BUILDDIR)/SSDT-NUC7.aml $(BUILDDIR)/SSDT-NUC7-DC.aml \
$(BUILDDIR)/SSDT-NUC8-BC.aml \
$(BUILDDIR)/SSDT-STCK6.aml \
$(BUILDDIR)/SSDT_NVMe09.aml $(BUILDDIR)/SSDT_NVMe13.aml \
$(BUILDDIR)/SSDT-DDA.aml $(BUILDDIR)/SSDT_SKLSPF.aml $(BUILDDIR)/SSDT_KBLSPF.aml \
$(BUILDDIR)/SSDT_CFLALT.aml
PRODUCTS=$(AML_PRODUCTS)
IASLOPTS=-vw 2095 -vw 2008
IASL=iasl
.PHONY: all
all: $(PRODUCTS)
$(BUILDDIR)/%.aml : %.dsl
iasl $(IASLOPTS) -p $@ $<
# generated with: ./find_dependencies.sh
$(BUILDDIR)/SSDT-NUC5.aml : SSDT-NUC5.dsl SSDT-XOSI.dsl SSDT-IGPU.dsl SSDT-USBX.dsl SSDT-USB.dsl SSDT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-RMNE.dsl
# end generated
.PHONY: clean
clean:
rm -f $(BUILDDIR)/*.dsl $(BUILDDIR)/*.aml
# NUC5
.PHONY: install_nuc5
install_nuc5: $(AML_PRODUCTS)
$(eval EFIDIR:=$(shell ./mount_efi.sh))
rm -f "$(EFIDIR)"/EFI/CLOVER/ACPI/patched/SSDT-*.aml
rm -f "$(EFIDIR)"/EFI/CLOVER/ACPI/patched/SSDT_*SPF.aml "$(EFIDIR)"/EFI/CLOVER/ACPI/patched/SSDT_CFLALT.aml
rm -f "$(EFIDIR)"/EFI/CLOVER/ACPI/patched/SSDT.aml
cp $(BUILDDIR)/SSDT-NUC5.aml "$(EFIDIR)"/EFI/CLOVER/ACPI/patched
cp $(BUILDDIR)/SSDT-DDA.aml "$(EFIDIR)"/EFI/CLOVER/ACPI/patched
# NUC6
.PHONY: install_nuc6
install_nuc6: $(AML_PRODUCTS)
$(eval EFIDIR:=$(shell ./mount_efi.sh))
rm -f "$(EFIDIR)"/EFI/CLOVER/ACPI/patched/SSDT-*.aml
rm -f "$(EFIDIR)"/EFI/CLOVER/ACPI/patched/SSDT_*SPF.aml "$(EFIDIR)"/EFI/CLOVER/ACPI/patched/SSDT_CFLALT.aml
rm -f "$(EFIDIR)"/EFI/CLOVER/ACPI/patched/SSDT.aml
cp $(BUILDDIR)/SSDT-NUC6.aml "$(EFIDIR)"/EFI/CLOVER/ACPI/patched
cp $(BUILDDIR)/SSDT-DDA.aml "$(EFIDIR)"/EFI/CLOVER/ACPI/patched
# NUC6 Skull Canyon
.PHONY: install_nuc6sc
install_nuc6sc: $(AML_PRODUCTS)
$(eval EFIDIR:=$(shell ./mount_efi.sh))
rm -f "$(EFIDIR)"/EFI/CLOVER/ACPI/patched/SSDT-*.aml
rm -f "$(EFIDIR)"/EFI/CLOVER/ACPI/patched/SSDT_*SPF.aml "$(EFIDIR)"/EFI/CLOVER/ACPI/patched/SSDT_CFLALT.aml
rm -f "$(EFIDIR)"/EFI/CLOVER/ACPI/patched/SSDT.aml
cp $(BUILDDIR)/SSDT-NUC6-SC.aml "$(EFIDIR)"/EFI/CLOVER/ACPI/patched
cp $(BUILDDIR)/SSDT-DDA.aml "$(EFIDIR)"/EFI/CLOVER/ACPI/patched
# NUC7
.PHONY: install_nuc7
install_nuc7: $(AML_PRODUCTS)
$(eval EFIDIR:=$(shell ./mount_efi.sh))
rm -f "$(EFIDIR)"/EFI/CLOVER/ACPI/patched/SSDT-*.aml
rm -f "$(EFIDIR)"/EFI/CLOVER/ACPI/patched/SSDT_KBLSPF.aml "$(EFIDIR)"/EFI/CLOVER/ACPI/patched/SSDT_CFLALT.aml
rm -f "$(EFIDIR)"/EFI/CLOVER/ACPI/patched/SSDT.aml
cp $(BUILDDIR)/SSDT-NUC7.aml "$(EFIDIR)"/EFI/CLOVER/ACPI/patched
cp $(BUILDDIR)/SSDT-DDA.aml "$(EFIDIR)"/EFI/CLOVER/ACPI/patched
if [[ -e "$(EFIDIR)"/EFI/CLOVER/ACPI/patched/SSDT_SKLSPF.aml ]]; then make install_sklspoof; fi
# NUC7 Dawson Canyon
.PHONY: install_nuc7dc
install_nuc7dc: $(AML_PRODUCTS)
$(eval EFIDIR:=$(shell ./mount_efi.sh))
rm -f "$(EFIDIR)"/EFI/CLOVER/ACPI/patched/SSDT-*.aml
rm -f "$(EFIDIR)"/EFI/CLOVER/ACPI/patched/SSDT_KBLSPF.aml "$(EFIDIR)"/EFI/CLOVER/ACPI/patched/SSDT_CFLALT.aml
rm -f "$(EFIDIR)"/EFI/CLOVER/ACPI/patched/SSDT.aml
cp $(BUILDDIR)/SSDT-NUC7-DC.aml "$(EFIDIR)"/EFI/CLOVER/ACPI/patched
cp $(BUILDDIR)/SSDT-DDA.aml "$(EFIDIR)"/EFI/CLOVER/ACPI/patched
if [[ -e "$(EFIDIR)"/EFI/CLOVER/ACPI/patched/SSDT_SKLSPF.aml ]]; then make install_sklspoof; fi
# NUC8 Bean Canyon
.PHONY: install_nuc8bc
install_nuc8bc: $(AML_PRODUCTS)
$(eval EFIDIR:=$(shell ./mount_efi.sh))
rm -f "$(EFIDIR)"/EFI/CLOVER/ACPI/patched/SSDT-*.aml
rm -f "$(EFIDIR)"/EFI/CLOVER/ACPI/patched/SSDT_SKLSPF.aml
rm -f "$(EFIDIR)"/EFI/CLOVER/ACPI/patched/SSDT.aml
cp $(BUILDDIR)/SSDT-NUC8-BC.aml "$(EFIDIR)"/EFI/CLOVER/ACPI/patched
cp $(BUILDDIR)/SSDT-DDA.aml "$(EFIDIR)"/EFI/CLOVER/ACPI/patched
if [[ -e "$(EFIDIR)"/EFI/CLOVER/ACPI/patched/SSDT_CFLALT.aml ]]; then make install_cflalt; fi
if [[ -e "$(EFIDIR)"/EFI/CLOVER/ACPI/patched/SSDT_KBLSPF.aml ]]; then make install_kblspoof; fi
# optional Skylake spoof (for KabyLake and CoffeeLake)
.PHONY: install_sklspoof
install_sklspoof: $(AML_PRODUCTS)
$(eval EFIDIR:=$(shell ./mount_efi.sh))
rm -f "$(EFIDIR)"/EFI/CLOVER/ACPI/patched/SSDT_KBLSPF.aml
rm -f "$(EFIDIR)"/EFI/CLOVER/ACPI/patched/SSDT_CFLALT.aml
cp $(BUILDDIR)/SSDT_SKLSPF.aml "$(EFIDIR)"/EFI/CLOVER/ACPI/patched
# optional KabyLake spoof (for CoffeeLake)
.PHONY: install_kblspoof
install_kblspoof: $(AML_PRODUCTS)
$(eval EFIDIR:=$(shell ./mount_efi.sh))
rm -f "$(EFIDIR)"/EFI/CLOVER/ACPI/patched/SSDT_SKLSPF.aml
rm -f "$(EFIDIR)"/EFI/CLOVER/ACPI/patched/SSDT_CFLALT.aml
cp $(BUILDDIR)/SSDT_KBLSPF.aml "$(EFIDIR)"/EFI/CLOVER/ACPI/patched
# optional CoffeeLake alternate
.PHONY: install_cflalt
install_cflalt: $(AML_PRODUCTS)
$(eval EFIDIR:=$(shell ./mount_efi.sh))
rm -f "$(EFIDIR)"/EFI/CLOVER/ACPI/patched/SSDT_SKLSPF.aml
rm -f "$(EFIDIR)"/EFI/CLOVER/ACPI/patched/SSDT_KBLSPF.aml
cp $(BUILDDIR)/SSDT_CFLALT.aml "$(EFIDIR)"/EFI/CLOVER/ACPI/patched
# STICK6
.PHONY: install_stick6
install_stick6: $(AML_PRODUCTS)
$(eval EFIDIR:=$(shell ./mount_efi.sh))
rm -f "$(EFIDIR)"/EFI/CLOVER/ACPI/patched/SSDT-*.aml
rm -f "$(EFIDIR)"/EFI/CLOVER/ACPI/patched/SSDT.aml
cp $(BUILDDIR)/SSDT-STCK6.aml "$(EFIDIR)"/EFI/CLOVER/ACPI/patched
cp $(BUILDDIR)/SSDT-DDA.aml "$(EFIDIR)"/EFI/CLOVER/ACPI/patched