138e5893be
This change reduces the length of the kernel version that is set by the build process. We find that the most recent version is too long for the kernel and causes certain kernel detection processes to fail. We also remove the concept of build flavor or build profile. These concepts should be reflected in the Debian package name and version instead of separately in the kernel version.
23 lines
678 B
Makefile
23 lines
678 B
Makefile
## Kernel information
|
|
KERNEL_MAJMIN=$(shell ./scripts/version.sh -n)
|
|
KERNEL_VER=$(shell ./scripts/version.sh -L)
|
|
|
|
## Debian package information
|
|
PKG_DISTRIBUTOR ?= PVE Edge
|
|
PKG_RELEASE = $(shell ./scripts/version.sh -r)
|
|
PKG_DATE := $(shell dpkg-parsechangelog -SDate)
|
|
PKG_DATE_UTC_ISO := $(shell date -u -d '$(PKG_DATE)' +%Y-%m-%d)
|
|
PKG_GIT_VERSION := $(shell git rev-parse HEAD)
|
|
|
|
# Build settings
|
|
PVE_KERNEL_CC ?= ${CC}
|
|
PVE_ZFS_CC ?= ${CC}
|
|
|
|
### Debian package names
|
|
EXTRAVERSION=-edge
|
|
KVNAME=${KERNEL_VER}${EXTRAVERSION}
|
|
|
|
PVE_KERNEL_PKG=pve-kernel-${KVNAME}
|
|
PVE_HEADER_PKG=pve-headers-${KVNAME}
|
|
PVE_USR_HEADER_PKG=pve-kernel-libc-dev
|
|
LINUX_TOOLS_PKG=linux-tools-${KERNEL_MAJMIN}
|