1#!/bin/sh 2# SPDX-License-Identifier: GPL-2.0-only 3 4# Set up CROSS_COMPILE if we are cross-compiling, but not called from the 5# kernel toplevel Makefile 6if [ -z "${CROSS_COMPILE}${cross_compiling}" -a "${DEB_HOST_ARCH}" != "${DEB_BUILD_ARCH}" ]; then 7 echo CROSS_COMPILE=${DEB_HOST_GNU_TYPE}- 8fi 9 10version=$(dpkg-parsechangelog -S Version) 11version_upstream="${version%-*}" 12debian_revision="${version#${version_upstream}}" 13debian_revision="${debian_revision#*-}" 14 15echo KERNELRELEASE=${version_upstream} 16echo KBUILD_BUILD_VERSION=${debian_revision} 17