Package: kernel-package
Version: 9.007
Tags: patch

Hello,

one more update for mips, some machines can run a 64bit kernel but the
firmware expects ELF32.


Thiemo


--- rules.old   2005-08-31 18:11:23.000000000 +0200
+++ rules       2005-09-18 22:08:51.000000000 +0200
@@ -698,8 +698,18 @@ endif
 
 ##### mips
 ifeq ($(strip $(architecture)),mips)
-  # SGI ELF32
+  # SGI ELF32: 64bit kernel, but firmware needs ELF32 for netboot
+  # (the on-disk loader could do both).
   ifneq (,$(filter r4k-ip22 r5k-ip22 r5k-ip32 r10k-ip32,$(strip 
$(KPKG_SUBARCH))))
+  ifneq ($(shell if [ $(VERSION)  -ge  2 ]  && [ $(PATCHLEVEL) -ge 6 ] &&    \
+                    [ $(SUBLEVEL) -ge 11 ]; then echo new;                   \
+               elif [ $(VERSION)  -ge  2 ]  && [ $(PATCHLEVEL) -ge 7 ]; then \
+                                            echo new;                        \
+               elif [ $(VERSION)  -ge  3 ]; then echo new; fi),)
+    kimage := vmlinux.32
+  else
+    kimage := vmlinux
+  endif
     loaderdep = arcboot
     loader = arcboot
     loaderdoc =


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to