ast2600: spl: Include RAM loader in BL2 ifdef
Subsystems (3)
Joel Stanley
maintainerPATCH 1/1 ast2600: spl: Include RAM loader in BL2 ifdef
With this patch all of the BL2 verification call sites are behind the Kconfig symbol. When it is disabled, 1903 bytes is saved.
Signed-off-by Joel Stanley <[email protected]>
--- arch/arm/mach-aspeed/ast2600/spl_boot.c | 2 ++ 1 file changed, 2 insertions(+)
arch/arm/mach-aspeed/ast2600/spl_boot.c +2 -0
@@ -23,6 +23,7 @@ static int aspeed_spl_ram_load_image(struct spl_image_info *spl_image, }SPL_LOAD_IMAGE_METHOD ("RAM" ,0 ,ASPEED_BOOT_DEVICE_RAM , aspeed_spl_ram_load_image); +#if IS_ENABLED (ASPEED_SECBOOT_BL2 )static int aspeed_secboot_spl_ram_load_image (struct spl_image_info *spl_image,struct spl_boot_device *bootdev) {
@@ -41,6 +42,7 @@ static int aspeed_secboot_spl_ram_load_image(struct spl_image_info *spl_image,return 0 ; }SPL_LOAD_IMAGE_METHOD ("RAM with Aspeed Secure Boot" ,0 ,ASPEED_SECBOOT_DEVICE_RAM , aspeed_secboot_spl_ram_load_image); +#endif /* ASPEED_SECBOOT_BL2 */ #if IS_ENABLED (CONFIG_SPL_MMC_SUPPORT ) static int aspeed_spl_mmc_load_image(struct spl_image_info *spl_image,
Signature · 1 line
2.29.2
Quoted 4 lines · Joel Stanley
With this patch all of the BL2 verification call sites are behind the
Kconfigsymbol. When it is disabled, 1903 bytes is saved.Signed-off-by Joel Stanley <[email protected]>
Reviewed-by Andrew Jeffery <[email protected]>
Quoted 7 lines · Joel Stanley
With this patch all of the BL2 verification call sites are behind the
Kconfigsymbol. When it is disabled, 1903 bytes is saved.Signed-off-by Joel Stanley <[email protected]>
SPL_LOAD_IMAGE_METHOD("RAM with Aspeed Secure Boot", 0, ASPEED_SECBOOT_DEVICE_RAM, aspeed_secboot_spl_ram_load_image);
+#endif /*ASPEED_SECBOOT_BL2*/
Thanks,
Reviewed-by Klaus Heinrich Kiwi <[email protected]>
Signature · 1 line
Klaus Heinrich Kiwi <[email protected]>