]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commitdiff
UBUNTU: [Debian] run install-$(flavour) targets during build phase
authorSeth Forshee <seth.forshee@canonical.com>
Thu, 20 May 2021 21:15:13 +0000 (16:15 -0500)
committerAndrea Righi <andrea.righi@canonical.com>
Tue, 7 Dec 2021 06:32:04 +0000 (07:32 +0100)
BugLink: https://bugs.launchpad.net/bugs/1930713
Move installation of files from the flavour build directories to the
build phase. This results in cleaning up of one flavour build
directory before starting the build of the next flavour, significantly
reducing the amount of space needed on builders.

Note that this will result in incorrect ownership of files in cases
where the build and binary phases of building packages are run
separately. This will be addressed in a later commit.

Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
Acked-by: Andy Whitcroft <apw@canonical.com>
debian/rules.d/2-binary-arch.mk

index 27e7f807f29e3053fcda3134ec04a773820670ba..6f72f2a81f39758ca9a1871baa2a8817cc98be1b 100644 (file)
@@ -39,7 +39,7 @@ $(stampdir)/stamp-prepare-tree-%: $(commonconfdir)/config.common.$(family) $(arc
 prepare-%: $(stampdir)/stamp-prepare-%
        @echo Debug: $@
 # Used by developers to allow efficient pre-building without fakeroot.
-build-%: $(stampdir)/stamp-build-%
+build-%: $(stampdir)/stamp-install-%
        @echo Debug: $@
 
 # Do the actual build, including image and modules
@@ -810,7 +810,7 @@ ifeq ($(any_signed),true)
        dpkg-distaddfile $(signing_tar) raw-signing -
 endif
 
-build-arch-deps-$(do_flavour_image_package) += $(addprefix $(stampdir)/stamp-build-,$(flavours))
+build-arch-deps-$(do_flavour_image_package) += $(addprefix $(stampdir)/stamp-install-,$(flavours))
 build-arch: $(build-arch-deps-true)
        @echo Debug: $@