summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorragunath <ragunath3252@gmail.com>2015-08-09 04:43:43 -0500
committerJoel Sherrill <joel.sherrill@oarcorp.com>2015-08-11 09:45:02 -0500
commit3a3069e83c76afb1c51c26d35e54eab09b2aa8ae (patch)
tree4d8e25a1f9d1002c020555b827f4f183f7e2a488
parentRevert "add t1lib patch" (diff)
downloadrtems-source-builder-3a3069e83c76afb1c51c26d35e54eab09b2aa8ae.tar.bz2
lwIP configuration & build files
Patch to build lwip with RTEMS Resource builder. It builds the lwip sources and creates a library.
-rw-r--r--rtems/config/4.11/net/lwip.bset20
-rw-r--r--rtems/config/net/lwip-1-1.cfg27
-rw-r--r--source-builder/config/lwip-1.cfg53
3 files changed, 100 insertions, 0 deletions
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