Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH] Purge libglib2 dev files from target
@ 2010-07-22  8:59 Malte Starostik
  2010-07-24  1:46 ` Lionel Landwerlin
  0 siblings, 1 reply; 13+ messages in thread
From: Malte Starostik @ 2010-07-22  8:59 UTC (permalink / raw)
  To: buildroot

* Don't install libglib2 development binaries and to target unless
  BR2_HAVE_DEVFILES is set
* Don't install gdb plugins unless BR2_TARGET_GDB is set
* Remove $(TARGET_DIR)/usr/share/aclocal from target-finalize when not
  installing devfiles
* Same for /usr/share/gdb in the absence of BR2_TARGET_GDB
* Remove some redundant cleanup from individual packages

Signed-off-by: Malte Starostik <m-starostik@versanet.de>
---
 Makefile                          |    5 ++++-
 package/gettext/gettext.mk        |    2 --
 package/libglib2/libglib2.mk      |   20 ++++++++++++++++++++
 package/libxml2/libxml2.mk        |    3 +--
 package/multimedia/speex/speex.mk |    2 +-
 5 files changed, 26 insertions(+), 6 deletions(-)

diff --git a/Makefile b/Makefile
index f6e02bc..0ee03b8 100644
--- a/Makefile
+++ b/Makefile
@@ -395,10 +395,13 @@ 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
+	rm -rf $(TARGET_DIR)/usr/include $(TARGET_DIR)/usr/lib/pkgconfig $(TARGET_DIR)/usr/share/aclocal
 	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
+ifneq ($(BR2_HAVE_PACKAGE_GDB),y)
+	rm -rf $(TARGET_DIR)/usr/share/gdb
+endif
 ifneq ($(BR2_HAVE_DOCUMENTATION),y)
 	rm -rf $(TARGET_DIR)/usr/man $(TARGET_DIR)/usr/share/man
 	rm -rf $(TARGET_DIR)/usr/info $(TARGET_DIR)/usr/share/info
diff --git a/package/gettext/gettext.mk b/package/gettext/gettext.mk
index 80215c8..2b308c8 100644
--- a/package/gettext/gettext.mk
+++ b/package/gettext/gettext.mk
@@ -135,8 +135,6 @@ gettext-dirclean:
 gettext-target: $(GETTEXT_DIR)/$(GETTEXT_BINARY)
 	$(MAKE) DESTDIR=$(TARGET_DIR) -C $(GETTEXT_DIR) install
 	chmod +x $(TARGET_DIR)/usr/lib/libintl.so* # identify as needing to be stripped
-	rm -rf $(addprefix $(TARGET_DIR),/usr/share/aclocal /usr/include/libintl.h)
-	rmdir --ignore-fail-on-non-empty $(TARGET_DIR)/usr/include
 
 $(TARGET_DIR)/usr/lib/libintl.so: $(STAGING_DIR)/$(GETTEXT_TARGET_BINARY)
 	cp -dpf $(STAGING_DIR)/usr/lib/libgettext*.so* \
diff --git a/package/libglib2/libglib2.mk b/package/libglib2/libglib2.mk
index 43b1a89..d7cd828 100644
--- a/package/libglib2/libglib2.mk
+++ b/package/libglib2/libglib2.mk
@@ -68,6 +68,26 @@ LIBGLIB2_CONF_OPT += --with-libiconv=gnu
 LIBGLIB2_DEPENDENCIES+=libiconv
 endif
 
+define LIBGLIB2_REMOVE_DEV_FILES
+	rm -rf $(TARGET_DIR)/usr/lib/glib-2.0
+	rm -rf $(TARGET_DIR)/usr/share/glib-2.0/gettext
+	rmdir --ignore-fail-on-non-empty $(TARGET_DIR)/usr/share/glib-2.0
+	rm -f $(addprefix $(TARGET_DIR)/usr/bin/,glib-genmarshal glib-gettextize glib-mkenums gobject-query gtester gtester-report)
+endef
+
+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))
 
diff --git a/package/libxml2/libxml2.mk b/package/libxml2/libxml2.mk
index 3a3e007..8f25136 100644
--- a/package/libxml2/libxml2.mk
+++ b/package/libxml2/libxml2.mk
@@ -34,8 +34,7 @@ $(eval $(call AUTOTARGETS,package,libxml2,host))
 $(LIBXML2_HOOK_POST_INSTALL):
 	$(SED) "s,^prefix=.*,prefix=\'$(STAGING_DIR)/usr\',g" $(STAGING_DIR)/usr/bin/xml2-config
 	$(SED) "s,^exec_prefix=.*,exec_prefix=\'$(STAGING_DIR)/usr\',g" $(STAGING_DIR)/usr/bin/xml2-config
-	rm -rf $(TARGET_DIR)/usr/share/aclocal
 	touch $@
 
 # libxml2 for the host
-LIBXML2_HOST_BINARY:=$(HOST_DIR)/usr/bin/xmllint
\ No newline at end of file
+LIBXML2_HOST_BINARY:=$(HOST_DIR)/usr/bin/xmllint
diff --git a/package/multimedia/speex/speex.mk b/package/multimedia/speex/speex.mk
index 6943ad7..e246b24 100644
--- a/package/multimedia/speex/speex.mk
+++ b/package/multimedia/speex/speex.mk
@@ -32,5 +32,5 @@ $(SPEEX_TARGET_BUILD): $(SPEEX_TARGET_CONFIGURE)
 	$(Q)touch $@
 
 $(SPEEX_HOOK_POST_INSTALL): $(SPEEX_TARGET_INSTALL_TARGET)
-	rm -rf $(TARGET_DIR)/usr/share/doc/speex $(TARGET_DIR)/usr/share/aclocal
+	rm -rf $(TARGET_DIR)/usr/share/doc/speex
 	touch $@
-- 
1.7.1

^ permalink raw reply related	[flat|nested] 13+ messages in thread

* [Buildroot] [PATCH] Purge libglib2 dev files from target
  2010-07-22  8:59 [Buildroot] [PATCH] Purge libglib2 dev files from target Malte Starostik
@ 2010-07-24  1:46 ` Lionel Landwerlin
  2010-07-24 11:19   ` Malte Starostik
  0 siblings, 1 reply; 13+ messages in thread
From: Lionel Landwerlin @ 2010-07-24  1:46 UTC (permalink / raw)
  To: buildroot

Le jeudi 22 juillet 2010 ? 11:03 +0200, Malte Starostik a ?crit :
> * Don't install libglib2 development binaries and to target unless
>   BR2_HAVE_DEVFILES is set
> * Don't install gdb plugins unless BR2_TARGET_GDB is set
> * Remove $(TARGET_DIR)/usr/share/aclocal from target-finalize when not
>   installing devfiles
> * Same for /usr/share/gdb in the absence of BR2_TARGET_GDB
> * Remove some redundant cleanup from individual packages
> 
> Signed-off-by: Malte Starostik <m-starostik@versanet.de>

Maybe you can split your patch in two. One part which would be related
to strip the debug files, the second would be related to strip dev files
(aclocal directories).

> +
> +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
> +

Why using rmdir ? rm -rf isn't good enough ?

Otherwise looks good ! :)

Acked-by: Lionel Landwerlin <llandwerlin@gmail.com>

Regards,

-- 
Lionel Landwerlin

^ permalink raw reply	[flat|nested] 13+ messages in thread

* [Buildroot] [PATCH] Purge libglib2 dev files from target
  2010-07-24  1:46 ` Lionel Landwerlin
