CentOS Sources
2017-09-12 5d918fe89ba4b484eec3f9c98cee39b0581f8ffc
commit | author | age
8481d4 1 RPMBUILD := $(shell if [ -x "/usr/bin/rpmbuild" ]; then echo rpmbuild; \
CB 2                    else echo rpm; fi)
3 REDHAT:=$(shell pwd)
4 TOPDIR:=$(shell dirname $(REDHAT))
5 MACH :=  $(shell uname -m)
6 KVERSION:=3.10.0
7 GITID:= $(shell git log --max-count=1 --pretty=format:%H)
8 RPMVERSION:=3.10.0
9 # marker is git tag which we base off of for exporting patches
10 MARKER:=v3.10
11 PREBUILD:=
72a8ce 12 BUILD:=693.2.2
8481d4 13 DIST:=.el7
CB 14 SPECFILE:=kernel.spec
15 RPM:=$(REDHAT)/rpm
16 SRPMS:=$(RPM)/SRPMS
17 SOURCES:=$(RPM)/SOURCES
18 TESTPATCH:=$(REDHAT)/linux-kernel-test.patch
19 FILTERDIFF:=/usr/bin/filterdiff -x '*redhat/*' -x '*/.gitignore' -x '*/makefile' -x '*/Makefile'
20
9bb890 21 # RELEASED_KERNEL: swaps between the pre-release secureboot keys and
CS 22 #            the release one, for vmlinux signing.
23 #
24 #    0 : pre-release (devel) secureboot keys are used for signing
25 #    1 : release (RC/GA) secureboot keys are used for signing
26 #
27 RELEASED_KERNEL:=1
28
29 STAMP_VERSION:=$(KVERSION)
8481d4 30
CB 31 LOCVERFILE:=../localversion
32 # create an empty localversion file if you don't want a local buildid
33 ifneq ($(wildcard $(LOCVERFILE)),)
34   BUILDID:=$(shell cat $(LOCVERFILE))
35 else
36   BUILDID:=.test
37 endif
38 $(info BUILDID is "$(BUILDID)". Update '$(shell dirname $(REDHAT))/localversion' to change.)
39
40 PKGRELEASE:=$(PREBUILD)$(BUILD)$(DIST)$(BUILDID)
41
42 TARFILE:=linux-$(KVERSION)-$(PKGRELEASE).tar.xz
43 TARBALL:=$(REDHAT)/$(TARFILE)
9bb890 44 DISTRO_BUILD:=$(shell echo $(BUILD) | sed -e 's|\(^[0-9]\{1,4\}\)\..*|\1|')
CS 45 KABI_TARFILE:=kernel-abi-whitelists-$(DISTRO_BUILD).tar.bz2
920f68 46 KABI_TARBALL:=$(REDHAT)/rpm/SOURCES/$(KABI_TARFILE)
9bb890 47
CS 48 RHELMAJOR:=$(shell git show HEAD:Makefile | grep ^RHEL_MAJOR | sed -e s/RHEL_MAJOR\ =\ //)
49 RHELMINOR:=$(shell git show HEAD:Makefile | grep ^RHEL_MINOR | sed -e s/RHEL_MINOR\ =\ //)