-
-
Notifications
You must be signed in to change notification settings - Fork 50
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move common definitions in separate file
- Loading branch information
1 parent
65aa877
commit 7d07970
Showing
4 changed files
with
68 additions
and
44 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
## Kernel information | ||
KERNEL_MAJMIN=$(shell ./scripts/version.sh -n) | ||
KERNEL_VER=$(shell ./scripts/version.sh -L) | ||
|
||
# Increment KERNEL_RELEASE if the ABI changes (abicheck target in debian/rules) | ||
KERNEL_RELEASE=1 | ||
|
||
## 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_BUILD_CC ?= ${CC} | ||
|
||
### Debian package names | ||
EXTRAVERSION=-${KERNEL_RELEASE}-${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} |