diff options
author | Masahiro Yamada <masahiroy@kernel.org> | 2020-04-17 10:21:37 +0300 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2020-04-28 22:44:31 +0300 |
commit | f34d0ad82e51df9dbd5f80bc0f17c3542de2bc0e (patch) | |
tree | 4a6a63f161c378285a6a9f73c1398deffff2c595 /Makefile | |
parent | 221c4d982698d9f537237108f779b8174ce24c87 (diff) | |
download | u-boot-f34d0ad82e51df9dbd5f80bc0f17c3542de2bc0e.tar.xz |
kbuild: SPL/TPL: generate separate asm-offsets.h for SPL and TPL
Currently generic-asm-offsets.h and asm-offsets.h are generated based
on U-Boot proper config options. The same asm-offsets headers are used
for building U-Boot SPL/TPL, which causes potential offset mismatch if
U-Boot proper has different config options from U-Boot SPL/TPL.
This commit adds:
spl/include/generated/(generic-)asm-offsets.h
tpl/include/generated/(generic-)asm-offsets.h
spl/include/generated/(generic-)asm-offsets.h is generated if
CONFIG_SPL=y, and included when building SPL.
tpl/include/generated/(generic-)asm-offsets.h is generated if
CONFIG_TPL=y, and included when building TPL.
They are created before Kbuild descends into SPL/TPL object directories
and builds $(obj)/dts/dt-platdata.o because $(obj)/dts/dt-platdata.c
includes a bunch of headers.
Prepend -I$(obj)/include to $(UBOOTINCLUDE) so (generic-)asm-offsets.h
is searched in {spl,tpl}/include/generated/.
Requested-by: Bin Meng <bmeng.cn@gmail.com>
Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
Tested-by: Bin Meng <bmeng.cn@gmail.com>
Diffstat (limited to 'Makefile')
0 files changed, 0 insertions, 0 deletions