mirror of
https://github.com/u-boot/u-boot.git
synced 2025-04-19 03:15:00 +00:00
lib: acpi: Fix linking SPL when ACPIGEN is enabled
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>
This commit is contained in:
parent
eaf738559c
commit
841c4d6088
2 changed files with 2 additions and 2 deletions
|
@ -426,7 +426,7 @@ void dm_get_mem(struct dm_stats *stats)
|
||||||
stats->tag_size;
|
stats->tag_size;
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef CONFIG_ACPIGEN
|
#if CONFIG_IS_ENABLED(ACPIGEN)
|
||||||
static int root_acpi_get_name(const struct udevice *dev, char *out_name)
|
static int root_acpi_get_name(const struct udevice *dev, char *out_name)
|
||||||
{
|
{
|
||||||
return acpi_copy_name(out_name, "\\_SB");
|
return acpi_copy_name(out_name, "\\_SB");
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
# (C) Copyright 2000-2007
|
# (C) Copyright 2000-2007
|
||||||
# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
|
# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
|
||||||
obj-$(CONFIG_$(SPL_)DM_I2C) += i2c-uclass.o
|
obj-$(CONFIG_$(SPL_)DM_I2C) += i2c-uclass.o
|
||||||
ifdef CONFIG_ACPIGEN
|
ifdef CONFIG_$(SPL_)ACPIGEN
|
||||||
obj-$(CONFIG_$(SPL_)DM_I2C) += acpi_i2c.o
|
obj-$(CONFIG_$(SPL_)DM_I2C) += acpi_i2c.o
|
||||||
endif
|
endif
|
||||||
obj-$(CONFIG_$(SPL_)DM_I2C_GPIO) += i2c-gpio.o
|
obj-$(CONFIG_$(SPL_)DM_I2C_GPIO) += i2c-gpio.o
|
||||||
|
|
Loading…
Add table
Reference in a new issue