diff --git a/debian/acrn-tools.README.Debian b/debian/acrn-tools.README.Debian new file mode 100644 index 000000000..a012b6d46 --- /dev/null +++ b/debian/acrn-tools.README.Debian @@ -0,0 +1,7 @@ +acrn-tools for Debian +--------------------- + +Since acrn-tools cannot be provided for release builds, a virtually empty +acrn-tools package indicates a release build package. As a consequence, +the tools belonging to this package are only populated for debug builds. + diff --git a/debian/acrn-tools.install b/debian/acrn-tools.install.debug similarity index 100% rename from debian/acrn-tools.install rename to debian/acrn-tools.install.debug diff --git a/debian/rules b/debian/rules index fa1a384cf..c5062dfb4 100755 --- a/debian/rules +++ b/debian/rules @@ -146,6 +146,21 @@ else devnull = >/dev/null endif +### dh_installdeb ############################################################ + +# create acrntools.install for debug build +ifeq ($(RELEASE),n) + +debian/acrn-tools.install: debian/acrn-tools.install.debug + @$(call echo-verbose) + @$(call echo-silent,CREATE $@) + $(Q)cp $< $@ + +override_dh_install: debian/acrn-tools.install + $(Q)dh_install + +endif + ### dh_installdeb ############################################################ debian/acrn-hypervisor.postinst: debian/acrn-hypervisor.postinst.in @$(call echo-verbose) @@ -390,6 +405,7 @@ override_dh_auto_clean: $(Q)rm -f debian/acrn-hypervisor.postinst $(Q)rm -f debian/acrn-hypervisor.postrm $(Q)rm -f debian/acrn-hypervisor.prerm + $(Q)rm -f debian/acrn-tools.install $(Q)rm -f debian/acrn-hypervisor.templates $(Q)rm -rf debian/acrn-board-inspector/build $(Q)dh_auto_clean $(devnull)