kernel-package rules file patch for UltraSparc
Ok, here is a simple patch to the kernel-package rules file to add
UltraSparc support:
--- /usr/lib/kernel-package/rules.bak Tue Mar 30 12:50:20 1999
+++ /usr/lib/kernel-package/rules Tue Mar 30 12:55:24 1999
@@ -194,6 +194,9 @@
kimagesrc = vmlinux
kimagedest = $(INT_IMAGE_DESTDIR)/vmlinuz-$(version)
DEBCONFIG = $(CONFDIR)/config.sparc
+ifeq ($(SUBARCH),sun4u)
+KERNEL_ARCH=sparc64
+endif
endif
After applying the patch, you can do:
fakeroot /usr/sbin/make-kpkg --subarch=sun4u --arch_in_name binary-arch
to generate UltraSparc kernel packages. (This will work on any sparc,
but you need the "egcs64" package installed.)
Eventually, we should add a check in the "preinst" script to keep
people from installing the "sun4u" packages on 32-bit machines and
vice-versa.
Steve
dunham@cse.msu.edu
Reply to: