From patchwork Tue Aug 11 17:23:34 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simon Glass X-Patchwork-Id: 1343389 X-Patchwork-Delegate: trini@ti.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de (client-ip=85.214.62.61; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: ozlabs.org; dmarc=pass (p=none dis=none) header.from=chromium.org Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=chromium.org header.i=@chromium.org header.a=rsa-sha256 header.s=google header.b=PaSfZLuF; dkim-atps=neutral Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4BR0704xpQz9sTX for ; Wed, 12 Aug 2020 03:23:56 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id EA2DE821B7; Tue, 11 Aug 2020 19:23:53 +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="PaSfZLuF"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 39711821B7; Tue, 11 Aug 2020 19:23:52 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,SPF_HELO_NONE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-ot1-x341.google.com (mail-ot1-x341.google.com [IPv6:2607:f8b0:4864:20::341]) (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 DB1AB81BB8 for ; Tue, 11 Aug 2020 19:23:48 +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-ot1-x341.google.com with SMTP id v21so10705536otj.9 for ; Tue, 11 Aug 2020 10:23:48 -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:mime-version :content-transfer-encoding; bh=L/8xNeNZWXmxoe9epjzOWCHVvMBWXv4Uy88atgcqEjQ=; b=PaSfZLuFnoQrxFCHZQSk/vyiFSyd2P/0A1IkW+QCDmkHmfZ9BTyw7NE1bwt7Zwh4Xi Oixa6bSDAUtqoyNiXPkzgcDBJNzEHuDrFZfV4Z+4TkEx6d3BMyL4/ji8XRSc+zyJO5yJ IidAbKSQZv3+fganehnKfHsMzevQeZXU6Y71o= 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:mime-version :content-transfer-encoding; bh=L/8xNeNZWXmxoe9epjzOWCHVvMBWXv4Uy88atgcqEjQ=; b=XUcoM3QSsRz/1t7ZyEfvs9tb2JGPdnCm+/LtNWDmHtG22j+1936moHq8PFwV2SZnYx xXPC/o7ItZoAGFD4ffw0G6AHJ9+S54fjhy6MAwdQ9AoBAsHwXi/wG0KOWMgH1zKoGgl9 aZAjghJalBRDIlyVt6hI2bf2NLMJ3796CUIrdx7ODuCvqKdinrb6IrWJJIJ8QSjr1732 y5RdOTQ2yQnPSnxPTJaNXM91oGukokeKDao0Mb5evBPTkpa+pHbw26KbqVpR6lwbUHWR f+w0oQdHZ7RKMuPqNIe+IS4hyYLXe8pwU7Zg9Fv0D19TUmdds5z7pkCNW6ru+j0esSJ9 vv7g== X-Gm-Message-State: AOAM531BEC1kez7LznS2LIImfwbLZf4pI/fXITjB3bozwzP+0tcV3z4Z ft0XnDzrp3NNWQmfDOsTOolPeoxadzAZUg== X-Google-Smtp-Source: ABdhPJzZMAKDTkcZ5Adctx2cXaJnk39DU24aaE4r5fppdSXN0iWG+wcZFGA7isPzQ1uo839jUhGviw== X-Received: by 2002:a9d:6c93:: with SMTP id c19mr5659836otr.366.1597166627530; Tue, 11 Aug 2020 10:23:47 -0700 (PDT) Received: from localhost.localdomain (c-73-14-175-90.hsd1.co.comcast.net. [73.14.175.90]) by smtp.gmail.com with ESMTPSA id y15sm1551193oto.60.2020.08.11.10.23.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 11 Aug 2020 10:23:47 -0700 (PDT) From: Simon Glass To: U-Boot Mailing List Cc: Tom Rini , Simon Glass Subject: [PATCH v2 1/8] moveconfig: Skip binary and ELF files Date: Tue, 11 Aug 2020 11:23:34 -0600 Message-Id: <20200811172342.508792-2-sjg@chromium.org> X-Mailer: git-send-email 2.28.0.236.gb10cc79966-goog MIME-Version: 1.0 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.102.3 at phobos.denx.de X-Virus-Status: Clean Add a few more file extensions to the list of files that should not be processed. This avoids unicode errors, for example. Signed-off-by: Simon Glass --- (no changes since v1) tools/moveconfig.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tools/moveconfig.py b/tools/moveconfig.py index 36361f9ed1b..9514d9a00cb 100755 --- a/tools/moveconfig.py +++ b/tools/moveconfig.py @@ -666,7 +666,8 @@ def cleanup_headers(configs, options): if dirpath == os.path.join('include', 'generated'): continue for filename in filenames: - if not filename.endswith(('~', '.dts', '.dtsi')): + if not filename.endswith(('~', '.dts', '.dtsi', '.bin', + '.elf')): header_path = os.path.join(dirpath, filename) # This file contains UTF-16 data and no CONFIG symbols if header_path == 'include/video_font_data.h':