@@ -496,6 +496,8 @@ endif
$(2)_REDISTRIBUTE ?= YES
+$(2)_REDIST_SOURCES_DIR = $$(REDIST_SOURCES_DIR_$$(call UPPERCASE,$(4)))/$$($(2)_RAWNAME_VERSION)
+
# When a target package is a toolchain dependency set this variable to
# 'NO' so the 'toolchain' dependency is not added to prevent a circular
# dependency
@@ -826,7 +828,7 @@ ifeq ($$($(2)_REDISTRIBUTE),YES)
# Copy the source tarball
$$(Q)$$(call hardlink-copy,\
$$(DL_DIR)/$$($(2)_ACTUAL_SOURCE_TARBALL),\
- $$(REDIST_SOURCES_DIR_$$(call UPPERCASE,$(4))))
+ $$($(2)_REDIST_SOURCES_DIR))
endif # redistribute
endif # other packages