From 21d52e52d8dee0940d28b3a38551eb183be37813 Mon Sep 17 00:00:00 2001 From: Herve Codina Date: Tue, 17 Aug 2021 10:39:24 +0200 Subject: [PATCH] package/pkg-utils.mk: break hardlinks in global {TARGET, HOST}_DIR on per-package build Without this patch, a make _rebuild detects overwrites. Indeed, in target_finalize steps some modifications are done on installed files (ie strip or TARGET_FINALIZE_HOOKS for instance). In order to avoid these modifications seen from per-package {TARGET,HOST}_DIR and so been analyzed as some overwrites, global {TARGET,HOST}_DIR is built using a full copy of the involved per-package files instead of hardlinks. Signed-off-by: Herve Codina Reviewed-by: Yann E. MORIN Signed-off-by: Peter Korsgaard --- package/pkg-utils.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package/pkg-utils.mk b/package/pkg-utils.mk index 530638566c..bdbdf20c23 100644 --- a/package/pkg-utils.mk +++ b/package/pkg-utils.mk @@ -217,7 +217,7 @@ ifeq ($(BR2_PER_PACKAGE_DIRECTORIES),y) define per-package-rsync mkdir -p $(3) $(foreach pkg,$(1),\ - rsync -a --link-dest=$(PER_PACKAGE_DIR)/$(pkg)/$(2)/ \ + rsync -a \ $(PER_PACKAGE_DIR)/$(pkg)/$(2)/ \ $(3)$(sep)) endef