Commit 74daf94a2305a7b70fc24511d2ca7dc3358e746d

Authored by Simon Glass
Committed by Jaehoon Chung
1 parent 8620f38409

dm: sunxi: sata: Don't build sata support into SPL

This is not used in SPL so we do not need to compile it. Make this change
before adding driver-model support to the driver, to avoid build errors.
With driver model we define a U_BOOT_DRIVER() which would otherwise be
present in SPL and not be garbage-collected when building.

Signed-off-by: Simon Glass <sjg@chromium.org>
Acked-by: Maxime Ripard <maxime.ripard@free-electrons.com>

Showing 1 changed file with 2 additions and 0 deletions Side-by-side Diff

board/sunxi/Makefile
... ... @@ -10,7 +10,9 @@
10 10 #
11 11 obj-y += board.o
12 12 obj-$(CONFIG_SUNXI_GMAC) += gmac.o
  13 +ifndef CONFIG_SPL_BUILD
13 14 obj-$(CONFIG_SUNXI_AHCI) += ahci.o
  15 +endif
14 16 obj-$(CONFIG_MACH_SUN4I) += dram_sun4i_auto.o
15 17 obj-$(CONFIG_MACH_SUN5I) += dram_sun5i_auto.o
16 18 obj-$(CONFIG_MACH_SUN7I) += dram_sun5i_auto.o