Mon Nov 30 05:50:07 2009 UTC ()
Start implementing the new style libgcc "mknative" converter which generates
BSD makefiles to build libgcc.  The goal is to build all functions rather
than managing the set of functions in gnu/lib/libgcc/Makefile.in by hand.

Because of the complexity of the build procedure, I leave not only generated
makefiles but also intermediate, analyzed data so that people can verify that
the conversion is done correctly.


(uebayasi)
diff -r1.25 -r1.26 src/tools/gcc/mknative-gcc

cvs diff -r1.25 -r1.26 src/tools/gcc/mknative-gcc (expand / switch to context diff)
--- src/tools/gcc/mknative-gcc 2008/10/11 05:03:44 1.25
+++ src/tools/gcc/mknative-gcc 2009/11/30 05:50:07 1.26
@@ -1,5 +1,5 @@
 #!/bin/sh
-#	$NetBSD: mknative-gcc,v 1.25 2008/10/11 05:03:44 mrg Exp $
+#	$NetBSD: mknative-gcc,v 1.26 2009/11/30 05:50:07 uebayasi Exp $
 #
 # Shell script for generating all the constants needed for a native
 # platform build of src/gnu/dist/gcc.
@@ -49,6 +49,9 @@
 
 ##### gnu/lib/libgcc #####
 
+get_libgcc_new () {
+}
+
 get_libgcc () {
 	_subdir="$1"
 	mkdir -p $_TOP/gnu/lib/lib$_subdir/arch
@@ -78,6 +81,11 @@
 			EXTRA_HEADERS xm_defines \
 			tm_defines ${_extravars}
 	} | write_mk gnu/lib/lib$_subdir/arch${_archsubdir}/$MACHINE_ARCH.mk
+
+	# Generate new style files.
+	if [ -n "${MKNATIVE_LIBGCC_NEW} ]
+		get_libgcc_new
+	fi
 }
 
 ##### gnu/lib/libgcov #####