Skip to content

Commit

Permalink
Fix version of orig tarball
Browse files Browse the repository at this point in the history
  • Loading branch information
legoktm committed Mar 27, 2024
1 parent 925c7af commit 02253ba
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions build-kernel.sh
Original file line number Diff line number Diff line change
Expand Up @@ -79,19 +79,20 @@ if [[ -e /patches-grsec && -n "$GRSECURITY" && "$GRSECURITY" = "1" ]]; then
find /patches-grsec -maxdepth 1 -type f -exec patch -p 1 -i {} \;
fi

# Generate the orig tarball
#tar --use-compress-program="xz -T 0" -cf ../linux-upstream_${LINUX_VERSION}-grsec-${LOCALVERSION}.orig.tar.xz .
tar -cf - . | pigz > ../linux-upstream_${LINUX_VERSION}-grsec-${LOCALVERSION}.orig.tar.gz

echo "Copying in our debian/"
cp -R /debian debian

export LINUX_BUILD_VERSION="${LINUX_VERSION}-${BUILD_VERSION}"
if [[ -n "$GRSECURITY" && "$GRSECURITY" = "1" ]]; then
export VERSION_SUFFIX="grsec-${LOCALVERSION}"
else
export VERSION_SUFFIX="${LOCALVERSION}"
fi

# Generate the orig tarball
#tar --use-compress-program="xz -T 0" -cf ../linux-upstream_${LINUX_VERSION}-grsec-${LOCALVERSION}.orig.tar.xz .
tar -cf - . | pigz > ../linux-upstream_${LINUX_BUILD_VERSION}-${VERSION_SUFFIX}}.orig.tar.gz

echo "Copying in our debian/"
cp -R /debian debian

export DEBARCH="amd64"

cat debian/control.in | envsubst > debian/control
Expand Down

0 comments on commit 02253ba

Please sign in to comment.