Makefile 1.3 KB

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