]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
sandbox: Don't use PCI in SPL
authorSimon Glass <sjg@chromium.org>
Mon, 4 Jul 2016 17:57:49 +0000 (11:57 -0600)
committerSimon Glass <sjg@chromium.org>
Fri, 15 Jul 2016 02:40:24 +0000 (20:40 -0600)
PCI is not supported in SPL for sandbox, so avoid using it.

Signed-off-by: Simon Glass <sjg@chromium.org>
arch/sandbox/cpu/cpu.c
arch/sandbox/lib/Makefile

index 4975eb288cebc3706f9c3d3d40f35b41f70a13b3..2def72212d1feae279506403663cfd4b0fdb0f56 100644 (file)
@@ -57,7 +57,7 @@ int cleanup_before_linux_select(int flags)
 
 void *map_physmem(phys_addr_t paddr, unsigned long len, unsigned long flags)
 {
-#ifdef CONFIG_PCI
+#if defined(CONFIG_PCI) && !defined(CONFIG_SPL_BUILD)
        unsigned long plen = len;
        void *ptr;
 
index 96761e27f7a38a80a20176d85ca3c2f2242cc65a..7820c55c8554fce2f94c6af214d8a2cb921cbf20 100644 (file)
@@ -8,5 +8,7 @@
 #
 
 obj-y  += interrupts.o
+ifndef CONFIG_SPL_BUILD
 obj-$(CONFIG_PCI)      += pci_io.o
+endif
 obj-$(CONFIG_CMD_BOOTM) += bootm.o