HV: add multiboot2 header info

Add multiboot2 header info in HV image so that bootloader could
recognize it.

Tracked-On: #4419

Signed-off-by: Victor Sun <victor.sun@intel.com>
Acked-by: Eddie Dong <eddie.dong@intel.com>
This commit is contained in:
Victor Sun
2020-02-17 10:30:38 +08:00
committed by wenlingz
parent 19ffaa50dc
commit d008b72fdd
4 changed files with 173 additions and 0 deletions

View File

@@ -107,6 +107,9 @@ CFLAGS += -fcf-protection=none
endif
ASFLAGS += -m64 -nostdinc -nostdlib
ifeq (y, $(CONFIG_MULTIBOOT2))
ASFLAGS += -DCONFIG_MULTIBOOT2
endif
LDFLAGS += -Wl,--gc-sections -nostartfiles -nostdlib
LDFLAGS += -Wl,-n,-z,max-page-size=0x1000