Module Name: src Committed By: phx Date: Thu May 8 13:58:34 UTC 2014
Modified Files: src/share/mk: bsd.README bsd.own.mk Added Files: src/sys/arch/ibmnws/conf: Makefile.ibmnws.inc Log Message: Use TOOL_NCDCS to turn an ibmnws kernel automatically into a valid NCD firmware image for netbooting. This is still a valid ELF kernel, but with a patched CRC checksum and image size included. To generate a diff of this commit: cvs rdiff -u -r1.331 -r1.332 src/share/mk/bsd.README cvs rdiff -u -r1.802 -r1.803 src/share/mk/bsd.own.mk cvs rdiff -u -r0 -r1.1 src/sys/arch/ibmnws/conf/Makefile.ibmnws.inc Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/share/mk/bsd.README diff -u src/share/mk/bsd.README:1.331 src/share/mk/bsd.README:1.332 --- src/share/mk/bsd.README:1.331 Mon May 5 19:06:29 2014 +++ src/share/mk/bsd.README Thu May 8 13:58:34 2014 @@ -1,4 +1,4 @@ -# $NetBSD: bsd.README,v 1.331 2014/05/05 19:06:29 martin Exp $ +# $NetBSD: bsd.README,v 1.332 2014/05/08 13:58:34 phx Exp $ # @(#)bsd.README 8.2 (Berkeley) 4/2/94 This is the README file for the make "include" files for the NetBSD @@ -844,6 +844,8 @@ TOOL_MSGC Simple message list compiler. TOOL_MTREE Map a directory hierarchy. [mtree] +TOOL_NCDCS Turn ELF kernel into a NCD firmware image. [ncdcs] + TOOL_PAX Manipulate file archives and copy directories. [pax] TOOL_PIC Compile pictures for groff. [pic] Index: src/share/mk/bsd.own.mk diff -u src/share/mk/bsd.own.mk:1.802 src/share/mk/bsd.own.mk:1.803 --- src/share/mk/bsd.own.mk:1.802 Sat Apr 26 20:25:07 2014 +++ src/share/mk/bsd.own.mk Thu May 8 13:58:34 2014 @@ -1,4 +1,4 @@ -# $NetBSD: bsd.own.mk,v 1.802 2014/04/26 20:25:07 wiz Exp $ +# $NetBSD: bsd.own.mk,v 1.803 2014/05/08 13:58:34 phx Exp $ # This needs to be before bsd.init.mk .if defined(BSD_MK_COMPAT_FILE) @@ -361,6 +361,7 @@ TOOL_ELFTOSB= ${TOOLDIR}/bin/${_TOOL_PR TOOL_MSGC= MSGDEF=${TOOLDIR}/share/misc ${TOOLDIR}/bin/${_TOOL_PREFIX}msgc TOOL_MTREE= ${TOOLDIR}/bin/${_TOOL_PREFIX}mtree TOOL_NBPERF= ${TOOLDIR}/bin/${_TOOL_PREFIX}perf +TOOL_NCDCS= ${TOOLDIR}/bin/${_TOOL_PREFIX}ibmnws-ncdcs TOOL_PAX= ${TOOLDIR}/bin/${_TOOL_PREFIX}pax TOOL_PIC= ${TOOLDIR}/bin/${_TOOL_PREFIX}pic TOOL_PIGZ= ${TOOLDIR}/bin/${_TOOL_PREFIX}pigz @@ -462,6 +463,7 @@ TOOL_ELFTOSB= elftosb TOOL_MSGC= msgc TOOL_MTREE= mtree TOOL_NBPERF= nbperf +TOOL_NCDCS= ncdcs TOOL_PAX= pax TOOL_PIC= pic TOOL_PIGZ= pigz Added files: Index: src/sys/arch/ibmnws/conf/Makefile.ibmnws.inc diff -u /dev/null src/sys/arch/ibmnws/conf/Makefile.ibmnws.inc:1.1 --- /dev/null Thu May 8 13:58:34 2014 +++ src/sys/arch/ibmnws/conf/Makefile.ibmnws.inc Thu May 8 13:58:34 2014 @@ -0,0 +1,6 @@ +# $NetBSD: Makefile.ibmnws.inc,v 1.1 2014/05/08 13:58:34 phx Exp $ + +SYSTEM_LD_TAIL_EXTRA=; \ + echo "Convert kernel $@ into NCD firmware image."; \ + ${TOOL_NCDCS} $@ $@.ncd; \ + mv $@.ncd $@