Module Name:    src
Committed By:   tsutsui
Date:           Mon Oct  4 16:03:31 UTC 2010

Modified Files:
        src/etc/etc.dreamcast: Makefile.inc
        src/sys/arch/dreamcast/conf: Makefile.dreamcast.inc

Log Message:
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).


To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 src/etc/etc.dreamcast/Makefile.inc
cvs rdiff -u -r1.10 -r1.11 src/sys/arch/dreamcast/conf/Makefile.dreamcast.inc

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/etc/etc.dreamcast/Makefile.inc
diff -u src/etc/etc.dreamcast/Makefile.inc:1.3 src/etc/etc.dreamcast/Makefile.inc:1.4
--- src/etc/etc.dreamcast/Makefile.inc:1.3	Tue Jul 24 10:49:24 2007
+++ src/etc/etc.dreamcast/Makefile.inc	Mon Oct  4 16:03:30 2010
@@ -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

Index: src/sys/arch/dreamcast/conf/Makefile.dreamcast.inc
diff -u src/sys/arch/dreamcast/conf/Makefile.dreamcast.inc:1.10 src/sys/arch/dreamcast/conf/Makefile.dreamcast.inc:1.11
--- src/sys/arch/dreamcast/conf/Makefile.dreamcast.inc:1.10	Tue Jul  6 05:59:59 2010
+++ src/sys/arch/dreamcast/conf/Makefile.dreamcast.inc	Mon Oct  4 16:03:30 2010
@@ -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

Reply via email to