File: kernel_version.mk

package info (click to toggle)
kernel-package 12.036%2Bnmu1
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 2,848 kB
  • ctags: 657
  • sloc: perl: 2,887; sh: 840; makefile: 219
file content (97 lines) | stat: -rw-r--r-- 3,258 bytes parent folder | download | duplicates (3)
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
############################ -*- Mode: Makefile -*- ###########################
## kernel_version.mk --- 
## Author           : Manoj Srivastava ( srivasta@glaurung.internal.golden-gryphon.com ) 
## Created On       : Mon Oct 31 18:12:22 2005
## Created On Node  : glaurung.internal.golden-gryphon.com
## Last Modified By : Manoj Srivastava
## Last Modified On : Sun Mar 26 19:53:50 2006
## Last Machine Used: glaurung.internal.golden-gryphon.com
## Update Count     : 1
## Status           : Unknown, Use with caution!
## HISTORY          : 
## Description      : 
## 
## arch-tag: 8ae3064b-78fe-4dfb-9460-a43660d0e0ca
## 
## 
## 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 purpose of this snippet of makefile is to easily and accurately
# extract out the kernel version information.


MAKEFLAGS:=$(filter-out -w,$(MAKEFLAGS))
MFLAGS:=$(filter-out -w,$(FLAGS))

# Include the kernel makefile
override dot-config := 1
include Makefile
dot-config := 1

.PHONY: debian_VERSION debian_PATCHLEVEL debian_SUBLEVEL
.PHONY: debian_EXTRAVERSION debian_LOCALVERSION debian_TOPDIR


debian_KERNELRELEASE:
	@echo "$(strip $(KERNELRELEASE))"

debian_VERSION:
	@echo "$(strip $(VERSION))"

debian_PATCHLEVEL:
	@echo "$(strip $(PATCHLEVEL))"

debian_SUBLEVEL:
	@echo "$(strip $(SUBLEVEL))"

debian_EXTRAVERSION:
	@echo "$(strip $(EXTRAVERSION))"

debian_LOCALVERSION:
	@echo $(if $(strip $(localver-full)),"$(strip $(localver-full))", "$(strip $(LOCALVERSION))")

debian_TOPDIR:
# 2.6 kernels declared TOPDIR obsolete, so use srctree if it exists
	@echo $(if $(strip $(srctree)),"$(srctree)","$(TOPDIR)")


debian_conf_var:
        @echo "ARCH             = $(ARCH)"
        @echo "HOSTCC           = $(HOSTCC)"
        @echo "HOSTCFLAGS       = $(HOSTCFLAGS)"
        @echo "CROSS_COMPILE    = $(CROSS_COMPILE)"
        @echo "AS               = $(AS)"
        @echo "LD               = $(LD)"
        @echo "CC               = $(CC)"
        @echo "CPP              = $(CPP)"
        @echo "AR               = $(AR)"
        @echo "NM               = $(NM)"
        @echo "STRIP            = $(STRIP)"
        @echo "OBJCOPY          = $(OBJCOPY)"
        @echo "OBJDUMP          = $(OBJDUMP)"
        @echo "MAKE             = $(MAKE)"
        @echo "GENKSYMS         = $(GENKSYMS)"
        @echo "CFLAGS           = $(CFLAGS)"
        @echo "AFLAGS           = $(AFLAGS)"
        @echo "MODFLAGS         = $(MODFLAGS)"


# arch-tag: ecfa9843-6306-470e-8ab9-2dfca1d40613

#Local Variables:
#mode: makefile
#End: