mirror of
https://git.rtems.org/rtems-source-builder
synced 2024-10-09 07:15:10 +08:00
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:
parent
76d4899a27
commit
b830445f6f
@ -2,41 +2,52 @@
|
||||
# RTEMS 4.11
|
||||
#
|
||||
|
||||
%include %{_configdir}/checks.cfg
|
||||
%include %{_configdir}/base.cfg
|
||||
%include %{_configdir}/versions.cfg
|
||||
|
||||
%define rtems_kernel_version 4.11
|
||||
|
||||
#
|
||||
# Check the version of autoconf. Check autoreconf as it is used.
|
||||
# Optionally disable building the RTEMS kernel via the command line.
|
||||
#
|
||||
%if %{__autoreconf_ver} <= 2.68
|
||||
%if %{__autoreconf_bindir_ver} <= 2.68
|
||||
%if %{__autoreconf_path_ver} <= 2.68
|
||||
%error Autoconf (autoreconf) version 2.69 or higher is needed.
|
||||
%endif
|
||||
%endif
|
||||
%if %{without_rtems}
|
||||
%define rtems_kernel_build 0
|
||||
%else
|
||||
%define rtems_kernel_build 1
|
||||
%endif
|
||||
|
||||
#
|
||||
# A magic internal path that would break if changes in the defaults.mc
|
||||
# macro file are made.
|
||||
#
|
||||
%define _internal_autotools_path %{_tmppath}/sb-%{_uid}/${SB_PREFIX_CLEAN}
|
||||
#
|
||||
# Pull the latest changes from git each build. Override if this is not what you
|
||||
# want.
|
||||
#
|
||||
Source0: git://git.rtems.org/rtems.git?reset=hard?pull
|
||||
%if %{rtems_kernel_build}
|
||||
%include %{_configdir}/checks.cfg
|
||||
%include %{_configdir}/base.cfg
|
||||
%include %{_configdir}/versions.cfg
|
||||
|
||||
#
|
||||
# The code in git needs to be bootstrapped. Do each build because we have
|
||||
# no way to change what changes may have happened in the code.
|
||||
#
|
||||
%define rtems_bootstrap
|
||||
%define rtems_kernel_version 4.11
|
||||
|
||||
#
|
||||
# The RTEMS build instructions. We use 4.xx Release 1.
|
||||
#
|
||||
%include tools/rtems-kernel-4-1.cfg
|
||||
#
|
||||
# Check the version of autoconf. Check autoreconf as it is used.
|
||||
#
|
||||
%if %{__autoreconf_ver} <= 2.68
|
||||
%if %{__autoreconf_bindir_ver} <= 2.68
|
||||
%if %{__autoreconf_path_ver} <= 2.68
|
||||
%error Autoconf (autoreconf) version 2.69 or higher is needed.
|
||||
%endif
|
||||
%endif
|
||||
%endif
|
||||
|
||||
#
|
||||
# A magic internal path that would break if changes in the defaults.mc
|
||||
# macro file are made.
|
||||
#
|
||||
%define _internal_autotools_path %{_tmppath}/sb-%{_uid}/${SB_PREFIX_CLEAN}
|
||||
#
|
||||
# Pull the latest changes from git each build. Override if this is not what you
|
||||
# want.
|
||||
#
|
||||
Source0: git://git.rtems.org/rtems.git?reset=hard?pull
|
||||
|
||||
#
|
||||
# The code in git needs to be bootstrapped. Do each build because we have
|
||||
# no way to change what changes may have happened in the code.
|
||||
#
|
||||
%define rtems_bootstrap
|
||||
|
||||
#
|
||||
# The RTEMS build instructions. We use 4.xx Release 1.
|
||||
#
|
||||
%include tools/rtems-kernel-4-1.cfg
|
||||
%endif
|
||||
|
Loading…
x
Reference in New Issue
Block a user