[oe] [PATCH] tzdata-uclibc: add recipe for uclibc timezone database

Khem Raj raj.khem at gmail.com
Sat Jul 3 04:51:50 UTC 2010


On (02/07/10 18:57), Roman I Khimov wrote:
> Recent TZif2 file format contains TZ-like ASCII string at the end that is
> easily extractable and usable with uclibc setup, so this recipe does exactly
> that based on standard tzdata.
> 
> Signed-off-by: Roman I Khimov <khimov at altell.ru>
> ---
>  recipes/tzdata/tzdata-uclibc_2010j.bb |   16 ++++++++++++++++
>  1 files changed, 16 insertions(+), 0 deletions(-)
>  create mode 100644 recipes/tzdata/tzdata-uclibc_2010j.bb
> 
> diff --git a/recipes/tzdata/tzdata-uclibc_2010j.bb b/recipes/tzdata/tzdata-uclibc_2010j.bb
> new file mode 100644
> index 0000000..9d0de5d
> --- /dev/null
> +++ b/recipes/tzdata/tzdata-uclibc_2010j.bb
> @@ -0,0 +1,16 @@
> +require tzdata_${PV}.bb
> +
> +do_install_append () {
> +	rm -f ${D}${sysconfdir}/localtime
> +	rm -f ${D}${sysconfdir}/timezone
> +	for i in `find ${D}${datadir}/zoneinfo -type f`; do
> +		tail -n 1 $i > temp-zone
> +		# Avoid useless NULL files
> +		if [ "`cat temp-zone`" != "" ]; then
> +			mv temp-zone $i
> +		fi
> +	done
> +	cp -pPR ${D}${datadir}/zoneinfo/${DEFAULT_TIMEZONE} ${D}${sysconfdir}/TZ
> +}
> +
> +CONFFILES_${PN} = "${sysconfdir}/TZ"
> \ No newline at end of file

you could have used overrides in the same recipe.
do_install_append_libc-uclibc () ...

Thx
-Khem




More information about the Openembedded-devel mailing list