Skip to content

Commit

Permalink
Revert "kbuild: deb-pkg: improve the usability of source package"
Browse files Browse the repository at this point in the history
This reverts commit 3ab18a6.

The commit breaks debian package creation when KDEB_PKGVERSION is
used.

Signed-off-by: Peter Ujfalusi <peter.ujfalusi@linux.intel.com>
  • Loading branch information
ujfalusi committed Mar 9, 2023
1 parent 863ad81 commit 0185e22
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 20 deletions.
16 changes: 0 additions & 16 deletions scripts/package/deb-build-option

This file was deleted.

9 changes: 5 additions & 4 deletions scripts/package/mkdebian
Original file line number Diff line number Diff line change
Expand Up @@ -90,8 +90,10 @@ rm -rf debian
version=$KERNELRELEASE
if [ -n "$KDEB_PKGVERSION" ]; then
packageversion=$KDEB_PKGVERSION
revision=${packageversion##*-}
else
packageversion=$version-$($srctree/init/build-version)
revision=$($srctree/init/build-version)
packageversion=$version-$revision
fi
sourcename=${KDEB_SOURCENAME:-linux-upstream}

Expand Down Expand Up @@ -242,9 +244,8 @@ srctree ?= .
build-indep:
build-arch:
\$(MAKE) -f \$(srctree)/Makefile ARCH=${ARCH} \
\$(shell \$(srctree)/scripts/package/deb-build-option) \
olddefconfig all
\$(MAKE) KERNELRELEASE=${version} ARCH=${ARCH} \
KBUILD_BUILD_VERSION=${revision} -f \$(srctree)/Makefile
build: build-arch
Expand Down

0 comments on commit 0185e22

Please sign in to comment.