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=-20.2 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_CR_TRAILER,INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS, URIBL_BLOCKED,USER_AGENT_GIT 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 18CFAC07E95 for ; Sun, 4 Jul 2021 18:20:35 +0000 (UTC) Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 481FB613DA for ; Sun, 4 Jul 2021 18:20:34 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 481FB613DA Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=chromium.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 7F7FC82BE2; Sun, 4 Jul 2021 20:20:19 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=chromium.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (1024-bit key; unprotected) header.d=chromium.org header.i=@chromium.org header.b="YaI3MBKR"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id E910682BD9; Sun, 4 Jul 2021 20:20:08 +0200 (CEST) Received: from mail-oo1-xc35.google.com (mail-oo1-xc35.google.com [IPv6:2607:f8b0:4864:20::c35]) (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 4026682B82 for ; Sun, 4 Jul 2021 20:20:04 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=chromium.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=sjg@chromium.org Received: by mail-oo1-xc35.google.com with SMTP id o3-20020a4a84c30000b0290251d599f19bso1278798oog.8 for ; Sun, 04 Jul 2021 11:20:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=B9nnYJPykLF4KMTFV8ytdY/coS7J63AWzPkFIfxl3Ew=; b=YaI3MBKR5t2XUdxVxoFY9xr91VArzhi7B8Wi8EYDBVlDxJHne/IywxvYjjltuN/QCK SWbC1ABh2cXlR4c2D9cEqoq91KoXipFT5SeukiCrCFxaIfOSMbY0amqns1Ye7X6cr/3S 4sWOqmuGC/ZUVrIqj9PUed4gsq/NU40bgrVDU= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=B9nnYJPykLF4KMTFV8ytdY/coS7J63AWzPkFIfxl3Ew=; b=TmoabPHxHV3FjWhO/CTKHX/6Qgw0Wo4Jq/K2sqXXmelbk+cSLqSnEISxGgZ+5yI6zN QdZ6tHMCbK4nooitZIGUvlO9X7YsGmiQgPTFFxCKIDHitWB68iMN2ySpRCdSMhyIHspK FUFXtTx/IV2jPJBpKKQBJg88KPxbIr4JwtXj7v0rWlgAGuPWFtKRDhUIJhGO40h74Mlj BX8Adid+rLFHOX0bkNMUumNfFNPJTrskmckzD3oEbjTzh8fsxjC3kWAethbkMIiQJPkm LKIiQrmTeqnjgn1+3gjg2Pmad7s+vQTF/pOsEql+9NgIgv7K/+muG1I//Tyt/N9D40mG mzkA== X-Gm-Message-State: AOAM531+80JSuKm7ooT+ieylpQDN8aDBwyVLEoGS0J0NXpXWHBfAixAo ifYcN6rH8ACPg/agJAwaEr9BwquUiNC6KFE6 X-Google-Smtp-Source: ABdhPJwuoz7KkMwwMpSjkgoJMS2ZG/s0uHpoyQWd8aDNgbj3vU+SNkEENb5IcqWTvIlfW4OY2MFvHA== X-Received: by 2002:a4a:94e2:: with SMTP id l31mr7573262ooi.62.1625422802746; Sun, 04 Jul 2021 11:20:02 -0700 (PDT) Received: from kiwi.bld.corp.google.com (c-67-190-101-114.hsd1.co.comcast.net. [67.190.101.114]) by smtp.gmail.com with ESMTPSA id z2sm2092953otm.2.2021.07.04.11.20.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 04 Jul 2021 11:20:02 -0700 (PDT) From: Simon Glass To: U-Boot Mailing List Cc: Johan Jonker , Simon Glass Subject: [PATCH 4/8] dtoc: Correct the re_compat regular expression Date: Sun, 4 Jul 2021 12:19:46 -0600 Message-Id: <20210704181950.1917106-5-sjg@chromium.org> X-Mailer: git-send-email 2.32.0.93.g670b81a890-goog In-Reply-To: <20210704181950.1917106-1-sjg@chromium.org> References: <20210704181950.1917106-1-sjg@chromium.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.34 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.2 at phobos.denx.de X-Virus-Status: Clean This expects a . before the field name (.e.g '.compatible = ...) but presently accepts anything at all. Fix it. Signed-off-by: Simon Glass --- tools/dtoc/src_scan.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/dtoc/src_scan.py b/tools/dtoc/src_scan.py index 6c37a71e978..6e8e1ba51a0 100644 --- a/tools/dtoc/src_scan.py +++ b/tools/dtoc/src_scan.py @@ -452,8 +452,8 @@ class Scanner: # Collect the compatible string, e.g. 'rockchip,rk3288-grf' compat = None - re_compat = re.compile(r'{\s*.compatible\s*=\s*"(.*)"\s*' - r'(,\s*.data\s*=\s*(\S*))?\s*},') + re_compat = re.compile(r'{\s*\.compatible\s*=\s*"(.*)"\s*' + r'(,\s*\.data\s*=\s*(\S*))?\s*},') # This is a dict of compatible strings that were found: # key: Compatible string, e.g. 'rockchip,rk3288-grf' -- 2.32.0.93.g670b81a890-goog