mirror of
https://github.com/Fishwaldo/u-boot.git
synced 2025-06-25 16:12:05 +00:00
Use separate options for TPL support
At present TPL uses the same options as SPL support. In a few cases the board config enables or disables the SPL options depending on whether CONFIG_TPL_BUILD is defined. With the move to Kconfig, options are determined for the whole build and (without a hack like an #undef in a header file) cannot be controlled in this way. Create new TPL options for these and update users. This will allow Kconfig conversion to proceed for these boards. Signed-off-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
parent
218d0d5b9b
commit
76f1f38816
9 changed files with 80 additions and 40 deletions
|
@ -99,10 +99,16 @@ obj-$(CONFIG_SPL_USB_SUPPORT) += usb.o usb_hub.o
|
|||
obj-$(CONFIG_USB_STORAGE) += usb_storage.o
|
||||
endif
|
||||
# environment
|
||||
ifdef CONFIG_SPL_ENV_SUPPORT
|
||||
ifdef CONFIG_TPL_BUILD
|
||||
obj-$(CONFIG_TPL_ENV_SUPPORT) += env_attr.o
|
||||
obj-$(CONFIG_TPL_ENV_SUPPORT) += env_flags.o
|
||||
obj-$(CONFIG_TPL_ENV_SUPPORT) += env_callback.o
|
||||
else
|
||||
obj-$(CONFIG_SPL_ENV_SUPPORT) += env_attr.o
|
||||
obj-$(CONFIG_SPL_ENV_SUPPORT) += env_flags.o
|
||||
obj-$(CONFIG_SPL_ENV_SUPPORT) += env_callback.o
|
||||
endif
|
||||
ifneq ($(CONFIG_TPL_ENV_SUPPORT)$(CONFIG_SPL_ENV_SUPPORT),)
|
||||
obj-$(CONFIG_ENV_IS_NOWHERE) += env_nowhere.o
|
||||
obj-$(CONFIG_ENV_IS_IN_MMC) += env_mmc.o
|
||||
obj-$(CONFIG_ENV_IS_IN_FAT) += env_fat.o
|
||||
|
@ -123,7 +129,11 @@ obj-$(CONFIG_SPD_EEPROM) += ddr_spd.o
|
|||
obj-$(CONFIG_HWCONFIG) += hwconfig.o
|
||||
obj-$(CONFIG_BOUNCE_BUFFER) += bouncebuf.o
|
||||
ifdef CONFIG_SPL_BUILD
|
||||
ifdef CONFIG_TPL_BUILD
|
||||
obj-$(CONFIG_TPL_SERIAL_SUPPORT) += console.o
|
||||
else
|
||||
obj-$(CONFIG_SPL_SERIAL_SUPPORT) += console.o
|
||||
endif
|
||||
else
|
||||
obj-y += console.o
|
||||
endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue