Message ID | 1402144292-27837-2-git-send-email-bernd.kuhls@t-online.de |
---|---|
State | Rejected |
Headers | show |
Bernd, Yann, On Sat, 7 Jun 2014 14:31:01 +0200, Bernd Kuhls wrote: > +config BR2_COPY_GCONV_LIBS > + bool "copy gconv libs" > + depends on BR2_TOOLCHAIN_USES_GLIBC A few comments about this patch: - I dislike the name of the option. Maybe it should be BR2_TOOLCHAIN_GLIBC_GCONV_LIBS_COPY or something like that. - There should be a sub-option or something to copy only a subset of the gconv library, with a sane, default set of gconv libraries. Maybe with a choice "copy all" / "copy a selection". - Packages that needs gconv libraries should select this option. Thanks! Thomas
Thomas, All, On 2014-06-08 15:15 +0200, Thomas Petazzoni spake thusly: > On Sat, 7 Jun 2014 14:31:01 +0200, Bernd Kuhls wrote: > > > +config BR2_COPY_GCONV_LIBS > > + bool "copy gconv libs" > > + depends on BR2_TOOLCHAIN_USES_GLIBC > > A few comments about this patch: > > - I dislike the name of the option. Maybe it should be > BR2_TOOLCHAIN_GLIBC_GCONV_LIBS_COPY or something like that. > > - There should be a sub-option or something to copy only a subset of > the gconv library, with a sane, default set of gconv libraries. > Maybe with a choice "copy all" / "copy a selection". > > - Packages that needs gconv libraries should select this option. OK, OK, and OK. Will do. Regards, Yann E. MORIN.
diff --git a/Makefile b/Makefile index 0b4264a..4a819a8 100644 --- a/Makefile +++ b/Makefile @@ -395,6 +395,9 @@ ifeq ($(BR2_TOOLCHAIN_USES_GLIBC),y) ifneq ($(GENERATE_LOCALE),) TARGETS += target-generatelocales endif +ifeq ($(BR2_COPY_GCONV_LIBS),y) +TARGETS += target-copygconvlibs +endif endif ifeq ($(BR2_ECLIPSE_REGISTER),y) @@ -620,6 +623,9 @@ target-generatelocales: host-localedef toolchain done endif +target-copygconvlibs: + $(Q)cp -a $(STAGING_DIR)/usr/lib/gconv $(TARGET_DIR)/usr/lib/gconv + target-post-image: $(TARGETS_ROOTFS) target-finalize @$(foreach s, $(call qstrip,$(BR2_ROOTFS_POST_IMAGE_SCRIPT)), \ $(call MESSAGE,"Executing post-image script $(s)"); \ diff --git a/toolchain/toolchain-common.in b/toolchain/toolchain-common.in index 1573e00..59ec64e 100644 --- a/toolchain/toolchain-common.in +++ b/toolchain/toolchain-common.in @@ -77,6 +77,16 @@ config BR2_GENERATE_LOCALE specified, UTF-8 is assumed. Examples of locales: en_US, fr_FR.UTF-8. +config BR2_COPY_GCONV_LIBS + bool "copy gconv libs" + depends on BR2_TOOLCHAIN_USES_GLIBC + help + The gconv libraries are used to convert between different + character sets (charsets). + + Say 'y' if you need to store and/or display different charsets. + Note that the full set of gconv libraries is worth around 7MiB. + # glibc and eglibc directly include gettext, so a separatly compiled # gettext isn't needed and shouldn't be built to avoid conflicts. Some # packages always need gettext, other packages only need gettext when