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 EBE18C0015E for ; Sun, 16 Jul 2023 00:38:19 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 3945C86373; Sun, 16 Jul 2023 02:37:43 +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="Xz+ehqlf"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id DD9B086202; Sun, 16 Jul 2023 02:37:31 +0200 (CEST) Received: from mail-io1-xd33.google.com (mail-io1-xd33.google.com [IPv6:2607:f8b0:4864:20::d33]) (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 77AAF86272 for ; Sun, 16 Jul 2023 02:37:28 +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-io1-xd33.google.com with SMTP id ca18e2360f4ac-783544a1c90so173453739f.1 for ; Sat, 15 Jul 2023 17:37:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1689467847; x=1692059847; 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=ngQOSfKefCF2JojTIrs/wDt0jbTuGHJP6Tse3Y9dF6I=; b=Xz+ehqlfnlZWft1iaeNokDGMJ7MRNGTra79uY17Bvym4nBwffx0G88VwD/3eE0Ii4I mWs4pgdszCUl4tmW26kOX4kigBoN2SPOIyftk9ASo1Rjlb3OjSHepZPsN7TxIKvP9Ybe UnP6/fKtSBIJI/dcaZeFx4dVO8pZk3g0AqXoc= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1689467847; x=1692059847; 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=ngQOSfKefCF2JojTIrs/wDt0jbTuGHJP6Tse3Y9dF6I=; b=XIpB+nq9QCcAySIedxVkw5xrI9FGocGBNLwWNitijEHrx1EFDPX91m6MIS7Od7vQh5 n9+zjB9Ip4RFADKhvfPlGUs2vFGgbqbWhwXWRJzbbs70OQ/kJND80jtvx7W75KuV8eWz MxUnH3xz2DXOfMJIFqOqjV1hecArCw1pU8yE4R4bZmIZZYk72k3SUSZ7T6NZ3lK47AYj uc9JX8k2HE8McJ12sY93SwWV03ILQFX+P3GgKZnCOXs0Jv5WWVH+pwmxwsDe0urHbnyl WOUv40yKQvO2ZVYg0HJY6ta6S0moT4DhgFId97rR9P4mU/KmiwvjzX1HIyteW1nNwkkb Ys0Q== X-Gm-Message-State: ABy/qLYrXnaqRqbAA3YVKuE6hLNVVjg3k1TmCdx/oQmvgl+6KC0lAgXt ksuIa3mMAZncPx07TZ8fr9wGDt2dyplVm54axFc= X-Google-Smtp-Source: APBJJlFurB8UJBKDRxXjVSoi4c+6A1lHQ586CF5IpKZh4HGyuGzOCSoXsNVvD4eazDODWJzPAQrgcA== X-Received: by 2002:a6b:d30d:0:b0:77e:3598:e511 with SMTP id s13-20020a6bd30d000000b0077e3598e511mr8602847iob.2.1689467847098; Sat, 15 Jul 2023 17:37:27 -0700 (PDT) Received: from sjg1.lan (c-73-14-173-85.hsd1.co.comcast.net. [73.14.173.85]) by smtp.gmail.com with ESMTPSA id t3-20020a05663801e300b0042b52dc77e3sm3510512jaq.158.2023.07.15.17.37.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 15 Jul 2023 17:37:26 -0700 (PDT) From: Simon Glass To: U-Boot Mailing List Cc: Mike Frysinger , Simon Glass Subject: [PATCH v3 05/81] buildman: Drop dead code to handle :CONFIG_ construct Date: Sat, 15 Jul 2023 18:35:33 -0600 Message-ID: <20230716003718.231903-6-sjg@chromium.org> X-Mailer: git-send-email 2.41.0.455.g037347b96a-goog In-Reply-To: <20230716003718.231903-1-sjg@chromium.org> References: <20230716003718.231903-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.8 at phobos.denx.de X-Virus-Status: Clean This is not needed anymore, so drop it. Signed-off-by: Simon Glass Fixes: 252ed872 ("kconfig: remove meaningless prefixes in defconfig files") --- Changes in v3: - Add new patch to drop dead code to handle :CONFIG_ construct tools/buildman/boards.py | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/tools/buildman/boards.py b/tools/buildman/boards.py index 0bb0723b18eb..cdb380f7db1b 100644 --- a/tools/buildman/boards.py +++ b/tools/buildman/boards.py @@ -229,19 +229,7 @@ class KconfigScanner: 'config': , } """ - # strip special prefixes and save it in a temporary file - outfd, self._tmpfile = tempfile.mkstemp() - with os.fdopen(outfd, 'w') as outf: - with open(defconfig, encoding='utf-8') as inf: - for line in inf: - colon = line.find(':CONFIG_') - if colon == -1: - outf.write(line) - else: - outf.write(line[colon + 1:]) - - self._conf.load_config(self._tmpfile) - try_remove(self._tmpfile) + self._conf.load_config(defconfig) self._tmpfile = None params = {} -- 2.41.0.455.g037347b96a-goog