@ 2010-07-24 11:19   ` Malte Starostik
  2010-07-24 11:21     ` [Buildroot] [PATCH 1/3] Globally remove aclocal directories " Malte Starostik
                       ` (2 more replies)
  0 siblings, 3 replies; 13+ messages in thread
From: Malte Starostik @ 2010-07-24 11:19 UTC (permalink / raw)
  To: buildroot

Am Samstag, 24. Juli 2010, 03:46:44 schrieb Lionel Landwerlin:
> Le jeudi 22 juillet 2010 ? 11:03 +0200, Malte Starostik a ?crit :
> > * Don't install libglib2 development binaries and to target unless
> > 
> >   BR2_HAVE_DEVFILES is set
> > 
> > * Don't install gdb plugins unless BR2_TARGET_GDB is set
> > * Remove $(TARGET_DIR)/usr/share/aclocal from target-finalize when not
> > 
> >   installing devfiles
> > 
> > * Same for /usr/share/gdb in the absence of BR2_TARGET_GDB
> > * Remove some redundant cleanup from individual packages
> > 
> > Signed-off-by: Malte Starostik <m-starostik@versanet.de>
> 
> Maybe you can split your patch in two. One part which would be related
> to strip the debug files, the second would be related to strip dev files
> (aclocal directories).

New patch follows.  Actually I split it into three to separate the devfiles 
part into a global and a libglib2 specific part.

> 
> > +
> > +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
> > +
> 
> Why using rmdir ? rm -rf isn't good enough ?
Unset BR2_HAVE_DEVFILES => rm -rf $(TARGET_DIR)/usr/share/glib-2.0/gettext
Unset BR2_TARGET_GDB   => rm -rf $(TARGET_DIR)/usr/share/glib-2.0/gdb
Both unset => rmdir the parent, too

> 
> Otherwise looks good ! :)

Thanks :)

Malte

^ permalink raw reply	[flat|nested] 13+ messages in thread

* [Buildroot] [PATCH 1/3] Globally remove aclocal directories from target
  2010-07-24 11:19   ` Malte Starostik
