diff mbox series

[1/1] test: fix CONFIG_ACPIGEN dependencies

Message ID 20220612122822.26717-1-xypron.glpk@gmx.de
State Accepted
Commit ebaa3d053e5e36bfc8c826e9a87a05d65a2b8ab0
Delegated to: Tom Rini
Headers show
Series [1/1] test: fix CONFIG_ACPIGEN dependencies | expand

Commit Message

Heinrich Schuchardt June 12, 2022, 12:28 p.m. UTC
Some tests cannot be built with CONFIG_ACPIGEN=n. Consider this in the
Makefile.

Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
---
 test/dm/Makefile | 12 +++++++-----
 1 file changed, 7 insertions(+), 5 deletions(-)

--
2.36.1

Comments

Tom Rini July 8, 2022, 4:38 p.m. UTC | #1
On Sun, Jun 12, 2022 at 12:28:22PM +0000, Heinrich Schuchardt wrote:

> Some tests cannot be built with CONFIG_ACPIGEN=n. Consider this in the
> Makefile.
> 
> Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>

Applied to u-boot/next, thanks!
diff mbox series

Patch

diff --git a/test/dm/Makefile b/test/dm/Makefile
index f0a7c97e3d..c53e2dea91 100644
--- a/test/dm/Makefile
+++ b/test/dm/Makefile
@@ -18,9 +18,13 @@  obj-$(CONFIG_UT_DM) += core.o
 obj-$(CONFIG_UT_DM) += read.o
 obj-$(CONFIG_UT_DM) += phys2bus.o
 ifneq ($(CONFIG_SANDBOX),)
-obj-$(CONFIG_ACPIGEN) += acpi.o
-obj-$(CONFIG_ACPIGEN) += acpigen.o
-obj-$(CONFIG_ACPIGEN) += acpi_dp.o
+ifeq ($(CONFIG_ACPIGEN),y)
+obj-y += acpi.o
+obj-y += acpigen.o
+obj-y += acpi_dp.o
+obj-(CONFIG_DM_GPIO) += gpio.o
+obj-y += irq.o
+endif
 obj-$(CONFIG_ADC) += adc.o
 obj-$(CONFIG_SOUND) += audio.o
 obj-$(CONFIG_AXI) += axi.o
@@ -43,11 +47,9 @@  ifneq ($(CONFIG_EFI_PARTITION),)
 obj-$(CONFIG_FASTBOOT_FLASH_MMC) += fastboot.o
 endif
 obj-$(CONFIG_FIRMWARE) += firmware.o
-obj-$(CONFIG_DM_GPIO) += gpio.o
 obj-$(CONFIG_DM_HWSPINLOCK) += hwspinlock.o
 obj-$(CONFIG_DM_I2C) += i2c.o
 obj-$(CONFIG_SOUND) += i2s.o
-obj-y += irq.o
 obj-$(CONFIG_CLK_K210_SET_RATE) += k210_pll.o
 obj-$(CONFIG_IOMMU) += iommu.o
 obj-$(CONFIG_LED) += led.o