Fix some remarks about using compiler reserverd names
[Teclast-X98-Air-3G_C6J6_custom_DSDT.git] / Makefile
1 ACPI_DUMP_DATA_PATH ?= ../acpi_dump
2
3 compile:
4         iasl -tc dsdt.dsl
5
6 # NOTE: The decompiled table will be in $(ACPI_DUMP_DATA_PATH)/dsdt.dsl
7 decompile:
8         [ -d $(ACPI_DUMP_DATA_PATH) ] && \
9           ( cd $(ACPI_DUMP_DATA_PATH); iasl -e ssdt*.dat -vt -d dsdt.dat; )
10
11 # Create an instrumented_initrd to be used like explained in the linux kernel
12 # docs (Documentation/acpi/initrd_table_override.txt).
13 initrd: compile
14         [ -d kernel/firmware/acpi ] || mkdir -p kernel/firmware/acpi
15         cp dsdt.aml kernel/firmware/acpi
16         find kernel | cpio -H newc --create > instrumented_initrd
17
18 clean:
19         rm -f *~ *.aml *.hex