[Buildroot] [PATCH] Purge libglib2 dev files from target

Malte Starostik m-starostik at versanet.de
Sat Jul 24 11:19:49 UTC 2010


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



More information about the buildroot mailing list