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 49DC9C001B0 for ; Wed, 19 Jul 2023 23:50:38 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 3C78C867A3; Thu, 20 Jul 2023 01:50:17 +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="WZ9gxClM"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 05D47867A5; Thu, 20 Jul 2023 01:50:08 +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 2A52886702 for ; Thu, 20 Jul 2023 01:50: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-io1-xd33.google.com with SMTP id ca18e2360f4ac-78362f574c9so8191039f.3 for ; Wed, 19 Jul 2023 16:50:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1689810602; x=1690415402; 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=QFrmf+9VJAmrHoL5VRm5vGg1McKz+ZSUxPKGO9VahtQ=; b=WZ9gxClM5ZRtocGRHjeo9rH9TNAF4htt9UHmfeqkbwdJMTxrrRFi1H8ux3CwRPVGV6 dcYciKoUZGYWMLaqNSa2oHIqMoLhU95l1d5okZAorCSVeaNQpZZ8X+YnV0bhjLht4Nuj 7tp17dcW/41/6tSqYwbGyWUXDqje38NlfhB90= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1689810602; x=1690415402; 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=QFrmf+9VJAmrHoL5VRm5vGg1McKz+ZSUxPKGO9VahtQ=; b=R3usz1p6wFAz/H9WnHzie24j9pef0x8pDHLCEjVMyxj/GvPPGfHb1NivGWVDoY3scN Kseef5M+K9GtYF5z1MzkDYqsDCHMglAiGLcK2KNIBkRxtRCDez/8zZQRRC6HcjRPkVpK MJfdhxqCymvavS0p08BxteF2OFez7HrrMpyf1bmq5YiEl0ST//e4jBylTntvjazjMHh2 GLvzFxyirJ2iKIxvSjN6ZFwUrtM4WkJbHXYoTEdj/cQs1UI9sYs7P5+xXQwwyGIo7Clb DfQjr2i2TjAHVISz2w8miSOquCw+h1Ala94X91Rgxye3a3CxF+658Wk7/sk1SheSnktu QELw== X-Gm-Message-State: ABy/qLaLHnRpoUReCWdFjjgzm1wT4ajf1tsaPVI3sDJsuuzS8G3IySz5 5q+HtRcaGglG8XGXi+ZlfksfCpPDL02kgwXbL+Y= X-Google-Smtp-Source: APBJJlHQgi5EeP0KxndTLNHG3BeF8VUPfNQdXsVoa0lXOzWWcpCP3gn2E/7mIeOE6NjdHiWW7750oA== X-Received: by 2002:a6b:e80b:0:b0:774:8f64:82a8 with SMTP id f11-20020a6be80b000000b007748f6482a8mr7169750ioh.18.1689810602436; Wed, 19 Jul 2023 16:50:02 -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 ed16-20020a056638291000b0042bb1779c18sm1551779jab.151.2023.07.19.16.50.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 19 Jul 2023 16:50:02 -0700 (PDT) From: Simon Glass To: U-Boot Mailing List Cc: Mike Frysinger , Simon Glass Subject: [PATCH v4 05/83] buildman: Drop dead code to handle :CONFIG_ construct Date: Wed, 19 Jul 2023 17:48:13 -0600 Message-ID: <20230719234953.796101-6-sjg@chromium.org> X-Mailer: git-send-email 2.41.0.487.g6d72f3e995-goog In-Reply-To: <20230719234953.796101-1-sjg@chromium.org> References: <20230719234953.796101-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") --- (no changes since v3) 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.487.g6d72f3e995-goog