summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicolas Dufresne <nicolas.dufresne@collabora.com>2019-05-06 16:07:28 -0400
committerNirbheek Chauhan <nirbheek@centricular.com>2020-01-04 07:18:53 +0530
commitb26f7013fa62216dbc973057a582b7719897aca9 (patch)
tree8fd03ab8f0495a8af86beab8c2650ee5c861cfa2
parent4f80014e89209dca0906f6ae777f452b8b747890 (diff)
uninstalled: Add an option to strip off the sysroot path
As the data from meson is no longer relative path, it is not longer possible to move gst-build around and run gst-uninstalled.py. This broke cross-compilation usage, where you build on a host and run over NFS on target. This adds an option to tell the script to strip off the host path to the sysroot.
-rwxr-xr-xgst-uninstalled.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/gst-uninstalled.py b/gst-uninstalled.py
index 0e7815d..26d0333 100755
--- a/gst-uninstalled.py
+++ b/gst-uninstalled.py
@@ -124,6 +124,8 @@ def get_subprocess_env(options, gst_version):
for target in targets:
filenames = listify(target['filename'])
for filename in filenames:
+ if filename.startswith(options.sysroot):
+ filename = filename[len(options.sysroot):]
root = os.path.dirname(filename)
if srcdir_path / "subprojects/gst-devtools/validate/plugins" in (srcdir_path / root).parents:
continue
@@ -234,6 +236,9 @@ if __name__ == "__main__":
parser.add_argument("--srcdir",
default=SCRIPTDIR,
help="The top level source directory")
+ parser.add_argument("--sysroot",
+ default='',
+ help="The sysroot path used during cross-compilation")
options, args = parser.parse_known_args()
if not os.path.exists(options.builddir):