Change in osmo-gsm-tester[master]: srs-enb: patches the binary in fapi rf device with the given library_...

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.

Alejandro Leal gerrit-no-reply at lists.osmocom.org
Wed May 19 14:38:57 UTC 2021


Alejandro Leal has uploaded this change for review. ( https://gerrit.osmocom.org/c/osmo-gsm-tester/+/24281 )


Change subject: srs-enb: patches the binary in fapi rf device with the given library_path.
......................................................................

srs-enb: patches the binary in fapi rf device with the given library_path.

Patches the srsenb rpath with the path provided by the variable 'library_path' in the resources schema.

Change-Id: Icd7689a41a1c5fe8e4c427f3b9bc69b3f2b0f8ac
---
M src/osmo_gsm_tester/obj/enb_srs.py
1 file changed, 12 insertions(+), 0 deletions(-)



  git pull ssh://gerrit.osmocom.org:29418/osmo-gsm-tester refs/changes/81/24281/1

diff --git a/src/osmo_gsm_tester/obj/enb_srs.py b/src/osmo_gsm_tester/obj/enb_srs.py
index 9664727..98f2edf 100644
--- a/src/osmo_gsm_tester/obj/enb_srs.py
+++ b/src/osmo_gsm_tester/obj/enb_srs.py
@@ -30,6 +30,7 @@
 
 def on_register_schemas():
     resource_schema = {
+        'library_path': schema.STR,
         'prerun_scripts[]': schema.STR,
         'postrun_scripts[]': schema.STR,
         }
@@ -391,6 +392,17 @@
             self.rem_host.scp('scp-cfg-rr-to-remote', self.config_rr_file, self.remote_config_rr_file)
             self.rem_host.scp('scp-cfg-drb-to-remote', self.config_drb_file, self.remote_config_drb_file)
 
+            # Patchelf for fapi
+            if self._conf.get('rf_dev_type') == 'fapi':
+                remote_binary = self.remote_inst.child('bin', srsENB.BINFILE)
+                path = self._conf.get('library_path', None)
+                if not path:
+                    raise log.Error('Shared libraries path not specified. Aborting')
+                    return 
+
+                self.log(f'Setting RPATH for FAPI enb to {path}, binary: {remote_binary}')
+                self.rem_host.change_elf_force_rpath(remote_binary, path)
+
     def ue_add(self, ue):
         if self.ue is not None:
             raise log.Error("More than one UE per ENB not yet supported (ZeroMQ)")

-- 
To view, visit https://gerrit.osmocom.org/c/osmo-gsm-tester/+/24281
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings

Gerrit-Project: osmo-gsm-tester
Gerrit-Branch: master
Gerrit-Change-Id: Icd7689a41a1c5fe8e4c427f3b9bc69b3f2b0f8ac
Gerrit-Change-Number: 24281
Gerrit-PatchSet: 1
Gerrit-Owner: Alejandro Leal <alejandro.leal at srs.io>
Gerrit-MessageType: newchange
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20210519/ba0bd97a/attachment.htm>


More information about the gerrit-log mailing list