Makefile 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116
  1. #
  2. # arch/m68knommu/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_M5407) := 5407
  24. PLATFORM := $(platform-y)
  25. board-$(CONFIG_PILOT) := pilot
  26. board-$(CONFIG_UCSIMM) := ucsimm
  27. board-$(CONFIG_UCDIMM) := ucdimm
  28. board-$(CONFIG_UCQUICC) := uCquicc
  29. board-$(CONFIG_DRAGEN2) := de2
  30. board-$(CONFIG_ARNEWSH) := ARNEWSH
  31. board-$(CONFIG_FREESCALE) := FREESCALE
  32. board-$(CONFIG_M5235EVB) := M5235EVB
  33. board-$(CONFIG_M5271EVB) := M5271EVB
  34. board-$(CONFIG_M5275EVB) := M5275EVB
  35. board-$(CONFIG_M5282EVB) := M5282EVB
  36. board-$(CONFIG_ELITE) := eLITE
  37. board-$(CONFIG_eLIA) := eLIA
  38. board-$(CONFIG_NETtel) := NETtel
  39. board-$(CONFIG_SECUREEDGEMP3) := MP3
  40. board-$(CONFIG_CLEOPATRA) := CLEOPATRA
  41. board-$(CONFIG_senTec) := senTec
  42. board-$(CONFIG_SNEHA) := SNEHA
  43. board-$(CONFIG_M5208EVB) := M5208EVB
  44. board-$(CONFIG_MOD5272) := MOD5272
  45. board-$(CONFIG_AVNET) := AVNET
  46. BOARD := $(board-y)
  47. model-$(CONFIG_RAMKERNEL) := ram
  48. model-$(CONFIG_ROMKERNEL) := rom
  49. MODEL := $(model-y)
  50. #
  51. # Some code support is grouped together for a common cpu-subclass (for
  52. # example all ColdFire cpu's are very similar). Determine the sub-class
  53. # for the selected cpu. ONLY need to define this for the non-base member
  54. # of the family.
  55. #
  56. cpuclass-$(CONFIG_M5206) := 5307
  57. cpuclass-$(CONFIG_M5206e) := 5307
  58. cpuclass-$(CONFIG_M520x) := 5307
  59. cpuclass-$(CONFIG_M523x) := 5307
  60. cpuclass-$(CONFIG_M5249) := 5307
  61. cpuclass-$(CONFIG_M527x) := 5307
  62. cpuclass-$(CONFIG_M5272) := 5307
  63. cpuclass-$(CONFIG_M528x) := 5307
  64. cpuclass-$(CONFIG_M5307) := 5307
  65. cpuclass-$(CONFIG_M5407) := 5307
  66. cpuclass-$(CONFIG_M68328) := 68328
  67. cpuclass-$(CONFIG_M68EZ328) := 68328
  68. cpuclass-$(CONFIG_M68VZ328) := 68328
  69. cpuclass-$(CONFIG_M68360) := 68360
  70. CPUCLASS := $(cpuclass-y)
  71. ifneq ($(CPUCLASS),$(PLATFORM))
  72. CLASSDIR := arch/m68knommu/platform/$(cpuclass-y)/
  73. endif
  74. export PLATFORM BOARD MODEL CPUCLASS
  75. #
  76. # Some CFLAG additions based on specific CPU type.
  77. #
  78. cflags-$(CONFIG_M5206) := -m5200
  79. cflags-$(CONFIG_M5206e) := -m5200
  80. cflags-$(CONFIG_M520x) := -m5307
  81. cflags-$(CONFIG_M523x) := -m5307
  82. cflags-$(CONFIG_M5249) := -m5200
  83. cflags-$(CONFIG_M527x) := -m5307
  84. cflags-$(CONFIG_M5272) := -m5307
  85. cflags-$(CONFIG_M528x) := -m5307
  86. cflags-$(CONFIG_M5307) := -m5307
  87. cflags-$(CONFIG_M532x) := -m5307
  88. cflags-$(CONFIG_M5407) := -m5200
  89. cflags-$(CONFIG_M68328) := -m68000
  90. cflags-$(CONFIG_M68EZ328) := -m68000
  91. cflags-$(CONFIG_M68VZ328) := -m68000
  92. cflags-$(CONFIG_M68360) := -m68332
  93. AFLAGS += $(cflags-y)
  94. CFLAGS += $(cflags-y)
  95. CFLAGS += -D__linux__
  96. CFLAGS += -DUTS_SYSNAME=\"uClinux\"
  97. head-y := arch/m68knommu/platform/$(cpuclass-y)/head.o
  98. core-y += arch/m68knommu/kernel/ \
  99. arch/m68knommu/mm/ \
  100. $(CLASSDIR) \
  101. arch/m68knommu/platform/$(PLATFORM)/
  102. libs-y += arch/m68knommu/lib/
  103. archclean:
  104. $(Q)$(MAKE) $(clean)=arch/m68knommu/boot