lwIP configuration & build files

Patch to build lwip with RTEMS Resource builder. It builds the lwip sources and creates a library.
This commit is contained in:
ragunath 2015-08-09 04:43:43 -05:00 committed by Joel Sherrill
parent 9092cce4a0
commit 3a3069e83c
3 changed files with 100 additions and 0 deletions

View File

@ -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

View File

@ -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

View File

@ -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