<!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-tools (2010-08-30)</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>ccj</strong></font>
</td></tr>
<tr><td colspan='3' bgcolor='#dddddd'><pre>2010-08-31 Chris Johns <chrisj@rtems.org>
* specbuilder/specbuilder/linux.py: Add Linux support. Can be
useful on those distributions that do not support RPM
packages. Users should always be encouraged to use the RPM
packages provided by the project.
* specbuilder/specbuilder/default.py: Add Linux.
</pre></td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems-tools/ChangeLog.diff?r1=text&tr1=1.6&r2=text&tr2=1.7&diff_format=h">M</a></td><td width='1%'>1.7</td><td width='100%'>ChangeLog</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems-tools/specbuilder/specbuilder/defaults.py.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%'>specbuilder/specbuilder/defaults.py</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems-tools/specbuilder/specbuilder/linux.py?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">specbuilder/specbuilder/linux.py</font></td></tr>
</table>
<pre>
<font color='#006600'>diff -u rtems-tools/ChangeLog:1.6 rtems-tools/ChangeLog:1.7
--- rtems-tools/ChangeLog:1.6 Sat Aug 28 18:01:20 2010
+++ rtems-tools/ChangeLog Mon Aug 30 19:58:45 2010
</font><font color='#997700'>@@ -1,3 +1,12 @@
</font><font color='#000088'>+2010-08-31 Chris Johns <chrisj@rtems.org>
+
+ * specbuilder/specbuilder/linux.py: Add Linux support. Can be
+ useful on those distributions that do not support RPM
+ packages. Users should always be encouraged to use the RPM
+ packages provided by the project.
+
+ * specbuilder/specbuilder/default.py: Add Linux.
+
</font> 2010-08-29 Chris Johns <chrisj@rtems.org>
* specbuilder/specbuilder/defaults.py: Add default configure
<font color='#006600'>diff -u rtems-tools/specbuilder/specbuilder/defaults.py:1.5 rtems-tools/specbuilder/specbuilder/defaults.py:1.6
--- rtems-tools/specbuilder/specbuilder/defaults.py:1.5 Sat Aug 28 18:01:20 2010
+++ rtems-tools/specbuilder/specbuilder/defaults.py Mon Aug 30 19:58:45 2010
</font><font color='#997700'>@@ -419,6 +419,9 @@
</font> if uname[0] == 'Darwin':
import darwin
overrides = darwin.load()
<font color='#000088'>+ elif uname[0] == 'Linux':
+ import linux<span style="background-color: #FF0000"> </span>
+ overrides = linux.load()
</font> if overrides is None:
raise error.general('no hosts defaults found; please add')
for k in overrides:
<font color='#006600'>diff -u /dev/null rtems-tools/specbuilder/specbuilder/linux.py:1.1
--- /dev/null Mon Aug 30 20:10:23 2010
+++ rtems-tools/specbuilder/specbuilder/linux.py Mon Aug 30 19:58:45 2010
</font><font color='#997700'>@@ -0,0 +1,67 @@
</font><font color='#000088'>+#<span style="background-color: #FF0000"><CR></span>
+# $Id$<span style="background-color: #FF0000"><CR></span>
+#<span style="background-color: #FF0000"><CR></span>
+# RTEMS Tools Project (http://www.rtems.org/)<span style="background-color: #FF0000"><CR></span>
+# Copyright 2010 Chris Johns (chrisj@rtems.org)<span style="background-color: #FF0000"><CR></span>
+# All rights reserved.<span style="background-color: #FF0000"><CR></span>
+#<span style="background-color: #FF0000"><CR></span>
+# This file is part of the RTEMS Tools package in 'rtems-tools'.<span style="background-color: #FF0000"><CR></span>
+#<span style="background-color: #FF0000"><CR></span>
+# RTEMS Tools is free software: you can redistribute it and/or modify<span style="background-color: #FF0000"><CR></span>
+# it under the terms of the GNU General Public License as published by<span style="background-color: #FF0000"><CR></span>
+# the Free Software Foundation, either version 3 of the License, or<span style="background-color: #FF0000"><CR></span>
+# (at your option) any later version.<span style="background-color: #FF0000"><CR></span>
+#<span style="background-color: #FF0000"><CR></span>
+# RTEMS Tools is distributed in the hope that it will be useful,<span style="background-color: #FF0000"><CR></span>
+# but WITHOUT ANY WARRANTY; without even the implied warranty of<span style="background-color: #FF0000"><CR></span>
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the<span style="background-color: #FF0000"><CR></span>
+# GNU General Public License for more details.<span style="background-color: #FF0000"><CR></span>
+#<span style="background-color: #FF0000"><CR></span>
+# You should have received a copy of the GNU General Public License<span style="background-color: #FF0000"><CR></span>
+# along with RTEMS Tools. If not, see <http://www.gnu.org/licenses/>.<span style="background-color: #FF0000"><CR></span>
+#<span style="background-color: #FF0000"><CR></span>
+<span style="background-color: #FF0000"><CR></span>
+#<span style="background-color: #FF0000"><CR></span>
+# This code is based on what ever doco about spec files I could find and <span style="background-color: #FF0000"><CR></span>
+# RTEMS project's spec files.<span style="background-color: #FF0000"><CR></span>
+#<span style="background-color: #FF0000"><CR></span>
+<span style="background-color: #FF0000"><CR></span>
+import pprint<span style="background-color: #FF0000"><CR></span>
+import os<span style="background-color: #FF0000"><CR></span>
+<span style="background-color: #FF0000"><CR></span>
+import execute<span style="background-color: #FF0000"><CR></span>
+<span style="background-color: #FF0000"><CR></span>
+def load():<span style="background-color: #FF0000"><CR></span>
+ uname = os.uname()<span style="background-color: #FF0000"><CR></span>
+ smp_mflags = ''<span style="background-color: #FF0000"><CR></span>
+ processors = '/bin/grep processor /proc/cpuinfo'<span style="background-color: #FF0000"><CR></span>
+ e = execute.capture_execution()<span style="background-color: #FF0000"><CR></span>
+ exit_code, proc, output = e.shell(processors)<span style="background-color: #FF0000"><CR></span>
+ if exit_code == 0:<span style="background-color: #FF0000"><CR></span>
+ cpus = 0<span style="background-color: #FF0000"><CR></span>
+ for l in output.split('\n'):<span style="background-color: #FF0000"><CR></span>
+ count = l.split(':')[1].strip()<span style="background-color: #FF0000"><CR></span>
+ if count > cpus:<span style="background-color: #FF0000"><CR></span>
+ cpus = count<span style="background-color: #FF0000"><CR></span>
+ if cpus > 0:<span style="background-color: #FF0000"><CR></span>
+ smp_mflags = '-j%d' % (cpus) <span style="background-color: #FF0000"><CR></span>
+ defines = { <span style="background-color: #FF0000"><CR></span>
+ '_os': 'linux',<span style="background-color: #FF0000"><CR></span>
+ '_host': uname[4] + '-linux-gnu',<span style="background-color: #FF0000"><CR></span>
+ '_host_vendor': 'gnu',<span style="background-color: #FF0000"><CR></span>
+ '_host_os': 'linux',<span style="background-color: #FF0000"><CR></span>
+ '_host_cpu': uname[4],<span style="background-color: #FF0000"><CR></span>
+ '_host_alias': '%{nil}',<span style="background-color: #FF0000"><CR></span>
+ '_host_arch': uname[4],<span style="background-color: #FF0000"><CR></span>
+ '_usr': '/usr',<span style="background-color: #FF0000"><CR></span>
+ '_var': '/usr/var',<span style="background-color: #FF0000"><CR></span>
+ 'optflags': '-O2 -fasynchronous-unwind-tables',<span style="background-color: #FF0000"><CR></span>
+ '_smp_mflags': smp_mflags,<span style="background-color: #FF0000"><CR></span>
+ '__bzip2': '/bin/bzip2',<span style="background-color: #FF0000"><CR></span>
+ '__gzip': '/bin/gzip',<span style="background-color: #FF0000"><CR></span>
+ '__tar': '/bin/tar'<span style="background-color: #FF0000"><CR></span>
+ }<span style="background-color: #FF0000"><CR></span>
+ return defines<span style="background-color: #FF0000"><CR></span>
+<span style="background-color: #FF0000"><CR></span>
+if __name__ == '__main__':<span style="background-color: #FF0000"><CR></span>
+ pprint.pprint(load())<span style="background-color: #FF0000"><CR></span>
</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>