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