From: Tom Rini Date: Mon, 9 Jan 2017 19:59:29 -0500 Subject: [U-Boot] [PATCH] build-whitelist.sh: Ignore mach-types.h In-Reply-To: References: <1484009194-17083-1-git-send-email-trini@konsulko.com> Message-ID: <20170110005929.GK7532@bill-the-cat> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Tue, Jan 10, 2017 at 09:50:42AM +0900, Masahiro Yamada wrote: > Hi Tom, > > > 2017-01-10 9:46 GMT+09:00 Tom Rini : > > The file arch/arm/include/asm/mach-types.h comes from the Linux kernel > > and contains a number of CONFIG_ symbols that we have no control over > > nor do we wish to do anything with. Ignore that file and re-generate > > the whitelist. > > > > Cc: Masahiro Yamada > > Signed-off-by: Tom Rini > > I had also noticed that > more than 1000 CONFIG symbols come from this header. > > How many boards actually need mach-types.h? > Can we remove the header entirely? At issue is that CONFIG_MACH_TYPE (which will require a little thinking about how to migrate) is not something that can be up and removed. We support booting old Linux and we support booting non-Linux OSes that also make use of the old bd struct. Something I had done half an experiment on at some point, and forgotten about, was syncing only the MACH_TYPE_xxx values as the entire rest of the header contains logic we don't need. I'll give that a whirl and report back. -- Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 819 bytes Desc: Digital signature URL: