debian/rules: Store board and scenario xml

Since we have to adapt various data, e.g. bootparams, at install time,
preserve the respective XML configuration to get the required data from there.

Tracked-On: #6688
Signed-off-by: Helmut Buchsbaum <helmut.buchsbaum@opensource.tttech-industrial.com>
This commit is contained in:
Helmut Buchsbaum 2022-05-02 18:17:16 +02:00 committed by acrnsi-robot
parent f792336c1c
commit bcb4c83ffa

9
debian/rules vendored
View File

@ -210,7 +210,7 @@ override_dh_auto_install-arch: O=build
override_dh_auto_install-arch: DESTDIR=$(abspath debian/tmp)
override_dh_auto_install-arch:
@$(call echo-verbose)
$(Q)set -e;$(foreach b,$(boardlist),$(foreach s,$(scenariolist_$b),\
$(Q)set -e;$(foreach b,$(boardlist),$(foreach s,$(scenariolist_$b), \
$(call echo-silent,BUILD & INSTALL hypervisor for $b:$s); \
$(MAKE) O=$(O)/$b/$s \
BOARD=$(call bfile,$b) \
@ -230,14 +230,15 @@ override_dh_auto_install-arch:
$(DESTDIR)$(libdir)/acrn/$b/$s; \
fi; \
cp $(O)/$b/$s/hypervisor/configs/config.mk \
$(DESTDIR)$(libdir)/acrn/$b/$s/acrn.$b.$s.config;\
$(DESTDIR)$(libdir)/acrn/$b/$s/acrn.$b.$s.config; \
cp $(O)/$b/$s/hypervisor/acrn.map \
$(DESTDIR)$(libdir)/acrn/$b/$s/acrn.$b.$s.map; \
chmod 644 $(DESTDIR)$(libdir)/acrn/$b/$s/*.bin; \
if [ -d $(DESTDIR)$(libdir)/acrn/$b/$s/acpi ]; then \
chmod 644 $(DESTDIR)$(libdir)/acrn/$b/$s/acpi/*;\
chmod 644 $(DESTDIR)$(libdir)/acrn/$b/$s/acpi/*; \
fi; \
))
cp $(call sfile,$b,$s) $(DESTDIR)$(libdir)/acrn/$b/$s/scenario.xml; \
) cp $(call bfile,$b) $(DESTDIR)$(libdir)/acrn/$b/board.xml;)
@:
@# install devicemodel & tools
@$(call echo-silent,BUILD & INSTALL devicemodel & tools)