]> git.openfabrics.org - ~shefty/rdma-dev.git/blobdiff - scripts/package/builddeb
kbuild, deb-pkg: support overriding userland architecture
[~shefty/rdma-dev.git] / scripts / package / builddeb
index 5d6be3f5e7f7d5ee33a5535f73bf523d32097b39..ffe24194b76371628fdd416dbe2c6a165adf4ee6 100644 (file)
@@ -54,6 +54,9 @@ create_package() {
                echo "Please add support for $UTS_MACHINE to ${0} ..." >&2
                echo "" >&2
        esac
+       if [ -n "$KBUILD_DEBARCH" ] ; then
+               debarch="$KBUILD_DEBARCH"
+       fi
        if [ -n "$debarch" ] ; then
                forcearch="-DArchitecture=$debarch"
        fi