Skip to content

Commit d1059c1

Browse files
rfvirgilrafaeljw
authored andcommitted
ACPI: tables: Add custom DSDT file as makefile prerequisite
A custom DSDT file is mostly used during development or debugging, and in that case it is quite likely to want to rebuild the kernel after changing ONLY the content of the DSDT. This patch adds the custom DSDT as a prerequisite to tables.o to ensure a rebuild if the DSDT file is updated. Make will merge the prerequisites from multiple rules for the same target. Signed-off-by: Richard Fitzgerald <[email protected]> Signed-off-by: Rafael J. Wysocki <[email protected]>
1 parent 6554ca9 commit d1059c1

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

drivers/acpi/Makefile

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,11 @@ ccflags-$(CONFIG_ACPI_DEBUG) += -DACPI_DEBUG_OUTPUT
88
#
99
# ACPI Boot-Time Table Parsing
1010
#
11+
ifeq ($(CONFIG_ACPI_CUSTOM_DSDT),y)
12+
tables.o: $(src)/../../include/$(subst $\",,$(CONFIG_ACPI_CUSTOM_DSDT_FILE)) ;
13+
14+
endif
15+
1116
obj-$(CONFIG_ACPI) += tables.o
1217
obj-$(CONFIG_X86) += blacklist.o
1318

0 commit comments

Comments
 (0)