Skip to contentSkip to conversation

mpc85xx: do not include cmd_errata in SPL_BUILD

PATCH New Ed Swarthout 2 participants 3 messages Jul 2, 2016 PowerPC

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 mpc85xx: do not include cmd_errata in SPL_BUILD

Fixes build breaks for T4240QDS_SDCARD and T4240QDS_NAND:

arch/powerpc/cpu/mpc85xx/built-in.o: In function `do_errata':
/home/swarthou/bsp/stash/u-boot-devel/arch/powerpc/cpu/mpc85xx/cmd_errata.c:299: undefined reference to has_erratum_a007798' /home/swarthou/bsp/stash/u-boot-devel/arch/powerpc/cpu/mpc85xx/cmd_errata.c:312: undefined reference to has_erratum_a006261' /home/swarthou/bsp/stash/u-boot-devel/scripts/Makefile.spl:251: recipe for target 'spl/u-boot-spl' failed make[2]: *** [spl/u-boot-spl] Error 1
/home/swarthou/bsp/stash/u-boot-devel/Makefile:1322: recipe for target 'spl/u-boot-spl' failed

---

This applies to denx/master.

If there is a reason why cmd_errata is needed in SPL, a different fix would be needed...

 arch/powerpc/cpu/mpc85xx/Makefile | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
arch/powerpc/cpu/mpc85xx/Makefile +2 -1
index 65c26c0..5e7b130 100644
@@ -14,6 +14,8 @@ ifdef CONFIG_SPL_BUILD
 ifdef CONFIG_SPL_INIT_MINIMAL
 MINIMAL=y
 endif
+else
+obj-$(CONFIG_CMD_ERRATA) += cmd_errata.o
 endif
 
 extra-y = start.o resetvec.o
@@ -26,7 +28,6 @@ else
 
 obj-$(CONFIG_MP)	+= release.o
 
-obj-$(CONFIG_CMD_ERRATA) += cmd_errata.o
 obj-$(CONFIG_CPM2)	+= commproc.o
 
 obj-$(CONFIG_CPM2)	+= ether_fcc.o
Signature · 1 line
2.5.0
#1 lore raw

PATCH 1/1 mpc85xx: do not include cmd_errata in SPL_BUILD

Ed,

This was broken after a USB patch. Sriram Dash is working on a fix.

York

-------- Original Message --------
From: Ed Swarthout <[email protected]>
Sent: Friday, July 1, 2016 07:16 PM
To: york sun <[email protected]>
Subject: [PATCH] mpc85xx: do not include cmd_errata in SPL_BUILD
CC: u-boot at lists.denx.de,Edward L Swarthout <[email protected]>

Fixes build breaks for T4240QDS_SDCARD and T4240QDS_NAND:

arch/powerpc/cpu/mpc85xx/built-in.o: In function `do_errata':
/home/swarthou/bsp/stash/u-boot-devel/arch/powerpc/cpu/mpc85xx/cmd_errata.c:299: undefined reference to has_erratum_a007798' /home/swarthou/bsp/stash/u-boot-devel/arch/powerpc/cpu/mpc85xx/cmd_errata.c:312: undefined reference to has_erratum_a006261' /home/swarthou/bsp/stash/u-boot-devel/scripts/Makefile.spl:251: recipe for target 'spl/u-boot-spl' failed make[2]: *** [spl/u-boot-spl] Error 1
/home/swarthou/bsp/stash/u-boot-devel/Makefile:1322: recipe for target 'spl/u-boot-spl' failed

---

This applies to denx/master.

If there is a reason why cmd_errata is needed in SPL, a different fix would be needed...

 arch/powerpc/cpu/mpc85xx/Makefile | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
arch/powerpc/cpu/mpc85xx/Makefile +2 -1
index 65c26c0..5e7b130 100644
@@ -14,6 +14,8 @@ ifdef CONFIG_SPL_BUILD
 ifdef CONFIG_SPL_INIT_MINIMAL
 MINIMAL=y
 endif
+else
+obj-$(CONFIG_CMD_ERRATA) += cmd_errata.o
 endif
 
 extra-y = start.o resetvec.o
@@ -26,7 +28,6 @@ else
 
 obj-$(CONFIG_MP)        += release.o
 
-obj-$(CONFIG_CMD_ERRATA) += cmd_errata.o
 obj-$(CONFIG_CPM2)      += commproc.o
 
 obj-$(CONFIG_CPM2)      += ether_fcc.o

--
2.5.0

#2 lore raw

PATCH 1/1 mpc85xx: do not include cmd_errata in SPL_BUILD

In reply to Ed Swarthout
Quoted 34 lines · Ed Swarthout

Fixes build breaks for T4240QDS_SDCARD and T4240QDS_NAND:

arch/powerpc/cpu/mpc85xx/built-in.o: In function `do_errata':
/home/swarthou/bsp/stash/u-boot-devel/arch/powerpc/cpu/mpc85xx/cmd_errata.c:299: undefined reference to has_erratum_a007798' /home/swarthou/bsp/stash/u-boot-devel/arch/powerpc/cpu/mpc85xx/cmd_errata.c:312: undefined reference to has_erratum_a006261' /home/swarthou/bsp/stash/u-boot-devel/scripts/Makefile.spl:251: recipe for target 'spl/u-boot-spl' failed make[2]: *** [spl/u-boot-spl] Error 1
/home/swarthou/bsp/stash/u-boot-devel/Makefile:1322: recipe for target 'spl/u-boot-spl' failed

---

This applies to denx/master.

If there is a reason why cmd_errata is needed in SPL, a different fix would be needed...

  arch/powerpc/cpu/mpc85xx/Makefile | 3 ++-
  1 file changed, 2 insertions(+), 1 deletion(-)
arch/powerpc/cpu/mpc85xx/Makefile +2 -0
index 65c26c0..5e7b130 100644
@@ -14,6 +14,8 @@ ifdef CONFIG_SPL_BUILD
  ifdef CONFIG_SPL_INIT_MINIMAL
  MINIMAL=y
  endif
+else
+obj-$(CONFIG_CMD_ERRATA) += cmd_errata.o
  endif
 
  extra-y = start.o resetvec.o

arch/powerpc/cpu/mpc85xx/Makefile else · line 33

Quoted 7 lines
arch/powerpc/cpu/mpc85xx/Makefile +0 -1
@@ -26,7 +28,6 @@ else
 
  obj-$(CONFIG_MP)	+= release.o
 
-obj-$(CONFIG_CMD_ERRATA) += cmd_errata.o
  obj-$(CONFIG_CPM2)	+= commproc.o
 
  obj-$(CONFIG_CPM2)	+= ether_fcc.o

Sriram,

Please check Ed's suggestion. I think it makes sense to remove cmd_errata.o for SPL part. When the normal U-Boot comes up, this file will be linked. I probably gave you a wrong suggestion about the CMD_ERRATA has nothing to do with USB. That's still true, but for SPL build we don't need to run "errata" command.

York