<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>change log for rtems-testing (2011-01-04)</title>
</head>
<body text='#000000' bgcolor='#ffffff'>
<a name='cs1'></a>
<table border='0' cellspacing='0' cellpadding='5' width='100%' bgcolor='#eeeeee'>
<tr><td colspan='3' bgcolor='#dddddd'>
 <font color='#bb2222'><strong>joel</strong></font>
</td></tr>
<tr><td colspan='3' bgcolor='#dddddd'><pre>2011-01-04 Joel Sherrill <joel.sherrill@oarcorp.com>

        * cvscommit, mkChangeLogList: Avoid processing autom4te.cache
        directories and directories not added to CVS yet.
</pre></td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems-testing/cvs-helpers/ChangeLog.diff?r1=text&tr1=1.13&r2=text&tr2=1.14&diff_format=h">M</a></td><td width='1%'>1.14</td><td width='100%'>cvs-helpers/ChangeLog</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems-testing/cvs-helpers/cvscommit.diff?r1=text&tr1=1.3&r2=text&tr2=1.4&diff_format=h">M</a></td><td width='1%'>1.4</td><td width='100%'>cvs-helpers/cvscommit</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems-testing/cvs-helpers/mkChangeLogList.diff?r1=text&tr1=1.5&r2=text&tr2=1.6&diff_format=h">M</a></td><td width='1%'>1.6</td><td width='100%'>cvs-helpers/mkChangeLogList</td></tr>
</table>
<pre>
<font color='#006600'>diff -u rtems-testing/cvs-helpers/ChangeLog:1.13 rtems-testing/cvs-helpers/ChangeLog:1.14
--- rtems-testing/cvs-helpers/ChangeLog:1.13    Mon Aug  2 08:14:03 2010
+++ rtems-testing/cvs-helpers/ChangeLog Tue Jan  4 13:53:53 2011
</font><font color='#997700'>@@ -1,3 +1,8 @@
</font><font color='#000088'>+2011-01-04    Joel Sherrill <joel.sherrill@oarcorp.com>
+
+       * cvscommit, mkChangeLogList: Avoid processing autom4te.cache
+       directories and directories not added to CVS yet.
+
</font> 2010-08-02        Joel Sherrill <joel.sherrill@oarcorp.com>
 
        * mktest: Add .doc files with -kkv option so keyword expansion is on.

<font color='#006600'>diff -u rtems-testing/cvs-helpers/cvscommit:1.3 rtems-testing/cvs-helpers/cvscommit:1.4
--- rtems-testing/cvs-helpers/cvscommit:1.3     Tue Jan 19 16:05:40 2010
+++ rtems-testing/cvs-helpers/cvscommit Tue Jan  4 13:53:53 2011
</font><font color='#997700'>@@ -89,8 +89,13 @@
</font> 
 for ddir in ${subdirs} ; do
   test "${ddir}" = "CVS" && continue
<font color='#000088'>+  test "${ddir}" = "autom4te.cache" && continue
</font>   test "${ddir}" = "install" && continue
   if [ -d "${ddir}" ]; then
<font color='#000088'>+    if [ ! -d "${ddir}/CVS" ] ; then
+      echo "WARNING - ${ddir} is not in CVS"
+      continue
+    fi
</font>     test -f "${ddir}/ChangeLog" || continue
     cd "$ddir" >/dev/null
     mkChangeLogList ${mkchoptions} ${userArg} "${userInfo}" \

<font color='#006600'>diff -u rtems-testing/cvs-helpers/mkChangeLogList:1.5 rtems-testing/cvs-helpers/mkChangeLogList:1.6
--- rtems-testing/cvs-helpers/mkChangeLogList:1.5       Fri Apr  9 12:31:20 2010
+++ rtems-testing/cvs-helpers/mkChangeLogList   Tue Jan  4 13:53:53 2011
</font><font color='#997700'>@@ -125,6 +125,5 @@
</font>   mklog_ Removed.
 echo
 
<font color='#880000'>-
</font> rm -f XXX
 exit 0
</pre>
<p> </p>
<a name='cs2'></a>
<table border='0' cellspacing='0' cellpadding='5' width='100%' bgcolor='#eeeeee'>
<tr><td colspan='3' bgcolor='#dddddd'>
 <font color='#bb2222'><strong>joel</strong></font>
</td></tr>
<tr><td colspan='3' bgcolor='#dddddd'><pre>2011-01-04 Joel Sherrill <joel.sherrill@oarcorp.com>

        * clang/do_clang: New file.
