diff options
author | Andrew Morton <akpm@osdl.org> | 2003-12-29 23:40:31 -0800 |
---|---|---|
committer | Linus Torvalds <torvalds@home.osdl.org> | 2003-12-29 23:40:31 -0800 |
commit | 1e9c0d3b5a713687eb6c693bae8a3bee10c0fbe3 (patch) | |
tree | eb4cf7f62678ae124d5136d087997e3c53a6b049 /scripts | |
parent | f2cf31606193fcbfccdfe6c99b599eaa48b36dab (diff) | |
download | history-1e9c0d3b5a713687eb6c693bae8a3bee10c0fbe3.tar.gz |
[PATCH] fix non-ia32 `make rpm'
From: "Zhu, Yi" <yi.zhu@intel.com>
The "make rpm" rule in top Makefile isn't aware of the enviorment ARCH. For
example, people issue "make ARCH=ia64" to compile the ia64 kernel on i386
platform for cross compilation. This works pretty well now. But if one uses
"make rpm ARCH=ia64", it will fail. Because current rpm rule in Makefile and
mkspec are not aware of ARCH.
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/mkspec | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/mkspec b/scripts/mkspec index 841512debca53..e1ecb505e2748 100755 --- a/scripts/mkspec +++ b/scripts/mkspec @@ -9,7 +9,7 @@ # Patched for non-x86 by Opencon (L) 2002 <opencon@rio.skydome.net> # # That's the voodoo to see if it's a x86. -ISX86=`arch | grep -ie i.86` +ISX86=`echo ${ARCH:=\`arch\`} | grep -ie i.86` if [ ! -z $ISX86 ]; then PC=1 else |