2 # SPDX-License-Identifier: GPL-2.0-only
4 # Set up CROSS_COMPILE if not defined yet
5 if [ "${CROSS_COMPILE+set}" != "set" -a "${DEB_HOST_ARCH}" != "${DEB_BUILD_ARCH}" ]; then
6 echo CROSS_COMPILE=${DEB_HOST_GNU_TYPE}-
9 version=$(dpkg-parsechangelog -S Version)
10 debian_revision="${version##*-}"
12 if [ "${version}" != "${debian_revision}" ]; then
13 echo KBUILD_BUILD_VERSION=${debian_revision}