tleleu / rpms / kernel

Forked from rpms/kernel 3 years ago
Clone
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:=
0d72d7
BUILD:=123.4.4
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
8481d4
RELEASED_KERNEL := 1
8481d4
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)
8481d4
8481d4
TARFILE:=linux-$(KVERSION)-$(PKGRELEASE).tar.xz
8481d4
TARBALL:=$(REDHAT)/$(TARFILE)