|
|
8481d4 |
RPMBUILD := $(shell if [ -x "/usr/bin/rpmbuild" ]; then echo rpmbuild; \
|
|
|
8481d4 |
else echo rpm; fi)
|
|
|
8481d4 |
REDHAT:=$(shell pwd)
|
|
|
8481d4 |
TOPDIR:=$(shell dirname $(REDHAT))
|
|
|
8481d4 |
MACH := $(shell uname -m)
|
|
|
8481d4 |
KVERSION:=3.10.0
|
|
|
8481d4 |
GITID:= $(shell git log --max-count=1 --pretty=format:%H)
|
|
|
8481d4 |
RPMVERSION:=3.10.0
|
|
|
8481d4 |
# marker is git tag which we base off of for exporting patches
|
|
|
8481d4 |
MARKER:=v3.10
|
|
|
8481d4 |
PREBUILD:=
|
|
|
87f26c |
BUILD:=1160.41.1
|
|
|
8481d4 |
DIST:=.el7
|
|
|
8481d4 |
SPECFILE:=kernel.spec
|
|
|
8481d4 |
RPM:=$(REDHAT)/rpm
|
|
|
8481d4 |
SRPMS:=$(RPM)/SRPMS
|
|
|
8481d4 |
SOURCES:=$(RPM)/SOURCES
|
|
|
8481d4 |
TESTPATCH:=$(REDHAT)/linux-kernel-test.patch
|
|
|
8481d4 |
FILTERDIFF:=/usr/bin/filterdiff -x '*redhat/*' -x '*/.gitignore' -x '*/makefile' -x '*/Makefile'
|
|
|
8481d4 |
|
|
|
9bb890 |
# RELEASED_KERNEL: swaps between the pre-release secureboot keys and
|
|
|
9bb890 |
# the release one, for vmlinux signing.
|
|
|
9bb890 |
#
|
|
|
9bb890 |
# 0 : pre-release (devel) secureboot keys are used for signing
|
|
|
9bb890 |
# 1 : release (RC/GA) secureboot keys are used for signing
|
|
|
9bb890 |
#
|
|
|
9bb890 |
RELEASED_KERNEL:=1
|
|
|
9bb890 |
|
|
|
9bb890 |
STAMP_VERSION:=$(KVERSION)
|
|
|
8481d4 |
|
|
|
8481d4 |
LOCVERFILE:=../localversion
|
|
|
8481d4 |
# create an empty localversion file if you don't want a local buildid
|
|
|
8481d4 |
ifneq ($(wildcard $(LOCVERFILE)),)
|
|
|
8481d4 |
BUILDID:=$(shell cat $(LOCVERFILE))
|
|
|
8481d4 |
else
|
|
|
8481d4 |
BUILDID:=.test
|
|
|
8481d4 |
endif
|
|
|
8481d4 |
$(info BUILDID is "$(BUILDID)". Update '$(shell dirname $(REDHAT))/localversion' to change.)
|
|
|
8481d4 |
|
|
|
8481d4 |
PKGRELEASE:=$(PREBUILD)$(BUILD)$(DIST)$(BUILDID)
|
|
|
161ff5 |
SPECRELEASE:=$(PREBUILD)$(BUILD)%{?dist}$(BUILDID)
|
|
|
8481d4 |
|
|
|
8481d4 |
TARFILE:=linux-$(KVERSION)-$(PKGRELEASE).tar.xz
|
|
|
8481d4 |
TARBALL:=$(REDHAT)/$(TARFILE)
|
|
|
9bb890 |
DISTRO_BUILD:=$(shell echo $(BUILD) | sed -e 's|\(^[0-9]\{1,4\}\)\..*|\1|')
|
|
|
9bb890 |
KABI_TARFILE:=kernel-abi-whitelists-$(DISTRO_BUILD).tar.bz2
|
|
|
920f68 |
KABI_TARBALL:=$(REDHAT)/rpm/SOURCES/$(KABI_TARFILE)
|
|
|
161ff5 |
KABIDW_TARFILE:=kernel-kabi-dw-$(DISTRO_BUILD).tar.bz2
|
|
|
161ff5 |
KABIDW_TARBALL:=$(REDHAT)/rpm/SOURCES/$(KABIDW_TARFILE)
|
|
|
9bb890 |
|
|
|
9bb890 |
RHELMAJOR:=$(shell git show HEAD:Makefile | grep ^RHEL_MAJOR | sed -e s/RHEL_MAJOR\ =\ //)
|
|
|
9bb890 |
RHELMINOR:=$(shell git show HEAD:Makefile | grep ^RHEL_MINOR | sed -e s/RHEL_MINOR\ =\ //)
|