Makefile 655 B

12345678910111213141516171819202122232425262728293031
  1. # SPDX-License-Identifier: GPL-2.0+
  2. #
  3. # (C) Copyright 2000-2006
  4. # Wolfgang Denk, DENX Software Engineering, wd@denx.de.
  5. extra-y = start.o
  6. obj-y = cpu.o cache.o
  7. ifdef CONFIG_SPL_BUILD
  8. ifdef CONFIG_SPL_NO_CPU_SUPPORT_CODE
  9. extra-y :=
  10. endif
  11. endif
  12. obj-$(CONFIG_ARMADA100) += armada100/
  13. obj-$(if $(filter lpc32xx,$(SOC)),y) += lpc32xx/
  14. obj-$(CONFIG_MX25) += mx25/
  15. obj-$(CONFIG_MX27) += mx27/
  16. obj-$(if $(filter mxs,$(SOC)),y) += mxs/
  17. obj-$(if $(filter spear,$(SOC)),y) += spear/
  18. # some files can only build in ARM or THUMB2, not THUMB1
  19. ifdef CONFIG_$(SPL_)SYS_THUMB_BUILD
  20. ifndef CONFIG_HAS_THUMB2
  21. CFLAGS_cpu.o := -marm
  22. CFLAGS_cache.o := -marm
  23. endif
  24. endif