From b22cc43f819e354bdc53dbc20c4fbfef1cb04827 Mon Sep 17 00:00:00 2001 From: Yin Fengwei Date: Mon, 21 May 2018 22:26:02 +0800 Subject: [PATCH] hv: move boot/multiboot.c to boot/sbl/multiboot.c boot/multiboot.c is only used by SBL. So move it to boot/sbl. Signed-off-by: Yin Fengwei Acked-by: Eddie Dong --- hypervisor/Makefile | 5 ++++- hypervisor/boot/{ => sbl}/multiboot.c | 0 2 files changed, 4 insertions(+), 1 deletion(-) rename hypervisor/boot/{ => sbl}/multiboot.c (100%) diff --git a/hypervisor/Makefile b/hypervisor/Makefile index 5eb3883f2..a56b614dd 100644 --- a/hypervisor/Makefile +++ b/hypervisor/Makefile @@ -80,7 +80,6 @@ OBJCOPY ?= objcopy D_SRCS += $(wildcard debug/*.c) C_SRCS += boot/acpi.c C_SRCS += boot/dmar_parse.c -C_SRCS += boot/multiboot.c C_SRCS += arch/x86/ioapic.c C_SRCS += arch/x86/intr_lapic.c S_SRCS += arch/x86/cpu_secondary.S @@ -142,6 +141,10 @@ C_SRCS += bsp/$(PLATFORM)/$(PLATFORM).c ifeq ($(PLATFORM),uefi) C_SRCS += bsp/$(PLATFORM)/cmdline.c +else +ifeq ($(PLATFORM), sbl) +C_SRCS += boot/sbl/multiboot.c +endif endif # retpoline support diff --git a/hypervisor/boot/multiboot.c b/hypervisor/boot/sbl/multiboot.c similarity index 100% rename from hypervisor/boot/multiboot.c rename to hypervisor/boot/sbl/multiboot.c