summaryrefslogtreecommitdiff
path: root/poky/bitbake
diff options
context:
space:
mode:
authorPatrick Williams <patrick@stwcx.xyz>2024-01-19 17:49:29 +0300
committerPatrick Williams <patrick@stwcx.xyz>2024-01-23 20:52:36 +0300
commit56b44a9896b5068220cbd7d58795773b750149c8 (patch)
tree26baf5d8f0d7031707b62deab067516b733c915a /poky/bitbake
parent1ada3c2d58691868267415a1ea08dab4a7f54aef (diff)
downloadopenbmc-56b44a9896b5068220cbd7d58795773b750149c8.tar.xz
subtree updates
meta-arm: 5712422011..1cad3c3813: Jon Mason (3): arm/pyhsslms: update to 2.0.0 arm/trusted-firmware-m: update to 2.0.0 arm/opencsd: update to 1.4.2 Ross Burton (2): arm-bsp/documentation: upgrade Sphinx slightly arm/fvp-base-a-aem: upgrade to 11.24.11 Vikas Katariya (2): arm-bsp/n1sdp: Downgrade to 6.1 linux yocto kernel arm-bsp/linux-yocto: Remove EOL Linux yocto kernel 6.5 meta-openembedded: 098dc606f9..4dbbef7a39: Alex Kiernan (1): thin-provisioning-tools: Drop musl fixes (fixed upstream) Derek Straka (9): python3-web3: update to version 6.14.0 python3-engineio: update to version 4.8.2 python3-marshmallow: update to version 3.20.2 python3-apispec: update to version 6.4.0 python3-protobuf: update to version 4.25.1 python3-eth-hash: update to version 0.6.0 python3-google-auth: update to version 2.26.2 python3-socketio: update to version 5.11.0 python3-google-api-python-client: update to version 2.113.0 Fabio Estevam (1): v4l-utils: Update to 1.26.1 Jörg Sommer (1): i2cdev: Fix MUSL build Khem Raj (7): thunar: inherit gtk-doc libxklavier: inherit gtk-doc libwnck: inherit gtk-doc schroedinger: inherit gtk-doc gst-shark: inherit gtk-doc evolution-data-server: Use inherit_defer for native class opencl-icd: Rename rdepends to virtual-opencl-icd Markus Volk (2): flatpak: fix gtk-doc build gvfs: drop gnome-keyring rdepend Peter Marko (1): grpc: correct dependencies Randy MacLeod (1): rng-tools: move from oe-core to meta-oe Ross Burton (9): libuser: fix gtk-doc configure call libuser: remove obsolete GTKDOC_DOCDIR assignment gtksourceview4: remove check for target gtk-doc gtksourceview4: remove obsolete workaround for build failures telepathy-glib: inherit gtk-doc glade: inherit gtk-doc, fix FILES libgxim: inherit gtk-doc gmime: inherit gtk-doc raptor2: inherit gtk-doc Wang Mingyu (3): frr: use update-alternatives for ietf-interfaces.yang libsmi: use update-alternatives for ietf-interfaces.yang frr: Fix install conflict when enable multilib. alperak (1): adcli: use https protocol for fetching poky: 61182659c2..7af374c90c: Alexander Kanavin (3): glib-2.0: ensure GI_DATA_ENABLED is set gobject-introspection-data.bbclass: move do_compile() tweak to g-i class python: update 3.11.5 -> 3.12.1 Alexander Sverdlin (2): linux-firmware: upgrade 20231030 -> 20231211 linux-firmware: package PowerVR firmware André Draszik (1): linux-firmware: split out rockchip/dptx firmware Changhyeok Bae (1): iw: upgrade 5.19 -> 6.7 Etienne Cordonnier (3): package.py: fix Darwin support chrpath.bbclass: fix Darwin support siteinfo.bbclass: add support for darwin19 and darwin21 Fabio Estevam (2): mesa: Upgrade 23.3.2 -> 23.3.3 libdrm: Upgrade to 2.4.120 Joe Slater (1): init-ifupdown: add predictable interface names Kai Kang (1): xserver-xorg: 21.1.9 -> 21.1.11 Khem Raj (3): webkitgtk: Workaround for clang compiler segfault mdadm: Disable 10ddf-fail-spare and 10ddf-fail-stop-readd testcases openssl: Fix build on riscv Ola x Nilsson (2): insane.bbclass: Check for adjtime in check_32_bit_symbols insane.bbclass: Python code cleanup in check_32bit_symbols Petr Vorel (1): iputils: update to 20240117 Randy MacLeod (2): rng-tools: move to meta-oe rng-tools: Revert "rng-tools: move to meta-oe" Richard Purdie (13): bitbake: ast/BBHandler: Add inherit_defer support allarch: Fix allarch corner case rootfs: Fix MULTILIB_RE_ALLOW to be inherit order independent rootfs-postcommands: Try and improve ordering constraints classes/recipes: Switch to use inherit_defer libtool: Update patches to mark as backports libtool: Update nios2 patch to match upstream merged version libtool: Update prefixmap and clang patches to match upstream submission libtool: Update cleanup sysroot handling patch libtool: Update patch offsets libtool: Update further patch status to backport reproducible: Fix race with externalsrc/devtool over lockfile build-appliance-image: Update to master head revision Ross Burton (4): musl: doesn't support riscv32 libunwind: merge .inc and .bb libunwind: refresh patches libunwind: clean up configuration Simone Weiß (1): classes-global/insane: Add check for "virtual/" in RPROVIDES and RDEPENDS Tim Orling (1): python3-alabaster: upgrade 0.7.13 -> 0.7.16 Trevor Woerner (1): bmaptool: add 3 fixes Vyacheslav Yurkov (9): recipetool: Don't fail on local go modules classes: go-vendor: Reference local modules classes: go-vendor: Handle modules from the same repo classes: go-vendor: Unlink vendor dir later recipetool: Proceed even with a missing license file recipetool: Disregard version in URL for replaced modules oeqa/selftest/recipetool: Move create_go test to a proper class oeqa/selftest/recipetool: Move helper function to the class scope oeqa/selftest/recipetool: Add test coverage for local go modules Wang Mingyu (22): mpg123: upgrade 1.32.3 -> 1.32.4 bind: upgrade 9.18.20 -> 9.18.21 iproute2: upgrade 6.6.0 -> 6.7.0 kexec-tools: upgrade 2.0.27 -> 2.0.28 libbsd: upgrade 0.11.7 -> 0.11.8 libxmlb: upgrade 0.3.14 -> 0.3.15 nghttp2: upgrade 1.57.0 -> 1.58.0 ofono: upgrade 2.2 -> 2.3 python3-numpy: upgrade 1.26.2 -> 1.26.3 vte: upgrade 0.74.1 -> 0.74.2 python3-cython: upgrade 3.0.7 -> 3.0.8 python3-git: upgrade 3.1.40 -> 3.1.41 python3-hypothesis: upgrade 6.92.2 -> 6.92.9 python3-jinja2: upgrade 3.1.2 -> 3.1.3 python3-markdown: upgrade 3.5 -> 3.5.2 python3-more-itertools: upgrade 10.1.0 -> 10.2.0 python3-pycryptodome: upgrade 3.19.1 -> 3.20.0 python3-pycryptodomex: upgrade 3.19.1 -> 3.20.0 python3-trove-classifiers: upgrade 2023.11.29 -> 2024.1.8 stress-ng: upgrade 0.17.03 -> 0.17.04 virglrenderer: upgrade 1.0.0 -> 1.0.1 xz: upgrade 5.4.4 -> 5.4.5 Change-Id: I9581526d3addb54889dd73268e672c2d84345f3e Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
Diffstat (limited to 'poky/bitbake')
-rw-r--r--poky/bitbake/lib/bb/parse/ast.py22
-rw-r--r--poky/bitbake/lib/bb/parse/parse_py/BBHandler.py10
2 files changed, 31 insertions, 1 deletions
diff --git a/poky/bitbake/lib/bb/parse/ast.py b/poky/bitbake/lib/bb/parse/ast.py
index d30b688965..7581d003fd 100644
--- a/poky/bitbake/lib/bb/parse/ast.py
+++ b/poky/bitbake/lib/bb/parse/ast.py
@@ -314,6 +314,16 @@ class InheritNode(AstNode):
def eval(self, data):
bb.parse.BBHandler.inherit(self.classes, self.filename, self.lineno, data)
+class InheritDeferredNode(AstNode):
+ def __init__(self, filename, lineno, classes):
+ AstNode.__init__(self, filename, lineno)
+ self.inherit = (classes, filename, lineno)
+
+ def eval(self, data):
+ inherits = data.getVar('__BBDEFINHERITS', False) or []
+ inherits.append(self.inherit)
+ data.setVar('__BBDEFINHERITS', inherits)
+
def handleInclude(statements, filename, lineno, m, force):
statements.append(IncludeNode(filename, lineno, m.group(1), force))
@@ -364,6 +374,10 @@ def handleInherit(statements, filename, lineno, m):
classes = m.group(1)
statements.append(InheritNode(filename, lineno, classes))
+def handleInheritDeferred(statements, filename, lineno, m):
+ classes = m.group(1)
+ statements.append(InheritDeferredNode(filename, lineno, classes))
+
def runAnonFuncs(d):
code = []
for funcname in d.getVar("__BBANONFUNCS", False) or []:
@@ -430,6 +444,14 @@ def multi_finalize(fn, d):
logger.debug("Appending .bbappend file %s to %s", append, fn)
bb.parse.BBHandler.handle(append, d, True)
+ while True:
+ inherits = d.getVar('__BBDEFINHERITS', False) or []
+ if not inherits:
+ break
+ inherit, filename, lineno = inherits.pop(0)
+ d.setVar('__BBDEFINHERITS', inherits)
+ bb.parse.BBHandler.inherit(inherit, filename, lineno, d, deferred=True)
+
onlyfinalise = d.getVar("__ONLYFINALISE", False)
safe_d = d
diff --git a/poky/bitbake/lib/bb/parse/parse_py/BBHandler.py b/poky/bitbake/lib/bb/parse/parse_py/BBHandler.py
index 4d5b45e1ef..cd1c998f8f 100644
--- a/poky/bitbake/lib/bb/parse/parse_py/BBHandler.py
+++ b/poky/bitbake/lib/bb/parse/parse_py/BBHandler.py
@@ -21,6 +21,7 @@ from .ConfHandler import include, init
__func_start_regexp__ = re.compile(r"(((?P<py>python(?=(\s|\()))|(?P<fr>fakeroot(?=\s)))\s*)*(?P<func>[\w\.\-\+\{\}\$:]+)?\s*\(\s*\)\s*{$" )
__inherit_regexp__ = re.compile(r"inherit\s+(.+)" )
+__inherit_def_regexp__ = re.compile(r"inherit_defer\s+(.+)" )
__export_func_regexp__ = re.compile(r"EXPORT_FUNCTIONS\s+(.+)" )
__addtask_regexp__ = re.compile(r"addtask\s+(?P<func>\w+)\s*((before\s*(?P<before>((.*(?=after))|(.*))))|(after\s*(?P<after>((.*(?=before))|(.*)))))*")
__deltask_regexp__ = re.compile(r"deltask\s+(.+)")
@@ -40,8 +41,10 @@ def supports(fn, d):
"""Return True if fn has a supported extension"""
return os.path.splitext(fn)[-1] in [".bb", ".bbclass", ".inc"]
-def inherit(files, fn, lineno, d):
+def inherit(files, fn, lineno, d, deferred=False):
__inherit_cache = d.getVar('__inherit_cache', False) or []
+ #if "${" in files and not deferred:
+ # bb.warn("%s:%s has non deferred conditional inherit" % (fn, lineno))
files = d.expand(files).split()
for file in files:
classtype = d.getVar("__bbclasstype", False)
@@ -265,6 +268,11 @@ def feeder(lineno, s, fn, root, statements, eof=False):
ast.handleInherit(statements, fn, lineno, m)
return
+ m = __inherit_def_regexp__.match(s)
+ if m:
+ ast.handleInheritDeferred(statements, fn, lineno, m)
+ return
+
return ConfHandler.feeder(lineno, s, fn, statements, conffile=False)
# Add us to the handlers list