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 / sparc.mk < prev    next >
Encoding:
Text File  |  2006-05-02  |  2.5 KB  |  76 lines

  1. ######################### -*- Mode: Makefile-Gmake -*- ########################
  2. ## sparc.mk --- 
  3. ## Author           : Manoj Srivastava ( srivasta@glaurung.internal.golden-gryphon.com ) 
  4. ## Created On       : Mon Oct 31 18:31:02 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:02 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: eb066682-43d8-4ef1-8d0b-163e3ebf0ab6
  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. kimage := vmlinuz
  34. loaderdep = silo
  35. loader = silo
  36. loaderdoc=SiloDefault
  37. NEED_DIRECT_GZIP_IMAGE = YES
  38. kimagedest = $(INT_IMAGE_DESTDIR)/vmlinuz-$(version)
  39. DEBCONFIG = $(CONFDIR)/config.sparc
  40.  
  41. ifeq (,$(KPKG_SUBARCH))
  42.   ifeq (sparc64,$(strip $(shell uname -m)))
  43.     KPKG_SUBARCH = sparc64
  44.   else
  45.     KPKG_SUBARCH = sparc32
  46.   endif
  47. endif
  48.  
  49. ifneq (,$(filter sparc64%,$(KPKG_SUBARCH)))
  50.    KERNEL_ARCH = sparc64
  51. else
  52.    ifneq (,$(filter sparc%,$(KPKG_SUBARCH)))
  53.       KERNEL_ARCH = sparc
  54.    else
  55.       KERNEL_ARCH = $(strip $(shell uname -m))
  56.    endif
  57. endif
  58.  
  59. ifneq ($(shell if [ $(VERSION)  -ge  2 ] && [ $(PATCHLEVEL) -ge 5 ] &&  \
  60.                   [ $(SUBLEVEL) -ge 41 ]; then echo new; \
  61.              elif [ $(VERSION)  -ge  2 ] && [ $(PATCHLEVEL) -ge 6 ]; then \
  62.                                           echo new; \
  63.              elif [ $(VERSION)  -ge  3 ]; then echo new; fi),)
  64.   target    = image
  65.   kimagesrc = arch/$(KERNEL_ARCH)/boot/image
  66.   kelfimagesrc = vmlinux
  67.   kelfimagedest = $(INT_IMAGE_DESTDIR)/vmlinux-$(version)
  68. else
  69.   target    = vmlinux
  70.   kimagesrc = vmlinux
  71. endif
  72.  
  73. #Local variables:
  74. #mode: makefile
  75. #End:
  76.