Mmm, my previous patch didn't quite make it, this one should be better.
At least it allows me to build nubus kernel .debs, but didn't try it on a
nubus machine yet.

Friendly,

Sven Luther
--- rules.orig  2005-02-23 17:32:50.438721312 +0100
+++ rules       2005-02-23 17:36:47.506681504 +0100
@@ -299,9 +299,13 @@
     else
       GUESS_SUBARCH:=pmac
     endif
+    # Well NuBus powermacs are not pmac subarchs, but nubus ones.
+    ifeq (,$(shell grep NuBus /proc/cpuinfo))
+      GUESS_SUBARCH:=nubus
+    endif
   endif
 
-  ifeq (,$(findstring $(KPKG_SUBARCH),apus prpmc chrp mbx pmac prep Amiga APUs 
CHRP MBX PReP chrp-rs6k ))
+  ifeq (,$(findstring $(KPKG_SUBARCH),apus prpmc chrp mbx pmac prep Amiga APUs 
CHRP MBX PReP chrp-rs6k nubus ))
     KPKG_SUBARCH:=$(GUESS_SUBARCH)
   endif
 
@@ -421,6 +425,15 @@
     DEBCONFIG = $(CONFDIR)/config.prep
   endif
 
+  ifneq (,$(findstring $(KPKG_SUBARCH), NuBuS nubus))
+    KPKG_SUBARCH := nubus
+    target := zImage
+    loader= NoLoader
+    kimagesrc = arch/$(KERNEL_ARCH)/appleboot/Mach\ Kernel
+    kimage := vmlinux
+    kimagedest = $(INT_IMAGE_DESTDIR)/vmlinuz-$(version)
+  endif
+
 endif
 
 

Reply via email to