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, tsutsui%ceres.dti.ne.jp@localhost
Subject: Re: port-shark/41672: Install kernel in release directory is ELF 
version
         only.
Date: Mon, 24 Aug 2009 01:47:56 +0900

 > >Synopsis:       No a.out version of INSTALL kernel in release
  :
 >      release/shark/binary/kernel contains ELF and a.out versions of
 >      GENERIC, but only an ELF version of the INSTALL kernel.
 
 It seems put in shark/installation/instkernel,
 but the following patch should handle it more properly:
 
 ---
 Index: distrib/shark/instkernel/instkernel/Makefile
 ===================================================================
 RCS file: /cvsroot/src/distrib/shark/instkernel/instkernel/Makefile,v
 retrieving revision 1.17
 diff -u -r1.17 Makefile
 --- distrib/shark/instkernel/instkernel/Makefile       3 Apr 2009 22:36:35 
-0000       1.17
 +++ distrib/shark/instkernel/instkernel/Makefile       23 Aug 2009 16:45:09 
-0000
 @@ -9,16 +9,15 @@
  MDSETTARGETS=         INSTALL ${RAMDISK} -
  MDSET_RELEASEDIR=     binary/kernel
  
 -MDSET_POST= \
 -      ${OBJCOPY} -O a.out-arm-netbsd -R .ident -R .arm.atpcs -R .comment \
 -          ${.TARGET} ${.TARGET}.aout; \
 -      gzip -9nc ${.TARGET}.aout >${.TARGET}.aout.gz
 +MDSET_SUFFIXES.-=     aout create-aout
 +create-aout= \
 +      ${OBJCOPY} -O a.out-arm-netbsd \
 +          -R .ident -R .arm.atpcs -R .comment -R .note.netbsd.ident \
 +          -R .debug_abbrev -R .debug_info -R .debug_line -R .debug_str \
 +          -R .debug_frame -R .debug_loc -R .debug_pubnames \
 +          -R .debug_aranges \
 +          ${.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>
 Index: etc/etc.shark/Makefile.inc
 ===================================================================
 RCS file: /cvsroot/src/etc/etc.shark/Makefile.inc,v
 retrieving revision 1.10
 diff -u -r1.10 Makefile.inc
 --- etc/etc.shark/Makefile.inc 18 Mar 2008 04:20:37 -0000      1.10
 +++ etc/etc.shark/Makefile.inc 23 Aug 2009 16:45:09 -0000
 @@ -10,10 +10,3 @@
  KERNEL_SUFFIXES=      aout
  
  BUILD_KERNELS=                INSTALL
 -
 -INSTALLATION_DIRS+=   installation/instkernel
 -
 -snap_md_post:
 -      cd ${NETBSDSRCDIR}/distrib/shark/instkernel/instkernel && \
 -          ${MAKE} release-aout-instkernel
 -      ${MAKESUMS} -t 
${RELEASEDIR}/${RELEASEMACHINEDIR}/installation/instkernel '*.gz'
 ---
 Izumi Tsutsui
 


Home | Main Index | Thread Index | Old Index