<p>srs_andre has uploaded this change for <strong>review</strong>.</p><p><a href="https://gerrit.osmocom.org/c/osmo-gsm-tester/+/24045">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">jenkins-build-amarisoft: adjusting lib name to srsran and update versions<br><br>fix rename of srslte to srsran libs and also update Amarisoft<br>versions.<br><br>Change-Id: I2174aec3c7ded8c966877a87f4cc6a39ce1325c2<br>---<br>M contrib/jenkins-build-amarisoft.sh<br>1 file changed, 26 insertions(+), 12 deletions(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://gerrit.osmocom.org:29418/osmo-gsm-tester refs/changes/45/24045/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/contrib/jenkins-build-amarisoft.sh b/contrib/jenkins-build-amarisoft.sh</span><br><span>index 1ed7d7d..fec77fd 100755</span><br><span>--- a/contrib/jenkins-build-amarisoft.sh</span><br><span>+++ b/contrib/jenkins-build-amarisoft.sh</span><br><span>@@ -36,23 +36,29 @@</span><br><span> rm -rf inst-tmp && mkdir inst-tmp</span><br><span> rm -rf inst-tmp-uhd && mkdir inst-tmp-uhd</span><br><span> tar -zxf $amarisoft_tgz -C inst-tmp/</span><br><span style="color: hsl(0, 100%, 40%);">-tar -zxf inst-tmp/*/trx_uhd*.tar.gz -C inst-tmp/</span><br><span style="color: hsl(120, 100%, 40%);">+for file in inst-tmp/*/trx_uhd*.tar.gz; do tar -zxf "$file" -C inst-tmp/; done</span><br><span> </span><br><span> # Build trx_uhd.so:</span><br><span style="color: hsl(0, 100%, 40%);">-cd ${base}/inst-tmp/trx_uhd-linux*/</span><br><span style="color: hsl(0, 100%, 40%);">-make</span><br><span style="color: hsl(0, 100%, 40%);">-cd ${base}</span><br><span style="color: hsl(120, 100%, 40%);">+for path in ${base}/inst-tmp/trx_uhd-linux*/; do (cd "$path"; make; cd ${base}); done</span><br><span> </span><br><span> # Create amarisoftenb inst:</span><br><span> rm -rf inst-amarisoftenb && mkdir inst-amarisoftenb || exit 1</span><br><span> tar --strip-components=1 -zxf inst-tmp/*/lteenb-linux*.tar.gz -C inst-amarisoftenb/</span><br><span> if [ "x${BUILD_AMARISOFT_TRX_ZMQ}" = "x1" ]; then</span><br><span style="color: hsl(0, 100%, 40%);">-        cp ${base}/${project_name_srslte}/build/lib/src/phy/rf/libsrslte_rf.so inst-amarisoftenb/</span><br><span style="color: hsl(0, 100%, 40%);">-        cp ${base}/${project_name_zmq}/build/libtrx_zmq-linux-2018-10-18.so inst-amarisoftenb/trx_zmq.so</span><br><span style="color: hsl(120, 100%, 40%);">+        cp ${base}/${project_name_srslte}/build/lib/src/phy/rf/libsrsran_rf.so inst-amarisoftenb/</span><br><span style="color: hsl(120, 100%, 40%);">+        cp ${base}/${project_name_zmq}/build/libtrx_zmq-linux-2021-03-15.so inst-amarisoftenb/trx_zmq.so</span><br><span>         patchelf --set-rpath '$ORIGIN/' inst-amarisoftenb/trx_zmq.so</span><br><span style="color: hsl(0, 100%, 40%);">-        cd inst-amarisoftenb && ln -s libsrslte_rf.so libsrslte_rf.so.0 && cd ..</span><br><span style="color: hsl(120, 100%, 40%);">+        cd inst-amarisoftenb && ln -s libsrsran_rf.so libsrsran_rf.so.0 && cd ..</span><br><span> fi</span><br><span style="color: hsl(0, 100%, 40%);">-cp ${base}/inst-tmp/trx_uhd-linux*/trx_uhd.so inst-amarisoftenb/</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+# Untar trx_sdr and copy the libraries to enb.</span><br><span style="color: hsl(120, 100%, 40%);">+tar -xzf inst-tmp/*/trx_sdr*.tar.gz -C inst-tmp/</span><br><span style="color: hsl(120, 100%, 40%);">+cp ${base}/inst-tmp/trx_sdr-linux-2021-03-15/trx_sdr.so inst-amarisoftenb/</span><br><span style="color: hsl(120, 100%, 40%);">+cp ${base}/inst-tmp/trx_sdr-linux-2021-03-15/libsdr.so inst-amarisoftenb/</span><br><span style="color: hsl(120, 100%, 40%);">+cp ${base}/inst-tmp/trx_sdr-linux-2021-03-15/libc_wrapper_sdr.so inst-amarisoftenb/</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+# Copy the uhd library and create the tarball.</span><br><span style="color: hsl(120, 100%, 40%);">+cp ${base}/inst-tmp/trx_uhd-linux-2021-03-15/trx_uhd.so inst-amarisoftenb/</span><br><span> this="amarisoftenb.build-${BUILD_NUMBER-$(date +%Y-%m-%d_%H_%M_%S)}"</span><br><span> tar="${this}.tgz"</span><br><span> tar -czf "$tar" -C inst-amarisoftenb/ .</span><br><span>@@ -61,14 +67,14 @@</span><br><span> # Create amarisoftue inst:</span><br><span> if [ "x${HAVE_AMARISOFT_LTEUE}" = "x1" ]; then</span><br><span>         rm -rf inst-amarisoftue && mkdir inst-amarisoftue || exit 1</span><br><span style="color: hsl(0, 100%, 40%);">-        tar --strip-components=1 -zxf inst-tmp/*/lteue-linux*.tar.gz -C inst-amarisoftue/</span><br><span style="color: hsl(120, 100%, 40%);">+        tar --strip-components=1 -zxf inst-tmp/*/lteue-linux-2018-10-18.tar.gz -C inst-amarisoftue/</span><br><span>         if [ "x${BUILD_AMARISOFT_TRX_ZMQ}" = "x1" ]; then</span><br><span style="color: hsl(0, 100%, 40%);">-                cp ${base}/${project_name_srslte}/build/lib/src/phy/rf/libsrslte_rf.so inst-amarisoftue/</span><br><span style="color: hsl(120, 100%, 40%);">+                cp ${base}/${project_name_srslte}/build/lib/src/phy/rf/libsrsran_rf.so inst-amarisoftue/</span><br><span>                 cp ${base}/${project_name_zmq}/build/libtrx_zmq-linux-2018-10-18.so inst-amarisoftue/trx_zmq.so</span><br><span>                 patchelf --set-rpath '$ORIGIN/' inst-amarisoftue/trx_zmq.so</span><br><span style="color: hsl(0, 100%, 40%);">-                cd inst-amarisoftue && ln -s libsrslte_rf.so libsrslte_rf.so.0 && cd ..</span><br><span style="color: hsl(120, 100%, 40%);">+                cd inst-amarisoftue && ln -s libsrsran_rf.so libsrsran_rf.so.0 && cd ..</span><br><span>         fi</span><br><span style="color: hsl(0, 100%, 40%);">-        cp ${base}/inst-tmp/trx_uhd-linux*/trx_uhd.so inst-amarisoftue/</span><br><span style="color: hsl(120, 100%, 40%);">+        cp ${base}/inst-tmp/trx_uhd-linux-2018-10-18/trx_uhd.so inst-amarisoftue/</span><br><span>         this="amarisoftue.build-${BUILD_NUMBER-$(date +%Y-%m-%d_%H_%M_%S)}"</span><br><span>         tar="${this}.tgz"</span><br><span>         tar -czf "$tar" -C inst-amarisoftue/ .</span><br><span>@@ -78,8 +84,16 @@</span><br><span> # Create amarisoftepc inst:</span><br><span> rm -rf inst-amarisoftepc && mkdir inst-amarisoftepc || exit 1</span><br><span> tar --strip-components=1 -zxf inst-tmp/*/ltemme-linux*.tar.gz -C inst-amarisoftepc/</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+# place newer libssl-1.1 and libcrypto-1.1 for older OS distributions inside the EPC folder</span><br><span style="color: hsl(120, 100%, 40%);">+cp inst-tmp/*/libs/libssl* inst-amarisoftepc/</span><br><span style="color: hsl(120, 100%, 40%);">+cp inst-tmp/*/libs/libcrypto* inst-amarisoftepc/</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span> # Copy ltesim_server from UE package if available</span><br><span> if [ "x${HAVE_AMARISOFT_LTEUE}" = "x1" ]; then</span><br><span style="color: hsl(120, 100%, 40%);">+        # Untar newer lteue version for fresh ltesim_server (2018 uses libssl-1.0.0)</span><br><span style="color: hsl(120, 100%, 40%);">+        rm -rf inst-amarisoftue && mkdir inst-amarisoftue || exit 1</span><br><span style="color: hsl(120, 100%, 40%);">+        tar --strip-components=1 -zxf inst-tmp/*/lteue-linux-2021-03-15.tar.gz -C inst-amarisoftue/</span><br><span>         cp inst-amarisoftue/ltesim_server inst-amarisoftepc/</span><br><span> fi</span><br><span> this="amarisoftepc.build-${BUILD_NUMBER-$(date +%Y-%m-%d_%H_%M_%S)}"</span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.osmocom.org/c/osmo-gsm-tester/+/24045">change 24045</a>. To unsubscribe, or for help writing mail filters, visit <a href="https://gerrit.osmocom.org/settings">settings</a>.</p><div itemscope itemtype="http://schema.org/EmailMessage"><div itemscope itemprop="action" itemtype="http://schema.org/ViewAction"><link itemprop="url" href="https://gerrit.osmocom.org/c/osmo-gsm-tester/+/24045"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: osmo-gsm-tester </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-Change-Id: I2174aec3c7ded8c966877a87f4cc6a39ce1325c2 </div>
<div style="display:none"> Gerrit-Change-Number: 24045 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: srs_andre <andre@softwareradiosystems.com> </div>
<div style="display:none"> Gerrit-MessageType: newchange </div>