From: Rasmus Villemoes Date: Tue, 7 Jul 2020 16:15:02 +0200 Subject: [RFC 1/4] dtoc: add POC for dtb shrink In-Reply-To: <20200619211140.5081-2-walter.lozano@collabora.com> References: <20200619211140.5081-1-walter.lozano@collabora.com> <20200619211140.5081-2-walter.lozano@collabora.com> Message-ID: List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On 19/06/2020 23.11, Walter Lozano wrote: > Some additional reduction could be possible by only keeping the nodes for > whose compatible string is supported by any enabled driver. However, > this requires to add extra logic to parse config files and map > configuration to compatible strings. If this can be done after building the U-Boot (or SPL) ELF, can't it just be done by doing 'grep -a' on that? Or, probably a little more efficient, running "strings | grep -E '^[a-zA-Z0-9,._-]*' | sort -u", slurping in the output of that in a python set() and just looking there. Rasmus