@ 2010-07-24 11:21     ` Malte Starostik
  2010-07-24 17:56       ` Thomas Petazzoni
  2010-07-30  8:45       ` Peter Korsgaard
  2010-07-24 11:21     ` [Buildroot] [PATCH 2/3] Purge libglib2 dev files " Malte Starostik
  2010-07-24 11:21     ` [Buildroot] [PATCH 3/3] Remove gdb plugins " Malte Starostik
  2 siblings, 2 replies; 13+ messages in thread
From: Malte Starostik @ 2010-07-24 11:21 UTC (permalink / raw)
  To: buildroot

* Remove $(TARGET_DIR)/usr/share/aclocal from target-finalize when not
  installing devfiles and
* Remove some (now) redundant cleanup from individual packages

Signed-off-by: Malte Starostik <m-starostik@versanet.de>
---
 Makefile                          |    2 +-
 package/gettext/gettext.mk        |    2 --
 package/libxml2/libxml2.mk        |    3 +--
 package/multimedia/speex/speex.mk |    2 +-
 4 files changed, 3 insertions(+), 6 deletions(-)

diff --git a/Makefile b/Makefile
index f6e02bc..0123e97 100644
--- a/Makefile
+++ b/Makefile
@@ -395,7 +395,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
+	rm -rf $(TARGET_DIR)/usr/include $(TARGET_DIR)/usr/lib/pkgconfig $(TARGET_DIR)/usr/share/aclocal
 	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
diff --git a/package/gettext/gettext.mk b/package/gettext/gettext.mk
index 80215c8..2b308c8 100644
--- a/package/gettext/gettext.mk
+++ b/package/gettext/gettext.mk
@@ -135,8 +135,6 @@ gettext-dirclean:
 gettext-target: $(GETTEXT_DIR)/$(GETTEXT_BINARY)
 	$(MAKE) DESTDIR=$(TARGET_DIR) -C $(GETTEXT_DIR) install
 	chmod +x $(TARGET_DIR)/usr/lib/libintl.so* # identify as needing to be stripped
-	rm -rf $(addprefix $(TARGET_DIR),/usr/share/aclocal /usr/include/libintl.h)
-	rmdir --ignore-fail-on-non-empty $(TARGET_DIR)/usr/include
 
 $(TARGET_DIR)/usr/lib/libintl.so: $(STAGING_DIR)/$(GETTEXT_TARGET_BINARY)
 	cp -dpf $(STAGING_DIR)/usr/lib/libgettext*.so* \
diff --git a/package/libxml2/libxml2.mk b/package/libxml2/libxml2.mk
index 3a3e007..8f25136 100644
--- a/package/libxml2/libxml2.mk
+++ b/package/libxml2/libxml2.mk
@@ -34,8 +34,7 @@ $(eval $(call AUTOTARGETS,package,libxml2,host))
 $(LIBXML2_HOOK_POST_INSTALL):
 	$(SED) "s,^prefix=.*,prefix=\'$(STAGING_DIR)/usr\',g" $(STAGING_DIR)/usr/bin/xml2-config
 	$(SED) "s,^exec_prefix=.*,exec_prefix=\'$(STAGING_DIR)/usr\',g" $(STAGING_DIR)/usr/bin/xml2-config
-	rm -rf $(TARGET_DIR)/usr/share/aclocal
 	touch $@
 
 # libxml2 for the host
-LIBXML2_HOST_BINARY:=$(HOST_DIR)/usr/bin/xmllint
\ No newline at end of file
+LIBXML2_HOST_BINARY:=$(HOST_DIR)/usr/bin/xmllint
diff --git a/package/multimedia/speex/speex.mk b/package/multimedia/speex/speex.mk
index 6943ad7..e246b24 100644
--- a/package/multimedia/speex/speex.mk
+++ b/package/multimedia/speex/speex.mk
@@ -32,5 +32,5 @@ $(SPEEX_TARGET_BUILD): $(SPEEX_TARGET_CONFIGURE)
 	$(Q)touch $@
 
 $(SPEEX_HOOK_POST_INSTALL): $(SPEEX_TARGET_INSTALL_TARGET)
-	rm -rf $(TARGET_DIR)/usr/share/doc/speex $(TARGET_DIR)/usr/share/aclocal
+	rm -rf $(TARGET_DIR)/usr/share/doc/speex
 	touch $@
-- 
1.7.1

^ permalink raw reply related	[flat|nested] 13+ messages in thread

* [Buildroot] [PATCH 2/3] Purge libglib2 dev files from target
  2010-07-24 11:19   ` Malte Starostik
  2010-07-24 11:21     ` [Buildroot] [PATCH 1/3] Globally remove aclocal directories " Malte Starostik
@ 2010-07-24 11:21     ` Malte Starostik
  2010-07-24 17:59       ` Thomas Petazzoni
  2010-07-30  8:44       ` Peter Korsgaard
  2010-07-24 11:21     ` [Buildroot] [PATCH 3/3] Remove gdb plugins " Malte Starostik
  2 siblings, 2 replies; 13+ messages in thread
From: Malte Starostik @ 2010-07-24 11:21 UTC (permalink / raw)
  To: buildroot

* Don't install libglib2 development binaries and to target unless
  BR2_HAVE_DEVFILES is set

Signed-off-by: Malte Starostik <m-starostik@versanet.de>
---
 package/libglib2/libglib2.mk |   11 +++++++++++
 1 files changed, 11 insertions(+), 0 deletions(-)

diff --git a/package/libglib2/libglib2.mk b/package/libglib2/libglib2.mk
index 43b1a89..6a43829 100644
--- a/package/libglib2/libglib2.mk
+++ b/package/libglib2/libglib2.mk
@@ -68,6 +68,17 @@ LIBGLIB2_CONF_OPT += --with-libiconv=gnu
 LIBGLIB2_DEPENDENCIES+=libiconv
 endif
 
+define LIBGLIB2_REMOVE_DEV_FILES
+	rm -rf $(TARGET_DIR)/usr/lib/glib-2.0
+	rm -rf $(TARGET_DIR)/usr/share/glib-2.0/gettext
+	rmdir --ignore-fail-on-non-empty $(TARGET_DIR)/usr/share/glib-2.0
+	rm -f $(addprefix $(TARGET_DIR)/usr/bin/,glib-genmarshal glib-gettextize glib-mkenums gobject-query gtester gtester-report)
+endef
+
+ifneq ($(BR2_HAVE_DEVFILES),y)
+LIBGLIB2_POST_INSTALL_TARGET_HOOKS += LIBGLIB2_REMOVE_DEV_FILES
+endif
+
 $(eval $(call AUTOTARGETS,package,libglib2))
 $(eval $(call AUTOTARGETS,package,libglib2,host))
 
-- 
1.7.1

^ permalink raw reply related	[flat|nested] 13+ messages in thread

* [Buildroot] [PATCH 3/3] Remove gdb plugins from target
  2010-07-24 11:19   ` Malte Starostik
  2010-07-24 11:21     ` [Buildroot] [PATCH 1/3] Globally remove aclocal directories " Malte Starostik
  2010-07-24 11:21     ` [Buildroot] [PATCH 2/3] Purge libglib2 dev files " Malte Starostik
