From patchwork Sat Sep 2 14:53:05 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?q?Jo=C3=A3o_Marcos_Costa?= X-Patchwork-Id: 1829106 X-Patchwork-Delegate: trini@ti.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20221208 header.b=EpiEEQJr; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de (client-ip=2a01:238:438b:c500:173d:9f52:ddab:ee01; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=patchwork.ozlabs.org) Received: from phobos.denx.de (phobos.denx.de [IPv6:2a01:238:438b:c500:173d:9f52:ddab:ee01]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1)) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4RdHw80Qfmz1yfm for ; Sun, 3 Sep 2023 00:53:44 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 1287E8679F; Sat, 2 Sep 2023 16:53:26 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="EpiEEQJr"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 51DBF8684C; Sat, 2 Sep 2023 16:53:25 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-1.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_ENVFROM_END_DIGIT, FREEMAIL_FROM,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-wm1-x333.google.com (mail-wm1-x333.google.com [IPv6:2a00:1450:4864:20::333]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id C9D9486759 for ; Sat, 2 Sep 2023 16:53:22 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=jmcosta944@gmail.com Received: by mail-wm1-x333.google.com with SMTP id 5b1f17b1804b1-4018af103bcso84765e9.1 for ; Sat, 02 Sep 2023 07:53:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1693666402; x=1694271202; darn=lists.denx.de; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=e7hb2jrvivQxON1XeovwgMxiW+RYRxZdLPP3zp29do4=; b=EpiEEQJrU9oE6U1sdemFnWeZCcQ5GPpjsId0DUkUMmXccYMqowgVXqWUU/erpZi3+y /XkdFEHzTRIKFAhzdWpvi/f6rzbRZvzM2XwaYQot/Sc+LzcFsR1Cjc247KAUMJtAJGfy 9BdW2dP+jgYoqdrvs5XFAOnWqVD3n3OjeA7TvY9hdZjP11dVgskl9hHa1q3N18RbjUmX CT02fBtZH6g6QaZs24xWyhgrJemsIy9rWDNGGS4lD3MWhXWfQxMqYdl+EyDLsyP0D9el 5iPmck+fBjCnVMbziayB847Z4JF8twYYVolrwSN411dUctdP3osuNtksLU15XoNsn5vR k3kw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1693666402; x=1694271202; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=e7hb2jrvivQxON1XeovwgMxiW+RYRxZdLPP3zp29do4=; b=kU+FTS703Sa14im5ZmolPZgd2lj96qvwZGB2rqoByteiaMymN5eN9SY7eOzgAkdugM ecyBzoL+Qp7A2pzVBcmiW/WEHVvgem00CrqzRHzBB31JuKJcTZHARbORQeJyBopMJred bxdwCyZWh9rL2TeVeBOdklCsyJPFrqyhM+MZTC1CMAxS5vW4ISWTPfs2KFBSJqvleZbg cUge8/7n+0ufdwDazByIL4cNARJnYhSppw5v17fJs5gdT+rwzOiG52AlJAgcWvs3B+jk gVimOLt4IB9zjrwz3Zg1ufHArcYTi3szzlpKDX0HbJHMsHBzw316KJI8pRRFLbXTcfm7 rWqA== X-Gm-Message-State: AOJu0YxYBCVXpY66tYyT2RSOa2hlZ1hSAlIpKCmfp46NaSby0WfYrCCD bFatMtP2lM937v3vEpTKEs0RNKERrU+c1Z1q X-Google-Smtp-Source: AGHT+IFcXSQ8GG1Yw4EjsDCa5kcBctDKQmGXHJ/6+RBfADqZZSht++GqTUIuemJ6xsjQClKX0W0aJQ== X-Received: by 2002:a05:600c:2196:b0:401:4542:5ee1 with SMTP id e22-20020a05600c219600b0040145425ee1mr4579434wme.5.1693666401675; Sat, 02 Sep 2023 07:53:21 -0700 (PDT) Received: from fedora.. (cust-west-par-46-193-56-152.cust.wifirst.net. [46.193.56.152]) by smtp.gmail.com with ESMTPSA id cc11-20020a5d5c0b000000b0031f34a395e7sm2385449wrb.45.2023.09.02.07.53.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 02 Sep 2023 07:53:21 -0700 (PDT) From: Joao Marcos Costa To: u-boot@lists.denx.de Cc: trini@konsulko.com, sjg@chromium.org, antoningodard@pm.me, Y.Moog@phytec.de, Joao Marcos Costa Subject: [PATCH v3 2/7] scripts/gen_compile_commands.py: adapt _LINE_PATTERN Date: Sat, 2 Sep 2023 16:53:05 +0200 Message-ID: <20230902145310.107054-3-jmcosta944@gmail.com> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20230902145310.107054-1-jmcosta944@gmail.com> References: <20230902145310.107054-1-jmcosta944@gmail.com> MIME-Version: 1.0 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.8 at phobos.denx.de X-Virus-Status: Clean For U-Boot's context, the regular expression defined by _LINE_PATTERN should be adapted. Replace 'savedcmd' by 'cmd'. Signed-off-by: Joao Marcos Costa --- scripts/gen_compile_commands.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/gen_compile_commands.py b/scripts/gen_compile_commands.py index 15ba56527a..0227522959 100755 --- a/scripts/gen_compile_commands.py +++ b/scripts/gen_compile_commands.py @@ -19,7 +19,7 @@ _DEFAULT_OUTPUT = 'compile_commands.json' _DEFAULT_LOG_LEVEL = 'WARNING' _FILENAME_PATTERN = r'^\..*\.cmd$' -_LINE_PATTERN = r'^savedcmd_[^ ]*\.o := (.* )([^ ]*\.c) *(;|$)' +_LINE_PATTERN = r'^cmd_[^ ]*\.o := (.* )([^ ]*\.c) *(;|$)' _VALID_LOG_LEVELS = ['DEBUG', 'INFO', 'WARNING', 'ERROR', 'CRITICAL'] # The tools/ directory adopts a different build system, and produces .cmd # files in a different format. Do not support it.