@@ -60,6 +60,14 @@ But some architectures such as x86 and sparc have aliases.
x86: i386 for 32 bit, x86_64 for 64 bit
sparc: sparc for 32 bit, sparc64 for 64 bit
+DEBARCH
+--------------------------------------------------
+For the deb-pkg target, allows overriding the normal heuristics deployed by
+deb-deb. Normally deb-pkg attempts to guess the right architecture based on
+the UTS_MACHINE variable, and on some architectures also the kernel config.
+The value of DEBARCH is assumed (not checked) to be a valid Debian
+architecture.
+
CROSS_COMPILE
--------------------------------------------------
Specify an optional fixed part of the binutils filename.
@@ -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