[rtems-source-builder commit] lwIP configuration & build files

Joel Sherril joel at rtems.org
Tue Aug 11 14:45:30 UTC 2015


Module:    rtems-source-builder
Branch:    master
Commit:    3a3069e83c76afb1c51c26d35e54eab09b2aa8ae
Changeset: http://git.rtems.org/rtems-source-builder/commit/?id=3a3069e83c76afb1c51c26d35e54eab09b2aa8ae

Author:    ragunath <ragunath3252 at gmail.com>
Date:      Sun Aug  9 04:43:43 2015 -0500

lwIP configuration & build files

Patch to build lwip with RTEMS Resource builder. It builds the lwip sources and creates a library.

---

 rtems/config/4.11/net/lwip.bset  | 20 +++++++++++++++
 rtems/config/net/lwip-1-1.cfg    | 27 ++++++++++++++++++++
 source-builder/config/lwip-1.cfg | 53 ++++++++++++++++++++++++++++++++++++++++
 3 files changed, 100 insertions(+)

diff --git a/rtems/config/4.11/net/lwip.bset b/rtems/config/4.11/net/lwip.bset
new file mode 100644
index 0000000..71f7841
--- /dev/null
+++ b/rtems/config/4.11/net/lwip.bset
@@ -0,0 +1,20 @@
+#
+# Build set for LWIP
+#
+
+%define release 1
+
+#
+# RTEMS Version
+#
+%define rtems_version 4.11
+
+#
+# The RTEMS URL paths.
+#
+%include rtems-urls.bset
+
+#
+# Build LWIP.
+#
+net/lwip-1-1.cfg
diff --git a/rtems/config/net/lwip-1-1.cfg b/rtems/config/net/lwip-1-1.cfg
new file mode 100644
index 0000000..cf25963
--- /dev/null
+++ b/rtems/config/net/lwip-1-1.cfg
@@ -0,0 +1,27 @@
+#
+#  LWIP MASTER
+#
+
+%if %{release} == %{nil}
+ %define release 1
+%endif
+
+%include %{_configdir}/rtems-bsp.cfg
+
+#
+# LWIP Version
+#
+%define lwip_version lwip-c2ebf5544b4268eac9b32c7f3a689ff646d96eef
+
+#Will be modified to be pointing to RTEMS repo
+%define rtems_ragu_git https://raw.githubusercontent.com/ragunath3252/lwip-nodrv/master
+#
+# Patch for RTEMS support.
+#
+%patch add lwip %{rtems_ragu_git}/rtems.patch
+%hash  md5 rtems.patch 489c0def3a89e538fb526a5396bf27ca
+
+#
+# LWIP Build configuration
+#
+%include %{_configdir}/lwip-1.cfg
diff --git a/source-builder/config/lwip-1.cfg b/source-builder/config/lwip-1.cfg
new file mode 100644
index 0000000..226a5d9
--- /dev/null
+++ b/source-builder/config/lwip-1.cfg
@@ -0,0 +1,53 @@
+#
+# LWIP MASTER  Version 1. commit -- c2ebf5544b4268eac9b32c7f3a689ff646d96eef
+#
+# This configuration file configure's, make's and install's LWIP.
+#
+
+%if %{release} == %{nil}
+%define release 1
+%endif
+
+Name:      lwip-%{lwip_version}-%{_host}-%{release}
+Summary:   Light weight TCP/IP stack
+Version:   %{lwip_version}
+Release:   %{release}
+URL: 	   http://git.savannah.gnu.org/cgit/lwip.git
+BuildRoot: %{_tmppath}/%{name}-root-%(%{__id_u} -n)
+
+#
+# LWIP Source
+#
+%source set lwip git://git.sv.gnu.org/lwip.git?fetch?reset=hard?branch=master?checkout=c2ebf5544b4268eac9b32c7f3a689ff646d96eef
+#
+# Prepare the source code.
+#
+%prep
+  build_top=$(pwd)
+
+  source_dir_lwip="%{lwip_version}"
+  %source setup lwip -q -n %{lwip_version}
+  %patch setup lwip -p1
+
+  cd ${build_top}
+
+%build
+  build_top=$(pwd)
+
+  %{build_directory}
+
+  mkdir -p ${build_dir}
+  cd ${build_dir}
+
+  %{host_build_flags}
+
+  cd ${build_top}/%{lwip_version}
+  export RTEMS_MAKEFILE_PATH=%{_exec_prefix}
+  %{__make} all
+
+#  cd ${build_top}
+
+#%install
+  build_top=$(pwd)/%{lwip_version}
+
+  %{__make} install



More information about the vc mailing list