mirror of
https://git.rtems.org/rtems-source-builder
synced 2024-10-09 07:15:10 +08:00
Add m4 and a gnu-tools build set.
This commit is contained in:
parent
9116797083
commit
80027df531
27
config/gnu-tools.cfg
Normal file
27
config/gnu-tools.cfg
Normal file
@ -0,0 +1,27 @@
|
|||||||
|
#
|
||||||
|
# GNU Tools Set
|
||||||
|
#
|
||||||
|
|
||||||
|
%define release 1
|
||||||
|
|
||||||
|
package: gnu-tool-%{_target}-%{release}
|
||||||
|
|
||||||
|
#
|
||||||
|
# Project custom message
|
||||||
|
#
|
||||||
|
%define gcc_version_message SB-%{release},gcc-%{gcc_version}/newlib-%{newlib_version}
|
||||||
|
|
||||||
|
#
|
||||||
|
# Enable G++
|
||||||
|
#
|
||||||
|
%define enable_cxx 1
|
||||||
|
|
||||||
|
#
|
||||||
|
# Tool configuration.
|
||||||
|
#
|
||||||
|
m4-1.4.16-1
|
||||||
|
autoconf-2.69-1
|
||||||
|
automake-1.12-1
|
||||||
|
binutils-2.22-1
|
||||||
|
gcc-4.6-newlib-1.20-1
|
||||||
|
gdb-7.5-1
|
54
config/m4-1-1.cfg
Normal file
54
config/m4-1-1.cfg
Normal file
@ -0,0 +1,54 @@
|
|||||||
|
#
|
||||||
|
# M4 1.xx Version 1.
|
||||||
|
#
|
||||||
|
# This configuration file configure's, make's and install's m4
|
||||||
|
#
|
||||||
|
# Warning: this package is only for bootstrapping within a build.
|
||||||
|
#
|
||||||
|
|
||||||
|
Summary: M4 v%{m4_version} for host %{_host}
|
||||||
|
Version: %{m4_version}
|
||||||
|
Release: %{release}
|
||||||
|
URL: http://www.gnu.org/software/m4/
|
||||||
|
BuildRoot: %{_tmppath}/%{name}-root-%(%{__id_u} -n)
|
||||||
|
|
||||||
|
#
|
||||||
|
# Source
|
||||||
|
#
|
||||||
|
Source0: ftp://ftp.gnu.org/gnu/m4/m4-%{m4_version}.tar.gz
|
||||||
|
|
||||||
|
#
|
||||||
|
# Prepare the source code.
|
||||||
|
#
|
||||||
|
%prep
|
||||||
|
%setup -q -c -T -n %{name}-%{version}
|
||||||
|
cd m4-%{m4_version}
|
||||||
|
%{?patch0:%patch0 -p1}
|
||||||
|
cd ..
|
||||||
|
|
||||||
|
%build
|
||||||
|
export PATH="%{_bindir}:${PATH}"
|
||||||
|
cd m4-%{m4_version}
|
||||||
|
|
||||||
|
%if "%{_build}" != "%{_host}"
|
||||||
|
CFLAGS_FOR_BUILD="-g -O2 -Wall" \
|
||||||
|
%endif
|
||||||
|
CFLAGS="$SB_OPT_FLAGS" \
|
||||||
|
./configure \
|
||||||
|
--build=%{_build} --host=%{_host} \
|
||||||
|
--verbose --disable-nls \
|
||||||
|
--without-included-gettext \
|
||||||
|
--prefix=$SB_TMPPREFIX
|
||||||
|
|
||||||
|
%{__make} %{?_smp_mflags} all
|
||||||
|
|
||||||
|
cd ..
|
||||||
|
|
||||||
|
%install
|
||||||
|
export PATH="%{_bindir}:${PATH}"
|
||||||
|
rm -rf $SB_BUILD_ROOT
|
||||||
|
|
||||||
|
cd m4-%{m4_version}
|
||||||
|
%{__make} install
|
||||||
|
|
||||||
|
cd ..
|
21
config/m4-1.4.16-1.cfg
Normal file
21
config/m4-1.4.16-1.cfg
Normal file
@ -0,0 +1,21 @@
|
|||||||
|
#
|
||||||
|
# M4 1.4.16
|
||||||
|
#
|
||||||
|
|
||||||
|
%ifn %{defined release}
|
||||||
|
%error No 'release' defined
|
||||||
|
%endif
|
||||||
|
|
||||||
|
%include %{_configdir}/base.cfg
|
||||||
|
|
||||||
|
%define m4_version 1.4.16
|
||||||
|
|
||||||
|
Name: m4-%{m4_version}-%{_host}-%{release}
|
||||||
|
|
||||||
|
%description
|
||||||
|
M4 for host %{_host}.
|
||||||
|
|
||||||
|
#
|
||||||
|
# The m4 build instructions. We use 1.x.x Release 1.
|
||||||
|
#
|
||||||
|
%include %{_configdir}/m4-1-1.cfg
|
Loading…
x
Reference in New Issue
Block a user