Source-Changes-HG archive

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

[src/trunk]: src Build a raw binary format GENERIC kernel and put it into dis...



details:   https://anonhg.NetBSD.org/src/rev/15ff2351c120
branches:  trunk
changeset: 757930:15ff2351c120
user:      tsutsui <tsutsui%NetBSD.org@localhost>
date:      Mon Oct 04 16:03:30 2010 +0000

description:
Build a raw binary format GENERIC kernel and put it into distribution dir.
This would make it possible to create a bootable CD using root on gdrom
without toolchain (i.e. without whole src tree).

diffstat:

 etc/etc.dreamcast/Makefile.inc                 |  3 ++-
 sys/arch/dreamcast/conf/Makefile.dreamcast.inc |  7 ++++++-
 2 files changed, 8 insertions(+), 2 deletions(-)

diffs (32 lines):

diff -r 0d0604739bb4 -r 15ff2351c120 etc/etc.dreamcast/Makefile.inc
--- a/etc/etc.dreamcast/Makefile.inc    Mon Oct 04 15:57:27 2010 +0000
+++ b/etc/etc.dreamcast/Makefile.inc    Mon Oct 04 16:03:30 2010 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: Makefile.inc,v 1.3 2007/07/24 10:49:24 pavel Exp $
+#      $NetBSD: Makefile.inc,v 1.4 2010/10/04 16:03:30 tsutsui Exp $
 #
 #      etc.dreamcast/Makefile.inc -- dreamcast-specific etc Makefile targets
 #
@@ -7,5 +7,6 @@
 # to update the release documentation in distrib/notes/common/contents
 
 KERNEL_SETS=           GENERIC
+KERNEL_SUFFIXES=       bin
 
 BUILD_KERNELS=         GENERIC_MD
diff -r 0d0604739bb4 -r 15ff2351c120 sys/arch/dreamcast/conf/Makefile.dreamcast.inc
--- a/sys/arch/dreamcast/conf/Makefile.dreamcast.inc    Mon Oct 04 15:57:27 2010 +0000
+++ b/sys/arch/dreamcast/conf/Makefile.dreamcast.inc    Mon Oct 04 16:03:30 2010 +0000
@@ -1,6 +1,11 @@
-#      $NetBSD: Makefile.dreamcast.inc,v 1.10 2010/07/06 05:59:59 mrg Exp $
+#      $NetBSD: Makefile.dreamcast.inc,v 1.11 2010/10/04 16:03:30 tsutsui Exp $
 
 MACHINE_ARCH=sh3el
 
 TEXTADDR?=8c010000
 LINKFORMAT=    -N
+
+SYSTEM_LD_TAIL_EXTRA+=;                                                        \
+       echo ${OBJCOPY} -O binary $@ $@.bin;                            \
+       ${OBJCOPY} -O binary $@ $@.bin;                                 \
+       chmod 755 $@.bin



Home | Main Index | Thread Index | Old Index