From e286791b8808f186856fed51c15820e851e20af2 Mon Sep 17 00:00:00 2001 From: Paul Spooren Date: Fri, 22 Aug 2025 09:52:59 +0200 Subject: [PATCH] include: always set macro-prefix-map for reproducibility The current implementation either adds macro-prefix-map XOR file-prefix-map (if REPRODUCIBLE_DEBUG_INFO is defined). Let's have the former always active to improve the reproducibility. Signed-off-by: Paul Spooren --- rules.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rules.mk b/rules.mk index 929d8e00e8d..4b72e218e89 100644 --- a/rules.mk +++ b/rules.mk @@ -174,7 +174,7 @@ else endif ifeq ($(or $(CONFIG_EXTERNAL_TOOLCHAIN),$(CONFIG_TARGET_uml)),) - iremap = -f$(if $(CONFIG_REPRODUCIBLE_DEBUG_INFO),file,macro)-prefix-map=$(1)=$(2) + iremap = -fmacro-prefix-map=$(1)=$(2) $(if $(CONFIG_REPRODUCIBLE_DEBUG_INFO),-ffile-prefix-map=$(1)=$(2)) endif PACKAGE_DIR?=$(BIN_DIR)/packages -- 2.47.2