home *** CD-ROM | disk | FTP | other *** search
/ PC Welt 2006 November (DVD) / PCWELT_11_2006.ISO / casper / filesystem.squashfs / usr / src / linux-headers-2.6.17-6 / debian / ruleset / arches / mips.mk < prev    next >
Encoding:
Text File  |  2005-11-02  |  3.6 KB  |  103 lines

  1. ######################### -*- Mode: Makefile-Gmake -*- ########################
  2. ## mips.mk --- 
  3. ## Author           : Manoj Srivastava ( srivasta@glaurung.internal.golden-gryphon.com ) 
  4. ## Created On       : Mon Oct 31 18:31:07 2005
  5. ## Created On Node  : glaurung.internal.golden-gryphon.com
  6. ## Last Modified By : Manoj Srivastava
  7. ## Last Modified On : Mon Oct 31 18:31:07 2005
  8. ## Last Machine Used: glaurung.internal.golden-gryphon.com
  9. ## Update Count     : 0
  10. ## Status           : Unknown, Use with caution!
  11. ## HISTORY          : 
  12. ## Description      : handle the architecture specific variables.
  13. ## 
  14. ## arch-tag: 5af7feee-c1b9-497b-8985-2d6d15abefa9
  15. ## 
  16. ## 
  17. ## This program is free software; you can redistribute it and/or modify
  18. ## it under the terms of the GNU General Public License as published by
  19. ## the Free Software Foundation; either version 2 of the License, or
  20. ## (at your option) any later version.
  21. ##
  22. ## This program is distributed in the hope that it will be useful,
  23. ## but WITHOUT ANY WARRANTY; without even the implied warranty of
  24. ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  25. ## GNU General Public License for more details.
  26. ##
  27. ## You should have received a copy of the GNU General Public License
  28. ## along with this program; if not, write to the Free Software
  29. ## Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
  30. ##
  31. ###############################################################################
  32.  
  33. # SGI ELF32: 64bit kernel, but firmware needs ELF32 for netboot
  34. # (the on-disk loader could do both).
  35. ifneq (,$(filter r4k-ip22 r5k-ip22 r5k-ip32 r10k-ip32,$(strip $(KPKG_SUBARCH))))
  36. ifneq ($(shell if [ $(VERSION)  -ge  2 ]  && [ $(PATCHLEVEL) -ge 6 ] &&    \
  37.                   [ $(SUBLEVEL) -ge 11 ]; then echo new;                   \
  38.              elif [ $(VERSION)  -ge  2 ]  && [ $(PATCHLEVEL) -ge 7 ]; then \
  39.                                           echo new;                        \
  40.              elif [ $(VERSION)  -ge  3 ]; then echo new; fi),)
  41.   kimage := vmlinux.32
  42. else
  43.   kimage := vmlinux
  44. endif
  45.   loaderdep = arcboot
  46.   loader = arcboot
  47.   loaderdoc =
  48. endif
  49. # SGI ELF64
  50. ifneq (,$(filter r10k-ip27 r10k-ip28 r10k-ip30,$(strip $(KPKG_SUBARCH))))
  51. # pre 2.6.11 the image name was vmlinux.64
  52. ifneq ($(shell if [ $(VERSION)  -ge  2 ]  && [ $(PATCHLEVEL) -ge 6 ] &&    \
  53.                   [ $(SUBLEVEL) -ge 11 ]; then echo new;                   \
  54.              elif [ $(VERSION)  -ge  2 ]  && [ $(PATCHLEVEL) -ge 7 ]; then \
  55.                                           echo new;                        \
  56.              elif [ $(VERSION)  -ge  3 ]; then echo new; fi),)
  57.   kimage := vmlinux
  58. else
  59.   kimage := vmlinux.64
  60. endif
  61.   loaderdep = arcboot
  62.   loader = arcboot
  63.   loaderdoc =
  64. endif
  65. # Broadcom SWARM
  66. ifneq (,$(filter sb1-swarm-bn,$(strip $(KPKG_SUBARCH))))
  67.   loaderdep = sibyl
  68.   loader = sibyl
  69.   loaderdoc =
  70. endif
  71.  
  72. # Default value
  73. ifeq (,$(kimage))
  74.   kimage := vmlinux
  75. endif
  76. ifeq (,$(kimagesrc))
  77.   kimagesrc := $(kimage)
  78. endif
  79.  
  80. NEED_DIRECT_GZIP_IMAGE = NO
  81. kimagedest = $(INT_IMAGE_DESTDIR)/vmlinux-$(version)
  82.  
  83. ifneq ($(shell if [ $(VERSION)  -ge  2 ]  && [ $(PATCHLEVEL) -ge 5 ] &&    \
  84.                   [ $(SUBLEVEL) -ge 41 ]; then echo new;                   \
  85.              elif [ $(VERSION)  -ge  2 ]  && [ $(PATCHLEVEL) -ge 6 ]; then \
  86.                                           echo new;                        \
  87.              elif [ $(VERSION)  -ge  3 ]; then echo new; fi),)
  88.   target =
  89. else
  90.   target = boot
  91. endif
  92.  
  93. ifneq (,$(filter mips64%,$(KPKG_SUBARCH)))
  94.   KERNEL_ARCH = mips64
  95. endif
  96. ifneq (,$(filter %-64,$(KPKG_SUBARCH)))
  97.   KERNEL_ARCH = mips64
  98. endif
  99.  
  100. #Local variables:
  101. #mode: makefile
  102. #End:
  103.