mirror of
https://github.com/motioneye-project/motioneyeos.git
synced 2025-07-26 20:56:33 +00:00
support/testing: strip /usr/ part from HOST_DIR
Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
This commit is contained in:
parent
2a47bd37b5
commit
73e7bcdd87
@ -55,7 +55,7 @@ def get_elf_arch_tag(builddir, prefix, fpath, tag):
|
|||||||
v5TEJ
|
v5TEJ
|
||||||
>>>
|
>>>
|
||||||
"""
|
"""
|
||||||
cmd = ["host/usr/bin/{}-readelf".format(prefix),
|
cmd = ["host/bin/{}-readelf".format(prefix),
|
||||||
"-A", os.path.join("target", fpath)]
|
"-A", os.path.join("target", fpath)]
|
||||||
out = subprocess.check_output(cmd, cwd=builddir, env={"LANG": "C"})
|
out = subprocess.check_output(cmd, cwd=builddir, env={"LANG": "C"})
|
||||||
regexp = re.compile("^ {}: (.*)$".format(tag))
|
regexp = re.compile("^ {}: (.*)$".format(tag))
|
||||||
@ -80,7 +80,7 @@ def get_elf_prog_interpreter(builddir, prefix, fpath):
|
|||||||
/lib/ld-linux-armhf.so.3
|
/lib/ld-linux-armhf.so.3
|
||||||
>>>
|
>>>
|
||||||
"""
|
"""
|
||||||
cmd = ["host/usr/bin/{}-readelf".format(prefix),
|
cmd = ["host/bin/{}-readelf".format(prefix),
|
||||||
"-l", os.path.join("target", fpath)]
|
"-l", os.path.join("target", fpath)]
|
||||||
out = subprocess.check_output(cmd, cwd=builddir, env={"LANG": "C"})
|
out = subprocess.check_output(cmd, cwd=builddir, env={"LANG": "C"})
|
||||||
regexp = re.compile("^ *\[Requesting program interpreter: (.*)\]$")
|
regexp = re.compile("^ *\[Requesting program interpreter: (.*)\]$")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user