Makefile 3.5 KB

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