Makefile_no 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124
  1. #
  2. # arch/m68k/Makefile
  3. #
  4. # This file is subject to the terms and conditions of the GNU General Public
  5. # License. See the file "COPYING" in the main directory of this archive
  6. # for more details.
  7. #
  8. # (C) Copyright 2002, Greg Ungerer <gerg@snapgear.com>
  9. #
  10. platform-$(CONFIG_M68328) := 68328
  11. platform-$(CONFIG_M68EZ328) := 68EZ328
  12. platform-$(CONFIG_M68VZ328) := 68VZ328
  13. platform-$(CONFIG_M68360) := 68360
  14. platform-$(CONFIG_M5206) := 5206
  15. platform-$(CONFIG_M5206e) := 5206e
  16. platform-$(CONFIG_M520x) := 520x
  17. platform-$(CONFIG_M523x) := 523x
  18. platform-$(CONFIG_M5249) := 5249
  19. platform-$(CONFIG_M527x) := 527x
  20. platform-$(CONFIG_M5272) := 5272
  21. platform-$(CONFIG_M528x) := 528x
  22. platform-$(CONFIG_M5307) := 5307
  23. platform-$(CONFIG_M532x) := 532x
  24. platform-$(CONFIG_M5407) := 5407
  25. platform-$(CONFIG_M54xx) := 54xx
  26. PLATFORM := $(platform-y)
  27. board-$(CONFIG_PILOT) := pilot
  28. board-$(CONFIG_UC5272) := UC5272
  29. board-$(CONFIG_UC5282) := UC5282
  30. board-$(CONFIG_UCSIMM) := ucsimm
  31. board-$(CONFIG_UCDIMM) := ucdimm
  32. board-$(CONFIG_UCQUICC) := uCquicc
  33. board-$(CONFIG_DRAGEN2) := de2
  34. board-$(CONFIG_ARNEWSH) := ARNEWSH
  35. board-$(CONFIG_FREESCALE) := FREESCALE
  36. board-$(CONFIG_M5235EVB) := M5235EVB
  37. board-$(CONFIG_M5271EVB) := M5271EVB
  38. board-$(CONFIG_M5275EVB) := M5275EVB
  39. board-$(CONFIG_M5282EVB) := M5282EVB
  40. board-$(CONFIG_ELITE) := eLITE
  41. board-$(CONFIG_NETtel) := NETtel
  42. board-$(CONFIG_SECUREEDGEMP3) := MP3
  43. board-$(CONFIG_CLEOPATRA) := CLEOPATRA
  44. board-$(CONFIG_senTec) := senTec
  45. board-$(CONFIG_SNEHA) := SNEHA
  46. board-$(CONFIG_M5208EVB) := M5208EVB
  47. board-$(CONFIG_MOD5272) := MOD5272
  48. board-$(CONFIG_AVNET) := AVNET
  49. board-$(CONFIG_SAVANT) := SAVANT
  50. BOARD := $(board-y)
  51. model-$(CONFIG_RAMKERNEL) := ram
  52. model-$(CONFIG_ROMKERNEL) := rom
  53. MODEL := $(model-y)
  54. #
  55. # Some code support is grouped together for a common cpu-subclass (for
  56. # example all ColdFire cpu's are very similar). Determine the sub-class
  57. # for the selected cpu. ONLY need to define this for the non-base member
  58. # of the family.
  59. #
  60. cpuclass-$(CONFIG_M5206) := coldfire
  61. cpuclass-$(CONFIG_M5206e) := coldfire
  62. cpuclass-$(CONFIG_M520x) := coldfire
  63. cpuclass-$(CONFIG_M523x) := coldfire
  64. cpuclass-$(CONFIG_M5249) := coldfire
  65. cpuclass-$(CONFIG_M527x) := coldfire
  66. cpuclass-$(CONFIG_M5272) := coldfire
  67. cpuclass-$(CONFIG_M528x) := coldfire
  68. cpuclass-$(CONFIG_M5307) := coldfire
  69. cpuclass-$(CONFIG_M532x) := coldfire
  70. cpuclass-$(CONFIG_M5407) := coldfire
  71. cpuclass-$(CONFIG_M54xx) := coldfire
  72. cpuclass-$(CONFIG_M68328) := 68328
  73. cpuclass-$(CONFIG_M68EZ328) := 68328
  74. cpuclass-$(CONFIG_M68VZ328) := 68328
  75. cpuclass-$(CONFIG_M68360) := 68360
  76. CPUCLASS := $(cpuclass-y)
  77. ifneq ($(CPUCLASS),$(PLATFORM))
  78. CLASSDIR := arch/m68k/platform/$(cpuclass-y)/
  79. endif
  80. export PLATFORM BOARD MODEL CPUCLASS
  81. #
  82. # Some CFLAG additions based on specific CPU type.
  83. #
  84. cflags-$(CONFIG_M5206) := $(call cc-option,-mcpu=5206,-m5200)
  85. cflags-$(CONFIG_M5206e) := $(call cc-option,-mcpu=5206e,-m5200)
  86. cflags-$(CONFIG_M520x) := $(call cc-option,-mcpu=5208,-m5200)
  87. cflags-$(CONFIG_M523x) := $(call cc-option,-mcpu=523x,-m5307)
  88. cflags-$(CONFIG_M5249) := $(call cc-option,-mcpu=5249,-m5200)
  89. cflags-$(CONFIG_M5271) := $(call cc-option,-mcpu=5271,-m5307)
  90. cflags-$(CONFIG_M5272) := $(call cc-option,-mcpu=5272,-m5307)
  91. cflags-$(CONFIG_M5275) := $(call cc-option,-mcpu=5275,-m5307)
  92. cflags-$(CONFIG_M528x) := $(call cc-option,-mcpu=528x,-m5307)
  93. cflags-$(CONFIG_M5307) := $(call cc-option,-mcpu=5307,-m5200)
  94. cflags-$(CONFIG_M532x) := $(call cc-option,-mcpu=532x,-m5307)
  95. cflags-$(CONFIG_M5407) := $(call cc-option,-mcpu=5407,-m5200)
  96. cflags-$(CONFIG_M54xx) := $(call cc-option,-mcpu=5475,-m5200)
  97. cflags-$(CONFIG_M68328) := -m68000
  98. cflags-$(CONFIG_M68EZ328) := -m68000
  99. cflags-$(CONFIG_M68VZ328) := -m68000
  100. cflags-$(CONFIG_M68360) := -m68332
  101. KBUILD_AFLAGS += $(cflags-y)
  102. KBUILD_CFLAGS += $(cflags-y)
  103. KBUILD_CFLAGS += -D__linux__
  104. KBUILD_CFLAGS += -DUTS_SYSNAME=\"uClinux\"
  105. head-y := arch/m68k/platform/$(cpuclass-y)/head.o
  106. core-y += arch/m68k/kernel/ \
  107. arch/m68k/mm/ \
  108. $(CLASSDIR) \
  109. arch/m68k/platform/$(PLATFORM)/
  110. libs-y += arch/m68k/lib/
  111. archclean: