[PATCH rtems_rsb 1/4] Initial step to build EPICS

Mritunjay Sharma mritunjaysharma394 at gmail.com
Thu Jul 23 21:17:17 UTC 2020


Signed-off-by: Mritunjay Sharma <mritunjaysharma394 at gmail.com>
---
 source-builder/config/epics-7-1.cfg | 65 +++++++++++++++++++++++++++++
 1 file changed, 65 insertions(+)
 create mode 100644 source-builder/config/epics-7-1.cfg

diff --git a/source-builder/config/epics-7-1.cfg b/source-builder/config/epics-7-1.cfg
new file mode 100644
index 0000000..fe1fb45
--- /dev/null
+++ b/source-builder/config/epics-7-1.cfg
@@ -0,0 +1,65 @@
+#
+# EPICS 7.x.x Version 1.
+#
+# This configuration file configure's, make's and install's EPICS.
+#
+
+%if %{release} == %{nil}
+%define release 1
+%endif
+
+%define epics_version 3afec267ab08568ea454789e562450b00feea5c0
+
+Name:      epics-%{epics_version}-%{_host}-%{release}
+Summary:   EPICS v%{epics_version} for target %{_target} on host %{_host}
+Version:   %{epics_version}
+Release:   %{release}
+URL: 	  https://epics.mpg.de/
+
+#
+# Source
+#
+%source set epics --rsb-file=epics-%{epics_version}.zip https://github.com/hjunkes/epicsBaseOwnPlayground/archive/%{epics_version}.zip
+
+#
+# Prepare the source code.
+#
+%prep
+  build_top=$(pwd)
+
+  source_dir_epics="epics-%{epics_version}"
+
+  %source setup epics -q -n epics-%{epics_version}
+
+  cd ${build_top}
+
+%build
+  build_top=$(pwd)
+
+    
+
+  %{build_directory}
+
+  mkdir -p ${build_dir}
+  cd ${build_dir}
+
+  %{host_build_flags}
+
+  #cd ${source_dir_epics}
+
+  ./configure \
+    --prefix=%{_prefix}
+
+  %{__make} %{?_smp_mflags}
+
+  cd ${build_top}
+
+%install
+  build_top=$(pwd)
+
+  rm -rf $SB_BUILD_ROOT
+
+  cd ${source_dir_epics}
+  %{__make} DESTDIR=$SB_BUILD_ROOT PREFIX=%{_prefix} install
+
+  cd ${build_top}
-- 
2.25.1



More information about the devel mailing list