diff options
author | Simon Glass <sjg@chromium.org> | 2019-09-25 08:56:48 -0600 |
---|---|---|
committer | Bin Meng <bmeng.cn@gmail.com> | 2019-10-08 13:57:49 +0800 |
commit | b377ebbd5b8fc371b0b27dd3551f2cc3718757dc (patch) | |
tree | df4bd7cd5da5adb2edd1039662b417fd7c721526 /arch/x86 | |
parent | add3f4c9186fbd94b6e89c1d277b544a7a6ad404 (diff) | |
download | u-boot-b377ebbd5b8fc371b0b27dd3551f2cc3718757dc.tar.gz |
x86: cpu: Don't include the cpu driver in TPL
We don't need this driver very early in boot and it adds code size. Drop
it.
Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
Diffstat (limited to 'arch/x86')
-rw-r--r-- | arch/x86/cpu/Makefile | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/arch/x86/cpu/Makefile b/arch/x86/cpu/Makefile index 3f1f62da2b..6296b55ff8 100644 --- a/arch/x86/cpu/Makefile +++ b/arch/x86/cpu/Makefile @@ -26,7 +26,10 @@ endif extra-$(CONFIG_$(SPL_TPL_)X86_16BIT_INIT) += resetvec.o start16.o -obj-y += cpu.o cpu_x86.o +obj-y += cpu.o +ifndef CONFIG_TPL_BUILD +obj-y += cpu_x86.o +endif ifndef CONFIG_$(SPL_)X86_64 AFLAGS_REMOVE_call32.o := -mregparm=3 \ |