@ 2010-07-24 11:21     ` Malte Starostik
  2010-07-24 17:58       ` Thomas Petazzoni
  2 siblings, 1 reply; 13+ messages in thread
From: Malte Starostik @ 2010-07-24 11:21 UTC (permalink / raw)
  To: buildroot

* Don't install gdb plugins unless BR2_TARGET_GDB is set

Signed-off-by: Malte Starostik <m-starostik@versanet.de>
---
 Makefile                     |    3 +++
 package/libglib2/libglib2.mk |    9 +++++++++
 2 files changed, 12 insertions(+), 0 deletions(-)

diff --git a/Makefile b/Makefile
index 0123e97..0ee03b8 100644
--- a/Makefile
+++ b/Makefile
@@ -399,6 +399,9 @@ else
 	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
+ifneq ($(BR2_HAVE_PACKAGE_GDB),y)
+	rm -rf $(TARGET_DIR)/usr/share/gdb
+endif
 ifneq ($(BR2_HAVE_DOCUMENTATION),y)
 	rm -rf $(TARGET_DIR)/usr/man $(TARGET_DIR)/usr/share/man
 	rm -rf $(TARGET_DIR)/usr/info $(TARGET_DIR)/usr/share/info
diff --git a/package/libglib2/libglib2.mk b/package/libglib2/libglib2.mk
index 6a43829..d7cd828 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))
 
