On Mon, 2011-07-25 at 00:30 -0700, Saul Wold wrote:
>  SSTATEPOSTINSTFUNCS += "docbook_dsssl_stylesheets_sstate_postinst"
> +SYSROOT_PREPROCESS_FUNCS += "docbook_dsssl_sysroot_preprocess"
> +
>  
>  do_install () {
>       # Refer to 
> http://www.linuxfromscratch.org/blfs/view/stable/pst/docbook-dsssl.html
> @@ -42,8 +44,14 @@ docbook_dsssl_stylesheets_sstate_postinst () {
>       then
>               # Ensure that the catalog file sgml-docbook.cat is properly
>               # updated when the package is installed from sstate cache.
> -             install-catalog \
> +             
> ${SYSROOT_DESTDIR}${bindir_crossscripts}/install-catalog-docbook-dsssl \
>                       --add ${sysconfdir}/sgml/sgml-docbook.cat \
>                       ${sysconfdir}/sgml/dsssl-docbook-stylesheets.cat
>       fi
>  }
> +
> +docbook_dsssl_sysroot_preprocess () {
> +    install -d ${SYSROOT_DESTDIR}${bindir_crossscripts}/
> +    install -m 755 ${STAGING_BINDIR_NATIVE}/install-catalog 
> ${SYSROOT_DESTDIR}${bindir_crossscripts}/install-catalog-docbook-dsssl
> +}
> +

This sort of thing seems like it might be better done in a class of some
kind rather than replicating the code in N separate recipes.

p.



_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core

Reply via email to