efb8844e8c
This change removes the kernel release from the full kernel version. This is used by Proxmox to identify differences in the kernel ABI. However, since this project does not track these changes, we remove the kernel release number altogether.
35 lines
955 B
Makefile
35 lines
955 B
Makefile
## Kernel information
|
|
KERNEL_MAJMIN=$(shell ./scripts/version.sh -n)
|
|
KERNEL_VER=$(shell ./scripts/version.sh -L)
|
|
|
|
## Debian package information
|
|
PKG_RELEASE=$(shell ./scripts/version.sh -r)
|
|
PKG_DATE:=$(shell dpkg-parsechangelog -SDate)
|
|
PKG_GIT_VERSION:=$(shell git rev-parse HEAD)
|
|
|
|
## Build flavor
|
|
# Default to PVE flavor
|
|
PKG_BUILD_FLAVOR ?= edge
|
|
ifneq (${PKG_BUILD_FLAVOR},edge)
|
|
_ := $(info Using custom build flavor: ${PKG_BUILD_FLAVOR})
|
|
endif
|
|
|
|
## Build profile
|
|
# Default to generic march optimizations
|
|
PKG_BUILD_PROFILE ?= generic
|
|
ifneq (${PKG_BUILD_PROFILE},generic)
|
|
_ := $(info Using custom build profile: ${PKG_BUILD_PROFILE})
|
|
endif
|
|
|
|
# Build settings
|
|
PVE_KERNEL_CC ?= ${CC}
|
|
PVE_ZFS_CC ?= ${CC}
|
|
|
|
### Debian package names
|
|
EXTRAVERSION=-${PKG_BUILD_FLAVOR}
|
|
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}
|