]> git.sur5r.net Git - u-boot/commitdiff
powerpc: mpc85xx: Do not build errata command in SPL
authorMarek Vasut <marex@denx.de>
Tue, 5 Jul 2016 15:40:27 +0000 (17:40 +0200)
committerMarek Vasut <marex@denx.de>
Tue, 5 Jul 2016 15:40:28 +0000 (17:40 +0200)
The errata command is useless in SPL, so don't build it. This fixes
multiple build failures on PowerPC.

Signed-off-by: Marek Vasut <marex@denx.de>
Cc: York Sun <york.sun@nxp.com>
Fixes: 92623672f9d3 ("fsl: usb: make errata function common for PPC and ARM")
arch/powerpc/cpu/mpc85xx/Makefile

index 65c26c093c04b1741b2c942797c1618112b6b9af..f4c4fe26028d6a99f8ff229ff7df6227e211c383 100644 (file)
@@ -26,7 +26,9 @@ else
 
 obj-$(CONFIG_MP)       += release.o
 
+ifndef CONFIG_SPL_BUILD
 obj-$(CONFIG_CMD_ERRATA) += cmd_errata.o
+endif
 obj-$(CONFIG_CPM2)     += commproc.o
 
 obj-$(CONFIG_CPM2)     += ether_fcc.o