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