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 / misc / defaults.mk < prev    next >
Encoding:
Text File  |  2006-03-27  |  4.8 KB  |  158 lines

  1. ######################### -*- Mode: Makefile-Gmake -*- ########################
  2. ## defaults.mk --- 
  3. ## Author           : Manoj Srivastava ( srivasta@glaurung.internal.golden-gryphon.com ) 
  4. ## Created On       : Mon Oct 31 17:43:59 2005
  5. ## Created On Node  : glaurung.internal.golden-gryphon.com
  6. ## Last Modified By : Manoj Srivastava
  7. ## Last Modified On : Tue Feb  7 09:24:07 2006
  8. ## Last Machine Used: glaurung.internal.golden-gryphon.com
  9. ## Update Count     : 8
  10. ## Status           : Unknown, Use with caution!
  11. ## HISTORY          : 
  12. ## Description      : sets default values for variables _before_ the
  13. ##                    user configuration files are read.
  14. ## 
  15. ## arch-tag: a28f832f-5d67-427c-9370-0defffa8471c
  16. ## 
  17. ## 
  18. ## This program is free software; you can redistribute it and/or modify
  19. ## it under the terms of the GNU General Public License as published by
  20. ## the Free Software Foundation; either version 2 of the License, or
  21. ## (at your option) any later version.
  22. ##
  23. ## This program is distributed in the hope that it will be useful,
  24. ## but WITHOUT ANY WARRANTY; without even the implied warranty of
  25. ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  26. ## GNU General Public License for more details.
  27. ##
  28. ## You should have received a copy of the GNU General Public License
  29. ## along with this program; if not, write to the Free Software
  30. ## Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
  31. ##
  32. ###############################################################################
  33.  
  34. # The maintainer information.
  35. maintainer = Debian Kernel Team
  36. email= debian-kernel@lists.debian.org
  37.  
  38. pgp=$(maintainer)
  39.  
  40. # This package is what we get after removing the psuedo dirs we use in rules
  41. this_pkg = $(filter-out %/,$(subst /,/ ,$@))
  42.  
  43. # Where we read our config information from
  44. CONFLOC    :=$(shell if test -f ~/.kernel-pkg.conf; then \
  45.                         echo ~/.kernel-pkg.conf;         \
  46.                      else                                \
  47.                         echo /etc/kernel-pkg.conf;       \
  48.                      fi)
  49. # Default location of the modules
  50. ifeq ($(strip $(MODULE_LOC)),)
  51. MODULE_LOC =/usr/src/modules
  52. endif
  53. #
  54. DEBIAN_FILES = ChangeLog  Control  Control.bin86 config templates.in rules
  55. DEBIAN_DIRS  = Config docs examples ruleset scripts pkg po
  56.  
  57. #  Package specific stuff
  58. # decide if image is meant to be in /boot rather than /
  59. link_in_boot :=
  60. # Can we use symlinks?
  61. no_symlink :=
  62. # If so, where is the real file (usually, vmlinuz-X.X.X is real, and
  63. # vmlinuz is the link, this variable reverses it.
  64. reverse_symlink :=
  65.  
  66. # The version numbers for kernel-image, kernel-headers and
  67. # kernel-source are deduced from the Makefile (see below,
  68. # and footnote 1 for details)
  69.  
  70. # Whether to look for and install kernel patches by default.
  71. # Be very careful if you do this.
  72. patch_the_kernel := AUTO
  73.  
  74. # run make clean after build
  75. do_clean := NO
  76.  
  77. # install uncompressed kernel ELF-image (for oprofile)
  78. int_install_vmlinux := NO
  79.  
  80. # what kernel config target to run in our configure target.
  81. config_target := oldconfig
  82.  
  83.  
  84. # The default architecture (all if architecture independent)
  85. CROSS_ARG:=
  86.  
  87.  
  88. #
  89. # VERSION=$(shell LC_ALL=C dpkg-parsechangelog | grep ^Version: | \
  90. #                          sed 's/^Version: *//')
  91. #
  92.  
  93. # architecture is used mostly to select which arch specific snippet
  94. # shall be loaded from the rulesets/arches/ directory, and for nothing
  95. # else. The real variable that we use for calling make on the top level
  96. # Makefile, for instance, really depends on KERNEL_ARCH, usually set by
  97. # arch specific makefile snippets.
  98. ifdef KPKG_ARCH
  99.   architecture:=$(KPKG_ARCH)
  100. else
  101.   #architecture:=$(shell CC=$(HOSTCC) dpkg --print-gnu-build-architecture)
  102.   #architecture:=$(DEB_HOST_ARCH)
  103.   ifeq (,$(DEB_HOST_ARCH_CPU))
  104.     architecture:=$(DEB_HOST_GNU_CPU)
  105.   else
  106.     architecture:=$(DEB_HOST_ARCH_CPU)
  107.   endif
  108. endif
  109.  
  110. ifndef CROSS_COMPILE
  111.   ifeq ($(strip $(MAKING_VIRTUAL_IMAGE)),)
  112.     ifneq ($(strip $(architecture)),$(strip $(DEB_BUILD_ARCH)))
  113.       #KERNEL_CROSS:=$(architecture)-$(strip $(DEB_HOST_ARCH_OS))-
  114.       KERNEL_CROSS:=$(DEB_HOST_GNU_TYPE)-
  115.       ifeq ($(architecture), amd64)
  116.         KERNEL_CROSS:=$(architecture)-$(strip $(DEB_HOST_ARCH_OS))-
  117.       endif
  118.     endif
  119.   endif
  120. else
  121.   KERNEL_CROSS:=$(CROSS_COMPILE)-
  122. endif
  123.  
  124. KERNEL_CROSS:=$(shell echo $(KERNEL_CROSS) | sed -e 's,--$$,-,')
  125.  
  126. ifneq ($(strip $(KERNEL_CROSS)),)
  127.   ifeq ($(KERNEL_CROSS),-)
  128.     CROSS_ARG:=CROSS_COMPILE=''
  129.   else
  130.     CROSS_ARG:=CROSS_COMPILE=$(KERNEL_CROSS)
  131.   endif
  132. endif
  133.  
  134. DEBCONFIG = $(CONFDIR)/config
  135. IMAGEDIR=/boot
  136.  
  137. comma:= ,
  138. empty:=
  139. space:= $(empty) $(empty)
  140.  
  141. include $(DEBDIR)/ruleset/misc/kernel_arch.mk
  142.  
  143. ifeq ($(DEB_HOST_GNU_SYSTEM), kfreebsd-gnu)
  144.   PMAKE = PATH=/usr/lib/freebsd/:$(CURDIR)/bin:$(PATH) WERROR= MAKEFLAGS= freebsd-make
  145. endif
  146.  
  147.  
  148. ifneq ($(strip $(KPKG_STEM)),)
  149. INT_STEM := $(KPKG_STEM)
  150. else
  151. INT_STEM := $(DEB_HOST_ARCH_OS)
  152. endif
  153.  
  154.  
  155. #Local variables:
  156. #mode: makefile
  157. #End:
  158.