-- 
1.7.1

^ permalink raw reply related	[flat|nested] 13+ messages in thread

* [Buildroot] [PATCH 1/3] Globally remove aclocal directories from target
  2010-07-24 11:21     ` [Buildroot] [PATCH 1/3] Globally remove aclocal directories " Malte Starostik
@ 2010-07-24 17:56       ` Thomas Petazzoni
  2010-07-30  8:45       ` Peter Korsgaard
  1 sibling, 0 replies; 13+ messages in thread
From: Thomas Petazzoni @ 2010-07-24 17:56 UTC (permalink / raw)
  To: buildroot

On Sat, 24 Jul 2010 13:21:12 +0200
Malte Starostik <m-starostik@versanet.de> wrote:

> * Remove $(TARGET_DIR)/usr/share/aclocal from target-finalize when not
>   installing devfiles and
> * Remove some (now) redundant cleanup from individual packages
> 
> Signed-off-by: Malte Starostik <m-starostik@versanet.de>

Acked-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>

Thanks,

Thomas
-- 
Thomas Petazzoni, Free Electrons
Kernel, drivers, real-time and embedded Linux
development, consulting, training and support.
http://free-electrons.com

^ permalink raw reply	[flat|nested] 13+ messages in thread

* [Buildroot] [PATCH 3/3] Remove gdb plugins from target
  2010-07-24 11:21     ` [Buildroot] [PATCH 3/3] Remove gdb plugins " Malte Starostik
@ 2010-07-24 17:58       ` Thomas Petazzoni
  2010-07-24 19:29         ` [Buildroot] [Corrected - my bad][PATCH] " Malte Starostik
  0 siblings, 1 reply; 13+ messages in thread
From: Thomas Petazzoni @ 2010-07-24 17:58 UTC (permalink / raw)
  To: buildroot

On Sat, 24 Jul 2010 13:21:14 +0200
Malte Starostik <m-starostik@versanet.de> wrote:

> +ifneq ($(BR2_HAVE_PACKAGE_GDB),y)

This option does not exist. It should probably be BR2_PACKAGE_GDB.

Thomas
-- 
Thomas Petazzoni, Free Electrons
Kernel, drivers, real-time and embedded Linux
development, consulting, training and support.
http://free-electrons.com

^ permalink raw reply	[flat|nested] 13+ messages in thread

* [Buildroot] [PATCH 2/3] Purge libglib2 dev files from target
  2010-07-24 11:21     ` [Buildroot] [PATCH 2/3] Purge libglib2 dev files " Malte Starostik
@ 2010-07-24 17:59       ` Thomas Petazzoni
  2010-07-30  8:44       ` Peter Korsgaard
  1 sibling, 0 replies; 13+ messages in thread
From: Thomas Petazzoni @ 2010-07-24 17:59 UTC (permalink / raw)
  To: buildroot

On Sat, 24 Jul 2010 13:21:13 +0200
Malte Starostik <m-starostik@versanet.de> wrote:

> * Don't install libglib2 development binaries and to target unless
>   BR2_HAVE_DEVFILES is set
> 
> Signed-off-by: Malte Starostik <m-starostik@versanet.de>

Acked-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>

Thanks,

Thomas
-- 
Thomas Petazzoni, Free Electrons
Kernel, drivers, real-time and embedded Linux
development, consulting, training and support.
http://free-electrons.com

^ permalink raw reply	[flat|nested] 13+ messages in thread

* [Buildroot] [Corrected - my bad][PATCH] Remove gdb plugins from target
  2010-07-24 17:58       ` Thomas Petazzoni
@ 2010-07-24 19:29         ` Malte Starostik
  2010-07-30  8:47           ` Peter Korsgaard
  0 siblings, 1 reply; 13+ messages in thread
From: Malte Starostik @ 2010-07-24 19:29 UTC (permalink / raw)
  To: buildroot

* Don't install gdb plugins unless BR2_TARGET_GDB is set

Signed-off-by: Malte Starostik <m-starostik@versanet.de>
---
 Makefile                     |    3 +++
 package/libglib2/libglib2.mk |    9 +++++++++
 2 files changed, 12 insertions(+), 0 deletions(-)

