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 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 smtp.lore.kernel.org (Postfix) with ESMTPS id D0270C43334 for ; Tue, 12 Jul 2022 01:05:56 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id E6652840E0; Tue, 12 Jul 2022 03:05:16 +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="kS27ITsa"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id DADFB840AB; Tue, 12 Jul 2022 03:04:46 +0200 (CEST) Received: from mail-wm1-x331.google.com (mail-wm1-x331.google.com [IPv6:2a00:1450:4864:20::331]) (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 D774D840A9 for ; Tue, 12 Jul 2022 03:04:40 +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-wm1-x331.google.com with SMTP id o8so3884334wms.2 for ; Mon, 11 Jul 2022 18:04:40 -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=ET6pcqj0T2kAoJ4afMBWBPAe5o9FOOFqVbGBCq9Eq9M=; b=kS27ITsaJFZLasuR+MJjYcWHdvTbQ9GmQYHTUwTqT4qeZjx/nahUIqwDDctgRpGG7C lDfJXBu820IGKoJm6z2QxwQnZDvduayolnG4votUJmyGKo/027x1xRBPeEm0OYn9ramm 6aaEv2hMPjxCktHKS6yxRyo5X6H8sCdOgZDL8= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=ET6pcqj0T2kAoJ4afMBWBPAe5o9FOOFqVbGBCq9Eq9M=; b=76S6W3YItlaKpZMB6MYBNMFwdxQgtz4+oFVqanUv2IMGogJONV8/bq+aAKXpDOowma VgrnjSvyAz4WHqa253x/+MswBPnVR5V+3Zwt3Fcfoc2/hr7LPsZvSewErwOWagiu7IZe /N5I4bCEoWNJa5l9DSeXWpr2mo+7ep2LGR9Va5aPhGLttAeleECVX/jj5bp3obNdng9M dvcUezDJG2QyY+3/o6e+ydELpoBPUDOJg/UwG2KvLgAXCAUg5f+TUcJ72LecTKYuVhQq Lke9HQvWs5wkyX5IdX29h7kbyGHo4Af0IFQou/IKIpJ+O4Leuf7KffeEyLirmMsTsCj0 /SFw== X-Gm-Message-State: AJIora9Ugl1cCI3PVAak7mWVoZ5Y2n7L/4uDbWQM50g1SQ2oi3LLnKHC uLAWPI4Lp0n+Fn8VKFH2IlH80UAI1pjdLbtw X-Google-Smtp-Source: AGRyM1s8Wrndh9q+Qs1NEelltALVSFdrFkWPmQ7u6XsslcDYpwDfqs68E/SW+fUf+QNqKrYEIgNc8w== X-Received: by 2002:a05:600c:354e:b0:3a1:9ddf:468d with SMTP id i14-20020a05600c354e00b003a19ddf468dmr1014331wmq.145.1657587880055; Mon, 11 Jul 2022 18:04:40 -0700 (PDT) Received: from sjg1.roam.corp.google.com (host-92-0-109-232.as13285.net. [92.0.109.232]) by smtp.gmail.com with ESMTPSA id p12-20020a5d48cc000000b0021d9d13bf6csm5541152wrs.97.2022.07.11.18.04.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 11 Jul 2022 18:04:39 -0700 (PDT) From: Simon Glass To: U-Boot Mailing List Cc: Tom Rini , Simon Glass Subject: [PATCH 07/19] buildman: Drop use of 'board' in board module Date: Mon, 11 Jul 2022 19:04:01 -0600 Message-Id: <20220712010413.331984-8-sjg@chromium.org> X-Mailer: git-send-email 2.37.0.144.g8ac04bfd2-goog In-Reply-To: <20220712010413.331984-1-sjg@chromium.org> References: <20220712010413.331984-1-sjg@chromium.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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.6 at phobos.denx.de X-Virus-Status: Clean Use brds instead so that we can reserve 'boards' and 'board' as module names. Signed-off-by: Simon Glass --- tools/buildman/board.py | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/tools/buildman/board.py b/tools/buildman/board.py index 08771b3f158..8de71e487ee 100644 --- a/tools/buildman/board.py +++ b/tools/buildman/board.py @@ -116,7 +116,7 @@ class Boards: def ReadBoards(self, fname): """Read a list of boards from a board file. - Create a board object for each and add it to our _boards list. + Create a Board object for each and add it to our _boards list. Args: fname: Filename of boards.cfg file @@ -238,21 +238,21 @@ class Boards: terms.append(term) return terms - def SelectBoards(self, args, exclude=[], boards=None): + def SelectBoards(self, args, exclude=[], brds=None): """Mark boards selected based on args Normally either boards (an explicit list of boards) or args (a list of terms to match against) is used. It is possible to specify both, in which case they are additive. - If boards and args are both empty, all boards are selected. + If brds and args are both empty, all boards are selected. Args: args: List of strings specifying boards to include, either named, or by their target, architecture, cpu, vendor or soc. If empty, all boards are selected. exclude: List of boards to exclude, regardless of 'args' - boards: List of boards to build + brds: List of boards to build Returns: Tuple @@ -283,8 +283,8 @@ class Boards: matching_term = str(term) build_it = True break - elif boards: - if brd.target in boards: + elif brds: + if brd.target in brds: build_it = True found.append(brd.target) else: @@ -302,8 +302,8 @@ class Boards: result[matching_term].append(brd.target) result['all'].append(brd.target) - if boards: - remaining = set(boards) - set(found) + if brds: + remaining = set(brds) - set(found) if remaining: warnings.append('Boards not found: %s\n' % ', '.join(remaining)) -- 2.37.0.144.g8ac04bfd2-goog