At 16:04 -0700 1998-07-26, Manoj Srivastava wrote:
>______________________________________________________________________
>
># SILO can boot gzip'ed kernel; m68k has vmlinuz, just the kernel makefiles
># don't seem to realise it.
>#ifneq ($(strip $(architecture)),m68k)
>ifeq ($(strip $(filter m68k ppc powerpc,$(architecture))),)
>        cp arch/$(architecture)/boot/$(kimage) \
>                   debian/tmp-image/boot/vmlinuz-$(version)
>        chmod 644 debian/tmp-image/boot/vmlinuz-$(version)
>else
>ifneq ($(strip $(filter ppc powerpc,$(architecture))),)
>        SUB=`awk '/machine/ { print $3 }' /proc/cpuinfo`
>ifeq ($(strip $(SUB)),CHRP)
>        cp arch/$(KERNEL_ARCH)/$(SUB)boot/$(kimage) \
>                   debian/tmp-image/boot/vmlinuz-$(version)
>else
>        cp arch/$(KERNEL_ARCH)/$(SUBARCH)/boot/$(kimage) \
>                   debian/tmp-image/boot/vmlinuz-$(version)
>        chmod 644 debian/tmp-image/boot/vmlinuz-$(version)
>endif
>else
>        gzip -9vc vmlinux > debian/tmp-image/boot/vmlinuz-$(version)
>        chmod 644 debian/tmp-image/boot/vmlinuz-$(version)
>endif
>endif
>______________________________________________________________________

I see another flaw there too, $SUB would be defined as "CHRP", but there
isn't a arch/ppc/CHRPboot, it's arch/ppc/chrpboot.

Here's my version of that section (it has the added advantage of supporting
PowerMac and PReP (not sure about the latter) as well):
______________________________________________________________________

# SILO can boot gzip'ed kernel; m68k has vmlinuz, just the kernel makefiles
# don't seem to realise it.
ifeq ($(strip $(architecture)),m68k)
        gzip -9vc vmlinux > debian/tmp-image/boot/vmlinuz-$(version)
        chmod 644 debian/tmp-image/boot/vmlinuz-$(version)
else
ifeq ($(strip $(architecture)),powerpc)
PPC_SUBARCH:=$(shell awk '/machine/ { print $3 }' /proc/cpuinfo)
        ifeq ($(strip $(PPC_SUBARCH)),CHRP)
        cp arch/$(KERNEL_ARCH)/chrpboot/$(kimage) \
                debian/tmp-image/boot/vmlinuz-$(version)
        chmod 644 debian/tmp-image/boot/vmlinuz-$(version)
        else
        ifeq ($(strip $(PPC_SUBARCH)),PReP)
        cp arch/$(KERNEL_ARCH)/coffboot/$(kimage) \
                debian/tmp-image/boot/vmlinuz-$(version)
        chmod 644 debian/tmp-image/boot/vmlinuz-$(version)
        endif
        ifeq ($(strip $(PPC_SUBARCH)),PowerMac)
        # Quik can't boot compressed kernels yet, so install the
        # uncompressed image.
        # Booting from floppy or the network needs a kernel in COFF format,
        # so install it too.
        cp vmlinux debian/tmp-image/boot/vmlinux-$(version)
        cp arch/$(KERNEL_ARCH)/coffboot/$(kimage) \
                debian/tmp-image/boot/vmlinux.coff-$(version)
        chmod 644 debian/tmp-image/boot/vmlinux*-$(version)
        endif
else
        cp arch/$(KERNEL_ARCH)/boot/$(kimage) \
                debian/tmp-image/boot/vmlinuz-$(version)
        chmod 644 debian/tmp-image/boot/vmlinuz-$(version)
endif
endif
______________________________________________________________________
--
Joel "Espy" Klecker    Debian GNU/Linux Developer    <mailto:[EMAIL PROTECTED]>
<http://www.espy.org/>                          <ftp://ftp.espy.org/pub/>


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

Reply via email to