]> git.baikalelectronics.ru Git - uboot.git/commit
global_data: Ensure we have <config.h> when symbols are not in Kconfig yet
authorTom Rini <trini@konsulko.com>
Thu, 3 Jun 2021 13:39:02 +0000 (09:39 -0400)
committerTom Rini <trini@konsulko.com>
Wed, 23 Jun 2021 12:45:03 +0000 (08:45 -0400)
commit47a131427cca9b7cc4652f1fc68c6da2a7d61100
tree10c5ee37675cba941788becd46204aae47732051
parent5ef352771347a45d6e636b1a09e4e89e3bed7ae9
global_data: Ensure we have <config.h> when symbols are not in Kconfig yet

All symbols that are defined in Kconfig will always be defined (or not)
prior to preprocessing due to the -include directive while building.
However, symbols which are not yet migrated will only be defined (or
not) once the board config.h is included, via <config.h>.  While the end
goal must be to migrate all symbols, today we have cases where the size
of gd will get mismatched within the build, based on include order.
Mitigate this by making sure that any <asm/global_data.h> that uses
symbols not in Kconfig does start with <config.h>.  Remove this when not
needed.

Cc: Alexey Brodkin <alexey.brodkin@synopsys.com>
Cc: Eugeniy Paltsev <Eugeniy.Paltsev@synopsys.com>
Cc: Huan Wang <alison.wang@nxp.com>
Cc: Angelo Dureghello <angelo@sysam.it>
Cc: Rick Chen <rick@andestech.com>
Signed-off-by: Tom Rini <trini@konsulko.com>
arch/arc/include/asm/global_data.h
arch/arm/include/asm/global_data.h
arch/m68k/include/asm/global_data.h
arch/nds32/include/asm/global_data.h