Makefile 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  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. ifdef USE_PRIVATE_LIBGCC
  10. lib-y += _ashldi3.o
  11. lib-y += _ashrdi3.o
  12. lib-y += _lshrdi3.o
  13. endif
  14. MINIMAL=
  15. ifdef CONFIG_SPL_BUILD
  16. ifdef CONFIG_SPL_INIT_MINIMAL
  17. MINIMAL=y
  18. endif
  19. endif
  20. ifdef MINIMAL
  21. obj-y += cache.o time.o
  22. obj-y += ticks.o
  23. else
  24. obj-y += ppcstring.o
  25. obj-y += ppccache.o
  26. obj-y += ticks.o
  27. obj-y += reloc.o
  28. obj-$(CONFIG_BAT_RW) += bat_rw.o
  29. ifndef CONFIG_SPL_BUILD
  30. ifndef CONFIG_SYS_GENERIC_BOARD
  31. obj-y += board.o
  32. endif
  33. endif
  34. obj-$(CONFIG_CMD_BOOTM) += bootm.o
  35. obj-y += cache.o
  36. obj-y += extable.o
  37. obj-y += interrupts.o
  38. obj-$(CONFIG_CMD_KGDB) += kgdb.o
  39. obj-$(CONFIG_CMD_IDE) += ide.o
  40. obj-y += time.o
  41. # Don't include the MPC5xxx special memcpy into the
  42. # SPL U-Boot image. memcpy is used in the SPL NOR
  43. # flash driver. And we need the real, fast memcpy
  44. # here. We have no problems with unaligned access.
  45. ifndef CONFIG_SPL_BUILD
  46. # Workaround for local bus unaligned access problems
  47. # on MPC512x and MPC5200
  48. ifdef CONFIG_MPC512X
  49. AFLAGS_ppcstring.o += -Dmemcpy=__memcpy
  50. obj-y += memcpy_mpc5200.o
  51. endif
  52. ifdef CONFIG_MPC5200
  53. AFLAGS_ppcstring.o += -Dmemcpy=__memcpy
  54. obj-y += memcpy_mpc5200.o
  55. endif
  56. endif
  57. endif # not minimal
  58. ifdef CONFIG_SPL_BUILD
  59. obj-$(CONFIG_SPL_FRAMEWORK) += spl.o
  60. endif