-
Notifications
You must be signed in to change notification settings - Fork 21
/
makefile
33 lines (25 loc) · 699 Bytes
/
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
# makefile
#
# Patches/Installs/Builds DSDT patches for Lenovo y50-70
#
# Created by RehabMan
#
# set build products
BUILDDIR=./build
AML_PRODUCTS=$(BUILDDIR)/SSDT-HACK.aml
PRODUCTS=$(AML_PRODUCTS)
IASLFLAGS=-vw 2095 -vw 2146
IASL=iasl
.PHONY: all
all: $(PRODUCTS)
$(BUILDDIR)/SSDT-HACK.aml: SSDT-HACK.dsl
$(IASL) $(IASLFLAGS) -p $@ $<
.PHONY: clean
clean:
rm -f $(BUILDDIR)/*.dsl $(BUILDDIR)/*.aml
.PHONY: install
install: $(AML_PRODUCTS)
$(eval EFIDIR:=$(shell ./mount_efi.sh))
rm -f "$(EFIDIR)"/EFI/CLOVER/ACPI/patched/DSDT.aml
rm -f "$(EFIDIR)"/EFI/CLOVER/ACPI/patched/SSDT-*.aml "$(EFIDIR)"/EFI/CLOVER/ACPI/patched/SSDT.aml
cp $(AML_PRODUCTS) "$(EFIDIR)"/EFI/CLOVER/ACPI/patched