</pre></td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems-testing/ChangeLog.diff?r1=text&tr1=1.62&r2=text&tr2=1.63&diff_format=h">M</a></td><td width='1%'>1.63</td><td width='100%'>ChangeLog</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems-testing/clang/do_clang?rev=1.1&content-type=text/vnd.viewcvs-markup">A</a></td><td width='1%'><font color="#000088">1.1</font></td><td width='100%'><font color="#000088">clang/do_clang</font></td></tr>
</table>
<pre>
<font color='#006600'>diff -u rtems-testing/ChangeLog:1.62 rtems-testing/ChangeLog:1.63
--- rtems-testing/ChangeLog:1.62        Tue Dec  7 15:09:38 2010
+++ rtems-testing/ChangeLog     Tue Jan  4 14:02:47 2011
</font><font color='#997700'>@@ -1,3 +1,7 @@
</font><font color='#000088'>+2011-01-04    Joel Sherrill <joel.sherrill@oarcorp.com>
+
+       * clang/do_clang: New file.
+
</font> 2010-12-07        Joel Sherrill <joel.sherrill@oarcorp.com>
 
        * VERSIONS:

<font color='#006600'>diff -u /dev/null rtems-testing/clang/do_clang:1.1
--- /dev/null   Tue Jan  4 14:10:03 2011
+++ rtems-testing/clang/do_clang        Tue Jan  4 14:02:47 2011
</font><font color='#997700'>@@ -0,0 +1,79 @@
</font><font color='#000088'>+#! /bin/sh
+#
+#  This script automates running clang-analyzer on RTEMS.
+#<span style="background-color: #FF0000"> </span>
+# NOTE:
+#    + clang/scan does not support -B option so no code which needs bsp.h
+#    + clang/scan has bug about embedded space in RHS of -D option.
+#<span style="background-color: #FF0000"> </span>
+#  $Id$
+#
+
+#
+# TODO:
+#   + parse arguments for some of the hard-coded items.
+#   + better instructions on setup. Where to download, etc.
+#
+
+OUTPUTDIR=/home/joel/rtems-4.11-work/build/clang/output
+RTEMS_BIN=/opt/rtems-4.11/bin
+RTEMS_TARGET=sparc-rtems4.11
+RTEMS_BSP=sis
+#RTEMS_TARGET=i386-rtems4.11
+#RTEMS_BSP=pc386
+
+#
+#  Checks the status returned by executables and exits if it is non-zero.
+#
+check_fatal()
+{
+  if [ $1 -ne 0 ] ; then
+    shift
+    echo "ERROR: $*" >&2
+    exit 1
+  fi
+}
+
+type ${RTEMS_TARGET}-gcc
+check_fatal $? "gcc not in path"
+
+type scan-build >/dev/null 2>&1
+check_fatal $? "scan-build not in PATH"
+
+# How many jobs in parallel
+if [ -r /usr/bin/getconf ] ; then
+  cpus=`/usr/bin/getconf _NPROCESSORS_ONLN`
+  cpus=`expr ${cpus} + 1`
+else
+  cpus=2
+fi
+# Clean build directory and start over
+rm     -rf  b-clang-${RTEMS_TARGET}
+check_fatal $? "Could not remove build directory"
+mkdir  -p   b-clang-${RTEMS_TARGET}
+check_fatal $? "Could not make build directory"
+cd          b-clang-${RTEMS_TARGET}
+check_fatal $? "Could not cd to build directory"
+
+# Configure RTEMS
+#$r/configure --target=${RTEMS_TARGET} --enable-multilib \
+#  --disable-networking --disable-itron --disable-tests \
+#  --enable-rtemsbsp=${RTEMS_BSP} >c.log 2>&1
+$r/configure --target=${RTEMS_TARGET} --disable-multilib \
+  --disable-networking --disable-itron --disable-tests \
+  --enable-rtemsbsp=${RTEMS_BSP} >c.log 2>&1
+check_fatal $? "could not configure RTEMS"
+
+# Build RTEMS
+BASE=`pwd`
+#cd ${RTEMS_TARGET}/cpukit<span style="background-color: #FF0000"> </span>
+#check_fatal $? "could not cd ${RTEMS_TARGET}/cpukit"
+
+scan-build -o ${OUTPUTDIR} --experimental-checks \
+  --use-cc ${RTEMS_TARGET}-gcc \
+  --use-c++ ${RTEMS_TARGET}-g++ \
+  make -j${cpus} >${BASE}/b.log 2>&1
+check_fatal $? "could not make RTEMS"
+
+# Ran completed OK
+exit 0
</font></pre>
<p> </p>

<p>--<br />
<small>Generated by <a href="http://www.codewiz.org/projects/index.html#loginfo">Deluxe Loginfo</a> 2.122 by Bernardo Innocenti <bernie@develer.com></small></p>
</body>
</html>