From: Arnout Vandecappelle Date: Sun, 12 Mar 2017 20:43:23 +0100 Subject: [Buildroot] [PATCH v2 2/2] Makefile: add check of binaries architecture In-Reply-To: <20170312182150.GF3739@free.fr> References: <1489340983-11806-1-git-send-email-thomas.petazzoni@free-electrons.com> <1489340983-11806-2-git-send-email-thomas.petazzoni@free-electrons.com> <20170312180508.GE3739@free.fr> <20170312182150.GF3739@free.fr> Message-ID: <992feb18-768a-dd03-4402-e01840158fbb@mind.be> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: buildroot@busybox.net On 12-03-17 19:21, Yann E. MORIN wrote: > Thomas, All, > > On 2017-03-12 19:05 +0100, Yann E. MORIN spake thusly: >> On 2017-03-12 18:49 +0100, Thomas Petazzoni spake thusly: >>> +for f in $(find ${TARGET_DIR}/{usr/,}{bin,lib,sbin} -type f) ; do > So, as I said earlier: > - cd in TARGET_DIR first; > - exclude .lib/firmware and /usr/lib/firmware > > cd "${TARGET_DIR}" > find ./{usr/,}{bin,lib,sbin} \ > -type f \( \( -path './lib/firmware/*' -o -path './usr/lib/firmware*' \) \ > -prune -o -print \) As I wrote in the older thread, there are also binaries in /usr/share. That basically leaves nothing except /etc, and a specific exclusion is anyway still needed for /lib/firmware, so I would just do "find .". Regards, Arnout -- Arnout Vandecappelle arnout at mind be Senior Embedded Software Architect +32-16-286500 Essensium/Mind http://www.mind.be G.Geenslaan 9, 3001 Leuven, Belgium BE 872 984 063 RPR Leuven LinkedIn profile: http://www.linkedin.com/in/arnoutvandecappelle GPG fingerprint: 7493 020B C7E3 8618 8DEC 222C 82EB F404 F9AC 0DDF