[Buildroot] [PATCH 2 of 5 v2] stripping: use findfileclauses utility function

Cam Hutchison camh at xdna.net
Fri Nov 18 01:46:26 UTC 2011


Thomas De Schampheleire <patrickdepinguin+buildroot at gmail.com> writes:

>diff --git a/Makefile b/Makefile
>--- a/Makefile
>+++ b/Makefile
>@@ -454,7 +454,7 @@ endif
> ifeq ($(BR2_PACKAGE_PYTHON_PYC_ONLY),y)
> 	find $(TARGET_DIR)/usr/lib/ -name '*.py' -print0 | xargs -0 rm -f
> endif
>-	find $(TARGET_DIR) -type f -perm +111 '!' -name 'libthread_db*.so*' | \
>+	find $(TARGET_DIR) -type f -perm +111 '!' $(call findfileclauses,libthread_db*.so*) | \

This is less readable than what was there before. The findfileclauses
macro only makes sense when it's expanding input from a variable.
Literals should stay as they are...

> 		xargs $(STRIPCMD) 2>/dev/null || true
> 	find $(TARGET_DIR)/lib/modules -type f -name '*.ko' | \

... just like this one.





More information about the buildroot mailing list