build-whitelist.sh: Ignore mach-types.h
PATCH 1/1 build-whitelist.sh: Ignore mach-types.h
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.
--- scripts/build-whitelist.sh | 2 +- scripts/config_whitelist.txt | 1078 ------------------------------------------ 2 files changed, 1 insertion(+), 1079 deletions(-)
scripts/build-whitelist.sh +1 -1
@@ -30,7 +30,7 @@ git grep CONFIG_SYS_EXTRA_OPTIONS |sed -n \ | sed 's/ *\([A-Za-z0-9_]*\).*/CONFIG_\1/' git grep CONFIG_ | \ - egrep -vi "(Kconfig:|defconfig:|README|\.py|\.pl:)" \ + egrep -vi "(Kconfig:|defconfig:|README|\.py|\.pl:|mach-types.h:)" \ | tr ' \t' '\n\n' \ | sed -n 's/^\(CONFIG_[A-Za-z0-9_]*\).*/\1/p' ) \
scripts/config_whitelist.txt +0 -1078
1,131 lines not on this page · raw message
Signature · 1 line
1.9.1
PATCH 1/1 build-whitelist.sh: Ignore mach-types.h
Hi Tom,
2017-01-10 9:46 GMT+09:00 Tom Rini <[email protected]>:
Quoted 7 lines
The file
arch/arm/include/asm/mach-types.hcomes from the Linux kernel and contains a number ofCONFIG_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 <[email protected]>Signed-off-by Tom Rini <[email protected]>
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?
Signature · 2 lines
Best Regards Masahiro Yamada
PATCH 1/1 build-whitelist.sh: Ignore mach-types.h
Quoted 9 lines · Masahiro Yamada
Hi Tom,
2017-01-10 9:46 GMT+09:00 Tom Rini <[email protected]>:
Quoted 5 lines
The file
arch/arm/include/asm/mach-types.hcomes from the Linux kernel and contains a number ofCONFIG_symbols that we have no control over nor do we wish to do anything with. Ignore that file and re-generate the whitelist.
Quoted 8 lines
Quoted 2 lines
Cc Masahiro Yamada <[email protected]>Signed-off-by Tom Rini <[email protected]>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.
Signature · 8 lines
Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 819 bytes Desc: Digital signature URL: <http://lists.denx.de/pipermail/u-boot/attachments/20170109/c72e778e/attachment.sig>
PATCH 1/1 build-whitelist.sh: Ignore mach-types.h
Quoted 24 lines · Tom Rini
Quoted 9 lines · Masahiro Yamada
Hi Tom,
2017-01-10 9:46 GMT+09:00 Tom Rini <[email protected]>:
Quoted 5 lines
The file
arch/arm/include/asm/mach-types.hcomes from the Linux kernel and contains a number ofCONFIG_symbols that we have no control over nor do we wish to do anything with. Ignore that file and re-generate the whitelist.Quoted 8 lines
Quoted 2 lines
Cc Masahiro Yamada <[email protected]>Signed-off-by Tom Rini <[email protected]>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.
Quoted 4 lines
Something I had done half an experiment on at some point, and forgotten about, was syncing only the
MACH_TYPE_xxxvalues as the entire rest of the header contains logic we don't need. I'll give that a whirl and report back.
So, the build is still in progress but I'm seeing a handful of errors related to MACH_TYPE_xxx values that are not present in v4.9. In fact (at first glance) appear to have been removed in various re-syncs with the official source of the list. I'm probably going to re-work this as a series to remove the CONFIG_MACH_TYPE usage from a number of platforms and then re-sync.
Signature · 8 lines
Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 819 bytes Desc: Digital signature URL: <http://lists.denx.de/pipermail/u-boot/attachments/20170109/96d8db17/attachment.sig>