mirror of
https://git.rtems.org/rtems-source-builder
synced 2024-10-09 07:15:10 +08:00
Add recipe for building rtems-net-legacy
This commit is contained in:
4
rtems/config/6/rtems-net-legacy.bset
Normal file
4
rtems/config/6/rtems-net-legacy.bset
Normal file
@@ -0,0 +1,4 @@
|
||||
#
|
||||
# Legacy networking stack
|
||||
#
|
||||
tools/rtems-net-legacy-6
|
12
rtems/config/tools/rtems-net-legacy-6.cfg
Normal file
12
rtems/config/tools/rtems-net-legacy-6.cfg
Normal file
@@ -0,0 +1,12 @@
|
||||
#
|
||||
# RTEMS Legacy networking stack
|
||||
#
|
||||
|
||||
# branch: main
|
||||
%define rtems_net_version 5713f7027984012ea17cdd582e6d0258ee7aa58a
|
||||
%hash sha512 rtems-net-legacy-%{rtems_net_version}.tar.bz2 \
|
||||
0dwnqZP+j9b2IZ7rqiEBndVkqIsURal4L/47pSI4pe0rz48hmWa78DE0915Gf+/+nvsCMB2I/sFAMj+P6AjeeA==
|
||||
%define rtems_waf_version 1a118bbcd52138dbdc3236e64bc23fd430a064b1
|
||||
%hash sha512 rtems-waf-%{rtems_waf_version}.tar.bz2 \
|
||||
wHiMBCaJjnNd8EEnbl5A9qyGwcQ5E+BcG9Q5SwJmlbarcrQ4U6//Q2ni2XNyXtWQzzy959o6YSg8PvVjgEi0vg==
|
||||
%include tools/rtems-net-legacy-common.cfg
|
78
rtems/config/tools/rtems-net-legacy-common.cfg
Normal file
78
rtems/config/tools/rtems-net-legacy-common.cfg
Normal file
@@ -0,0 +1,78 @@
|
||||
#
|
||||
# RTEMS Legacy networking stack
|
||||
#
|
||||
# This configuration file configure's, build's and install's linetworking.a.
|
||||
#
|
||||
|
||||
%if %{release} == %{nil}
|
||||
%define release 1
|
||||
%endif
|
||||
|
||||
Name: rtems-net-legacy-%{rtems_net_version}-%{_host}-%{release}
|
||||
Summary: RTEMS net legacy provides legacy networking stack from RTEMS 5 and earlier
|
||||
Version: %{rtems_net_version}
|
||||
Release: %{release}
|
||||
URL: https://git.rtems.org/rtems-net-legacy.git/
|
||||
|
||||
|
||||
%if %{rsb_released}
|
||||
%define rtems_net_version %{rsb_version}
|
||||
%define rtems_net_ext xz
|
||||
%else
|
||||
%define rtems_net_ext bz2
|
||||
%endif
|
||||
|
||||
#
|
||||
# RTEMS BSP support.
|
||||
#
|
||||
%include rtems-bsp.cfg
|
||||
|
||||
#
|
||||
# Net legacy Source from github.
|
||||
#
|
||||
%source set rtems_net_legacy \
|
||||
https://git.rtems.org/rtems-net-legacy/snapshot/rtems-net-legacy-%{rtems_net_version}.tar.%{rtems_net_ext}
|
||||
%if !%{rsb_released}
|
||||
%source set rtems_waf \
|
||||
https://git.rtems.org/rtems_waf/snapshot/rtems_waf-%{rtems_waf_version}.tar.%{rtems_net_ext}
|
||||
%endif
|
||||
|
||||
#
|
||||
# Prepare the source code.
|
||||
#
|
||||
%prep
|
||||
build_top=$(pwd)
|
||||
|
||||
source_dir_net_legacy="rtems-net-legacy-%{rtems_net_version}"
|
||||
%source setup rtems_net_legacy -q -n rtems-net-legacy-%{rtems_net_version}
|
||||
%source setup rtems_waf -q -s 1 -c -a -n rtems-net-legacy-%{rtems_net_version}/rtems_waf
|
||||
cd ${build_top}
|
||||
|
||||
#
|
||||
# Build the source code.
|
||||
#
|
||||
%build
|
||||
build_top=$(pwd)
|
||||
|
||||
%{host_build_flags}
|
||||
|
||||
cd ${source_dir_net_legacy}
|
||||
|
||||
./waf distclean configure \
|
||||
--prefix=%{_prefix} \
|
||||
%{rtems_waf_tools} \
|
||||
%{rtems_waf_rtems} \
|
||||
--rtems-bsp=%{rtems_bsp_arch_bsp}
|
||||
|
||||
./waf
|
||||
|
||||
cd ${build_top}
|
||||
|
||||
%install
|
||||
build_top=$(pwd)
|
||||
|
||||
%{__rmdir} ${SB_BUILD_ROOT}
|
||||
|
||||
cd ${source_dir_net_legacy}
|
||||
./waf --destdir=$SB_BUILD_ROOT%{rtems_waf_build_root_suffix} install
|
||||
cd ${build_top}
|
Reference in New Issue
Block a user