mirror of
https://git.rtems.org/rtems-source-builder
synced 2024-10-09 07:15:10 +08:00
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:
parent
9092cce4a0
commit
3a3069e83c
20
rtems/config/4.11/net/lwip.bset
Normal file
20
rtems/config/4.11/net/lwip.bset
Normal 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
|
27
rtems/config/net/lwip-1-1.cfg
Normal file
27
rtems/config/net/lwip-1-1.cfg
Normal 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
|
53
source-builder/config/lwip-1.cfg
Normal file
53
source-builder/config/lwip-1.cfg
Normal 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
|
Loading…
x
Reference in New Issue
Block a user