Makefile 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. #
  2. # (C) Copyright 2000-2006
  3. # Wolfgang Denk, DENX Software Engineering, wd@denx.de.
  4. #
  5. # SPDX-License-Identifier: GPL-2.0+
  6. #
  7. ## Build a couple of necessary functions into a private libgcc
  8. ## if the user asked for it
  9. lib-$(CONFIG_USE_PRIVATE_LIBGCC) += _ashldi3.o _ashrdi3.o _lshrdi3.o
  10. MINIMAL=
  11. ifdef CONFIG_SPL_BUILD
  12. ifdef CONFIG_SPL_INIT_MINIMAL
  13. MINIMAL=y
  14. endif
  15. endif
  16. ifdef MINIMAL
  17. obj-y += cache.o time.o
  18. obj-y += ticks.o
  19. else
  20. obj-y += ppcstring.o
  21. obj-y += ppccache.o
  22. obj-y += ticks.o
  23. obj-y += reloc.o
  24. obj-$(CONFIG_BAT_RW) += bat_rw.o
  25. obj-$(CONFIG_CMD_BOOTM) += bootm.o
  26. obj-y += cache.o
  27. obj-y += extable.o
  28. obj-y += interrupts.o
  29. obj-$(CONFIG_CMD_KGDB) += kgdb.o
  30. obj-$(CONFIG_CMD_IDE) += ide.o
  31. obj-y += stack.o
  32. obj-y += time.o
  33. # Don't include the MPC5xxx special memcpy into the
  34. # SPL U-Boot image. memcpy is used in the SPL NOR
  35. # flash driver. And we need the real, fast memcpy
  36. # here. We have no problems with unaligned access.
  37. ifndef CONFIG_SPL_BUILD
  38. # Workaround for local bus unaligned access problems
  39. # on MPC512x and MPC5200
  40. ifdef CONFIG_MPC512X
  41. AFLAGS_ppcstring.o += -Dmemcpy=__memcpy
  42. obj-y += memcpy_mpc5200.o
  43. endif
  44. ifdef CONFIG_MPC5200
  45. AFLAGS_ppcstring.o += -Dmemcpy=__memcpy
  46. obj-y += memcpy_mpc5200.o
  47. endif
  48. endif
  49. endif # not minimal
  50. ifdef CONFIG_SPL_BUILD
  51. obj-$(CONFIG_SPL_FRAMEWORK) += spl.o
  52. endif