Source-Changes-HG archive

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

[src/trunk]: src Use TOOL_NCDCS to turn an ibmnws kernel automatically into a...



details:   https://anonhg.NetBSD.org/src/rev/3311b1995a3e
branches:  trunk
changeset: 795874:3311b1995a3e
user:      phx <phx%NetBSD.org@localhost>
date:      Thu May 08 13:58:34 2014 +0000

description:
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.

diffstat:

 share/mk/bsd.README                      |  4 +++-
 share/mk/bsd.own.mk                      |  4 +++-
 sys/arch/ibmnws/conf/Makefile.ibmnws.inc |  6 ++++++
 3 files changed, 12 insertions(+), 2 deletions(-)

diffs (53 lines):

diff -r 7b85aac113c9 -r 3311b1995a3e share/mk/bsd.README
--- a/share/mk/bsd.README       Thu May 08 08:21:53 2014 +0000
+++ b/share/mk/bsd.README       Thu May 08 13:58:34 2014 +0000
@@ -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_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]
diff -r 7b85aac113c9 -r 3311b1995a3e share/mk/bsd.own.mk
--- a/share/mk/bsd.own.mk       Thu May 08 08:21:53 2014 +0000
+++ b/share/mk/bsd.own.mk       Thu May 08 13:58:34 2014 +0000
@@ -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_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_MSGC=             msgc
 TOOL_MTREE=            mtree
 TOOL_NBPERF=           nbperf
+TOOL_NCDCS=            ncdcs
 TOOL_PAX=              pax
 TOOL_PIC=              pic
 TOOL_PIGZ=             pigz
diff -r 7b85aac113c9 -r 3311b1995a3e sys/arch/ibmnws/conf/Makefile.ibmnws.inc
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/sys/arch/ibmnws/conf/Makefile.ibmnws.inc  Thu May 08 13:58:34 2014 +0000
@@ -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 $@



Home | Main Index | Thread Index | Old Index