Message ID | 20210413080755.73572-2-joel@jms.id.au |
---|---|
State | New |
Headers | show |
Series | Use HACE to | expand |
On 4/13/2021 5:07 AM, Joel Stanley wrote: > The configuration option controls if the secboot code is used. When > there are no callers it is removed from the final u-boot binary. Instead > of relying on the linker to do this, only add it to the build system if > enabled. > > Signed-off-by: Joel Stanley <joel@jms.id.au> > --- > arch/arm/mach-aspeed/ast2600/Makefile | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) > > diff --git a/arch/arm/mach-aspeed/ast2600/Makefile b/arch/arm/mach-aspeed/ast2600/Makefile > index 0abac4c233e4..aafc4b2fe37f 100644 > --- a/arch/arm/mach-aspeed/ast2600/Makefile > +++ b/arch/arm/mach-aspeed/ast2600/Makefile > @@ -1,2 +1,3 @@ > -obj-y += platform.o board_common.o scu_info.o utils.o cache.o crypto.o aspeed_verify.o > +obj-y += platform.o board_common.o scu_info.o utils.o cache.o > +obj-$(CONFIG_ASPEED_SECURE_BOOT) += crypto.o aspeed_verify.o > obj-$(CONFIG_SPL_BUILD) += spl.o spl_boot.o > Reviewed-by: Klaus Heinrich Kiwi <klaus@linux.vnet.ibm.com>
diff --git a/arch/arm/mach-aspeed/ast2600/Makefile b/arch/arm/mach-aspeed/ast2600/Makefile index 0abac4c233e4..aafc4b2fe37f 100644 --- a/arch/arm/mach-aspeed/ast2600/Makefile +++ b/arch/arm/mach-aspeed/ast2600/Makefile @@ -1,2 +1,3 @@ -obj-y += platform.o board_common.o scu_info.o utils.o cache.o crypto.o aspeed_verify.o +obj-y += platform.o board_common.o scu_info.o utils.o cache.o +obj-$(CONFIG_ASPEED_SECURE_BOOT) += crypto.o aspeed_verify.o obj-$(CONFIG_SPL_BUILD) += spl.o spl_boot.o
The configuration option controls if the secboot code is used. When there are no callers it is removed from the final u-boot binary. Instead of relying on the linker to do this, only add it to the build system if enabled. Signed-off-by: Joel Stanley <joel@jms.id.au> --- arch/arm/mach-aspeed/ast2600/Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)