From: Bin Meng Date: Wed, 18 Jan 2017 11:32:55 +0000 (-0800) Subject: x86: qemu: Hide arch_cpu_init() and print_cpuinfo() for U-Boot proper X-Git-Tag: v2017.03-rc2~48 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=e760feb19f227d830d0a0751a42a2cf5dbcefa28;p=u-boot x86: qemu: Hide arch_cpu_init() and print_cpuinfo() for U-Boot proper arch_cpu_init() and print_cpuinfo() should be only available in SPL build. Signed-off-by: Bin Meng Reviewed-by: Simon Glass --- diff --git a/arch/x86/cpu/qemu/qemu.c b/arch/x86/cpu/qemu/qemu.c index c3092f2b9f..85e2481385 100644 --- a/arch/x86/cpu/qemu/qemu.c +++ b/arch/x86/cpu/qemu/qemu.c @@ -137,14 +137,17 @@ static void qemu_chipset_init(void) #endif } +#if !CONFIG_IS_ENABLED(SPL_X86_32BIT_INIT) int arch_cpu_init(void) { post_code(POST_CPU_INIT); return x86_cpu_init_f(); } +#endif -#ifndef CONFIG_EFI_STUB +#if !CONFIG_IS_ENABLED(EFI_STUB) && \ + !CONFIG_IS_ENABLED(SPL_X86_32BIT_INIT) int print_cpuinfo(void) { post_code(POST_CPU_INFO);