summaryrefslogtreecommitdiff
path: root/package/libglib2
diff options
context:
space:
mode:
authorMalte Starostik <m-starostik@versanet.de>2010-07-24 21:29:56 +0200
committerPeter Korsgaard <jacmet@sunsite.dk>2010-07-30 10:46:37 +0200
commite48a72e5e958ca8227c04a3ee1e47cac2037a56e (patch)
tree9b383bcda21b31fbae5a0dd375e85b607d0eaeb9 /package/libglib2
parentbea9e43fe7d0adbcd472fb8b5f56aba5e2004f80 (diff)
Remove gdb plugins from target
* Don't install gdb plugins unless BR2_TARGET_GDB is set Signed-off-by: Malte Starostik <m-starostik@versanet.de> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
Diffstat (limited to 'package/libglib2')
-rw-r--r--package/libglib2/libglib2.mk9
1 files changed, 9 insertions, 0 deletions
diff --git a/package/libglib2/libglib2.mk b/package/libglib2/libglib2.mk
index 35b7ee8f9..8dc1fcb83 100644
--- a/package/libglib2/libglib2.mk
+++ b/package/libglib2/libglib2.mk
@@ -79,6 +79,15 @@ ifneq ($(BR2_HAVE_DEVFILES),y)
LIBGLIB2_POST_INSTALL_TARGET_HOOKS += LIBGLIB2_REMOVE_DEV_FILES
endif
+define LIBGLIB2_REMOVE_GDB_FILES
+ rm -rf $(TARGET_DIR)/usr/share/glib-2.0/gdb
+ rmdir --ignore-fail-on-non-empty $(TARGET_DIR)/usr/share/glib-2.0
+endef
+
+ifneq ($(BR2_PACKAGE_GDB),y)
+LIBGLIB2_POST_INSTALL_TARGET_HOOKS += LIBGLIB2_REMOVE_GDB_FILES
+endif
+
$(eval $(call AUTOTARGETS,package,libglib2))
$(eval $(call AUTOTARGETS,package,libglib2,host))