mirror of
https://git.rtems.org/rtems-source-builder
synced 2024-10-09 07:15:10 +08:00
rtems/kernel: Move the --with-rtems logic in the common file.
This commit is contained in:
parent
8bde727065
commit
a102424f67
@ -4,8 +4,15 @@
|
||||
# This configuration file configure's, make's and install's RTEMS.
|
||||
#
|
||||
|
||||
%include %{_configdir}/checks.cfg
|
||||
%if %{rsb_released}
|
||||
%define rtems_kernel_version %{rsb_version}
|
||||
%else
|
||||
%define rtems_kernel_version %{rtems_version}
|
||||
%endif
|
||||
|
||||
#
|
||||
# Package details.
|
||||
#
|
||||
Name: %{_target}-kernel-%{rtems_kernel_version}-%{release}
|
||||
Summary: RTEMS v%{rtems_kernel_version} for target %{_target} on host %{_host}
|
||||
Version: %{rtems_kernel_version}
|
||||
@ -13,6 +20,41 @@ Release: %{release}
|
||||
URL: http://www.rtems.org/
|
||||
BuildRoot: %{_tmppath}/%{name}-root-%(%{__id_u} -n)
|
||||
|
||||
#
|
||||
# Build if the RSB is released or optionally enable/disable building the RTEMS
|
||||
# kernel via the command line.
|
||||
#
|
||||
%if %{rsb_released} || %{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
|
||||
|
||||
#
|
||||
# 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
|
||||
|
||||
#
|
||||
# Source
|
||||
#
|
||||
@ -142,4 +184,4 @@ BuildRoot: %{_tmppath}/%{name}-root-%(%{__id_u} -n)
|
||||
|
||||
cd ..
|
||||
|
||||
%testing
|
||||
%endif
|
||||
|
Loading…
x
Reference in New Issue
Block a user