]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
lib: acpi: Fix linking SPL when ACPIGEN is enabled
authorSean Anderson <seanga2@gmail.com>
Sat, 14 Oct 2023 20:47:47 +0000 (16:47 -0400)
committerTom Rini <trini@konsulko.com>
Wed, 18 Oct 2023 00:50:52 +0000 (20:50 -0400)
lib/acpi/acpigen.o is only compiled into SPL when SPL_ACPIGEN is enabled.
Update several files which reference these functions accordingly.

Signed-off-by: Sean Anderson <seanga2@gmail.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
drivers/core/root.c
drivers/i2c/Makefile

index 126b3140666fc2c807b3e5c01f848dc468329225..d4ae652bcfb1d5b625d845974b0234bb015063da 100644 (file)
@@ -426,7 +426,7 @@ void dm_get_mem(struct dm_stats *stats)
                stats->tag_size;
 }
 
-#ifdef CONFIG_ACPIGEN
+#if CONFIG_IS_ENABLED(ACPIGEN)
 static int root_acpi_get_name(const struct udevice *dev, char *out_name)
 {
        return acpi_copy_name(out_name, "\\_SB");
index d5b85f398db31e4f371e47b18ea6e04754753ce5..a96a8c7e955e947ae17c7f350a517fc9c2476945 100644 (file)
@@ -3,7 +3,7 @@
 # (C) Copyright 2000-2007
 # Wolfgang Denk, DENX Software Engineering, wd@denx.de.
 obj-$(CONFIG_$(SPL_)DM_I2C) += i2c-uclass.o
-ifdef CONFIG_ACPIGEN
+ifdef CONFIG_$(SPL_)ACPIGEN
 obj-$(CONFIG_$(SPL_)DM_I2C) += acpi_i2c.o
 endif
 obj-$(CONFIG_$(SPL_)DM_I2C_GPIO) += i2c-gpio.o