efi: makefile: install the EFI configuration file
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 <miguel.bernal.marin@linux.intel.com>
This commit is contained in:
parent
ef84c3d241
commit
86be62f746
|
@ -76,10 +76,12 @@ LDFLAGS=-T $(LDSCRIPT) -Bsymbolic -shared -nostdlib -znocombreloc \
|
||||||
EFIBIN=$(HV_OBJDIR)/$(HV_FILE).efi
|
EFIBIN=$(HV_OBJDIR)/$(HV_FILE).efi
|
||||||
BOOT=$(EFI_OBJDIR)/boot.efi
|
BOOT=$(EFI_OBJDIR)/boot.efi
|
||||||
|
|
||||||
|
CONF_FILE=$(CURDIR)/../clearlinux/acrn.conf
|
||||||
|
|
||||||
all: $(EFIBIN)
|
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)
|
$(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
|
install -D $(EFIBIN) $(DESTDIR)/usr/share/acrn/$(HV_FILE).efi
|
||||||
|
|
||||||
$(EFIBIN): $(BOOT)
|
$(EFIBIN): $(BOOT)
|
||||||
|
@ -89,6 +91,10 @@ $(EFI_OBJDIR)/boot.efi: $(EFI_OBJDIR)/boot.so
|
||||||
$(EFI_OBJDIR)/boot.so: $(ACRN_OBJS) $(FS)
|
$(EFI_OBJDIR)/boot.so: $(ACRN_OBJS) $(FS)
|
||||||
$(LD) $(LDFLAGS) -o $@ $^ -lgnuefi -lefi $(shell $(CC) $(CFLAGS) -print-libgcc-file-name)
|
$(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:
|
clean:
|
||||||
rm -f $(BOOT) $(HV_OBJDIR)/$(HV_FILE).efi $(EFI_OBJDIR)/boot.so $(ACRN_OBJS) $(FS)
|
rm -f $(BOOT) $(HV_OBJDIR)/$(HV_FILE).efi $(EFI_OBJDIR)/boot.so $(ACRN_OBJS) $(FS)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue