| RPMBUILD := $(shell if [ -x "/usr/bin/rpmbuild" ]; then echo rpmbuild; \ |
| else echo rpm; fi) |
| REDHAT:=$(shell pwd) |
| TOPDIR:=$(shell dirname $(REDHAT)) |
| MACH := $(shell uname -m) |
| KVERSION:=3.10.0 |
| GITID:= $(shell git log --max-count=1 --pretty=format:%H) |
| RPMVERSION:=3.10.0 |
| |
| MARKER:=v3.10 |
| PREBUILD:= |
| BUILD:=229.20.1 |
| DIST:=.el7 |
| SPECFILE:=kernel.spec |
| RPM:=$(REDHAT)/rpm |
| SRPMS:=$(RPM)/SRPMS |
| SOURCES:=$(RPM)/SOURCES |
| TESTPATCH:=$(REDHAT)/linux-kernel-test.patch |
| FILTERDIFF:=/usr/bin/filterdiff -x '*redhat/*' -x '*/.gitignore' -x '*/makefile' -x '*/Makefile' |
| |
| RELEASED_KERNEL := 1 |
| STAMP_VERSION := $(KVERSION) |
| |
| LOCVERFILE:=../localversion |
| |
| ifneq ($(wildcard $(LOCVERFILE)),) |
| BUILDID:=$(shell cat $(LOCVERFILE)) |
| else |
| BUILDID:=.test |
| endif |
| $(info BUILDID is "$(BUILDID)". Update '$(shell dirname $(REDHAT))/localversion' to change.) |
| |
| PKGRELEASE:=$(PREBUILD)$(BUILD)$(DIST)$(BUILDID) |
| SPECRELEASE:=$(PREBUILD)$(BUILD)%{?dist}$(BUILDID) |
| |
| TARFILE:=linux-$(KVERSION)-$(PKGRELEASE).tar.xz |
| TARBALL:=$(REDHAT)/$(TARFILE) |
| KABI_TARFILE:=kernel-abi-whitelists.tar.bz2 |
| KABI_TARBALL:=$(REDHAT)/rpm/SOURCES/$(KABI_TARFILE) |