Module Name: src
Committed By: uebayasi
Date: Mon Nov 30 05:50:07 UTC 2009
Modified Files:
src/tools/gcc: mknative-gcc
Log Message:
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.
To generate a diff of this commit:
cvs rdiff -u -r1.25 -r1.26 src/tools/gcc/mknative-gcc
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/tools/gcc/mknative-gcc
diff -u src/tools/gcc/mknative-gcc:1.25 src/tools/gcc/mknative-gcc:1.26
--- src/tools/gcc/mknative-gcc:1.25 Sat Oct 11 05:03:44 2008
+++ src/tools/gcc/mknative-gcc Mon Nov 30 05:50:07 2009
@@ -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 #####