162306a36Sopenharmony_ci#!/bin/sh 262306a36Sopenharmony_ci# SPDX-License-Identifier: GPL-2.0-only 362306a36Sopenharmony_ci 462306a36Sopenharmony_ci# Set up CROSS_COMPILE if not defined yet 562306a36Sopenharmony_ciif [ "${CROSS_COMPILE+set}" != "set" -a "${DEB_HOST_ARCH}" != "${DEB_BUILD_ARCH}" ]; then 662306a36Sopenharmony_ci echo CROSS_COMPILE=${DEB_HOST_GNU_TYPE}- 762306a36Sopenharmony_cifi 862306a36Sopenharmony_ci 962306a36Sopenharmony_civersion=$(dpkg-parsechangelog -S Version) 1062306a36Sopenharmony_cidebian_revision="${version##*-}" 1162306a36Sopenharmony_ci 1262306a36Sopenharmony_ciif [ "${version}" != "${debian_revision}" ]; then 1362306a36Sopenharmony_ci echo KBUILD_BUILD_VERSION=${debian_revision} 1462306a36Sopenharmony_cifi 15