mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-08-05 18:25:05 +00:00
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:
parent
f792336c1c
commit
bcb4c83ffa
57
debian/rules
vendored
57
debian/rules
vendored
@ -210,34 +210,35 @@ override_dh_auto_install-arch: O=build
|
|||||||
override_dh_auto_install-arch: DESTDIR=$(abspath debian/tmp)
|
override_dh_auto_install-arch: DESTDIR=$(abspath debian/tmp)
|
||||||
override_dh_auto_install-arch:
|
override_dh_auto_install-arch:
|
||||||
@$(call echo-verbose)
|
@$(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); \
|
$(call echo-silent,BUILD & INSTALL hypervisor for $b:$s); \
|
||||||
$(MAKE) O=$(O)/$b/$s \
|
$(MAKE) O=$(O)/$b/$s \
|
||||||
BOARD=$(call bfile,$b) \
|
BOARD=$(call bfile,$b) \
|
||||||
SCENARIO=$(call sfile,$b,$s) \
|
SCENARIO=$(call sfile,$b,$s) \
|
||||||
DESTDIR=$(DESTDIR) \
|
DESTDIR=$(DESTDIR) \
|
||||||
hypervisor-install $(devnull); \
|
hypervisor-install $(devnull); \
|
||||||
install -d $(DESTDIR)$(libdir)/acrn/$b/$s; \
|
install -d $(DESTDIR)$(libdir)/acrn/$b/$s; \
|
||||||
rm -f $(DESTDIR)$(libdir)/acrn/*.out; \
|
rm -f $(DESTDIR)$(libdir)/acrn/*.out; \
|
||||||
mv $(DESTDIR)$(libdir)/acrn/*.bin \
|
mv $(DESTDIR)$(libdir)/acrn/*.bin \
|
||||||
$(DESTDIR)$(libdir)/acrn/$b/$s; \
|
$(DESTDIR)$(libdir)/acrn/$b/$s; \
|
||||||
if [ -d $(DESTDIR)$(sysconfdir) ]; then \
|
if [ -d $(DESTDIR)$(sysconfdir) ]; then \
|
||||||
mv $(DESTDIR)$(sysconfdir) \
|
mv $(DESTDIR)$(sysconfdir) \
|
||||||
$(DESTDIR)$(libdir)/acrn/$b/$s; \
|
$(DESTDIR)$(libdir)/acrn/$b/$s; \
|
||||||
fi; \
|
fi; \
|
||||||
if [ -d $(DESTDIR)$(libdir)/acrn/acpi ]; then \
|
if [ -d $(DESTDIR)$(libdir)/acrn/acpi ]; then \
|
||||||
mv $(DESTDIR)$(libdir)/acrn/acpi \
|
mv $(DESTDIR)$(libdir)/acrn/acpi \
|
||||||
$(DESTDIR)$(libdir)/acrn/$b/$s; \
|
$(DESTDIR)$(libdir)/acrn/$b/$s; \
|
||||||
fi; \
|
fi; \
|
||||||
cp $(O)/$b/$s/hypervisor/configs/config.mk \
|
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 \
|
cp $(O)/$b/$s/hypervisor/acrn.map \
|
||||||
$(DESTDIR)$(libdir)/acrn/$b/$s/acrn.$b.$s.map; \
|
$(DESTDIR)$(libdir)/acrn/$b/$s/acrn.$b.$s.map; \
|
||||||
chmod 644 $(DESTDIR)$(libdir)/acrn/$b/$s/*.bin; \
|
chmod 644 $(DESTDIR)$(libdir)/acrn/$b/$s/*.bin; \
|
||||||
if [ -d $(DESTDIR)$(libdir)/acrn/$b/$s/acpi ]; then \
|
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; \
|
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
|
@# install devicemodel & tools
|
||||||
@$(call echo-silent,BUILD & INSTALL devicemodel & tools)
|
@$(call echo-silent,BUILD & INSTALL devicemodel & tools)
|
||||||
|
Loading…
Reference in New Issue
Block a user