From patchwork Tue Oct 3 01:05:27 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Kjellerstedt X-Patchwork-Id: 31583 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 75FCBE776DA for ; Tue, 3 Oct 2023 01:05:41 +0000 (UTC) Received: from EUR03-AM7-obe.outbound.protection.outlook.com (EUR03-AM7-obe.outbound.protection.outlook.com [40.107.105.79]) by mx.groups.io with SMTP id smtpd.web11.98878.1696295137824035148 for ; Mon, 02 Oct 2023 18:05:38 -0700 Authentication-Results: mx.groups.io; dkim=fail reason="dkim: body hash did not verify" header.i=@axis.com header.s=selector1 header.b=DOzd0BXP; spf=pass (domain: axis.com, ip: 40.107.105.79, mailfrom: peter.kjellerstedt@axis.com) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=RSvsTuzi+j7ok8MeXzKiT+UU2xQGs+N8wllNdK/8xn6LwsEM70FZ+HynslH2sjo/EPSJxmxOAP77JXdku2rzRZUr4RZHTna9scu9YCB0iuoxxq/MGiTtJ87ejMEsK8CpZNGXcZyyMg2MAbdjVUXWt9D4TYkDvYdgHH/AKCkuUT0OUAxKDGtjSmZNxFa/0KN3aotMI1xlWn4HEhveFurSfmvSOpdWKnGCjiIOsNwPxZlt9upjZTWIp2UMxkPwpf8u4F3HvV6lQisCOjJAmly9L1qngxDYAdI0NAWF+Qb9paFqfNTs7OLfcnW/g6sOLGmkeMifucPDPzPu5ckgLJkTIQ== 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=/BW5XQE9DLA+5mtDNx/4O4ZH7sgkZISGNhAvrvBrpac=; b=OLC3Oz2uIMyt1AZuwIK/C/CxOGNMMXANsGJILAozCwGSKu1T5YRlUpMHBnHmrGIq0W1Ryyd0IYa5EU397Q0L/r6SKjALqG6cN/oWsLPmFi23GJL/rLOjT6cbSceeGY65yU56YhMUHjNK1GaC+GeH09Ia7rKBRA+WzPc28uXD6H0zoeYs0D/lEm+jBvy9gzyCniziHubSI+vKJlaSPTO0MSjRQKOTXYb8LJHP/S8eFUd1B/0uNDhy0qvH804Ih1UUZSmY9LfvIySW+TgvOei2b2Mqk5usC032IMmNLkHiIVwYTNLS8+g+zssNa7SYrfCAsl0OL3cW5FahyOgrhvpH0w== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=fail (sender ip is 195.60.68.100) smtp.rcpttodomain=lists.openembedded.org smtp.mailfrom=axis.com; dmarc=fail (p=none sp=none pct=100) action=none header.from=axis.com; dkim=none (message not signed); arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=axis.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=/BW5XQE9DLA+5mtDNx/4O4ZH7sgkZISGNhAvrvBrpac=; b=DOzd0BXPyG2P6hamswr/Xg1bICBAizbWLN16MrgSNWduWDO3uYE9vk8s3oAgBt1jlp18sqjxdZ2MTYUoMNYRRppW82GUVqgxvg+mW1ZIeQBX0xJkjn5s1oQ7V8A2VqhYgQ0r1ElPEm3KLFCkmUArG8Uu+CDjLkz6SBz7sRmBjVw= Received: from DB8PR03CA0009.eurprd03.prod.outlook.com (2603:10a6:10:be::22) by AM0PR02MB5809.eurprd02.prod.outlook.com (2603:10a6:208:187::8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6813.37; Tue, 3 Oct 2023 01:05:34 +0000 Received: from DB5PEPF00014B88.eurprd02.prod.outlook.com (2603:10a6:10:be:cafe::bc) by DB8PR03CA0009.outlook.office365.com (2603:10a6:10:be::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6838.33 via Frontend Transport; Tue, 3 Oct 2023 01:05:34 +0000 X-MS-Exchange-Authentication-Results: spf=fail (sender IP is 195.60.68.100) smtp.mailfrom=axis.com; dkim=none (message not signed) header.d=none;dmarc=fail action=none header.from=axis.com; Received-SPF: Fail (protection.outlook.com: domain of axis.com does not designate 195.60.68.100 as permitted sender) receiver=protection.outlook.com; client-ip=195.60.68.100; helo=mail.axis.com; Received: from mail.axis.com (195.60.68.100) by DB5PEPF00014B88.mail.protection.outlook.com (10.167.8.196) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.6838.14 via Frontend Transport; Tue, 3 Oct 2023 01:05:33 +0000 Received: from se-mail01w.axis.com (10.20.40.7) by se-mail02w.axis.com (10.20.40.8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.34; Tue, 3 Oct 2023 03:05:33 +0200 Received: from se-intmail02x.se.axis.com (10.0.5.60) by se-mail01w.axis.com (10.20.40.7) with Microsoft SMTP Server id 15.1.2375.34 via Frontend Transport; Tue, 3 Oct 2023 03:05:33 +0200 Received: from saur (saur.se.axis.com [10.92.3.10]) by se-intmail02x.se.axis.com (Postfix) with ESMTP id 1CDCF1072 for ; Tue, 3 Oct 2023 03:05:33 +0200 (CEST) Received: from saur.se.axis.com (localhost [127.0.0.1]) by saur (8.17.1/8.15.2) with ESMTPS id 39315WCS2892779 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NOT) for ; Tue, 3 Oct 2023 03:05:33 +0200 Received: (from pkj@localhost) by saur.se.axis.com (8.17.1/8.17.1/Submit) id 39315WBu2892778 for openembedded-core@lists.openembedded.org; Tue, 3 Oct 2023 03:05:32 +0200 From: Peter Kjellerstedt To: Subject: [PATCH 1/3] externalsrc.bbclass: Support specifying patterns in CONFIGURE_FILES Date: Tue, 3 Oct 2023 03:05:27 +0200 Message-ID: <20231003010529.2892756-1-pkj@axis.com> X-Mailer: git-send-email 2.40.1 MIME-Version: 1.0 X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DB5PEPF00014B88:EE_|AM0PR02MB5809:EE_ X-MS-Office365-Filtering-Correlation-Id: aa6d0ab9-9d0b-44da-db72-08dbc3acd87b X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: kmrkA9sbt8zXBBStG/0FcBXdTq5JqMA8Bii924vvp3MU1mWSnNREvNW6dZyXj8YNC8JVLY6XDxGizgGtqCtt+m2OXfC7c3nfZyXtIRygyyVFxoxecTGhjO2+TVaH+ZzcKkwSeJXHdwAfzYxjkfrbcz4T/Q/sVc0Dp9NaL6o0sFW3THX5BosJmsH8/oi9emp8wOORH2Oeock7+AhKvMDfTQNsxYF5ak3Ov9dVFdhU+jJhgfnLv2+yUpyBeCLnObC5uBg9gJpEGsh1xL4PvfjrGGhI9kjv/Wbxr3Nj+PzipxV7PsvH2jUvbBD7DO1BuVBo+mJkMuP72iGvc3yCHo8CVTJSSIklh9b5B6wYSTUirCBq5IR1slW4i/M2VxS7rkxFG/qVoxIbJ7hqJyy9s/FxUU5EMoegCGHLZzBi4Sm3rbmIzwaJ92MsjH0ZW2LVGVj0/Zra4FFE9WICQuKE9jVLrjegbQcKhUugTZKqayjI403bUqVeDtwRBgBYJWbH2b82UziePR95JrCtSjpw49hvQ7ZGtHmN6Cu2aaOECNm4kiNFRlaF7H/pDsovbQIhfziB3kpEonBVNkcYC2VrLcXFaz0CI26QHWFpaJGsLUYXG52pVo9s5ouwUa39TQmVNftZD/Ttk3bnRKqiqz6dIbZeXGlrz5Qkb9cka3Wm9qv0MuVNnf36n5zQVB3x1OOXfhZdUE7ciC1axHdtd+2VLjHsGNo8fO41xd1nWvggDsfhVs5Qr8vPiGCmQYFstcmX5hqCpA6S2YebxXSpGy9o7MpfIw== X-Forefront-Antispam-Report: CIP:195.60.68.100;CTRY:SE;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:mail.axis.com;PTR:InfoDomainNonexistent;CAT:NONE;SFS:(13230031)(4636009)(396003)(376002)(346002)(136003)(39860400002)(230922051799003)(451199024)(186009)(82310400011)(1800799009)(64100799003)(46966006)(36840700001)(40470700004)(36860700001)(83380400001)(336012)(426003)(2616005)(47076005)(26005)(1076003)(36756003)(478600001)(6666004)(356005)(82740400003)(81166007)(70586007)(6916009)(316002)(8676002)(8936002)(2906002)(40460700003)(40480700001)(70206006)(42186006)(5660300002)(41300700001)(36900700001);DIR:OUT;SFP:1101; X-OriginatorOrg: axis.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 03 Oct 2023 01:05:33.6219 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: aa6d0ab9-9d0b-44da-db72-08dbc3acd87b X-MS-Exchange-CrossTenant-Id: 78703d3c-b907-432f-b066-88f7af9ca3af X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=78703d3c-b907-432f-b066-88f7af9ca3af;Ip=[195.60.68.100];Helo=[mail.axis.com] X-MS-Exchange-CrossTenant-AuthSource: DB5PEPF00014B88.eurprd02.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM0PR02MB5809 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 ; Tue, 03 Oct 2023 01:05:41 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/188616 This allows, e.g., *.cmake to be added to CONFIGURE_FILES to make the do_configure task depend on changes to any cmake file. Signed-off-by: Peter Kjellerstedt --- meta/classes/externalsrc.bbclass | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/meta/classes/externalsrc.bbclass b/meta/classes/externalsrc.bbclass index cba80bb1d4..a54f316aa0 100644 --- a/meta/classes/externalsrc.bbclass +++ b/meta/classes/externalsrc.bbclass @@ -252,6 +252,8 @@ def srctree_configure_hash_files(d): Get the list of files that should trigger do_configure to re-execute, based on the value of CONFIGURE_FILES """ + import fnmatch + in_files = (d.getVar('CONFIGURE_FILES') or '').split() out_items = [] search_files = [] @@ -263,8 +265,8 @@ def srctree_configure_hash_files(d): if search_files: s_dir = d.getVar('EXTERNALSRC') for root, _, files in os.walk(s_dir): - for f in files: - if f in search_files: + for p in search_files: + for f in fnmatch.filter(files, p): out_items.append('%s:True' % os.path.join(root, f)) return ' '.join(out_items) From patchwork Tue Oct 3 01:05:28 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Kjellerstedt X-Patchwork-Id: 31585 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 720C9E776F0 for ; Tue, 3 Oct 2023 01:05:41 +0000 (UTC) Received: from EUR03-AM7-obe.outbound.protection.outlook.com (EUR03-AM7-obe.outbound.protection.outlook.com [40.107.105.46]) by mx.groups.io with SMTP id smtpd.web11.98879.1696295137978350215 for ; Mon, 02 Oct 2023 18:05:38 -0700 Authentication-Results: mx.groups.io; dkim=fail reason="dkim: body hash did not verify" header.i=@axis.com header.s=selector1 header.b=N3SF5EJw; spf=pass (domain: axis.com, ip: 40.107.105.46, mailfrom: peter.kjellerstedt@axis.com) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=d+eN+cz0rCuqKbhTak0RR+UZYua0+k2BF0zBlKVAQVY1Js8/UIYbdAWlZG5B5JRzqfP+cQuuQZQWyfiM8kQa5mDmQrhXIKgDuVf7rRMmbgN+WwwHxU76wo1Rz6RUvVyBGM4Je+yNp8SbgEJG8zdz0wXX30vhnKtTJUQE2UF06YIE+BhNBumT1flAd6kbkS9sc7HlR6vZT0BSHHXaCVF9mFJqV4gKoknRbLIPIRNtXtzRq9xHgPfsLZt9Zl0mNSVkbU9tk1EHSu3wEiPP1XmZWsGEcBgNS6gm3VmRoz1UiQCO7OlAtE1kZGMGMKA/ghnMU2SnfynUJjXn2hnF51pTXQ== 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=xQmDZh/49DqIrsHfPo1tacSYTnRqUwKsxRDE0AWhPvY=; b=ceiAQKPlVfFczISal4F/Q80dcelW5rQyvLWL7K+lmJ9ZiIUW+KnLcpHs4R7cqIGWX9iTmdpQbcOXWtj5cKz6mLqCkhkfORdf8vKNiIqlNmZUuyYnW6aosGp9LOR9Dysfm+Bs5rlGxhpjo4IkVcNwLsaCKJY0W2uHYCg+RtLdAtCd6QF1aMwmkT2Dnn80nBZ4bhtsxLiKjx9daqpkCX3vkgAcafMS2r6qpTtsh3r2VvhJskjw63O2BqV1vJcHOhWZvd4zE+MiSRFHK9SMUlO2joaki0dweURJJhvMcyNIisLX9Mn4SAxuzMuRbx70fAbsYAZ5lsnWHwoIXqMhXUiwTw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=fail (sender ip is 195.60.68.100) smtp.rcpttodomain=lists.openembedded.org smtp.mailfrom=axis.com; dmarc=fail (p=none sp=none pct=100) action=none header.from=axis.com; dkim=none (message not signed); arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=axis.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=xQmDZh/49DqIrsHfPo1tacSYTnRqUwKsxRDE0AWhPvY=; b=N3SF5EJwULh9XF6LW5F6Cbw9VwsqNQX0Qu2PLM0iPFZbzWSdD5tMnjHcDDN0CWvEh/U0/VTHSQy+SYmmtsdLXzpHI/ZiaqR1eHqei+BMhfi2czboQnDwSlVEwVjDMW8ZRow9xZ/rkPXLbaKemkneyT6qYEB1tO/HpxfjVaZdsP4= Received: from AM0PR03CA0018.eurprd03.prod.outlook.com (2603:10a6:208:14::31) by DB9PR02MB6633.eurprd02.prod.outlook.com (2603:10a6:10:218::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6838.33; Tue, 3 Oct 2023 01:05:34 +0000 Received: from AMS0EPF000001B5.eurprd05.prod.outlook.com (2603:10a6:208:14:cafe::ec) by AM0PR03CA0018.outlook.office365.com (2603:10a6:208:14::31) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6838.30 via Frontend Transport; Tue, 3 Oct 2023 01:05:34 +0000 X-MS-Exchange-Authentication-Results: spf=fail (sender IP is 195.60.68.100) smtp.mailfrom=axis.com; dkim=none (message not signed) header.d=none;dmarc=fail action=none header.from=axis.com; Received-SPF: Fail (protection.outlook.com: domain of axis.com does not designate 195.60.68.100 as permitted sender) receiver=protection.outlook.com; client-ip=195.60.68.100; helo=mail.axis.com; Received: from mail.axis.com (195.60.68.100) by AMS0EPF000001B5.mail.protection.outlook.com (10.167.16.169) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.6838.14 via Frontend Transport; Tue, 3 Oct 2023 01:05:33 +0000 Received: from SE-MAILARCH01W.axis.com (10.20.40.15) by se-mail01w.axis.com (10.20.40.7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.34; Tue, 3 Oct 2023 03:05:33 +0200 Received: from se-mail01w.axis.com (10.20.40.7) by SE-MAILARCH01W.axis.com (10.20.40.15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.34; Tue, 3 Oct 2023 03:05:33 +0200 Received: from se-intmail02x.se.axis.com (10.0.5.60) by se-mail01w.axis.com (10.20.40.7) with Microsoft SMTP Server id 15.1.2375.34 via Frontend Transport; Tue, 3 Oct 2023 03:05:33 +0200 Received: from saur (saur.se.axis.com [10.92.3.10]) by se-intmail02x.se.axis.com (Postfix) with ESMTP id 47B461072 for ; Tue, 3 Oct 2023 03:05:33 +0200 (CEST) Received: from saur.se.axis.com (localhost [127.0.0.1]) by saur (8.17.1/8.15.2) with ESMTPS id 39315XvL2892785 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NOT) for ; Tue, 3 Oct 2023 03:05:33 +0200 Received: (from pkj@localhost) by saur.se.axis.com (8.17.1/8.17.1/Submit) id 39315XJa2892782 for openembedded-core@lists.openembedded.org; Tue, 3 Oct 2023 03:05:33 +0200 From: Peter Kjellerstedt To: Subject: [PATCH 2/3] cmake.bbclass: Add *.cmake to CONFIGURE_FILES Date: Tue, 3 Oct 2023 03:05:28 +0200 Message-ID: <20231003010529.2892756-2-pkj@axis.com> X-Mailer: git-send-email 2.40.1 In-Reply-To: <20231003010529.2892756-1-pkj@axis.com> References: <20231003010529.2892756-1-pkj@axis.com> MIME-Version: 1.0 X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: AMS0EPF000001B5:EE_|DB9PR02MB6633:EE_ X-MS-Office365-Filtering-Correlation-Id: 32ae0d4d-c55d-4e45-62e3-08dbc3acd894 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: CPT2jGy0BqlafYgDZimOcuB7UU/MdwzwBrhPLH99wsaesDDgr/lIkg9FOkBzIQ2YVjwpunERdmhi8w8XUqROhjhtgFaCy6CKYQPwGhEmYjhbL7HdB67PCmYrwHqGKLI4kO8OtJlbeCZEANSeGPi+/UOJd45xTXjMjsCc6GJLdM6SV0rxJcJTT8xZnSmw5ya15OctrW2H0JPWZH4iVuNcsJPhmA7nLnUcY6kT77+cSYMU9TiomQDdAoy6BzUw0Y0/Pk7f7ndrTCRlQrj5JCH0VMKkmGOuSkAtj8cX17EgLfNilPHCy4PAZ7aqy6b7eBxrlvr6G2y+z02rXSF1jdDNKs2V6c/hbGPD9+Q243Mhd8gF/S2x3Cf45rLF2q8eF7yocCKusjiQS4byOPoBiU8NxahWozpHMIsuEe7shCd5EMaJ1OuRotoG+t0Fr3TxTw4JjUZVMygNjjPCjRYD6Ghk3AuH1e2i75yvMbf8cw1PYV0rA76wh8YsmjoXF9DIMS6lehW+c90rTOOX7efP8V62cBtPXaFl0uq6YwYv5bJaRiRi8Lb7yqVBhCJ1zlLxkXt0mkVufxfd16oZPKtQHtvf7x0sYVuSb5gWM8m4azr1xC9hBZCkRRE5u+19KcKpspBGGb49t12VhA2gQpzcoqPgflRPT1G1NVR8K1+p48aZsAFBuR+xptDzFk8d8H49b6sCQbNIt8Px2Tv4CTq9XXmHdtV/IDNK8HeaFW57t22flfjcWCTl92cdO/Pl/45meQ7qsRAkwKzNpX+9d1o/yMBTsA== X-Forefront-Antispam-Report: CIP:195.60.68.100;CTRY:SE;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:mail.axis.com;PTR:InfoDomainNonexistent;CAT:NONE;SFS:(13230031)(4636009)(396003)(39860400002)(346002)(136003)(376002)(230922051799003)(64100799003)(186009)(82310400011)(451199024)(1800799009)(46966006)(40470700004)(36840700001)(336012)(83380400001)(478600001)(6666004)(2616005)(26005)(1076003)(82740400003)(81166007)(356005)(36860700001)(47076005)(426003)(6916009)(70586007)(70206006)(316002)(42186006)(8936002)(8676002)(5660300002)(41300700001)(40480700001)(4744005)(2906002)(36756003)(40460700003)(36900700001);DIR:OUT;SFP:1101; X-OriginatorOrg: axis.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 03 Oct 2023 01:05:33.8139 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 32ae0d4d-c55d-4e45-62e3-08dbc3acd894 X-MS-Exchange-CrossTenant-Id: 78703d3c-b907-432f-b066-88f7af9ca3af X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=78703d3c-b907-432f-b066-88f7af9ca3af;Ip=[195.60.68.100];Helo=[mail.axis.com] X-MS-Exchange-CrossTenant-AuthSource: AMS0EPF000001B5.eurprd05.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB9PR02MB6633 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 ; Tue, 03 Oct 2023 01:05:41 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/188617 This makes do_configure depend on changes to any cmake file when externalsrc is active. Signed-off-by: Peter Kjellerstedt --- meta/classes-recipe/cmake.bbclass | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meta/classes-recipe/cmake.bbclass b/meta/classes-recipe/cmake.bbclass index 41748b0820..d978b88944 100644 --- a/meta/classes-recipe/cmake.bbclass +++ b/meta/classes-recipe/cmake.bbclass @@ -156,7 +156,7 @@ EOF addtask generate_toolchain_file after do_patch before do_configure -CONFIGURE_FILES = "CMakeLists.txt" +CONFIGURE_FILES = "CMakeLists.txt *.cmake" do_configure[cleandirs] = "${@d.getVar('B') if d.getVar('S') != d.getVar('B') else ''}" From patchwork Tue Oct 3 01:05:29 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Kjellerstedt X-Patchwork-Id: 31584 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 70341E776E9 for ; Tue, 3 Oct 2023 01:05:41 +0000 (UTC) Received: from EUR03-AM7-obe.outbound.protection.outlook.com (EUR03-AM7-obe.outbound.protection.outlook.com [40.107.105.55]) by mx.groups.io with SMTP id smtpd.web11.98877.1696295137527770477 for ; Mon, 02 Oct 2023 18:05:38 -0700 Authentication-Results: mx.groups.io; dkim=fail reason="dkim: body hash did not verify" header.i=@axis.com header.s=selector1 header.b=A566AaI+; spf=pass (domain: axis.com, ip: 40.107.105.55, mailfrom: peter.kjellerstedt@axis.com) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=aBjRIQ2ASPnbG/D65AEyCrrSI71xehbEkrXGH0OQO7ekjjsPxRctdJtHa4Rn6FAiZjRKZO49mwD3WQVPSejaO1VDbdm6SVcM8ywBY07nJunMeGRMFwKUzlsHJF9bX9sUdze+1O1MM7CmqxwAmL4bcmU2IqlMpWUmrw/5SH8ffDKEDNHZpPY737EFJ4EsB4ZQeNw+OA8BWVuo9+FhNANjySqZS6lTfsEDH5cui0dQEGwpqF2h46JJAtret5ddh3JKbDcVzX4M4PjUHRd7sodhVJHKEZ1e2wu6qobFbxHneNPDr5rHqgqVZzELKeVApboYTuzWdQu/giLq+SSOG9RGOw== 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=7dT8XsEwTBnVF25bMKsBCFOh5TueYHnG9k66kbNKk/Q=; b=HLOm7nusd1Beo0ekiMFTN4cz00xJTZxqmiU4Fo2cgypMQ7q+EvH49FQLrauB8l0IxNeDitOU89pugV9fIDRvUiikceQEc47pGNbv0YI5rJT8j8aD6maJuxjBBEZNVsMXIwfF5qvXGWUgNxT6CkqvnOFMB8vFoc2WpMYy0Vl1SwBsptu1X09wrhvNvC4SGZQPK1sItPSBszYGjOzBfsXSUCNggXWfLwXgxSmLQjqQ3on207afoEKIYtGCsOxqtIAAe9b5teX12xffOXboW+9J6LBpkcp9btTUfRhjGl1Woy7nVXgzq3xL0gv0m9LIKAk4Y6TwOcx7H7eUl5exezYJ6A== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=fail (sender ip is 195.60.68.100) smtp.rcpttodomain=lists.openembedded.org smtp.mailfrom=axis.com; dmarc=fail (p=none sp=none pct=100) action=none header.from=axis.com; dkim=none (message not signed); arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=axis.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=7dT8XsEwTBnVF25bMKsBCFOh5TueYHnG9k66kbNKk/Q=; b=A566AaI+306wPrT2sUc3ndw3xQrYA9dIWs+2mKR0NRqvMGA5VzG2xEptsuYLZV9py/ffFuri99aQHH6Yvc935LWrEr7oBcp7vjapQ3anzzelqloyF6WoN2XJF5RrelKIuI9LJuSIJABmKy0M7RfGGRLGBKFMKtav7mBtd/4mZL4= Received: from DB8PR03CA0005.eurprd03.prod.outlook.com (2603:10a6:10:be::18) by DB9PR02MB6875.eurprd02.prod.outlook.com (2603:10a6:10:218::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6813.28; Tue, 3 Oct 2023 01:05:34 +0000 Received: from DB5PEPF00014B88.eurprd02.prod.outlook.com (2603:10a6:10:be:cafe::b6) by DB8PR03CA0005.outlook.office365.com (2603:10a6:10:be::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6838.33 via Frontend Transport; Tue, 3 Oct 2023 01:05:34 +0000 X-MS-Exchange-Authentication-Results: spf=fail (sender IP is 195.60.68.100) smtp.mailfrom=axis.com; dkim=none (message not signed) header.d=none;dmarc=fail action=none header.from=axis.com; Received-SPF: Fail (protection.outlook.com: domain of axis.com does not designate 195.60.68.100 as permitted sender) receiver=protection.outlook.com; client-ip=195.60.68.100; helo=mail.axis.com; Received: from mail.axis.com (195.60.68.100) by DB5PEPF00014B88.mail.protection.outlook.com (10.167.8.196) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.6838.14 via Frontend Transport; Tue, 3 Oct 2023 01:05:34 +0000 Received: from se-mail01w.axis.com (10.20.40.7) by se-mail02w.axis.com (10.20.40.8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.34; Tue, 3 Oct 2023 03:05:33 +0200 Received: from se-intmail02x.se.axis.com (10.0.5.60) by se-mail01w.axis.com (10.20.40.7) with Microsoft SMTP Server id 15.1.2375.34 via Frontend Transport; Tue, 3 Oct 2023 03:05:33 +0200 Received: from saur (saur.se.axis.com [10.92.3.10]) by se-intmail02x.se.axis.com (Postfix) with ESMTP id 66E331072 for ; Tue, 3 Oct 2023 03:05:33 +0200 (CEST) Received: from saur.se.axis.com (localhost [127.0.0.1]) by saur (8.17.1/8.15.2) with ESMTPS id 39315XUH2892789 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NOT) for ; Tue, 3 Oct 2023 03:05:33 +0200 Received: (from pkj@localhost) by saur.se.axis.com (8.17.1/8.17.1/Submit) id 39315XFc2892788 for openembedded-core@lists.openembedded.org; Tue, 3 Oct 2023 03:05:33 +0200 From: Peter Kjellerstedt To: Subject: [PATCH 3/3] autotools.bbclass: Add *.m4 to CONFIGURE_FILES Date: Tue, 3 Oct 2023 03:05:29 +0200 Message-ID: <20231003010529.2892756-3-pkj@axis.com> X-Mailer: git-send-email 2.40.1 In-Reply-To: <20231003010529.2892756-1-pkj@axis.com> References: <20231003010529.2892756-1-pkj@axis.com> MIME-Version: 1.0 X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DB5PEPF00014B88:EE_|DB9PR02MB6875:EE_ X-MS-Office365-Filtering-Correlation-Id: 940f7c70-3c0c-491d-115b-08dbc3acd8f3 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: nNCSfb6+Bf/BXEjb8R4ISLdyFLM1Ive/F7Ba7zAg5KiXmff5CI2KaqE0W8o3XGzH7jWBcjyzm1q4eexT3S8hg38rM4ENsMOp18vTZ1CHliXBZRfJuog30ZsqZ3sYX3mdlKOlKDGSYlQ5ZbkeyqeV5kCgr5IX48v/jFeq+KLNLWYQOev2Ge3BzhJ6Qzu+tjHe+roS/VXQ8/wbIeB7/BQTD8bR496lOXEGwb1jTOASSK6tXSu2wIxkNV6/o7NTW4TAKh0AvF2HNV+duzyKzPBAj0vIgpqLr7GpE76efKBk6tnuPMY6RCzFEfgJNDQdwtEpnxPbfmzIPYvgVLj13l8jp/2YYTr4NujOhHv88XLRKzOCnj7JxI/Axueva5Y953GJfP6bDLLZDSUy5i1B7UJKO1Rc0SigvWkKUElMdL8CU7L++4bOxrVEzp8QkYFLiYZXMISxk32sbEDRdGwbtqmwmEu5QhFGZm7n4OlS/U/32yFBZxxDNEsCY8NxUkjateHHbqeirgEEUb+kChNlkOv7hRYC7sBpN1JAY2SQLekl0HE5uxAGhckqPwBoXJfVHmy/bZ+S+4cyKdfr8vFnaUwgCgXUHCoAXwH4L0wAaidkYWFBFMEl6NhAf3v/BSYtkKwwA9JlNK+Uccarx6cGPXv/yx/6C3vNxjV/UjhXdsecNmvnbRJEXvZ7oXBNWbxVVQ1Oq7lLFl+TB84sNRRpBScPPoZyABtvmFdHLoc9P+mObxyBulx8v7zNKpnbjfMJhc2PB/K9csjYsdXhbwsuHytyag== X-Forefront-Antispam-Report: CIP:195.60.68.100;CTRY:SE;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:mail.axis.com;PTR:InfoDomainNonexistent;CAT:NONE;SFS:(13230031)(4636009)(39860400002)(396003)(376002)(136003)(346002)(230922051799003)(64100799003)(451199024)(82310400011)(1800799009)(186009)(46966006)(36840700001)(40470700004)(41300700001)(40460700003)(336012)(356005)(316002)(4744005)(8676002)(8936002)(6916009)(40480700001)(70586007)(42186006)(70206006)(83380400001)(36756003)(5660300002)(2616005)(426003)(47076005)(26005)(82740400003)(81166007)(2906002)(6666004)(1076003)(478600001)(36860700001)(36900700001);DIR:OUT;SFP:1101; X-OriginatorOrg: axis.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 03 Oct 2023 01:05:34.4031 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 940f7c70-3c0c-491d-115b-08dbc3acd8f3 X-MS-Exchange-CrossTenant-Id: 78703d3c-b907-432f-b066-88f7af9ca3af X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=78703d3c-b907-432f-b066-88f7af9ca3af;Ip=[195.60.68.100];Helo=[mail.axis.com] X-MS-Exchange-CrossTenant-AuthSource: DB5PEPF00014B88.eurprd02.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB9PR02MB6875 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 ; Tue, 03 Oct 2023 01:05:41 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/188618 This makes do_configure depend on changes to any m4 file when externalsrc is active. Signed-off-by: Peter Kjellerstedt --- meta/classes-recipe/autotools.bbclass | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meta/classes-recipe/autotools.bbclass b/meta/classes-recipe/autotools.bbclass index a4c1c4be41..5ed21a3d68 100644 --- a/meta/classes-recipe/autotools.bbclass +++ b/meta/classes-recipe/autotools.bbclass @@ -157,7 +157,7 @@ python autotools_aclocals () { do_configure[file-checksums] += "${@' '.join(siteinfo_get_files(d, sysrootcache=False)[1])}" -CONFIGURE_FILES = "${S}/configure.in ${S}/configure.ac ${S}/config.h.in ${S}/acinclude.m4 Makefile.am" +CONFIGURE_FILES = "${S}/configure.in ${S}/configure.ac ${S}/config.h.in *.m4 Makefile.am" autotools_do_configure() { # WARNING: gross hack follows: