<div dir="ltr"><div class="gmail_quote">From: Nikolaos Tsiogkas <<a href="mailto:niko@intermodalics.eu" target="_blank">niko@intermodalics.eu</a>><br>
<br></div><div class="gmail_quote">Adds support for EtherCAT SOEM to RTEMS 5. Requires rtems-libbsd.<br>
---<br>
rtems/config/net/soem-master.cfg | 23 ++++++++++++++<br>
rtems/config/net/soem.bset | 15 +++++++++<br>
source-builder/config/soem.cfg | 69 ++++++++++++++++++++++++++++++++++++++++<br>
3 files changed, 107 insertions(+)<br>
create mode 100644 rtems/config/net/soem-master.cfg<br>
create mode 100644 rtems/config/net/soem.bset<br>
create mode 100644 source-builder/config/soem.cfg<br>
<br>
diff --git a/rtems/config/net/soem-master.cfg b/rtems/config/net/soem-master.cfg<br>
new file mode 100644<br>
index 0000000..251311f<br>
--- /dev/null<br>
+++ b/rtems/config/net/soem-master.cfg<br>
@@ -0,0 +1,23 @@<br>
+#<br>
+# SOEM<br>
+#<br>
+<br>
+%if %{release} == %{nil}<br>
+ %define release 1<br>
+%endif<br>
+<br>
+%include %{_configdir}/rtems-bsp.cfg<br>
+<br>
+#<br>
+# SOEM Version<br>
+#<br>
+<br>
+#<br>
+# Patch for RTEMS support.<br>
+#<br>
+<br>
+#<br>
+# SOEM Build configuration<br>
+#<br>
+<br>
+%include %{_configdir}/soem.cfg<br>
diff --git a/rtems/config/net/soem.bset b/rtems/config/net/soem.bset<br>
new file mode 100644<br>
index 0000000..aa947d2<br>
--- /dev/null<br>
+++ b/rtems/config/net/soem.bset<br>
@@ -0,0 +1,15 @@<br>
+#<br>
+# Build set for EtherCAT SOEM<br>
+#<br>
+<br>
+%define release 1<br>
+<br>
+#<br>
+# The RTEMS Package defines<br>
+#<br>
+%include rtems-package.bset<br>
+<br>
+#<br>
+# Build SOEM.<br>
+#<br>
+net/soem-master<br>
diff --git a/source-builder/config/soem.cfg b/source-builder/config/soem.cfg<br>
new file mode 100644<br>
index 0000000..8d347a8<br>
--- /dev/null<br>
+++ b/source-builder/config/soem.cfg<br>
@@ -0,0 +1,69 @@<br>
+#<br>
+# SOEM Version 1.<br>
+#<br>
+# This configuration file configures, makes and installs SOEM.<br>
+#<br>
+<br>
+%if %{release} == %{nil}<br>
+ %define release 1<br>
+%endif<br>
+<br>
+Name: soem-%{_host}-%{release}<br>
+Summary: SOEM is a Simple Open EtherCAT Master implementation.<br>
+Version: Master<br>
+Release: %{release}<br>
+URL: <a href="https://openethercatsociety.github.io/" rel="noreferrer" target="_blank">https://openethercatsociety.github.io/</a><br>
+BuildRoot: %{_tmppath}/%{name}-root-%(%{__id_u} -n)<br>
+<br>
+#<br>
+# SOEM<br>
+#<br>
+%source set soem git://<a href="http://github.com/OpenEtherCATsociety/SOEM.git?branch=master" rel="noreferrer" target="_blank">github.com/OpenEtherCATsociety/SOEM.git?branch=master</a><br>
+<br>
+#<br>
+# Prepare the source code.<br>
+#<br>
+%prep<br>
+ build_top=$(pwd)<br>
+<br>
+ source_dir_soem="soem"<br>
+ %source setup soem -q -n soem<br>
+<br>
+ cd ${build_top}<br>
+<br>
+%build<br>
+ build_top=$(pwd)<br>
+<br>
+ %{build_directory}<br>
+<br>
+ mkdir -p ${build_dir}<br>
+ cd ${build_dir}<br>
+<br>
+ %{host_build_flags}<br>
+<br>
+ cmake \<br>
+ -DRTEMS_TOOLS_PATH=%{with_tools} \<br>
+ -DCMAKE_INSTALL_PREFIX=%{_libdir} \<br>
+ -DCMAKE_SYSTEM_NAME=rtems \<br>
+ -DHOST=%{_host} \<br>
+ -DRTEMS_BSP=%{rtems_bsp} \<br>
+ -DINCLUDE_DIR=%{_includedir} \<br>
+ -DLIB_DIR=%{_libdir} \<br>
+ -DHOST_C_FLAGS=%{host_cflags} \<br>
+ -DHOST_CXX_FLAGS=%{host_cxxflags} \<br>
+ -DHOST_LIBS=%{host_libs} \<br>
+ ../${source_dir_soem}<br>
+<br>
+ # SOEM does not build on <a href="http://sync.rtems.org" rel="noreferrer" target="_blank">sync.rtems.org</a> with jobs<br>
+ %{__make} %{?_smp_mflags} all<br>
+<br>
+ cd ${build_top}<br>
+<br>
+%install<br>
+ build_top=$(pwd)<br>
+<br>
+ %{__rmdir} $SB_BUILD_ROOT<br>
+<br>
+ cd ${build_dir}<br>
+ %{__make} DESTDIR=$SB_BUILD_ROOT install<br>
+ cd ${build_top}<br>
-- <br>
2.7.4<br>
<br>
</div></div>