diff --git a/scripts/Kbuild.include b/scripts/Kbuild.include index 1b62aedb00877bb375bf265c4cd5d3c984342553..a3a5c59d0da25446b1407fb013a7ec6e8443a5cc 100644 --- a/scripts/Kbuild.include +++ b/scripts/Kbuild.include @@ -321,6 +321,12 @@ endif ifdef CONFIG_SPL_BUILD SPL_ := SPL_ +ifeq ($(CONFIG_TPL_BUILD),y) +SPL_TPL_ := TPL_ +else +SPL_TPL_ := SPL_ +endif else SPL_ := +SPL_TPL_ := endif diff --git a/scripts/Makefile.spl b/scripts/Makefile.spl index 5370648e853d2d2e9d211069f2dc5d3e12f0f765..4485ea88129f0e58d04be2f052121577b60d2b98 100644 --- a/scripts/Makefile.spl +++ b/scripts/Makefile.spl @@ -37,8 +37,14 @@ endif ifdef CONFIG_SPL_BUILD SPL_ := SPL_ +ifeq ($(CONFIG_TPL_BUILD),y) +SPL_TPL_ := TPL_ +else +SPL_TPL_ := SPL_ +endif else SPL_ := +SPL_TPL_ := endif include $(srctree)/config.mk