summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorDave Jones <davej@codemonkey.org.uk>2002-10-07 19:50:21 -0700
committerLinus Torvalds <torvalds@home.transmeta.com>2002-10-07 19:50:21 -0700
commita23a3454932fd0cf699356d880bafebf8a7ec327 (patch)
tree3009cbf5bcbcb4566f9da738705108f76a80ac3c /scripts
parentd97e32d54ffd0e2abfe1bb490e7dfd6d87126ea4 (diff)
[PATCH] arch fixes for make rpm
Not all arch's behave the same way as x86 during the build process, so this makes make rpm adjust for non-x86
Diffstat (limited to 'scripts')
-rw-r--r--scripts/mkspec26
1 files changed, 24 insertions, 2 deletions
diff --git a/scripts/mkspec b/scripts/mkspec
index f20dce629d04..57c9bc420c2c 100644
--- a/scripts/mkspec
+++ b/scripts/mkspec
@@ -6,6 +6,16 @@
# The only gothic bit here is redefining install_post to avoid
# stripping the symbols from files in the kernel which we want
#
+# 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`
+if [ ! -z $ISX86 ]; then
+ PC=1
+else
+ PC=0
+fi
+# starting to output the spec
if [ "`grep CONFIG_DRM=y .config | cut -f2 -d\=`" = "y" ]; then
PROVIDES=kernel-drm
fi
@@ -35,12 +45,24 @@ echo "%prep"
echo "%setup -q"
echo ""
echo "%build"
-echo "make oldconfig dep clean bzImage modules"
+# This is the first 'disagreement' between x86 and other archs.
+if [ $PC = 1 ]; then
+ echo "make oldconfig dep clean bzImage modules"
+else
+ echo "make oldconfig dep clean vmlinux modules"
+fi
+# Back on track
echo ""
echo "%install"
echo 'mkdir -p $RPM_BUILD_ROOT/boot $RPM_BUILD_ROOT/lib $RPM_BUILD_ROOT/lib/modules'
echo 'INSTALL_MOD_PATH=$RPM_BUILD_ROOT make modules_install'
-echo 'cp arch/i386/boot/bzImage $RPM_BUILD_ROOT'"/boot/vmlinuz-$VERSION.$PATCHLEVEL.$SUBLEVEL$EXTRAVERSION"
+# And that's the second
+if [ $PC = 1 ]; then
+ echo 'cp arch/i386/boot/bzImage $RPM_BUILD_ROOT'"/boot/vmlinuz-$VERSION.$PATCHLEVEL.$SUBLEVEL$EXTRAVERSION"
+else
+ echo 'cp vmlinux $RPM_BUILD_ROOT'"/boot/vmlinux-$VERSION.$PATCHLEVEL.$SUBLEVEL$EXTRAVERSION"
+fi
+# Back on track, again
echo 'cp System.map $RPM_BUILD_ROOT'"/boot/System.map-$VERSION.$PATCHLEVEL.$SUBLEVEL$EXTRAVERSION"
echo 'cp .config $RPM_BUILD_ROOT'"/boot/config-$VERSION.$PATCHLEVEL.$SUBLEVEL$EXTRAVERSION"
echo ""