config: Support --without-rtems to not build RTEMS.

The default is to build RTEMS. This change lets a user stop this
by using '--without-rtems' on the command line.
This commit is contained in:
Chris Johns 2013-08-14 14:04:53 +10:00
parent 76d4899a27
commit b830445f6f

View File

@ -2,6 +2,16 @@
# RTEMS 4.11 # RTEMS 4.11
# #
#
# Optionally disable building the RTEMS kernel via the command line.
#
%if %{without_rtems}
%define rtems_kernel_build 0
%else
%define rtems_kernel_build 1
%endif
%if %{rtems_kernel_build}
%include %{_configdir}/checks.cfg %include %{_configdir}/checks.cfg
%include %{_configdir}/base.cfg %include %{_configdir}/base.cfg
%include %{_configdir}/versions.cfg %include %{_configdir}/versions.cfg
@ -40,3 +50,4 @@ Source0: git://git.rtems.org/rtems.git?reset=hard?pull
# The RTEMS build instructions. We use 4.xx Release 1. # The RTEMS build instructions. We use 4.xx Release 1.
# #
%include tools/rtems-kernel-4-1.cfg %include tools/rtems-kernel-4-1.cfg
%endif