mirror of
https://git.rtems.org/rtems-source-builder
synced 2024-10-09 07:15:10 +08:00
4.11/rtems-kernel: Use the updated common support for conditional building.
Updates #2526.
This commit is contained in:
parent
bc61e340c4
commit
a8d64ad94d
@ -3,54 +3,6 @@
|
||||
#
|
||||
|
||||
#
|
||||
# Build if the RSB is released.
|
||||
# The RTEMS build instructions. We use 4.xx Release 1.
|
||||
#
|
||||
%if %{rsb_released}
|
||||
%define rtems_kernel_build 1
|
||||
%endif
|
||||
|
||||
#
|
||||
# Optionally enable/disable building the RTEMS kernel via the command line.
|
||||
#
|
||||
%if %{defined with_rtems}
|
||||
%define rtems_kernel_build 1
|
||||
%else
|
||||
%define rtems_kernel_build 0
|
||||
%endif
|
||||
%if %{defined without_rtems}
|
||||
%define rtems_kernel_build 0
|
||||
%endif
|
||||
|
||||
%if %{rtems_kernel_build}
|
||||
%include %{_configdir}/checks.cfg
|
||||
%include %{_configdir}/base.cfg
|
||||
%include %{_configdir}/versions.cfg
|
||||
|
||||
%if %{rsb_released}
|
||||
%define rtems_kernel_version %{rsb_version}
|
||||
%else
|
||||
%define rtems_kernel_version %{rtems_version}
|
||||
%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}
|
||||
|
||||
#
|
||||
# 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
|
||||
|
||||
#
|
||||
# The RTEMS build instructions. We use 4.xx Release 1.
|
||||
#
|
||||
%include tools/rtems-kernel-4-1.cfg
|
||||
%endif
|
||||
%include tools/rtems-kernel-4-1.cfg
|
||||
|
Loading…
x
Reference in New Issue
Block a user