diff --git a/Makefile b/Makefile
index 0123e97..f8af6bd 100644
--- a/Makefile
+++ b/Makefile
@@ -399,6 +399,9 @@ else
 	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
+ifneq ($(BR2_PACKAGE_GDB),y)
+	rm -rf $(TARGET_DIR)/usr/share/gdb
+endif
 ifneq ($(BR2_HAVE_DOCUMENTATION),y)
 	rm -rf $(TARGET_DIR)/usr/man $(TARGET_DIR)/usr/share/man
 	rm -rf $(TARGET_DIR)/usr/info $(TARGET_DIR)/usr/share/info
diff --git a/package/libglib2/libglib2.mk b/package/libglib2/libglib2.mk
index 6a43829..d7cd828 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))
 
-- 
1.7.1

^ permalink raw reply related	[flat|nested] 13+ messages in thread

* [Buildroot] [PATCH 2/3] Purge libglib2 dev files from target
  2010-07-24 11:21     ` [Buildroot] [PATCH 2/3] Purge libglib2 dev files " Malte Starostik
  2010-07-24 17:59       ` Thomas Petazzoni
@ 2010-07-30  8:44       ` Peter Korsgaard
  1 sibling, 0 replies; 13+ messages in thread
From: Peter Korsgaard @ 2010-07-30  8:44 UTC (permalink / raw)
  To: buildroot

>>>>> "Malte" == Malte Starostik <m-starostik@versanet.de> writes:

 Malte> * Don't install libglib2 development binaries and to target unless
 Malte>   BR2_HAVE_DEVFILES is set

Committed, thanks.

-- 
Bye, Peter Korsgaard

^ permalink raw reply	[flat|nested] 13+ messages in thread

* [Buildroot] [PATCH 1/3] Globally remove aclocal directories from target
  2010-07-24 11:21     ` [Buildroot] [PATCH 1/3] Globally remove aclocal directories " Malte Starostik
  2010-07-24 17:56       ` Thomas Petazzoni
@ 2010-07-30  8:45       ` Peter Korsgaard
  1 sibling, 0 replies; 13+ messages in thread
From: Peter Korsgaard @ 2010-07-30  8:45 UTC (permalink / raw)
  To: buildroot

>>>>> "Malte" == Malte Starostik <m-starostik@versanet.de> writes:

 Malte> * Remove $(TARGET_DIR)/usr/share/aclocal from target-finalize when not
 Malte>   installing devfiles and
 Malte> * Remove some (now) redundant cleanup from individual packages

Committed, thanks.

-- 
Bye, Peter Korsgaard

^ permalink raw reply	[flat|nested] 13+ messages in thread

* [Buildroot] [Corrected - my bad][PATCH] Remove gdb plugins from target
  2010-07-24 19:29         ` [Buildroot] [Corrected - my bad][PATCH] " Malte Starostik
@ 2010-07-30  8:47           ` Peter Korsgaard
  0 siblings, 0 replies; 13+ messages in thread
From: Peter Korsgaard @ 2010-07-30  8:47 UTC (permalink / raw)
  To: buildroot

>>>>> "Malte" == Malte Starostik <m-starostik@versanet.de> writes:

 Malte> * Don't install gdb plugins unless BR2_TARGET_GDB is set
 Malte> Signed-off-by: Malte Starostik <m-starostik@versanet.de>

Committed, thanks.

-- 
Bye, Peter Korsgaard

^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2010-07-30  8:47 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-07-22  8:59 [Buildroot] [PATCH] Purge libglib2 dev files from target Malte Starostik
2010-07-24  1:46 ` Lionel Landwerlin
2010-07-24 11:19   ` Malte Starostik
2010-07-24 11:21     ` [Buildroot] [PATCH 1/3] Globally remove aclocal directories " Malte Starostik
2010-07-24 17:56       ` Thomas Petazzoni
2010-07-30  8:45       ` Peter Korsgaard
2010-07-24 11:21     ` [Buildroot] [PATCH 2/3] Purge libglib2 dev files " Malte Starostik
2010-07-24 17:59       ` Thomas Petazzoni
2010-07-30  8:44       ` Peter Korsgaard
2010-07-24 11:21     ` [Buildroot] [PATCH 3/3] Remove gdb plugins " Malte Starostik
2010-07-24 17:58       ` Thomas Petazzoni
2010-07-24 19:29         ` [Buildroot] [Corrected - my bad][PATCH] " Malte Starostik
2010-07-30  8:47           ` Peter Korsgaard

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox