Makefile
上传用户:lgb322
上传日期:2013-02-24
资源大小:30529k
文件大小:3k
源码类别:

嵌入式Linux

开发平台:

Unix_Linux

  1. #
  2. # arch/arm/boot/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. # Copyright (C) 1995-2002 Russell King
  9. #
  10. SYSTEM =$(TOPDIR)/vmlinux
  11. ifeq ($(CONFIG_CPU_26),y)
  12. ZRELADDR  = 0x02080000
  13. PARAMS_PHYS  = 0x0207c000
  14. INITRD_PHYS  = 0x02180000
  15. endif
  16. ifeq ($(CONFIG_ARCH_RPC),y)
  17. ZRELADDR  = 0x10008000
  18. PARAMS_PHYS  = 0x10000100
  19. INITRD_PHYS  = 0x18000000
  20. endif
  21. ifeq ($(CONFIG_ARCH_CLPS7500),y)
  22. ZRELADDR  = 0x10008000
  23. endif
  24. ifeq ($(CONFIG_ARCH_EBSA110),y)
  25. ZRELADDR  = 0x00008000
  26. PARAMS_PHYS  = 0x00000400
  27. INITRD_PHYS  = 0x00800000
  28. endif
  29. ifeq ($(CONFIG_ARCH_SHARK),y)
  30. ZTEXTADDR  = 0x08508000
  31. ZRELADDR  = 0x08008000
  32. endif
  33. ifeq ($(CONFIG_FOOTBRIDGE),y)
  34. ZRELADDR  = 0x00008000
  35. PARAMS_PHYS  = 0x00000100
  36. INITRD_PHYS  = 0x00800000
  37. endif
  38. ifeq ($(CONFIG_ARCH_INTEGRATOR),y)
  39. ZRELADDR  = 0x00008000
  40. PARAMS_PHYS  = 0x00000100
  41. INITRD_PHYS  = 0x00800000
  42. endif
  43. ifeq ($(CONFIG_ARCH_MX1ADS),y)
  44. ZRELADDR  = 0x08008000
  45. endif
  46. ifeq ($(CONFIG_ARCH_CAMELOT),y)
  47. ZRELADDR  = 0x00008000
  48. endif
  49. ifeq ($(CONFIG_ARCH_NEXUSPCI),y)
  50. ZRELADDR  = 0x40008000
  51. endif
  52. ifeq ($(CONFIG_ARCH_L7200),y)
  53. ZRELADDR  = 0xf0008000
  54. endif
  55. # The standard locations for stuff on CLPS711x type processors
  56. ifeq ($(CONFIG_ARCH_CLPS711X),y)
  57. ZRELADDR  = 0xc0028000
  58. PARAMS_PHYS  = 0xc0000100
  59. endif
  60. # Should probably have some agreement on these...
  61. ifeq ($(CONFIG_ARCH_P720T),y)
  62. INITRD_PHYS  = 0xc0400000
  63. endif
  64. ifeq ($(CONFIG_ARCH_CDB89712),y)
  65. INITRD_PHYS  = 0x00700000
  66. endif
  67. ifeq ($(CONFIG_ARCH_SA1100),y)
  68. ZRELADDR  = 0xc0008000
  69. # No defconfig file to move this into...
  70. #ifeq ($(CONFIG_SA1100_YOPY),y)
  71. #  ZTEXTADDR      = 0x00080000
  72. #  ZBSSADDR       = 0xc0200000
  73. #endif
  74. ifeq ($(CONFIG_SA1111),y)
  75.   ZRELADDR  = 0xc0208000
  76. endif
  77. endif
  78. ifeq ($(CONFIG_ARCH_PXA),y)
  79. ZRELADDR  = 0xa0008000
  80. endif
  81. ifeq ($(CONFIG_ARCH_ANAKIN),y)
  82. ZRELADDR  = 0x20008000
  83. endif
  84. ifeq ($(CONFIG_ARCH_S3C2400),y)
  85. ZTEXTADDR  = 0x0C808000
  86. ZRELADDR  = 0x0C808000
  87. endif
  88. ifeq ($(CONFIG_ARCH_S3C2410),y)
  89. ZTEXTADDR  = 0x30008000
  90. ZRELADDR  = 0x30008000
  91. endif
  92. #
  93. # We now have a PIC decompressor implementation.  Decompressors running
  94. # from RAM should not define ZTEXTADDR.  Decompressors running directly
  95. # from ROM or Flash must define ZTEXTADDR (preferably via the config)
  96. #
  97. ifeq ($(CONFIG_ZBOOT_ROM),y)
  98. ZTEXTADDR =0x$(CONFIG_ZBOOT_ROM_TEXT)
  99. ZBSSADDR =0x$(CONFIG_ZBOOT_ROM_BSS)
  100. else
  101. ZTEXTADDR =0
  102. ZBSSADDR =ALIGN(4)
  103. endif
  104. export SYSTEM ZTEXTADDR ZBSSADDR ZRELADDR INITRD_PHYS PARAMS_PHYS
  105. Image: $(CONFIGURE) $(SYSTEM)
  106. $(OBJCOPY) -O binary -R .note -R .comment -S $(SYSTEM) $@
  107. bzImage: zImage
  108. zImage: $(CONFIGURE) compressed/vmlinux
  109. $(OBJCOPY) -O binary -R .note -R .comment -S compressed/vmlinux $@
  110. bootpImage: bootp/bootp
  111. $(OBJCOPY) -O binary -R .note -R .comment -S bootp/bootp $@
  112. compressed/vmlinux: $(TOPDIR)/vmlinux dep
  113. @$(MAKE) -C compressed vmlinux
  114. bootp/bootp: zImage initrd
  115. @$(MAKE) -C bootp bootp
  116. initrd:
  117. @test "$(INITRD_PHYS)" != "" || (echo This architecture does not support INITRD; exit -1)
  118. @test "$(INITRD)" != "" || (echo You must specify INITRD; exit -1)
  119. install: $(CONFIGURE) Image
  120. sh ./install.sh $(VERSION).$(PATCHLEVEL).$(SUBLEVEL)$(EXTRAVERSION) Image $(TOPDIR)/System.map "$(INSTALL_PATH)"
  121. zinstall: $(CONFIGURE) zImage
  122. sh ./install.sh $(VERSION).$(PATCHLEVEL).$(SUBLEVEL)$(EXTRAVERSION) zImage $(TOPDIR)/System.map "$(INSTALL_PATH)"
  123. clean:
  124. $(RM) Image zImage bootpImage
  125. @$(MAKE) -C compressed clean
  126. @$(MAKE) -C bootp clean
  127. dep: