From mboxrd@z Thu Jan 1 00:00:00 1970 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 smtp4.osuosl.org (smtp4.osuosl.org [140.211.166.137]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 2B9D4D743D0 for ; Wed, 20 Nov 2024 20:00:18 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp4.osuosl.org (Postfix) with ESMTP id 9467C4EC58; Wed, 20 Nov 2024 20:00:18 +0000 (UTC) X-Virus-Scanned: amavis at osuosl.org Received: from smtp4.osuosl.org ([127.0.0.1]) by localhost (smtp4.osuosl.org [127.0.0.1]) (amavis, port 10024) with ESMTP id kfho5t797r3Z; Wed, 20 Nov 2024 20:00:17 +0000 (UTC) X-Comment: SPF check N/A for local connections - client-ip=140.211.166.142; helo=lists1.osuosl.org; envelope-from=buildroot-bounces@buildroot.org; receiver= DKIM-Filter: OpenDKIM Filter v2.11.0 smtp4.osuosl.org 6FCE64EC59 Received: from lists1.osuosl.org (lists1.osuosl.org [140.211.166.142]) by smtp4.osuosl.org (Postfix) with ESMTP id 6FCE64EC59; Wed, 20 Nov 2024 20:00:17 +0000 (UTC) Received: from smtp1.osuosl.org (smtp1.osuosl.org [IPv6:2605:bc80:3010::138]) by lists1.osuosl.org (Postfix) with ESMTP id 8AB6A970 for ; Wed, 20 Nov 2024 20:00:15 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp1.osuosl.org (Postfix) with ESMTP id 860E285423 for ; Wed, 20 Nov 2024 20:00:15 +0000 (UTC) X-Virus-Scanned: amavis at osuosl.org Received: from smtp1.osuosl.org ([127.0.0.1]) by localhost (smtp1.osuosl.org [127.0.0.1]) (amavis, port 10024) with ESMTP id 1vF5lk8d0ur2 for ; Wed, 20 Nov 2024 20:00:15 +0000 (UTC) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=116.202.254.214; helo=ciao.gmane.io; envelope-from=gclub-buildroot@m.gmane-mx.org; receiver= DMARC-Filter: OpenDMARC Filter v1.4.2 smtp1.osuosl.org CFB5D8541E DKIM-Filter: OpenDKIM Filter v2.11.0 smtp1.osuosl.org CFB5D8541E Received: from ciao.gmane.io (ciao.gmane.io [116.202.254.214]) by smtp1.osuosl.org (Postfix) with ESMTPS id CFB5D8541E for ; Wed, 20 Nov 2024 20:00:14 +0000 (UTC) Received: from list by ciao.gmane.io with local (Exim 4.92) (envelope-from ) id 1tDqrz-0002cR-LB for buildroot@uclibc.org; Wed, 20 Nov 2024 21:00:11 +0100 X-Injected-Via-Gmane: http://gmane.org/ To: buildroot@uclibc.org From: Grant Edwards Date: Wed, 20 Nov 2024 20:00:06 -0000 (UTC) Message-ID: User-Agent: slrn/1.0.3 (Linux) X-Mailman-Original-Authentication-Results: smtp1.osuosl.org; dmarc=fail (p=none dis=none) header.from=gmail.com Subject: [Buildroot] Large number of duplicate files in sdk X-BeenThere: buildroot@buildroot.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: buildroot-bounces@buildroot.org Sender: "buildroot" When I do a "make sdk" (using 2024.02.6), the resulting tarball contains tons of duplicate files. I'm using an external Linaro ARM toolchain. With a fairly bare-bones package selection, the sdk tarball generated by buildroot appears to be about 40% duplicate files by size (about 20% by count). According to a Python app I hacked together it looks like there are 2300+ duplicated files taking up 380MB of wasted disk space. [The fdupes utility finds about 100 fewer duplicates than my Python application, so my numbers might be slightly off.] Pretty much all of the include and library files from the external toolchain are found under both ./opt/ext-toolchain/arm-linux-gnueabihf and again under ./arm-buildroot-linux-gnueabihf/sysroot Are both copies of all those files needed? Is there some option to prune unneeded files? My first impulse was to just delete ./opt/ext-toolchain, but I noticed that there are couple dozen files under ./bin that are symlinked to .../opt/ instead of being duplicated like everything else. -- Grant _______________________________________________ buildroot mailing list buildroot@buildroot.org https://lists.buildroot.org/mailman/listinfo/buildroot