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 / xen.mk < prev   
Encoding:
Text File  |  2005-11-02  |  2.4 KB  |  69 lines

  1. ######################### -*- Mode: Makefile-Gmake -*- ########################
  2. ## xen.mk --- 
  3. ## Author           : Manoj Srivastava ( srivasta@glaurung.internal.golden-gryphon.com ) 
  4. ## Created On       : Mon Oct 31 18:29:36 2005
  5. ## Created On Node  : glaurung.internal.golden-gryphon.com
  6. ## Last Modified By : Manoj Srivastava
  7. ## Last Modified On : Mon Oct 31 18:29:36 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: 84291754-05f6-4240-b70b-45084bc51524
  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. KERNEL_ARCH = xen
  34. architecture = i386
  35.  
  36. ifeq (,$(findstring $(KPKG_SUBARCH),xen0 xenu))
  37.      KPKG_SUBARCH:=xen0
  38. endif
  39. DEBCONFIG = $(CONFDIR)/config.$(KPKG_SUBARCH)
  40.  
  41. ifneq ($(shell if [ $(VERSION)  -ge  2 ]  && [ $(PATCHLEVEL) -ge 5 ] &&    \
  42.                   [ $(SUBLEVEL) -ge 41 ]; then echo new;                   \
  43.              elif [ $(VERSION)  -ge  2 ]  && [ $(PATCHLEVEL) -ge 6 ]; then \
  44.                                           echo new;                        \
  45.              elif [ $(VERSION)  -ge  3 ]; then echo new; fi),)
  46.   target    = vmlinuz
  47. else
  48.   target    = bzImage
  49. endif
  50. kimage := $(target)
  51.  
  52. ifeq (,$(filter xen0,$(KPKG_SUBARCH)))
  53.    # only domain-0 are bootable via xen so only domain0 subarch needs grub and xen-vm
  54.    loaderdep=grub,xen-vm
  55.    loader=grub
  56.    loaderdoc=
  57. else
  58.    loaderdep=
  59.    loader=
  60.    loaderdoc=
  61. endif
  62.  
  63. kimagesrc = $(kimage)
  64. kimagedest = $(INT_IMAGE_DESTDIR)/xen-linux-$(version)
  65.  
  66. #Local variables:
  67. #mode: makefile
  68. #End:
  69.