* When building the kernel module, use the setting of the ARCH
environment or make variable, if present, in preference to uname -m to
allow cross-compiles. Thanks, Jose Calhariz. (Closes: #492232)
and builds without UCONTEXT fail. The binaries we were building
before didn't work and no one reported a bug, indicating no one was
attempting to use OpenAFS on hppa.
+ * When building the kernel module, use the setting of the ARCH
+ environment or make variable, if present, in preference to uname -m to
+ allow cross-compiles. Thanks, Jose Calhariz. (Closes: #492232)
* Add Jason Edgecomb's copyright and license for man pages to
debian/copyright.
export KVERS
export KPKG_DEST_DIR
-SYS_NAME := $(shell KSRC="$(KSRC)" KVERS="$(KVERS)" sh debian/sysname)
+SYS_NAME := $(shell KSRC="$(KSRC)" KVERS="$(KVERS)" ARCH="$(ARCH)" \
+ sh debian/sysname)
package = openafs
modulepkg := openafs-modules-$(KVERS)${INT_SUBARCH}
exit 1
fi
-case `uname -m` in
+case ${ARCH:-`uname -m`} in
alpha)
case $KVERS in
2.2*)