summaryrefslogtreecommitdiffstats
path: root/source-builder/config/lwip-1.cfg
blob: ef736c17aee278616a97c2e5e9687ef5b956ce38 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
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

#
# LWIP Source
#
%source set lwip http://git.savannah.gnu.org/cgit/lwip.git/snapshot/lwip-%{lwip_version}.tar.gz

#
# Prepare the source code.
#
%prep
  build_top=$(pwd)

  source_dir_lwip="lwip-%{lwip_version}"
  %source setup lwip -q -n lwip-%{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-%{lwip_version}
  export RTEMS_MAKEFILE_PATH=%{_exec_prefix}
  %{__make} all

#  cd ${build_top}

#%install
  build_top=$(pwd)/lwip-%{lwip_version}

  %{__make} install