summaryrefslogtreecommitdiffstats
path: root/rtems/config/tools/rtems-kernel-4-1.cfg
diff options
context:
space:
mode:
Diffstat (limited to 'rtems/config/tools/rtems-kernel-4-1.cfg')
-rw-r--r--rtems/config/tools/rtems-kernel-4-1.cfg24
1 files changed, 17 insertions, 7 deletions
diff --git a/rtems/config/tools/rtems-kernel-4-1.cfg b/rtems/config/tools/rtems-kernel-4-1.cfg
index e5d115c..c7bb643 100644
--- a/rtems/config/tools/rtems-kernel-4-1.cfg
+++ b/rtems/config/tools/rtems-kernel-4-1.cfg
@@ -72,12 +72,21 @@ BuildRoot: %{_tmppath}/%{name}-root-%(%{__id_u} -n)
%endif
#
-# It the rtems_bsps is all undefine it
+# Check the various --with/--without options we support.
#
-%if %{defined rtems_bsps}
- %if %{rtems_bsps} == all
- %undefine rtems_bsps
- %endif
+# --with-rtemsbsp : Supported, list of BSPs
+# --without-rtemsbsp: Not supported
+# --with-tests : Supported, samples/yes/no
+# --without-tests : Not supported
+# --with-smp : Supported
+# --without-smp : Not care
+#
+#
+%if %{defined without_rtemsbsp}
+ %error Option --without-rtemsbsp is not supported.
+%endif
+%if %{defined without_rtems_tests}
+ %define with_rtems_tests no
%endif
#
@@ -114,8 +123,9 @@ BuildRoot: %{_tmppath}/%{name}-root-%(%{__id_u} -n)
%{?rtems_posix:--enable-posix}%{!?rtems_posix:--disable-posix} \
%{?rtems_networking:--enable-networking}%{!?rtems_networking:--disable-networking} \
%{?rtems_cxx:--enable-cxx}%{!?rtems_cxx:--disable-cxx} \
- %{rtems_tests_opt} \
- %{?rtems_bsps:--enable-rtemsbsp=%{rtems_bsps}} \
+ %{?with_rtems_tests:--enable-tests=%{with_rtems_tests}} \
+ %{?with_rtemsbsp:--enable-rtemsbsp="%{with_rtemsbsp}"} \
+ %{?with_rtems_smp:--enable-smp} \
--prefix=%{_prefix} --bindir=%{_bindir} \
--exec-prefix=%{_exec_prefix} \
--includedir=%{_includedir} --libdir=%{_libdir} \