[PATCH] lib: acpi: rename dsdt.c to acpi_write_dsdt.c

Philippe Reynes philippe.reynes at softathome.com
Thu Feb 17 17:10:39 CET 2022


There is a conflict between the static file
lib/acpi/dsdt.c and the file dsdt.c generated
dynamicaly by scripts/Makefile.lib. When a
mrproper is done, the static file dsdt.c is
removed. If a build with acpi enabled is
launched after, the following error is raised:

  CC      lib/acpi/acpi_table.o
make[2]: *** No rule to make target 'lib/acpi/dsdt.asl', needed by 'lib/acpi/dsdt.c'.  Stop.
scripts/Makefile.build:394: recipe for target 'lib/acpi' failed

To avoid such error, the static file dsdt.c
is renamed to acpi_write_dsdt.c.

Signed-off-by: Philippe Reynes <philippe.reynes at softathome.com>
---
 lib/acpi/Makefile                      | 2 +-
 lib/acpi/{dsdt.c => acpi_write_dsdt.c} | 0
 2 files changed, 1 insertion(+), 1 deletion(-)
 rename lib/acpi/{dsdt.c => acpi_write_dsdt.c} (100%)

diff --git a/lib/acpi/Makefile b/lib/acpi/Makefile
index 956b5a0d72..3f8c817d41 100644
--- a/lib/acpi/Makefile
+++ b/lib/acpi/Makefile
@@ -15,7 +15,7 @@ obj-y += mcfg.o
 
 # Sandbox does not build a .asl file
 ifndef CONFIG_SANDBOX
-obj-y += dsdt.o
+obj-y += acpi_write_dsdt.o
 endif
 
 obj-y += facs.o
diff --git a/lib/acpi/dsdt.c b/lib/acpi/acpi_write_dsdt.c
similarity index 100%
rename from lib/acpi/dsdt.c
rename to lib/acpi/acpi_write_dsdt.c
-- 
2.17.1



More information about the U-Boot mailing list