From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-10.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, MENTIONS_GIT_HOSTING,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 91CC6C4338F for ; Fri, 6 Aug 2021 14:20:39 +0000 (UTC) Received: from lists.ozlabs.org (lists.ozlabs.org [112.213.38.117]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id C191560FE7 for ; Fri, 6 Aug 2021 14:20:38 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org C191560FE7 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=stwcx.xyz Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=lists.ozlabs.org Received: from boromir.ozlabs.org (localhost [IPv6:::1]) by lists.ozlabs.org (Postfix) with ESMTP id 4Gh71K1L3jz3cRr for ; Sat, 7 Aug 2021 00:20:37 +1000 (AEST) Authentication-Results: lists.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=stwcx.xyz header.i=@stwcx.xyz header.a=rsa-sha256 header.s=fm2 header.b=g8fqoQ7E; dkim=pass (2048-bit key; unprotected) header.d=messagingengine.com header.i=@messagingengine.com header.a=rsa-sha256 header.s=fm3 header.b=nBqJFvod; dkim-atps=neutral Authentication-Results: lists.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=stwcx.xyz (client-ip=66.111.4.29; helo=out5-smtp.messagingengine.com; envelope-from=patrick@stwcx.xyz; receiver=) Authentication-Results: lists.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=stwcx.xyz header.i=@stwcx.xyz header.a=rsa-sha256 header.s=fm2 header.b=g8fqoQ7E; dkim=pass (2048-bit key; unprotected) header.d=messagingengine.com header.i=@messagingengine.com header.a=rsa-sha256 header.s=fm3 header.b=nBqJFvod; dkim-atps=neutral Received: from out5-smtp.messagingengine.com (out5-smtp.messagingengine.com [66.111.4.29]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 4Gh70l55wBz308b for ; Sat, 7 Aug 2021 00:20:06 +1000 (AEST) Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.nyi.internal (Postfix) with ESMTP id 2390B5C0056 for ; Fri, 6 Aug 2021 10:20:02 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute3.internal (MEProxy); Fri, 06 Aug 2021 10:20:02 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=stwcx.xyz; h= date:from:to:subject:message-id:mime-version:content-type; s= fm2; bh=CvxKrhx/D5JnxB+owfGp/Il+oNMIEqNflhkRiJtAGIs=; b=g8fqoQ7E I1LHMryFfzt/9Ds+jc2b96Z+v+38BAEO7BSsfaX4dOK//ttGP2lu4P8VEEEgQMt0 zqebCmZhkeYVY8BC+9n4jbcKVH5DGze/kAkicUSYAycBi4zQzkKt8mmQWIrvcYGD 0NTgix48TjRmg3hpHyG7qXkQXNee7/NDIUXYL9LAXKIxsNXzT0vZ/MIr4JzL4hR+ zIb3JvChXSJKwoBHcZO1a8Ixylu4augAQ9mQa41FsfLxBWK1Bvp876oO7Sn5IcHk pDACRphc1GZ7odW9gVYBwBjiI+M5ZbgNAo6/tWi3n+1vKY6BmbEI+tgDv3OUatUs 4Z638ArXE/8IHw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-type:date:from:message-id :mime-version:subject:to:x-me-proxy:x-me-proxy:x-me-sender :x-me-sender:x-sasl-enc; s=fm3; bh=CvxKrhx/D5JnxB+owfGp/Il+oNMIE qNflhkRiJtAGIs=; b=nBqJFvod+7evC1l7gKFsyL8brF7xZV/zzUqXyLsFAn0sO DRBcnChL3cmvW+s3ekt0wlOq7s9+DYm1vOiLuMMXZtPX2Wbs1tIq7N3xsLr1wcFo guTNHrGoxZyZKbSZgTPv2jr5rjHbJo1SPDUXVKaFPhbc73zuJW0uot79Jek58PKj lz/GXxaFm/RPDdF1edTOmBNs3Gr0cY9FbHXD5lKW3W0HpmmHBI78eG1iKBPlkHF0 IuSMTt1aOwIynNb1HhLcNQjHh08zy0tE9PbHtdo2vRakmObO15DpsSkuNZXu2iU9 hjXXsjzW8OJ1wAb4HXIS7NYaCL2gyz++kf/utunog== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvtddrjedugdejvdcutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenfg hrlhcuvffnffculdefhedmnecujfgurhepfffhvffukfggtggusehgtderredttddvnecu hfhrohhmpefrrghtrhhitghkucghihhllhhirghmshcuoehprghtrhhitghksehsthiftg igrdighiiiqeenucggtffrrghtthgvrhhnpefffeejtdelhefgvdeufeeiudffjeelteeh tefgkefhkeegffduudelgfelvdevffenucffohhmrghinhephihotghtohhprhhojhgvtg htrdhorhhgpdgtohhnvhgvrhhtqdhovhgvrhhrihguvghsrdhphienucevlhhushhtvghr ufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehprghtrhhitghksehsthiftg igrdighiii X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA for ; Fri, 6 Aug 2021 10:20:01 -0400 (EDT) Date: Fri, 6 Aug 2021 09:19:59 -0500 From: Patrick Williams To: OpenBMC List Subject: Yocto override syntax change. Message-ID: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="A9XefBiJmPFF/h3m" Content-Disposition: inline X-BeenThere: openbmc@lists.ozlabs.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Development list for OpenBMC List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: openbmc-bounces+openbmc=archiver.kernel.org@lists.ozlabs.org Sender: "openbmc" --A9XefBiJmPFF/h3m Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hello, TL;DR: There is a required change to all meta-layers by Wednesday August 11, 2021 at 1PM UTC. Any meta-layer not changed by that time may no longer com= pile. There is a major change to the upstream Yocto syntax that requires use to d= o a modification to the majority of our recipes and Yocto config files. We wil= l not be able to perform another Yocto upgrade until this work is complete on our part. Yocto has an override syntax that is often used for machine and distro-spec= ific variable modification. The previous syntax was something like: PACKAGECONFIG_append_machine =3D " pkgfeature" This is being changed so that colons are used as override separators instea= d of underscores: PACKAGECONFIG:append:machine =3D " pkgfeature" In the current bitbake we have in master there is support for both syntaxes, because the code simply does a `s/:/_/` in variable processing, but the next bitbake/Yocto pull will remove support for the underscore syntax and all us= age of it will be broken. Again, until we make this change, we cannot pick up Yocto updates because our current override syntax usage is no longer suppor= ted. Upstream has provided a script to help facilitate this transition but I am finding that it does not catch every case and some additional help is neede= d. ---- Fix-up procedure and tips ---- The helper script is in the `poky` repository at: scripts/contrib/convert-overrides.py This can be obtained either by cloning or downloading directly: $ git clone git://git.yoctoproject.org/poky $ wget https://git.yoctoproject.org/cgit/cgit.cgi/poky/plain/scripts/co= ntrib/convert-overrides.py You may then run this on your meta-layer: $ path/to/convert-overrides.py meta-evb After this, to find potential misses run the following grep: $ git grep "_[a-z0-9_/-]*[ :]" -- meta-evb In the meta-evb tree I observed a number of _evb-* and _u-boot* variables w= ere missed. I fixed them like this: $ git grep -l _evb -- meta-evb | xargs sed -i 's/_evb/:evb/' $ git grep -l _u-boot -- meta-evb | xargs sed -i 's/_u-boot/:u-boot/' (There were a few other variables fixed up, but hopefully you get the patte= rn after two.) ----------------------------------- After this you will want to do a build of your machine(s). I would also recommend spot checking a few recipes with `bitbake -ne` to ensure= the overrides are applied as you expect. I will be making changes to meta-evb, meta-aspeed, meta-phosphor, and meta-facebook shortly under the gerrit topic "override-syntax". Hopefully = this gives a sufficient pattern for others to mimic over the next few days. --=20 Patrick Williams --A9XefBiJmPFF/h3m Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCAAdFiEEBGD9ii4LE9cNbqJBqwNHzC0AwRkFAmENRQ0ACgkQqwNHzC0A wRnlGQ/8C2C2sapZUZXoIDhgK1G/wkKhrowGyMb2a3a0I93C5SAf3I9kbEe+KIiE lYT1eehjaxX8gc2sgge0ZZlyqDDDgAhJBMB90GFqn7pNtlZw/g0CX03/cCQC6+Uu QxGO3nPg0AFKJRQKLsRnsEEz3AKmyG7JCVYWOUFBS+XdlD4E/BolhJDZwvU6Tw/G 59VGqnqjuB3vRaPyVTYj6ch6EpiC9JRNAhYiUbvriLBPu8xzozH29usn6P/aNW38 zs8/T2/KyUURwPvw3Aia9iimqKrhRoG4XrDcgcbYfiwgIslini5WKlTFOgBrb20x AxAm2HUcAmjxRBJFOubivgEJuUULjJTA0O5pJZ3JVWPeb1VksMbWNui/thx9BiAt 8zwYUgS7HW3Lh082Ia9szGGWyL9lPboz7TA5pib/jERyXu5z1JwQ8hcaX7kweKG2 sYTLhsDB1GkgpEhNz4udfsQUtXvLVCnC4jQwJJZdjQ1YM88QjWLSQt9l+Yvej2Gj UWxsUkr/lLbLga8T7kCrYWIzHN4h/Mh6xSaHDOZfJhyUaY6XVLIKXd9pKyk/xv4s V/tW6Aj1JepBExTsSLP5W8GKnXSY3kNBDU4mlxiwXoTLOJigETQfnb8BOz9Gm1sz afT20Hdz+N+mJuwDdWZ30mt6cj6iZC/ovFo/EJ4Lj/AoJ69bfEA= =jNq1 -----END PGP SIGNATURE----- --A9XefBiJmPFF/h3m--