From cd815834d79069797beae74e934f6f450750c835 Mon Sep 17 00:00:00 2001 From: "Yann E. MORIN" Date: Sat, 13 Nov 2021 14:28:17 +0100 Subject: [PATCH] core/pkg-generic: also list files installed in images/ Some packages install nothing in target nor staging, but install images (like the kernel vmlinux, or a bootloader boot blob...) If we want to appropriately account for the files installed by each package, we also need to take images/ into account. Signed-off-by: Yann E. MORIN Cc: Thomas Petazzoni Cc: Herve Codina Signed-off-by: Yann E. MORIN (cherry picked from commit 5d00fecb7dd922ae2c003b46683173756372fd14) Signed-off-by: Peter Korsgaard --- package/pkg-generic.mk | 2 ++ 1 file changed, 2 insertions(+) diff --git a/package/pkg-generic.mk b/package/pkg-generic.mk index 45589bcbb4..b8479af26b 100644 --- a/package/pkg-generic.mk +++ b/package/pkg-generic.mk @@ -234,6 +234,7 @@ $(BUILD_DIR)/%/.stamp_configured: $(call prepare-per-package-directory,$($(PKG)_FINAL_DEPENDENCIES)) @$(call pkg_size_before,$(TARGET_DIR)) @$(call pkg_size_before,$(STAGING_DIR),-staging) + @$(call pkg_size_before,$(BINARIES_DIR),-images) @$(call pkg_size_before,$(HOST_DIR),-host) $(call fixup-libtool-files,$(NAME),$(STAGING_DIR)) $(foreach hook,$($(PKG)_PRE_CONFIGURE_HOOKS),$(call $(hook))$(sep)) @@ -358,6 +359,7 @@ $(BUILD_DIR)/%/.stamp_target_installed: $(BUILD_DIR)/%/.stamp_installed: @$(call pkg_size_after,$(TARGET_DIR)) @$(call pkg_size_after,$(STAGING_DIR),-staging) + @$(call pkg_size_after,$(BINARIES_DIR),-images) @$(call pkg_size_after,$(HOST_DIR),-host) @$(call check_bin_arch) $(Q)touch $@