diff options
author | Simon Glass <sjg@chromium.org> | 2019-05-02 10:52:12 -0600 |
---|---|---|
committer | Bin Meng <bmeng.cn@gmail.com> | 2019-05-08 13:02:18 +0800 |
commit | 7c03caf6fac19cfef049ec84d813e87481d48d69 (patch) | |
tree | 3c3ddd190a200be03eda999d972e74ca79cfb198 /arch/x86/lib/Makefile | |
parent | 49dffb7a074e9b9d2c27a303798c0e6bc5eea3ba (diff) | |
download | u-boot-7c03caf6fac19cfef049ec84d813e87481d48d69.tar.gz u-boot-7c03caf6fac19cfef049ec84d813e87481d48d69.tar.bz2 u-boot-7c03caf6fac19cfef049ec84d813e87481d48d69.zip |
x86: Add a simple TPL implementation
Add the required CPU code so that TPL builds correctly. Also update the
SPL code to deal with being booted from TPL.
Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
Diffstat (limited to 'arch/x86/lib/Makefile')
-rw-r--r-- | arch/x86/lib/Makefile | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/arch/x86/lib/Makefile b/arch/x86/lib/Makefile index 56fd680033..436252dd83 100644 --- a/arch/x86/lib/Makefile +++ b/arch/x86/lib/Makefile @@ -43,7 +43,14 @@ ifndef CONFIG_SPL_BUILD obj-$(CONFIG_CMD_ZBOOT) += zimage.o endif obj-$(CONFIG_HAVE_FSP) += fsp/ -obj-$(CONFIG_SPL_BUILD) += spl.o + +ifdef CONFIG_SPL_BUILD +ifdef CONFIG_TPL_BUILD +obj-y += tpl.o +else +obj-y += spl.o +endif +endif lib-$(CONFIG_USE_PRIVATE_LIBGCC) += div64.o |