[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Bug#188406: kernel-package: recent sparc/sparc64 have an image target



severity 188406 normal
thanks

On Sun, Apr 13, 2003 at 12:55:43PM -0500, Manoj Srivastava wrote:
> severity 188406 wishlist
> thanks
> Hi,
> >> On Wed, 9 Apr 2003 22:10:46 -0400,
> >> Ben Collins <bcollins@debian.org> said: 
> 
>  > Recent 2.5.66 sparc and sparc64 kernel builds both have an image
>  > target, with the resulting file being arch/$(ARCH)/boot/image.
>  > Current kernel-package assumes this only for certain types of
>  > sparc/sun4u builds. Please assume it for all sparc/sun4u build
>  > combinations past 2.5.66.
> 
> 	I have always depended on the kinness of volunteers to support 
>  non-i386 architectures, since I can't test the changes. If someone
>  would provide tested patches for changes that would work for both
>  2.4.x kernels, as well 2.5.6x changes, I would happily include them
>  in kernel package.

You could have just asked me directly. I thought the change was pretty
self-explanatory. Attached is the trivial patch I am using. FYI, this is
not a wishlist, since sparc64 in 2.5.x needs to use the image file,
since the vmlinux is too large to boot with. The "image" target creates
a stripped bootable object.


--- /usr/share/kernel-package/rules~	2003-04-13 14:45:46.000000000 -0400
+++ /usr/share/kernel-package/rules	2003-04-13 14:44:42.000000000 -0400
@@ -339,18 +339,10 @@
 loader=silo
 loaderdoc=SiloDefault
 
-target = vmlinux
-kimagesrc = vmlinux
-ifneq ($(shell if [ $(VERSION) -ge 2 -a $(PATCHLEVEL) -ge 5 -a $(SUBLEVEL) -ge 41 ];\
-                   then echo new; \
-                fi),)
-target = image
-kimagesrc = arch/sparc/boot/image
-endif
-
 NEED_DIRECT_GZIP_IMAGE=YES
 kimagedest = $(INT_IMAGE_DESTDIR)/vmlinuz-$(version)
 DEBCONFIG = $(CONFDIR)/config.sparc
+
 # make-kpkg --subarch=sun4u binary-arch
 # to generate UltraSparc kernel packages.
 ifeq ($(KPKG_SUBARCH),sun4u)
@@ -364,6 +356,16 @@
 ARCH_IN_NAME=YES
 endif
 endif
+
+ifneq ($(shell if [ $(VERSION) -ge 2 -a $(PATCHLEVEL) -ge 5 -a $(SUBLEVEL) -ge 41 ];\
+		then echo new; fi),)
+	target = image
+	kimagesrc = arch/$(KERNEL_ARCH)/boot/image
+else
+	target = vmlinux
+	kimagesrc = vmlinux
+endif
+
 endif
 
 



Reply to: