From patchwork Wed Jan 25 22:22:19 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Purdie X-Patchwork-Id: 18654 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id 795D9C54E94 for ; Wed, 25 Jan 2023 22:22:29 +0000 (UTC) Received: from mail-wm1-f42.google.com (mail-wm1-f42.google.com [209.85.128.42]) by mx.groups.io with SMTP id smtpd.web11.60123.1674685344811235677 for ; Wed, 25 Jan 2023 14:22:25 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@linuxfoundation.org header.s=google header.b=YU+pfTHX; spf=pass (domain: linuxfoundation.org, ip: 209.85.128.42, mailfrom: richard.purdie@linuxfoundation.org) Received: by mail-wm1-f42.google.com with SMTP id j17so47186wms.0 for ; Wed, 25 Jan 2023 14:22:24 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=google; h=content-transfer-encoding:mime-version:message-id:date:subject:to :from:from:to:cc:subject:date:message-id:reply-to; bh=Fit3U5gT5Ysp5LMqPKrqZ/I7rk8jetXrznWbgUceb3k=; b=YU+pfTHXU0BFKDnYuU2J86eSbXmrItnYFW+m3XJZr53p3JS2uYhG4IeDu+STPcQPov qpXpCXFRkwGflvLUGxsJzB0ea5QCapPxKSIv17XXnTKtxiX5Iyt5prCyGHPEC7Z7pW6I 2pQwI7U/RFwkWJs4A3Nqsjp/zpcjwbsSLNvfs= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:to :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=Fit3U5gT5Ysp5LMqPKrqZ/I7rk8jetXrznWbgUceb3k=; b=YjQyDKPAjJkTmK0C05Gk9HAffOeI5lV8HIadj08E5QZC4E/2SjqBCRT+pVpGnfJRsl VzrUDsKN/YhsK2FnFbDTJdKSzk303C3jnmBqteGGvgmNFCpJ5XI0Y43phnVRqCwdzSv7 03FxkMWuAbvT2Er0RpctVckSj71oEgEHMWXvI//KyoF8MZy4WYnUQxpiFNDy7OczZfT8 vk/MiVvOOsmFGd0Xq5tsTeC5msPkCzsI4YeHDL9qYEboOWq2ECATRJRUrhbEQyQRROrS ujEQlLz3NJqULWubTiHFrESXM05r37mLLPtV/XlpJkkM5Sg2uX53VjrUW9UI2ckMzEGK jkgA== X-Gm-Message-State: AFqh2kqNvvh7hH0CXtth4BGHhi2t6QS2pHiTtCKdgfmG4AQzw9DQD/+q 0xJ7NOazvYeAd+hf2AIQf0ygI0ODt2Sh2CFR X-Google-Smtp-Source: AMrXdXuRtF094y0O3OJD6r0x82F6jNklyOKC/FIx/oUmOkHY65X1Qnvh5uztinletXS7Pg+cRPwnwQ== X-Received: by 2002:a05:600c:354e:b0:3db:331b:bd57 with SMTP id i14-20020a05600c354e00b003db331bbd57mr21419700wmq.23.1674685342670; Wed, 25 Jan 2023 14:22:22 -0800 (PST) Received: from max.int.rpsys.net ([2001:8b0:aba:5f3c:f2d7:e330:f537:35d8]) by smtp.gmail.com with ESMTPSA id n13-20020a05600c500d00b003db2b81660esm3154986wmr.21.2023.01.25.14.22.22 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 25 Jan 2023 14:22:22 -0800 (PST) From: Richard Purdie To: openembedded-core@lists.openembedded.org Subject: [PATCH 1/3] bitbake.conf: Add METADATA_REVSISION to BB_HASH_CODEPARSER_VALS Date: Wed, 25 Jan 2023 22:22:19 +0000 Message-Id: <20230125222221.2462169-1-richard.purdie@linuxfoundation.org> X-Mailer: git-send-email 2.37.2 MIME-Version: 1.0 List-Id: X-Webhook-Received: from li982-79.members.linode.com [45.33.32.79] by aws-us-west-2-korg-lkml-1.web.codeaurora.org with HTTPS for ; Wed, 25 Jan 2023 22:22:29 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/176378 This stops the codeparser cache changing ever time a new commit is added to the main repository. Signed-off-by: Richard Purdie --- meta/conf/bitbake.conf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meta/conf/bitbake.conf b/meta/conf/bitbake.conf index c154f271cf8..5aadf6e7078 100644 --- a/meta/conf/bitbake.conf +++ b/meta/conf/bitbake.conf @@ -959,7 +959,7 @@ BB_SIGNATURE_EXCLUDE_FLAGS ?= "doc deps depends \ sstate-lockfile-shared prefuncs postfuncs export_func deptask rdeptask \ recrdeptask nodeprrecs stamp-extra-info sstate-outputdirs filename lineno \ progress mcdepends number_threads" -BB_HASH_CODEPARSER_VALS = "LOGFIFO=/ T=/ WORKDIR=/ DATE=1234 TIME=1234 PV=0.0-1 PN=nopn" +BB_HASH_CODEPARSER_VALS = "LOGFIFO=/ T=/ WORKDIR=/ DATE=1234 TIME=1234 PV=0.0-1 PN=nopn METADATA_REVISION=1234" MLPREFIX ??= "" MULTILIB_VARIANTS ??= "" From patchwork Wed Jan 25 22:22:20 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Purdie X-Patchwork-Id: 18652 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id 76771C27C76 for ; Wed, 25 Jan 2023 22:22:29 +0000 (UTC) Received: from mail-wm1-f52.google.com (mail-wm1-f52.google.com [209.85.128.52]) by mx.groups.io with SMTP id smtpd.web10.60241.1674685345338728776 for ; Wed, 25 Jan 2023 14:22:25 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@linuxfoundation.org header.s=google header.b=Si4rdDww; spf=pass (domain: linuxfoundation.org, ip: 209.85.128.52, mailfrom: richard.purdie@linuxfoundation.org) Received: by mail-wm1-f52.google.com with SMTP id f12-20020a7bc8cc000000b003daf6b2f9b9so2183801wml.3 for ; Wed, 25 Jan 2023 14:22:25 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=google; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:from:to:cc:subject:date:message-id :reply-to; bh=0sDrQ13cswbo6JlOpZxrSuAqKjgRzo3TiTGrNDtaWCI=; b=Si4rdDww/VxmdrnTDWawuFWLS63Scd6oR59D43eMxT+BnI2iKNvbVS5atqX9piiSu7 Qlof5h3sH6hRfX2swTLaTZ2n0Xt/FmLd5REK2qmTYiETknwpC9GJkhR5ewEwYKLVUdRa SG/YG5KlBuhviu+dep2lmCHhNb0QOMLdC5ctM= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=0sDrQ13cswbo6JlOpZxrSuAqKjgRzo3TiTGrNDtaWCI=; b=MyUEPq/GxE0IG7tqzFeqohxMKpzxAEctA2ArROreoi/aLoFQd5W4buulgOCzQHOOMD zcNc0RbpdZ8CZ2TWXOOdpAAzsxZbK6jLUeVnxZNpeTuMiCPvKHusg2UHMyjeE32Omy1F 2i0Imn8jh+1N3+Zda7e00MVeOtpc/KMP84/NJdqUksbB66g5fl7L5sqqQsWpdukHV7FN 8LFylZlYxWVvnOJPRgwvTD4i/Xp5Osy4w29+0oj9gV/v4/DXSyoL5Qn4U9Ki/3ArF6Ry QUiYmfeGJKut7QWzfC6leQpZY7d769Rkmqardvyv0C3kBAWb/Volf+UrpxEkWjNhdBS5 YkFA== X-Gm-Message-State: AFqh2kqZm8dG9uRQMQAiy1O3BUxFDesXkN0RvGWtzUqLRoLjy9K8H89B MD2zY0Xy91MiyojZmeS+yH5ZrF3bQEwKmYpT X-Google-Smtp-Source: AMrXdXuNHzhW7dOzgYMU0RxxyEe8Bnn0R9DIW0oYBUCTcOnM0gKPotzVgOn1tN/1metkO8dy7X89yw== X-Received: by 2002:a05:600c:c07:b0:3da:ff60:f5c9 with SMTP id fm7-20020a05600c0c0700b003daff60f5c9mr32458445wmb.40.1674685343446; Wed, 25 Jan 2023 14:22:23 -0800 (PST) Received: from max.int.rpsys.net ([2001:8b0:aba:5f3c:f2d7:e330:f537:35d8]) by smtp.gmail.com with ESMTPSA id n13-20020a05600c500d00b003db2b81660esm3154986wmr.21.2023.01.25.14.22.22 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 25 Jan 2023 14:22:22 -0800 (PST) From: Richard Purdie To: openembedded-core@lists.openembedded.org Subject: [PATCH 2/3] native: Implement BBCLASSEXTEND PACKAGES_DYNAMIC handling Date: Wed, 25 Jan 2023 22:22:20 +0000 Message-Id: <20230125222221.2462169-2-richard.purdie@linuxfoundation.org> X-Mailer: git-send-email 2.37.2 In-Reply-To: <20230125222221.2462169-1-richard.purdie@linuxfoundation.org> References: <20230125222221.2462169-1-richard.purdie@linuxfoundation.org> MIME-Version: 1.0 List-Id: X-Webhook-Received: from li982-79.members.linode.com [45.33.32.79] by aws-us-west-2-korg-lkml-1.web.codeaurora.org with HTTPS for ; Wed, 25 Jan 2023 22:22:29 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/176379 Recipes that use native BBCLASSEXTEND and set PACKAGES_DYNAMIC will currently see PREFERRED_PROVIDER warnings. Some recipes work around this but lets fix the core code to handle remapping PACKAGES_DYNAMIC correctly so the workarounds aren't necessary any more. Signed-off-by: Richard Purdie --- meta/classes-recipe/native.bbclass | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/meta/classes-recipe/native.bbclass b/meta/classes-recipe/native.bbclass index 1e94585f3e3..cfd299d0c8c 100644 --- a/meta/classes-recipe/native.bbclass +++ b/meta/classes-recipe/native.bbclass @@ -139,7 +139,7 @@ python native_virtclass_handler () { if "native" not in classextend: return - def map_dependencies(varname, d, suffix = "", selfref=True): + def map_dependencies(varname, d, suffix = "", selfref=True, regex=False): if suffix: varname = varname + ":" + suffix deps = d.getVar(varname) @@ -148,7 +148,9 @@ python native_virtclass_handler () { deps = bb.utils.explode_deps(deps) newdeps = [] for dep in deps: - if dep == pn: + if regex and dep.startswith("^") and dep.endswith("$"): + newdeps.append(dep[:-1].replace(pn, bpn) + "-native$") + elif dep == pn: if not selfref: continue newdeps.append(dep) @@ -171,6 +173,7 @@ python native_virtclass_handler () { map_dependencies("RPROVIDES", e.data, pkg) map_dependencies("RREPLACES", e.data, pkg) map_dependencies("PACKAGES", e.data) + map_dependencies("PACKAGES_DYNAMIC", e.data, regex=True) provides = e.data.getVar("PROVIDES") nprovides = [] From patchwork Wed Jan 25 22:22:21 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Purdie X-Patchwork-Id: 18653 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id 77C20C54EED for ; Wed, 25 Jan 2023 22:22:29 +0000 (UTC) Received: from mail-wm1-f46.google.com (mail-wm1-f46.google.com [209.85.128.46]) by mx.groups.io with SMTP id smtpd.web10.60242.1674685345643272991 for ; Wed, 25 Jan 2023 14:22:25 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@linuxfoundation.org header.s=google header.b=NGf4iNL9; spf=pass (domain: linuxfoundation.org, ip: 209.85.128.46, mailfrom: richard.purdie@linuxfoundation.org) Received: by mail-wm1-f46.google.com with SMTP id q10-20020a1cf30a000000b003db0edfdb74so3145393wmq.1 for ; Wed, 25 Jan 2023 14:22:25 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=google; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:from:to:cc:subject:date:message-id :reply-to; bh=lAjLFdf/1IRvIhWERNUysDUmcwBTiEOjvg2/snfoLBs=; b=NGf4iNL9rfGZ+/ckyaUuI9qzclpy7kBB3ULIy9W49Eccs7/jA2Eyihf3VrEPCny1B+ BQxcji3Z/ElAQDmGrnfnvE3J/QxmiajUAilEPOOjB4q6gA1Wyoby5ZVT1xBjv+aHBD9+ AAKB5c69t7RAfBy7xAH4HLLwIh/bYjYdkM8lQ= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=lAjLFdf/1IRvIhWERNUysDUmcwBTiEOjvg2/snfoLBs=; b=mxXib2GGJ962y7x8GMa3KBIIYg8nUzUuR/SzE0X3tL2TJusPLqfX8rdwN4QWrS694G XEZa3IWlHMMzETHPDzIqcz/14ssA5NCsd6eBz7moIL+gC9z1TSeIKV1G+NxtSf5LdH3/ sr1m/11A10EXeo/FB/1PLfv0P2xv1BP2f8davQVxrHDrtS36A7yLYtlnGG4OyV/NlIfT RMGKfrdLGoO4WdBpACf2iP3YiahcaFr/lzsKJsHRoQ+Nk/XrD0guGea5l7AF3/7pY9Hk nFXj5N6OChBE6OBzZCNXmnz6U9/h/VCYbcqojBJ1c5A34XnSS7Sv8TK/ui7nEr6IEV6e 6bQg== X-Gm-Message-State: AFqh2kqpWZ8mdYm/JKI9UICeBJzD6YKvgBJczCXfc7afiKnldaFdFhdL mogMrsDTmpkOKaiuoscRwT3sbaaMRCsjfJQV X-Google-Smtp-Source: AMrXdXtssm/LyZ1qqPIbiPj5/VcoPz+no+MZCBwAkgP0gSZuGiR/v01uQwoVxAtR8d3PZEqqYU5SLQ== X-Received: by 2002:a05:600c:2046:b0:3d2:3ae8:886a with SMTP id p6-20020a05600c204600b003d23ae8886amr40777440wmg.17.1674685343972; Wed, 25 Jan 2023 14:22:23 -0800 (PST) Received: from max.int.rpsys.net ([2001:8b0:aba:5f3c:f2d7:e330:f537:35d8]) by smtp.gmail.com with ESMTPSA id n13-20020a05600c500d00b003db2b81660esm3154986wmr.21.2023.01.25.14.22.23 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 25 Jan 2023 14:22:23 -0800 (PST) From: Richard Purdie To: openembedded-core@lists.openembedded.org Subject: [PATCH 3/3] conf/sdk/x86-64: Set march specifically Date: Wed, 25 Jan 2023 22:22:21 +0000 Message-Id: <20230125222221.2462169-3-richard.purdie@linuxfoundation.org> X-Mailer: git-send-email 2.37.2 In-Reply-To: <20230125222221.2462169-1-richard.purdie@linuxfoundation.org> References: <20230125222221.2462169-1-richard.purdie@linuxfoundation.org> MIME-Version: 1.0 List-Id: X-Webhook-Received: from li982-79.members.linode.com [45.33.32.79] by aws-us-west-2-korg-lkml-1.web.codeaurora.org with HTTPS for ; Wed, 25 Jan 2023 22:22:29 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/176380 This is really no change since it is currently the default in gcc but making it explicit matches the other SDKMACHINE configs and means if gcc ever changes, or we switch compilers, the flag is present. It also makes it clear from the config which tuning is in use. Signed-off-by: Richard Purdie --- meta/conf/machine-sdk/x86_64.conf | 1 + 1 file changed, 1 insertion(+) diff --git a/meta/conf/machine-sdk/x86_64.conf b/meta/conf/machine-sdk/x86_64.conf index 2ab607e65c2..3396f95d69d 100644 --- a/meta/conf/machine-sdk/x86_64.conf +++ b/meta/conf/machine-sdk/x86_64.conf @@ -1,3 +1,4 @@ SDK_ARCH = "x86_64" +SDK_CC_ARCH = "-march=x86-64" ABIEXTENSION:class-crosssdk = "" ABIEXTENSION:class-nativesdk = ""