[rtems-source-builder commit] Add recipe for building rtems-net-legacy

Vijay Kumar Banerjee vijay at rtems.org
Wed Mar 10 18:23:54 UTC 2021


Module:    rtems-source-builder
Branch:    master
Commit:    fe2d13b6daf3279ca0f291617ac08e448863c51b
Changeset: http://git.rtems.org/rtems-source-builder/commit/?id=fe2d13b6daf3279ca0f291617ac08e448863c51b

Author:    Vijay Kumar Banerjee <vijay at rtems.org>
Date:      Tue Mar  9 11:24:21 2021 -0700

Add recipe for building rtems-net-legacy

---

 rtems/config/6/rtems-net-legacy.bset           |  4 ++
 rtems/config/tools/rtems-net-legacy-6.cfg      | 12 ++++
 rtems/config/tools/rtems-net-legacy-common.cfg | 78 ++++++++++++++++++++++++++
 3 files changed, 94 insertions(+)

diff --git a/rtems/config/6/rtems-net-legacy.bset b/rtems/config/6/rtems-net-legacy.bset
new file mode 100644
index 0000000..424091c
--- /dev/null
+++ b/rtems/config/6/rtems-net-legacy.bset
@@ -0,0 +1,4 @@
+#
+# Legacy networking stack
+#
+tools/rtems-net-legacy-6
diff --git a/rtems/config/tools/rtems-net-legacy-6.cfg b/rtems/config/tools/rtems-net-legacy-6.cfg
new file mode 100644
index 0000000..fbc7ab8
--- /dev/null
+++ b/rtems/config/tools/rtems-net-legacy-6.cfg
@@ -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
diff --git a/rtems/config/tools/rtems-net-legacy-common.cfg b/rtems/config/tools/rtems-net-legacy-common.cfg
new file mode 100644
index 0000000..a58e152
--- /dev/null
+++ b/rtems/config/tools/rtems-net-legacy-common.cfg
@@ -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}



More information about the vc mailing list