diff mbox

kbuild, deb-pkg: support overriding userland architecture

Message ID 1289070320-20726-1-git-send-email-asbjorn@asbjorn.biz (mailing list archive)
State New, archived
Headers show

Commit Message

Asbjørn Sloth Tønnesen Nov. 6, 2010, 7:05 p.m. UTC
None
diff mbox

Patch

diff --git a/scripts/package/builddeb b/scripts/package/builddeb
index 0043ccd..4772a73 100644
--- a/scripts/package/builddeb
+++ b/scripts/package/builddeb
@@ -54,6 +54,9 @@  create_package() {
 		echo "Please add support for $UTS_MACHINE to ${0} ..." >&2
 		echo "" >&2
 	esac
+	if [ -n "$DEBARCH" ] ; then
+		debarch="$DEBARCH"
+	fi
 	if [ -n "$debarch" ] ; then
 		forcearch="-DArchitecture=$debarch"
 	fi