[PATCH] lwIP configuration & build files
Ragunath
ragunath3252 at gmail.com
Sun Aug 9 09:43:43 UTC 2015
From: ragunath <ragunath3252 at gmail.com>
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 | 54 ++++++++++++++++++++++++++++++++++++++++
3 files changed, 101 insertions(+)
create mode 100644 rtems/config/4.11/net/lwip.bset
create mode 100644 rtems/config/net/lwip-1-1.cfg
create mode 100644 source-builder/config/lwip-1.cfg
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..a90fde1
--- /dev/null
+++ b/source-builder/config/lwip-1.cfg
@@ -0,0 +1,54 @@
+#
+# 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
+
--
1.9.1
More information about the devel
mailing list