From patchwork Thu Oct 26 13:55:30 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Geert Uytterhoeven X-Patchwork-Id: 738499 Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net [23.128.96.19]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id E5D5E2E402 for ; Thu, 26 Oct 2023 13:55:39 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=none Received: from xavier.telenet-ops.be (xavier.telenet-ops.be [IPv6:2a02:1800:120:4::f00:14]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7B10DD4B for ; Thu, 26 Oct 2023 06:55:36 -0700 (PDT) Received: from ramsan.of.borg ([IPv6:2a02:1810:ac12:ed40:32d3:3cb9:edce:43ae]) by xavier.telenet-ops.be with bizsmtp id 2dva2B0082XL1Wb01dvaKi; Thu, 26 Oct 2023 15:55:34 +0200 Received: from rox.of.borg ([192.168.97.57]) by ramsan.of.borg with esmtp (Exim 4.95) (envelope-from ) id 1qw0pa-007YxJ-1x; Thu, 26 Oct 2023 15:55:34 +0200 Received: from geert by rox.of.borg with local (Exim 4.95) (envelope-from ) id 1qw0ph-00HArs-VU; Thu, 26 Oct 2023 15:55:33 +0200 From: Geert Uytterhoeven To: Rob Herring , Frank Rowand Cc: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Geert Uytterhoeven Subject: [PATCH 0/2] scripts: dt_to_config: Fix nul-separated compatible values Date: Thu, 26 Oct 2023 15:55:30 +0200 Message-Id: X-Mailer: git-send-email 2.34.1 Precedence: bulk X-Mailing-List: devicetree@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Hi all, Due to a not-so-recent change in dtc, the dt_to_config script no longer works well when used on a DTB instead of on a DTS file. The first patch fixes that, the second patch fixes the rather odd spacing in that script. To not hamper backporting the fix, I put the reformatting patch last. Thanks for your comments! P.S. Apparently I had fixed the similar issue in my own out-of-tree linux-config-from-dt script in a slightly different way. https://github.com/geertu/linux-scripts/commit/56ade26c032c45e9353334384643d190d34b89fb Geert Uytterhoeven (2): scripts: dt_to_config: Fix nul-separated compatible values scripts: dt_to_config: Fix odd formatting scripts/dtc/dt_to_config | 1765 +++++++++++++++++++------------------- 1 file changed, 879 insertions(+), 886 deletions(-)