Skip to contentSkip to conversation

target-finalize: punt config scripts too

PATCH New Mike Frysinger 1 participant 1 message Nov 27, 2010 Kbuild

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 target-finalize: punt config scripts too

The libpcap package installs a pcap-config into /usr/bin/ which makes it into the final filesystem. So have the top level punt all config scripts to keep random packages from bleeding in.

---
 Makefile |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
Makefile +1 -1
index 3798905..836a089 100644
@@ -409,7 +409,7 @@ target-finalize:
 ifeq ($(BR2_HAVE_DEVFILES),y)
 	( scripts/copy.sh $(STAGING_DIR) $(TARGET_DIR) )
 else
-	rm -rf $(TARGET_DIR)/usr/include $(TARGET_DIR)/usr/lib/pkgconfig $(TARGET_DIR)/usr/share/aclocal
+	rm -rf $(TARGET_DIR)/usr/include $(TARGET_DIR)/usr/lib/pkgconfig $(TARGET_DIR)/usr/share/aclocal $(TARGET_DIR)/usr/bin/*-config
 	find $(TARGET_DIR)/lib \( -name '*.a' -o -name '*.la' \) -print0 | xargs -0 rm -f
 	find $(TARGET_DIR)/usr/lib \( -name '*.a' -o -name '*.la' \) -print0 | xargs -0 rm -f
 endif
Signature · 1 line
1.7.3.2