Skip to content

Commit

Permalink
Fix RDK launcher to read binary from install folder (youtube#1818)
Browse files Browse the repository at this point in the history
Fix a bug where the launcher script copies the binaries from.
The correct path is install/lib.

b/293172465
  • Loading branch information
maxz-lab authored Oct 18, 2023
1 parent 36a22d7 commit 347ec94
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions starboard/evergreen/shared/launcher.py
Original file line number Diff line number Diff line change
Expand Up @@ -282,8 +282,6 @@ def _StageTargetsAndContentsRaspi(self):

def _StageTargetsAndContentsRdk(self):
"""Stage targets and their contents for GN builds for RDK platforms."""
content_subdir = os.path.join('usr', 'share', 'cobalt')

# The rdk loader always loads libcobalt.so. Hard code target_name to match.
rdk_target_name = 'cobalt'

Expand All @@ -300,7 +298,8 @@ def _StageTargetsAndContentsRdk(self):
shutil.copytree(target_content_src, target_content_dst)

shlib_name = f'lib{self.target_name}.so'
target_binary_src = os.path.join(self.out_directory, shlib_name)
target_binary_src = os.path.join(self.out_directory, 'install', 'lib',
shlib_name)
target_binary_dst = os.path.join(target_staging_dir, 'lib',
f'lib{rdk_target_name}.so')

Expand Down

0 comments on commit 347ec94

Please sign in to comment.