Makefile: put 'serial.conf' in final location

The 'serial.conf' file need to be put in /etc/, but it is currently being
installed in $(libdir)/acrn/. We therefore ask the user to manually copy that
file over to the /etc/ folder. This patch fixes that by installing
'serial.conf' directly there.

Tracked-On: #7107
Signed-off-by: Geoffroy Van Cutsem <geoffroy.vancutsem@intel.com>
This commit is contained in:
Geoffroy Van Cutsem 2022-02-15 11:29:50 +01:00 committed by acrnsi-robot
parent 28148dd3a2
commit 8a5f25e835
2 changed files with 2 additions and 1 deletions

View File

@ -406,7 +406,7 @@ install: $(HV_OBJDIR)/$(HV_FILE).32.out $(HV_OBJDIR)/$(HV_FILE).bin
install -D $(HV_OBJDIR)/acpi/*.bin -t $(DESTDIR)$(libdir)/acrn/acpi/; \
fi
@if [ -e "$(HV_OBJDIR)/serial.conf" ];then \
install -D $(HV_OBJDIR)/serial.conf -t $(DESTDIR)$(libdir)/acrn/; \
install -D -b $(HV_OBJDIR)/serial.conf -t $(DESTDIR)$(sysconfdir)/; \
fi
install-debug: $(HV_OBJDIR)/$(HV_FILE).map $(HV_OBJDIR)/$(HV_FILE).out

View File

@ -6,3 +6,4 @@ nonarchlibdir ?= $(prefix)/lib
datadir ?= $(prefix)/share
includedir ?= $(prefix)/include
systemd_unitdir ?= $(prefix)/lib/systemd
sysconfdir ?= /etc