Makefile 1006 B

123456789101112131415161718192021222324252627282930313233
  1. # SPDX-License-Identifier: GPL-2.0+
  2. head-y := arch/m68k/cpu/$(CPU)/start.o
  3. libs-y += arch/m68k/cpu/$(CPU)/
  4. libs-y += arch/m68k/lib/
  5. cpuflags-$(CONFIG_M5208) := -mcpu=5208
  6. cpuflags-$(CONFIG_M5235) := -mcpu=5235 -fPIC
  7. cpuflags-$(CONFIG_M52277) := -mcpu=52277 -fPIC
  8. cpuflags-$(CONFIG_M5249) := -mcpu=5249
  9. cpuflags-$(CONFIG_M5253) := -mcpu=5253
  10. cpuflags-$(CONFIG_M5271) := -mcpu=5271
  11. cpuflags-$(CONFIG_M5272) := -mcpu=5272
  12. cpuflags-$(CONFIG_M5275) := -mcpu=5275
  13. cpuflags-$(CONFIG_M5282) := -mcpu=5282
  14. cpuflags-$(CONFIG_M5307) := -mcpu=5307
  15. cpuflags-$(CONFIG_MCF5301x) := -mcpu=53015 -fPIC
  16. cpuflags-$(CONFIG_MCF532x) := -mcpu=5329 -fPIC
  17. cpuflags-$(CONFIG_MCF5441x) := -mcpu=54418 -fPIC
  18. cpuflags-$(CONFIG_MCF5445x) := -mcpu=54455 -fPIC
  19. PLATFORM_CPPFLAGS += $(cpuflags-y)
  20. ldflags-$(CONFIG_MCF5441x) := --got=single
  21. ldflags-$(CONFIG_MCF5445x) := --got=single
  22. ifneq (,$(findstring -linux-,$(shell $(CC) --version)))
  23. ifneq (,$(findstring GOT,$(shell $(LD) --help)))
  24. KBUILD_LDFLAGS += $(ldflags-y)
  25. endif
  26. endif