NetBSD-Bugs archive

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

Re: port-shark/41672: Install kernel in release directory is ELF version only.



The following reply was made to PR port-shark/41672; it has been noted by GNATS.

From: Izumi Tsutsui <tsutsui%ceres.dti.ne.jp@localhost>
To: gnats-bugs%NetBSD.org@localhost
Cc: port-shark-maintainer%NetBSD.org@localhost, 
gnats-admin%NetBSD.org@localhost,
        netbsd-bugs%NetBSD.org@localhost, is%beverly.kleinbus.org@localhost,
        tsutsui%ceres.dti.ne.jp@localhost
Subject: Re: port-shark/41672: Install kernel in release directory is ELF 
version
         only.
Date: Tue, 7 Jul 2009 01:52:06 +0900

 is%NetBSD.org@localhost wrote:
 
 >  > >Synopsis:       No a.out version of INSTALL kernel in release
 
 >  Fix suggestion:
 >  
 >  release-aout-instkernel:
 >          ${RELEASE_INSTALL} netbsd-INSTALL.aout.gz \
 >              ${RELEASEDIR}/${RELEASEMACHINEDIR}/binary/kernel/
 >  
 >  
 >  instead of 
 >          ${RELEASEDIR}/${RELEASEMACHINEDIR}/instkernel/netbsd.gz
 >  
 >  maybe even
 >              
 > ${RELEASEDIR}/${RELEASEMACHINEDIR}/binary/kernel/netbsd-INSTALL.gz
 >  
 >  which should be enough for installing.
 
 How about this instead? (taken from pmax or sgimips, but untested)
 
 ---
 Index: Makefile
 ===================================================================
 RCS file: /cvsroot/src/distrib/shark/instkernel/instkernel/Makefile,v
 retrieving revision 1.17
 diff -u -r1.17 Makefile
 --- Makefile   3 Apr 2009 22:36:35 -0000       1.17
 +++ Makefile   6 Jul 2009 16:49:00 -0000
 @@ -9,16 +9,11 @@
  MDSETTARGETS=         INSTALL ${RAMDISK} -
  MDSET_RELEASEDIR=     binary/kernel
  
 -MDSET_POST= \
 +MDSET_SUFFIXES.-=     aout create-aout
 +create-aout= \
        ${OBJCOPY} -O a.out-arm-netbsd -R .ident -R .arm.atpcs -R .comment \
 -          ${.TARGET} ${.TARGET}.aout; \
 -      gzip -9nc ${.TARGET}.aout >${.TARGET}.aout.gz
 +          ${.TARGET:R} ${.TARGET}
  
  .include "${DISTRIBDIR}/common/Makefile.mdset"
  
 -.PHONY: release-aout-instkernel
 -release-aout-instkernel:
 -      ${RELEASE_INSTALL} netbsd-INSTALL.aout.gz \
 -          ${RELEASEDIR}/${RELEASEMACHINEDIR}/installation/instkernel/netbsd.gz
 -
  .include <bsd.prog.mk>
 ---
 Izumi Tsutsui
 


Home | Main Index | Thread Index | Old Index