summaryrefslogtreecommitdiffstats
path: root/rtems
diff options
context:
space:
mode:
authorChris Johns <chrisj@rtems.org>2019-07-14 14:03:06 +1000
committerChris Johns <chrisj@rtems.org>2019-07-21 21:09:34 +1000
commitb1c2cb4f72490a9f850fd11ef63d96070b27eef4 (patch)
tree209e0e0ad3f2e49e3852c6e49c9841c9ba691fbb /rtems
parentsb/options: Update copyright year to 2019. (diff)
downloadrtems-source-builder-b1c2cb4f72490a9f850fd11ef63d96070b27eef4.tar.bz2
sb/setbuilder: Support staging of build set build before installing.
- Staging lets build sets use previously built build sets. - Fix the rtems-bsp builds to support staging.
Diffstat (limited to 'rtems')
-rw-r--r--rtems/config/5/rtems-libbsd.bset2
-rw-r--r--rtems/config/rtems-bsp.cfg28
-rw-r--r--rtems/config/tools/rtems-libbsd-common.cfg2
3 files changed, 23 insertions, 9 deletions
diff --git a/rtems/config/5/rtems-libbsd.bset b/rtems/config/5/rtems-libbsd.bset
index ff9c2e7..2b84cf8 100644
--- a/rtems/config/5/rtems-libbsd.bset
+++ b/rtems/config/5/rtems-libbsd.bset
@@ -3,6 +3,6 @@
#
#
-# Build the kernel.
+# Build the BSD library for RTEMS.
#
tools/rtems-libbsd-5
diff --git a/rtems/config/rtems-bsp.cfg b/rtems/config/rtems-bsp.cfg
index 404ad6a..bf1f42b 100644
--- a/rtems/config/rtems-bsp.cfg
+++ b/rtems/config/rtems-bsp.cfg
@@ -24,7 +24,7 @@
# If a dry-run and with download ignore errors and correct setting for tools
# and BSPs. Only after the source to download.
#
-%if %{_dry_run} && %{defined with_download}
+%if %{_dry_run}
%log BSP configuration errors ignored
%define rtems_bsp_error 0
%else
@@ -36,7 +36,7 @@
# version. It can be defined in rtems_host.
#
%if %{defined rtems_host}
- %define _host %{rtems_host}
+ %{triplet _host %{rtems_host}}
%endif
%if %{rtems_bsp_error}
%if %{_host} == %{nil} || %{_host} == %{_build}
@@ -55,18 +55,29 @@
%endif
#
-# If no tools or RTEMS provided use the prefix.
+# If no tools or RTEMS provided use the prefix. If staging use the staging
+# root.
#
%ifn %{defined with_tools}
- %define with_tools %{_prefix}
- %define rtems_waf_tools %{nil}
+ %if %{install_mode} == staging
+ %define with_tools %{stagingroot}
+ %define rtems_waf_tools --rtems-tools=%{with_tools}
+ %else
+ %define with_tools %{_prefix}
+ %define rtems_waf_tools %{nil}
+ %endif
%else
%define rtems_waf_tools --rtems-tools=%{with_tools}
%endif
%ifn %{defined with_rtems}
- %define with_rtems %{_prefix}
- %define rtems_waf_rtems %{nil}
+ %if %{install_mode} == staging
+ %define with_rtems %{stagingroot}
+ %define rtems_waf_rtems --rtems=%{with_rtems}
+ %else
+ %define with_rtems %{_prefix}
+ %define rtems_waf_rtems %{nil}
+ %endif
%else
%define rtems_waf_rtems --rtems=%{with_rtems}
%endif
@@ -111,6 +122,7 @@
# RTEMS BSP paths
#
%define rtems_bsp_cc %{_host}-gcc
+%define rtems_bsp_cxx %{_host}-g++
%define rtems_bsp_incpath %{with_rtems}/%{_host}/%{rtems_bsp}/include
%define rtems_bsp_libpath %{with_rtems}/%{_host}/%{rtems_bsp}/lib
@@ -160,6 +172,8 @@
#
# Map to names used for cross compiling.
#
+%define host_cc %{rtems_bsp_cc}
+%define host_cxx %{rtems_bsp_cxx}
%define host_includes -I%{_includedir}
%define host_cflags %{rtems_bsp_cflags}
%define host_cxxflags %{rtems_bsp_ccflags}
diff --git a/rtems/config/tools/rtems-libbsd-common.cfg b/rtems/config/tools/rtems-libbsd-common.cfg
index 4503e1b..f5f78f2 100644
--- a/rtems/config/tools/rtems-libbsd-common.cfg
+++ b/rtems/config/tools/rtems-libbsd-common.cfg
@@ -62,7 +62,7 @@ URL: https://git.rtems.org/rtems-libbsd.git/
./waf distclean configure \
--prefix=%{_prefix} \
%{rtems_waf_tools} \
- %{rtems_waf_rtems}
+ %{rtems_waf_rtems} \
--rtems-bsp=%{rtems_bsp_arch_bsp}
./waf build