From patchwork Wed Sep 7 16:22:17 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Deroire, Guillaume" X-Patchwork-Id: 12445 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 A7E1BC38145 for ; Wed, 7 Sep 2022 16:22:26 +0000 (UTC) Received: from mx0a-001d2f03.pphosted.com (mx0a-001d2f03.pphosted.com [148.163.144.40]) by mx.groups.io with SMTP id smtpd.web12.747.1662567740113810450 for ; Wed, 07 Sep 2022 09:22:20 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@hach.com header.s=s1pps20200804 header.b=unakiHmi; spf=permerror, err=parse error for token &{10 18 %{ir}.%{v}.%{d}.spf.has.pphosted.com}: invalid domain name (domain: hach.com, ip: 148.163.144.40, mailfrom: prvs=524967149c=guillaume.deroire@hach.com) Received: from pps.filterd (m0161802.ppops.net [127.0.0.1]) by mx0a-001d2f03.pphosted.com (8.17.1.5/8.17.1.5) with ESMTP id 287GIfx9022431 for ; Wed, 7 Sep 2022 16:22:19 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=hach.com; h=from : to : subject : date : message-id : content-type : content-transfer-encoding : mime-version; s=s1pps20200804; bh=YOrHondascqIVUvS5OrNpcdx2RSWDA9FS8bkw9xozP0=; b=unakiHmiJmNrtEuXxz0Hzn3NyDbRQW46xATNFUQsMUKOTNNLwpaEL/jZINkWWn1yLM+O JQK3PHgpESZAzXrH5Z9EH0Xccb7bbtSffsDYYtHhEl9UjYqN1njzlhIUPkniBV8YEg7S lZ2/CFBtPhdLbbeDSLjDpVNy3H88iBH3MNd/MIdGp1vCXiYZeR6CmfjppEx6XMAgvsuH 6oX9Ggmep7ILuQ1VkbpQfz+kBcNet/XuCu0xCkfCHMPUtwpejb0EA08HbOwY2aOxO9Ba 8wH3O9xQmFFDuYFSCfEPMSo75lenVE1Yci3giSJNHaSncop7NZUBGsoPwnZRDVxoF03E Vw== Received: from nam10-mw2-obe.outbound.protection.outlook.com (mail-mw2nam10lp2102.outbound.protection.outlook.com [104.47.55.102]) by mx0a-001d2f03.pphosted.com (PPS) with ESMTPS id 3jbwbxxr6m-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Wed, 07 Sep 2022 16:22:19 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=jCYKsxdgMmPWzIUzcTBZE3xmK7V1dPEKqMaMoqCjjYAYV3jG3B8ZvO2bs37Eiw7kfmRWbmR1LVayv12CzJiGkqAYqIW1YtpT/HRDFyvw/G7sWp+LY0rZYouPKVhr1GdUdnkoOguf73PziOzj3hnB57c+9IHgEBNBx7TQRQnNS9fP+2X4MpLq3kRhW9W5+f0nR8q3/wusWhm8tjsh90NFE87MUbGVTAx8oKgKpn0836I4LaVhBJgaPU8g/2+Y/daj8O4i95BoUDZK3fGF9Cw5r4hVjmEiXhEIVi8vHPgqGmW9q3y53KcyRRbB7ykn2APVmZej7HhDGcQzl0xUHn3bsA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=YOrHondascqIVUvS5OrNpcdx2RSWDA9FS8bkw9xozP0=; b=dAW8i4a2nDdusKiiVK8yct2dkmdQXQEl/XgMzz9tWj2ruit43a3HGPt4hz4Z8EbhccN4I9J/2BbaBujza+nNjqV7u06BTgHThApoXE6Sdyj5He3E3rovjaeEGSK0iwRi/wxUG6XTF29PP8ZHQoAsExlFDG/9NWwVQ1XujYFRlx3xcz5dx+9FDtPEv2NtfbKZ/59r9F307ce5HoRkIak6cb/FhPzk9Axg9FLU/gJVTZE1MXMauUh0lhTgZ2GDXBqZ6vg25sqvNK3oy4yc2yHLnMUKe1dM1UaM/92nsJYYz03+52TBUk4K5RVAghK/EDC08zmVGKjJuT1yPM+AynQiew== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=hach.com; dmarc=pass action=none header.from=hach.com; dkim=pass header.d=hach.com; arc=none Received: from CO6P222MB0554.NAMP222.PROD.OUTLOOK.COM (2603:10b6:303:14d::11) by CO1P222MB0292.NAMP222.PROD.OUTLOOK.COM (2603:10b6:303:15f::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5612.12; Wed, 7 Sep 2022 16:22:17 +0000 Received: from CO6P222MB0554.NAMP222.PROD.OUTLOOK.COM ([fe80::340e:60d8:56cc:9b83]) by CO6P222MB0554.NAMP222.PROD.OUTLOOK.COM ([fe80::340e:60d8:56cc:9b83%3]) with mapi id 15.20.5612.012; Wed, 7 Sep 2022 16:22:17 +0000 From: "Deroire, Guillaume" To: "meta-freescale@lists.yoctoproject.org" Subject: fsl-dynamic-packageearch.bbclass improvement for MULTILIB support Thread-Topic: fsl-dynamic-packageearch.bbclass improvement for MULTILIB support Thread-Index: AdjC1YusBCxMWeDfQBKoS5zA/XkcAw== Date: Wed, 7 Sep 2022 16:22:17 +0000 Message-ID: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: msip_labels: MSIP_Label_73094ff5-79ca-456b-95f6-d578316a3809_Enabled=true; MSIP_Label_73094ff5-79ca-456b-95f6-d578316a3809_SetDate=2022-09-07T16:22:03Z; MSIP_Label_73094ff5-79ca-456b-95f6-d578316a3809_Method=Privileged; MSIP_Label_73094ff5-79ca-456b-95f6-d578316a3809_Name=Public; MSIP_Label_73094ff5-79ca-456b-95f6-d578316a3809_SiteId=771c9c47-7f24-44dc-958e-34f8713a8394; MSIP_Label_73094ff5-79ca-456b-95f6-d578316a3809_ActionId=f9aa5760-572c-49da-bba5-ca9658b12d60; MSIP_Label_73094ff5-79ca-456b-95f6-d578316a3809_ContentBits=0 x-ms-publictraffictype: Email x-ms-traffictypediagnostic: CO6P222MB0554:EE_|CO1P222MB0292:EE_ x-ms-office365-filtering-correlation-id: 4134a6cc-fca4-4fa1-c77c-08da90ed21f4 x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: NMbxFJoYHWPSe+9YY0o7tPmSpbEeBCY2DbiwfQr+l4+NOO0+yIAMnqTRGuGBolDyz/nisdIrX4ToBeCfKgg/Ib07D9Cj0XjTuqP3r0pu127V2NZR50mz8dcpPZFueBuxuafoCbCtlWXUC1n/DHs74aNM2a9/kmd5qf5OXOdkn9mx5fly29tZN2+HR071ROzzIKvdg4X7fvTEB4Zdwq5ncC6To15dpXVgQTFNV/q4FxvhvkLKaFvsRlq7wS4P6uYfOG3GuL8C/hCxT9UF5rWL3yL4sUj6Rf3z+MTUyiVgktslIOqcwm5kKlCBUOYZae/JykbGg52MMTuej7ZQDh8/kN44xJCm5nn513F3uJRQq9c8j6XGCTaWVZQSgtonbQIXekjBra3TndU/Oth9kmaq9rUCp8AKLWT7ifAFMSm3aN/NcKBQDUggEh2ev6o+tQ0yaEyyQM9fQeJHC+X4krPIjGjNcdiLBhlRR4VWdK32p/aH/6OxvN+kwAXT4vk+QzgLvoAcOjHWHIeVfrdnmwYHku8sx6Vb4ps7RQdDa0gKDbEXKBENuz6JgAvNcU/dCYCbDJxvCMVDXn1QfI6EXI1wEz3AUYWQBs9bMtgIkyKCAADJcGvqqi+Hme2yk8XTIr/iObhxZGV9GFGiknQwJJENm+7/R0dBA0BPp/SssNNkLg/AAGMg6qFtMiugTEzP5D4F6M/9PH0Oa69FIwo/vOu4OUC/ClS+kFNQjy6yt3emdUrzhk4VFwyDcaqRC002UlWSicRAHz479RwSoDjkuCfLRw== x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:CO6P222MB0554.NAMP222.PROD.OUTLOOK.COM;PTR:;CAT:NONE;SFS:(13230016)(4636009)(376002)(396003)(346002)(136003)(39860400002)(366004)(8936002)(83380400001)(38100700002)(9686003)(33656002)(26005)(186003)(52536014)(5660300002)(55016003)(2906002)(41300700001)(6506007)(7696005)(6916009)(38070700005)(8676002)(66446008)(478600001)(71200400001)(66476007)(66946007)(64756008)(66556008)(86362001)(76116006)(122000001)(316002);DIR:OUT;SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: J5vUKM0Q+Cb8WO9fe+eyUuQh0FNq6ru87hvCZqljSHmqEiFQuLelCnMC62IuVmcXzp/k04x8ML1+5TuIebV1h0amWJwBDSWo91mOg2R00h22t1TD5b1DjUEYMbhi23slXwB4/1A2oK7f4jyCa96GToMGDTduXXf+HhivOBfDskzR73/d2oHObEOvLSU/Mk1KR6q8sa7zCgX5Wcxcd+xYI6CalB7FICNc0UeIRQzd8Q3QFbJ8hlxniD2b4ZXtdOiQ07LiMeNnnLpX8yOdbmRmKuJhO/OfslAb+MJc82QKbOpG8Ca/FOq8q+zJaoPb0m+gFC1boFpQK43QywHHh53o0PcWTHB6N8FmYRUr3Lmf6NwKCPNxvfzClW7Db+J5RN25TQqURpWJ6qOGJE/mOZljlOIL4zAxqwqpLhn24zAeYaYFSvOT9AdEcHBBL+ZCP7BeM24mTVhkLzF+6NiKmIAAxvYvI7gYfJgz4YwYMrfJC090Idsng5VTJi/nqDJBsl7qBEyVF/79j3Nfweuauj2gbXMfWgBLMNPWxJSuaFhMqKkMMOoCWsiX8RDwachWb2TtC7vNXZFBTY8QR1qvdiZLhuVNtlqLeZY1e/HtF8J9QRrLA81No445eiKvB+uqx+/mBaaHHFU5ZU4PyGfphD7Ys/VDeUANakqidNvusQqwlFplEXsANMx7TVMkd7PuqFu4m6EeP1LY4Gcf6b35yJf2JOS9g4VD4aYyc5IER9UvJtODfq2rbprTRb4N2zfoExRXtr0USlIAoeSnlM9Huq327ESvqgKY2SJ1NWXXlO6w/kofo4qbkeTMksQrg1NGYR4x8f5NMXjPeu/+l1EHC7KIPz3CpizGsy5YWZphG9IqQ0Xzlr4KUPCnwM42LowUQfd01EpNa3Gs+/+H55vxE0zE9FRnMjHt5xg2S3wWInfTJDZeHEFqhFFrckzOQn6DgI4L7JyBdGTV3eFUJ+wYcYYxy1QamS3gNpGHRXzZc/f/JEaq1it5hiehuIGJ+CHWfkSaAmNcVbrtpBvuRMO4KpvOvtStzKz8SNN/SqVDMgZZlsFjjXVHg9U95CcCkWqAcGdZASSEswhcCTd49Y28m0LaJRMW28Lxy6UGSyUv6D3ClrkTiVl9oi3VNvFUMXDxnVNCoQpoDaREpSo06dEfeUe00G/VaJFQm+qp5B+zPBXg6JgTJfnmbngQj0G3SrTkHV2GjUDBhL7/Ge3GAuz+lviXfSiiAVQxqLMOoWOGXJ6FvTbled2pa8BwX2byMRD2xJ+I2MFtwlWeOKCABuORhnJJTNr97MdGSgGkhTt4O9MvF2MI1vG8Dq0O4dvhdQPewbLYE6K9gNuitnpIkRxbz8uyp6X1He+K9a0vPR3kGoND4ImNd0FpXELtvFCEbLU1pANCISQZ6rIEctbp12yraErh7+/tBz8Bi8mdYx8nXyEg6/Wb0iIuxAMZ4zI1WNcU5OeOPx0iWf4E4zQgzxdyblneQ9l1MVPzdVCNyvxXGR1BBb2i1GBH5HtkP+hkeHhLvtDCguFjmXOhwr2K6aV7ua/LbSiySvC6ddOJlKFkIXEU1MGvJcbPJCE5CHbs/FSbPl+cYCv4ashf39EM7bgZC328ow== MIME-Version: 1.0 X-OriginatorOrg: hach.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: CO6P222MB0554.NAMP222.PROD.OUTLOOK.COM X-MS-Exchange-CrossTenant-Network-Message-Id: 4134a6cc-fca4-4fa1-c77c-08da90ed21f4 X-MS-Exchange-CrossTenant-originalarrivaltime: 07 Sep 2022 16:22:17.7372 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 771c9c47-7f24-44dc-958e-34f8713a8394 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: I8hXfHV0Kg9bYb6khdrbNPqjzHGkWow6jr4TmggoDYUKplZcMqlbGCWX5KyoIIaY9f7TDuP7c/4Tx5QgQHQJn+8xVxydpws1GHfKrjhQumE= X-MS-Exchange-Transport-CrossTenantHeadersStamped: CO1P222MB0292 X-Proofpoint-GUID: BRAJ_XTb2vDkDpq4wZvJFJ7CIon1o7KY X-Proofpoint-ORIG-GUID: BRAJ_XTb2vDkDpq4wZvJFJ7CIon1o7KY X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.205,Aquarius:18.0.895,Hydra:6.0.528,FMLib:17.11.122.1 definitions=2022-09-07_08,2022-09-07_02,2022-06-22_01 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 clxscore=1011 malwarescore=0 suspectscore=0 mlxscore=0 impostorscore=0 lowpriorityscore=0 mlxlogscore=751 phishscore=0 adultscore=0 priorityscore=1501 spamscore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2207270000 definitions=main-2209070064 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, 07 Sep 2022 16:22:26 -0000 X-Groupsio-URL: https://lists.yoctoproject.org/g/meta-freescale/message/24858 Hi, I have recently tried to use the MULTILIB feature of Yocto Dunfell on a iMX8 platform and I was not able anymore to build the SDK as soon as I add the lib32-libusb1 in the package list. Libusb1 has a dependency on wayland-protocols and it seems Yocto can find any suitable version of lib32-wayland-protocols during do_populate_sdk. Here is the error I got: > test-image-1.0-r0 do_populate_sdk: Manifest /workdir/oe-core/build/tmp/sstate-control/manifest-x86_64_x86_64-nativesdk-lib32-wayland-protocols.package_write_ipk not found in 1388_imx8x aarch64-mx8 armv7at2hf-neon armv7ahf-neon armv7at2hf-vfp armv7ahf-vfp armv6thf-vfp armv6hf-vfp armv5tehf-vfp armv5ehf-vfp armv5thf-vfp armv5hf-vfp allarch x86_64_x86_64-nativesdk (variant 'lib32')? > ERROR: test-image-1.0-r0 do_populate_sdk: No manifest generated from: lib32-wayland-protocols in virtual:multilib:lib32:/workdir/oe-core/build/../layers/meta-toradex-nxp/backports/recipes-graphics/wayland/wayland-protocols_1.20.imx.bb > ERROR: Logfile of failure stored in: /workdir/oe-core/build/tmp/work/1388_imx8x-tdx-linux/test-image/1.0-r0/temp/log.do_populate_sdk.2532219 > ERROR: Task (/workdir/oe-core/build/../layers/meta-eagle/recipes-images/images/test-image.bb:do_populate_sdk) failed with exit code '1' However I can found "manifest-armv7at2hf-neon-mx8-lib32-wayland" in the sstate-control folder. I'm a bit lost in that piece of code, but my understanding is that the fsl-dynamic-packagearch.bbclass is appending an additional ARCH based on the current ARCH + the "MACHINE_SOCARCH_SUFFIX" suffix, but doesn't manage the MULTILIB architectures. I have draft a patch to manage all ARCH coming from MULTILIB that seems to fix the problem but I would appreciate any comments (is it the right way to fix the problem, is the patch correct ...) Kind regards Please be advised that this email may contain confidential information. If you are not the intended recipient, please notify us by email by replying to the sender and delete this message. The sender disclaims that the content of this email constitutes an offer to enter into, or the acceptance of, any agreement; provided that the foregoing does not invalidate the binding effect of any digital or other electronic reproduction of a manual signature that is included in any attachment. diff --git a/classes/fsl-dynamic-packagearch.bbclass b/classes/fsl-dynamic-packagearch.bbclass index 9fcf37be..f8b12a2c 100644 --- a/classes/fsl-dynamic-packagearch.bbclass +++ b/classes/fsl-dynamic-packagearch.bbclass @@ -54,6 +54,17 @@ python __anonymous () { if not machine_socarch in cur_package_archs: d.appendVar("PACKAGE_EXTRA_ARCHS", " %s" % machine_socarch) + multilib_variants = (d.getVar("MULTILIB_VARIANTS") or "").split() + for variant in multilib_variants: + defaulttune = d.getVar("DEFAULTTUNE_virtclass-multilib-" + variant) + if defaulttune: + package_extra_archs_tune_archs = (d.getVar("PACKAGE_EXTRA_ARCHS_tune-" + defaulttune) or "").split() + arch_suffix = d.getVar("MACHINE_SOCARCH_SUFFIX") + for arch in package_extra_archs_tune_archs: + socarch = arch + arch_suffix + if not socarch in cur_package_archs: + d.appendVar("PACKAGE_EXTRA_ARCHS", " %s" % socarch ) + if d.getVar("TUNE_ARCH") == "arm": # For ARM we have two possible machine_socarch values, one for the arm and one for the thumb instruction set # add the other value to extra archs also, so that a image recipe searches both for packages.