Skip to content

Commit

Permalink
efi: makefile: install the EFI configuration file
Browse files Browse the repository at this point in the history
The EFI configuration example file is not installed.
This patch adds a rule to install the configuration example file
at /usr/share/acrn

Signed-off-by: Miguel Bernal Marin <[email protected]>
  • Loading branch information
miguelinux authored and jren1 committed Mar 8, 2018
1 parent d302679 commit 92bbdf3
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion bsp/uefi/efi/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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)

Expand Down

0 comments on commit 92bbdf3

Please sign in to comment.