13ab18a62SMasahiro Yamada#!/bin/sh 23ab18a62SMasahiro Yamada# SPDX-License-Identifier: GPL-2.0-only 33ab18a62SMasahiro Yamada 4*f50aa51cSMasahiro Yamada# Set up CROSS_COMPILE if not defined yet 5*f50aa51cSMasahiro Yamadaif [ "${CROSS_COMPILE+set}" != "set" -a "${DEB_HOST_ARCH}" != "${DEB_BUILD_ARCH}" ]; then 63ab18a62SMasahiro Yamada echo CROSS_COMPILE=${DEB_HOST_GNU_TYPE}- 73ab18a62SMasahiro Yamadafi 83ab18a62SMasahiro Yamada 93ab18a62SMasahiro Yamadaversion=$(dpkg-parsechangelog -S Version) 107a531c21SMasahiro Yamadadebian_revision="${version##*-}" 113ab18a62SMasahiro Yamada 127a531c21SMasahiro Yamadaif [ "${version}" != "${debian_revision}" ]; then 133ab18a62SMasahiro Yamada echo KBUILD_BUILD_VERSION=${debian_revision} 147a531c21SMasahiro Yamadafi 15