mirror of
https://git.yoctoproject.org/poky
synced 2026-05-31 12:49:46 +00:00
gstreamer-plugins: Change anonymous python structure
This change ensures that the SRC_URI is set before base.bbclass code is called. This will also ensure that the xz-native depends is set correct. [YOCTO #5127] (From OE-Core rev: 787335494dc0a3f93d9bf5a6cf1b603c8675df66) Signed-off-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
5f2748e492
commit
82914e5dfb
@@ -30,7 +30,9 @@ oe_runconf_prepend() {
|
|||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
python __anonymous () {
|
SRC_URI = "${@get_gst_srcuri(d)}"
|
||||||
|
|
||||||
|
def get_gst_srcuri(d):
|
||||||
# check if expected prefix is present
|
# check if expected prefix is present
|
||||||
prefix = "gstreamer1.0-"
|
prefix = "gstreamer1.0-"
|
||||||
bpn = d.getVar("BPN", True)
|
bpn = d.getVar("BPN", True)
|
||||||
@@ -43,10 +45,10 @@ python __anonymous () {
|
|||||||
branch = d.getVar("GSTREAMER_1_0_GIT_BRANCH", True)
|
branch = d.getVar("GSTREAMER_1_0_GIT_BRANCH", True)
|
||||||
|
|
||||||
if pv == "git":
|
if pv == "git":
|
||||||
d.setVar("SRC_URI", "git://anongit.freedesktop.org/gstreamer/%s;branch=%s" % (gstpkg_basename, branch))
|
s = "git://anongit.freedesktop.org/gstreamer/%s;branch=%s" % (gstpkg_basename, branch)
|
||||||
else:
|
else:
|
||||||
d.setVar("SRC_URI", "http://gstreamer.freedesktop.org/src/%s/%s-%s.tar.xz" % (gstpkg_basename, gstpkg_basename, pv))
|
s = "http://gstreamer.freedesktop.org/src/%s/%s-%s.tar.xz" % (gstpkg_basename, gstpkg_basename, pv)
|
||||||
}
|
return s
|
||||||
|
|
||||||
delete_liblink_m4_file() {
|
delete_liblink_m4_file() {
|
||||||
# This m4 file contains nastiness which conflicts with libtool 2.2.2
|
# This m4 file contains nastiness which conflicts with libtool 2.2.2
|
||||||
|
|||||||
Reference in New Issue
Block a user