diff --git a/hypervisor/bsp/uefi/efi/Makefile b/hypervisor/bsp/uefi/efi/Makefile index ee1d3371a..e31d9e73a 100644 --- a/hypervisor/bsp/uefi/efi/Makefile +++ b/hypervisor/bsp/uefi/efi/Makefile @@ -76,10 +76,12 @@ LDFLAGS=-T $(LDSCRIPT) -Bsymbolic -shared -nostdlib -znocombreloc \ EFIBIN=$(HV_OBJDIR)/$(HV_FILE).efi BOOT=$(EFI_OBJDIR)/boot.efi +CONF_FILE=$(CURDIR)/../clearlinux/acrn.conf + all: $(EFIBIN) $(OBJCOPY) --add-section .hv="$(HV_OBJDIR)/$(HV_FILE).bin" --change-section-vma .hv=0x6e000 --set-section-flags .hv=alloc,data,contents,load --section-alignment 0x1000 $(EFI_OBJDIR)/boot.efi $(EFIBIN) -install: $(EFIBIN) +install: $(EFIBIN) install-conf install -D $(EFIBIN) $(DESTDIR)/usr/share/acrn/$(HV_FILE).efi $(EFIBIN): $(BOOT) @@ -89,6 +91,10 @@ $(EFI_OBJDIR)/boot.efi: $(EFI_OBJDIR)/boot.so $(EFI_OBJDIR)/boot.so: $(ACRN_OBJS) $(FS) $(LD) $(LDFLAGS) -o $@ $^ -lgnuefi -lefi $(shell $(CC) $(CFLAGS) -print-libgcc-file-name) +install-conf: $(CONF_FILE) + install -d $(DESTDIR)/usr/share/acrn/demo + install -t $(DESTDIR)/usr/share/acrn/demo -m 644 $^ + clean: rm -f $(BOOT) $(HV_OBJDIR)/$(HV_FILE).efi $(EFI_OBJDIR)/boot.so $(ACRN_OBJS) $(FS)