mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-10 23:24:38 +00:00
Makefile: Provide an option to select SPL or TPL
At present we have SPL_ which can be used in Makefiles to select between normal and SPL CONFIGs like this: obj-$(CONFIG_$(SPL_)DM) += core/ When TPL is being built, SPL_ has the value 'SPL' which is generally a good idea since they tend to follow each other. But in extreme situations we may want to distinugish between SPL and TPL. For example we may not want to enable CONFIG_DM with TPL. Add a new SPL_TPL_ variable which is set to either empty (for U-Boot proper), 'SPL' or 'TPL'. This may prove useful with TPL-specific options. Signed-off-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
parent
1fbf97dc45
commit
001f3142c3
2 changed files with 12 additions and 0 deletions
|
@ -321,6 +321,12 @@ endif
|
||||||
|
|
||||||
ifdef CONFIG_SPL_BUILD
|
ifdef CONFIG_SPL_BUILD
|
||||||
SPL_ := SPL_
|
SPL_ := SPL_
|
||||||
|
ifeq ($(CONFIG_TPL_BUILD),y)
|
||||||
|
SPL_TPL_ := TPL_
|
||||||
|
else
|
||||||
|
SPL_TPL_ := SPL_
|
||||||
|
endif
|
||||||
else
|
else
|
||||||
SPL_ :=
|
SPL_ :=
|
||||||
|
SPL_TPL_ :=
|
||||||
endif
|
endif
|
||||||
|
|
|
@ -37,8 +37,14 @@ endif
|
||||||
|
|
||||||
ifdef CONFIG_SPL_BUILD
|
ifdef CONFIG_SPL_BUILD
|
||||||
SPL_ := SPL_
|
SPL_ := SPL_
|
||||||
|
ifeq ($(CONFIG_TPL_BUILD),y)
|
||||||
|
SPL_TPL_ := TPL_
|
||||||
|
else
|
||||||
|
SPL_TPL_ := SPL_
|
||||||
|
endif
|
||||||
else
|
else
|
||||||
SPL_ :=
|
SPL_ :=
|
||||||
|
SPL_TPL_ :=
|
||||||
endif
|
endif
|
||||||
|
|
||||||
include $(srctree)/config.mk
|
include $(srctree)/config.mk
|
||||||
|
|
Loading…
Reference in a new issue