Skip to content

Commit b740bab

Browse files
committed
feat: Proper naming of linux kernel debs
Set source package name and kernel localversion for upstream builds. Signed-off-by: Loïc Minier <[email protected]>
1 parent 7e2cce7 commit b740bab

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

scripts/build-linux-deb.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ GIT_REPO="https://github.com/torvalds/linux"
99
GIT_BRANCH="master"
1010
# base config to use
1111
CONFIG="defconfig"
12+
# flavor name
13+
FLAVOR="upstream"
1214

1315
log_i() {
1416
echo "I: $*" >&2
@@ -81,8 +83,10 @@ configure_kernel() {
8183
}
8284

8385
build_kernel() {
86+
echo "-${FLAVOR}" >localversion
8487
make "-j$(nproc)" \
8588
ARCH=arm64 DEB_HOST_ARCH=arm64 CROSS_COMPILE=aarch64-linux-gnu- \
89+
KDEB_SOURCENAME="linux-${FLAVOR}" \
8690
deb-pkg
8791
}
8892

0 commit comments

Comments
 (0)