[PATCH 5/6] Add readline: Not building yet

Joel Sherrill joel.sherrill at oarcorp.com
Tue Aug 25 23:02:08 UTC 2015


---
 rtems/config/4.11/devel/readline.bset |   20 ++++++++
 rtems/config/devel/readline-6.3-1.cfg |   21 +++++++++
 source-builder/config/readline-1.cfg  |   78 +++++++++++++++++++++++++++++++++
 3 files changed, 119 insertions(+), 0 deletions(-)
 create mode 100644 rtems/config/4.11/devel/readline.bset
 create mode 100644 rtems/config/devel/readline-6.3-1.cfg
 create mode 100644 source-builder/config/readline-1.cfg

diff --git a/rtems/config/4.11/devel/readline.bset b/rtems/config/4.11/devel/readline.bset
new file mode 100644
index 0000000..65011a6
--- /dev/null
+++ b/rtems/config/4.11/devel/readline.bset
@@ -0,0 +1,20 @@
+#
+# Build set for readline
+#
+
+%define release 1
+
+#
+# RTEMS Version
+#
+%define rtems_version 4.11
+
+#
+# The RTEMS URL paths.
+#
+%include rtems-urls.bset
+
+#
+# Build readline.
+#
+devel/readline-6.3-1.cfg
diff --git a/rtems/config/devel/readline-6.3-1.cfg b/rtems/config/devel/readline-6.3-1.cfg
new file mode 100644
index 0000000..7a8e069
--- /dev/null
+++ b/rtems/config/devel/readline-6.3-1.cfg
@@ -0,0 +1,21 @@
+#
+# readline
+#
+
+%if %{release} == %{nil}
+ %define release 1
+%endif
+
+%include %{_configdir}/rtems-bsp.cfg
+
+#
+# libjpeg Version
+#
+%define readline_version 6.3
+
+%hash md5 readline-%{readline_version}.tar.gz 33c8fb279e981274f485fd91da77e94a
+
+#
+# libjpeg Build configuration
+#
+%include %{_configdir}/readline-1.cfg
diff --git a/source-builder/config/readline-1.cfg b/source-builder/config/readline-1.cfg
new file mode 100644
index 0000000..d46c663
--- /dev/null
+++ b/source-builder/config/readline-1.cfg
@@ -0,0 +1,78 @@
+#
+# readline
+#
+# This configuration file configure's, make's and install's readline.
+#
+
+%if %{release} == %{nil}
+%define release 1
+%endif
+
+Name:      readline-%{readline_version}-%{_host}-%{release}
+Summary:   readline is the GNU curses library 
+Version:   %{readline_version}
+Release:   %{release}
+URL: 	   http://www.gnu.org/software/readline/
+BuildRoot: %{_tmppath}/%{name}-root-%(%{__id_u} -n)
+
+#
+# AVL Source
+#
+%source set readline ftp://ftp.cwru.edu/pub/bash/readline-%{readline_version}.tar.gz
+
+#
+# Prepare the source code.
+#
+%prep
+  build_top=$(pwd)
+
+  source_dir_readline="readline-%{readline_version}"
+  %source setup readline -q -n readline-%{readline_version}
+  %patch setup readline -p1
+
+  cd ${build_top}
+
+
+#
+# Running make distclean cleans up documentation files that require
+# special tools to regenerate.  Work around this problem by just
+# copying the documentation files from another directory.
+#
+%build
+  build_top=$(pwd)
+
+  %{build_directory}
+
+  mkdir -p ${build_dir}
+  cd ${build_dir}
+
+  %{host_build_flags}
+
+  # rtems-addon-packages also had CXX="$(CC)" before configure
+  bash_cv_have_mbstate_t=yes \
+    ../${source_dir_readline}/configure \
+      --host=%{_host} \
+      --prefix=%{_prefix} \
+      --bindir=%{_bindir} \
+      --exec_prefix=%{_exec_prefix} \
+      --includedir=%{_includedir} \
+      --libdir=%{_libdir} \
+      --libexecdir=%{_libexecdir} \
+      --mandir=%{_mandir} \
+      --infodir=%{_infodir} \
+      --datadir=%{_datadir} \
+      --disable-shared \
+      --enable-static
+
+  %{__make} %{?_smp_mflags} all
+
+  cd ${build_top}
+
+%install
+  build_top=$(pwd)
+
+  %{__rmdir} $SB_BUILD_ROOT
+
+  cd ${build_dir}
+  %{__make} DESTDIR=$SB_BUILD_ROOT install
+  cd ${build_top}
-- 
1.7.1




More information about the devel mailing list