x86: samus: Don't include audio and SATA in TPL

These are not used in TPL so disable the drivers to save space.

Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
This commit is contained in:
Simon Glass 2023-05-04 16:51:00 -06:00 committed by Bin Meng
parent 4cb3b9f01e
commit e2cb0468bd

View file

@ -2,7 +2,6 @@
# #
# Copyright (c) 2016 Google, Inc # Copyright (c) 2016 Google, Inc
obj-y += adsp.o
obj-$(CONFIG_$(SPL_TPL_)X86_16BIT_INIT) += cpu.o obj-$(CONFIG_$(SPL_TPL_)X86_16BIT_INIT) += cpu.o
obj-$(CONFIG_$(SPL_TPL_)X86_32BIT_INIT) += cpu_full.o obj-$(CONFIG_$(SPL_TPL_)X86_32BIT_INIT) += cpu_full.o
@ -14,6 +13,8 @@ obj-y += refcode.o
endif endif
ifndef CONFIG_SPL_BUILD ifndef CONFIG_SPL_BUILD
# obj-y += cpu_from_spl.o # obj-y += cpu_from_spl.o
obj-y += adsp.o
obj-y += sata.o
endif endif
endif endif
@ -29,5 +30,4 @@ obj-y += pch.o
obj-y += pinctrl_broadwell.o obj-y += pinctrl_broadwell.o
obj-y += power_state.o obj-y += power_state.o
obj-$(CONFIG_$(SPL_TPL_)X86_32BIT_INIT) += refcode.o obj-$(CONFIG_$(SPL_TPL_)X86_32BIT_INIT) += refcode.o
obj-y += sata.o
obj-$(CONFIG_$(SPL_TPL_)X86_32BIT_INIT) += sdram.o obj-$(CONFIG_$(SPL_TPL_)X86_32BIT_INIT) += sdram.o