Skip to contentSkip to conversation

package/gcc: fix list of files of patch file to hash for ccache

PATCH New Yann E. MORIN 2 participants 2 messages Jul 3, 2016 – Jul 4, 2016

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 package/gcc: fix list of files of patch file to hash for ccache

When we build the list of patches to include to compute the hash for ccache, a typo precented the special gcc-initial/ and gcc-final/ directories from a global patch dir to be included in the caclculation.

Fix that by properly expanding the $(PKG) variable.

Cc Thomas Petazzoni <[email protected]>
Cc He Chunhui <[email protected]>
---
 package/gcc/gcc.mk | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
package/gcc/gcc.mk +2 -2
index f324f99..d2359a3 100644
@@ -252,8 +252,8 @@ HOST_GCC_COMMON_CCACHE_HASH_FILES += $(DL_DIR)/$(GCC_SOURCE)
 HOST_GCC_COMMON_CCACHE_HASH_FILES += \
 	$(sort $(wildcard \
 		package/gcc/$(GCC_VERSION)/*.patch \
-		$(addsuffix /$((PKG)_RAWNAME)/$(GCC_VERSION)/*.patch,$(call qstrip,$(BR2_GLOBAL_PATCH_DIR))) \
-		$(addsuffix /$((PKG)_RAWNAME)/*.patch,$(call qstrip,$(BR2_GLOBAL_PATCH_DIR))) \
+		$(addsuffix /$($(PKG)_RAWNAME)/$(GCC_VERSION)/*.patch,$(call qstrip,$(BR2_GLOBAL_PATCH_DIR))) \
+		$(addsuffix /$($(PKG)_RAWNAME)/*.patch,$(call qstrip,$(BR2_GLOBAL_PATCH_DIR))) \
 		$(addsuffix /gcc/$(GCC_VERSION)/*.patch,$(call qstrip,$(BR2_GLOBAL_PATCH_DIR))) \
 		$(addsuffix /gcc/*.patch,$(call qstrip,$(BR2_GLOBAL_PATCH_DIR)))))
 ifeq ($(BR2_xtensa),y)
Signature · 1 line
2.7.4
#1 lore raw

PATCH 1/1 package/gcc: fix list of files of patch file to hash for ccache

Quoted 11 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Yann" == Yann E MORIN <[email protected]> writes:

When we build the list of patches to include to compute the hash for ccache, a typo precented the special gcc-initial/ and gcc-final/ directories from a global patch dir to be included in the caclculation.

Fix that by properly expanding the $(PKG) variable.

Cc Thomas Petazzoni <[email protected]>
Cc He Chunhui <[email protected]>

Committed, thanks.

Signature · 1 line
Bye, Peter Korsgaard