[rtems-source-builder commit] rtems: Do not build the RTEMS kernel by default in releases.

Chris Johns chrisj at rtems.org
Thu Feb 8 22:30:56 UTC 2018


Module:    rtems-source-builder
Branch:    4.10
Commit:    9f4ed7e316e9803bd39c474012dc7914ef339fdd
Changeset: http://git.rtems.org/rtems-source-builder/commit/?id=9f4ed7e316e9803bd39c474012dc7914ef339fdd

Author:    Chris Johns <chrisj at rtems.org>
Date:      Thu Feb  8 16:13:40 2018 +1100

rtems: Do not build the RTEMS kernel by default in releases.

Close #3292

---

 rtems/config/tools/rtems-kernel-4-1.cfg | 2 +-
 source-builder/sb/build.py              | 7 ++-----
 source-builder/sb/config.py             | 3 ++-
 3 files changed, 5 insertions(+), 7 deletions(-)

diff --git a/rtems/config/tools/rtems-kernel-4-1.cfg b/rtems/config/tools/rtems-kernel-4-1.cfg
index e13458d..6349be7 100644
--- a/rtems/config/tools/rtems-kernel-4-1.cfg
+++ b/rtems/config/tools/rtems-kernel-4-1.cfg
@@ -31,7 +31,7 @@ BuildRoot: %{_tmppath}/%{name}-root-%(%{__id_u} -n)
 # Build if the RSB is released or optionally enable/disable building the RTEMS
 # kernel via the command line.
 #
-%if %{rsb_released} || %{defined with_rtems}
+%if %{defined with_rtems}
  %define rtems_kernel_build 1
 %else
  %define rtems_kernel_build 0
diff --git a/source-builder/sb/build.py b/source-builder/sb/build.py
index b995e6b..e28a831 100644
--- a/source-builder/sb/build.py
+++ b/source-builder/sb/build.py
@@ -111,11 +111,8 @@ class build:
             return name
 
     def _generate_report_(self, header, footer = None):
-        label, result = self.opts.with_arg('error-report')
-        if (label.startswith('without_') and result != 'yes') or \
-           (label.startswith('with_') and result != 'no'):
-            ereport.generate('rsb-report-%s.txt' % self.macros['name'],
-                             self.opts, header, footer)
+        ereport.generate('rsb-report-%s.txt' % self.macros['name'],
+                         self.opts, header, footer)
 
     def __init__(self, name, create_tar_files, opts, macros = None):
         try:
diff --git a/source-builder/sb/config.py b/source-builder/sb/config.py
index da54ba3..a4f739b 100644
--- a/source-builder/sb/config.py
+++ b/source-builder/sb/config.py
@@ -422,7 +422,8 @@ class file:
     def _pkgconfig_check(self, test):
         # Hack to by pass pkgconfig checks when just wanting to download the
         # source.
-        if self.macros['_dry_run'] == '1' and self.macros['with_download'] == '1':
+        if self.macros['_dry_run'] == '1' and \
+           ('with_download' in self.macros and self.macros['with_download'] == '1'):
             return '0'
         ok = False
         if type(test) == str:




More information about the vc mailing list