diff --git a/disk/part_efi.c b/disk/part_efi.c index b7b0349f2c..7a379b7e63 100644 --- a/disk/part_efi.c +++ b/disk/part_efi.c @@ -341,6 +341,7 @@ int part_get_info_efi(struct blk_desc *dev_desc, int part, } #ifdef CONFIG_RKIMG_BOOTLOADER +#if defined(CONFIG_SPL_KERNEL_BOOT) || !defined(CONFIG_SPL_BUILD) static void gpt_entry_modify(struct blk_desc *dev_desc, gpt_entry *gpt_pte, gpt_header *gpt_head) @@ -426,6 +427,7 @@ static int part_efi_repair(struct blk_desc *dev_desc, gpt_entry *gpt_pte, return 0; } #endif +#endif static int part_test_efi(struct blk_desc *dev_desc) { @@ -438,6 +440,7 @@ static int part_test_efi(struct blk_desc *dev_desc) return -1; } #ifdef CONFIG_RKIMG_BOOTLOADER +#if defined(CONFIG_SPL_KERNEL_BOOT) || !defined(CONFIG_SPL_BUILD) gpt_entry *h_gpt_pte = NULL; gpt_header *h_gpt_head = NULL; gpt_entry *b_gpt_pte = NULL; @@ -474,6 +477,7 @@ static int part_test_efi(struct blk_desc *dev_desc) b_gpt_pte = NULL; free(b_gpt_head); b_gpt_head = NULL; +#endif #endif return ret; }