[oe] [PATCH v2] Add support for at91sam9m10 H/W video decoder
Koen Kooi
k.kooi at student.utwente.nl
Tue Feb 1 06:01:24 UTC 2011
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On 31-01-11 21:59, Ulf Samuelsson wrote:
> +do_stage() {
> + echo staging ...
> + oe_libinstall -s -a -C ${S}/src/.libs libgstx170 ${STAGING_LIBDIR}
> + install -m 0644 ${S}/src/gstx170.h ${STAGING_INCDIR}/
No legacy staging allowed in new recipes
> +do_install() {
> + echo install ...
remove
> diff --git a/recipes/at91sam9m10-vdec/on2-8170-libs_1.0.bb b/recipes/at91sam9m10-vdec/on2-8170-libs_1.0.bb
> +SRC_URI_append = ""
remove
> +do_stage() {
> + oe_libinstall -s -a -C ${S} libdwlx170 ${STAGING_LIBDIR}
> + oe_libinstall -s -a -C ${S} libdecx170h ${STAGING_LIBDIR}
> + oe_libinstall -s -a -C ${S} libx170j ${STAGING_LIBDIR}
> + oe_libinstall -s -a -C ${S} libdecx170m2 ${STAGING_LIBDIR}
> + oe_libinstall -s -a -C ${S} libdecx170m ${STAGING_LIBDIR}
> + oe_libinstall -s -a -C ${S} libdecx170p ${STAGING_LIBDIR}
> + oe_libinstall -s -a -C ${S} libdecx170v ${STAGING_LIBDIR}
> +
> + install -m 0644 ${S}/*.h ${STAGING_INCDIR}/
> +}
No legacy staging allowed in new recipes
> diff --git a/recipes/images/x11-at91sam9m10-image.bb b/recipes/images/x11-at91sam9m10-image.bb
> +at91sam9m10_rootfs_postprocess() {
> + curdir=$PWD
> + cd ${IMAGE_ROOTFS}
> +
> + # add init script to cratee hantro modules /dev files
> + echo 'MAJOR=`cat /proc/devices |grep hx170|cut -f1 -d\ `' >> ${IMAGE_ROOTFS}//etc/init.d/hantro
> + echo 'mknod /dev/hx170 c $MAJOR 0' >> ${IMAGE_ROOTFS}/etc/init.d/hantro
> + echo 'MAJOR=`cat /proc/devices |grep memalloc|cut -f1 -d\ `' >> ${IMAGE_ROOTFS}//etc/init.d/hantro
> + echo 'mknod /dev/memalloc c $MAJOR 0' >> ${IMAGE_ROOTFS}/etc/init.d/hantro
> + chmod a+x ${IMAGE_ROOTFS}/etc/init.d/hantro
> + cd ${IMAGE_ROOTFS}/etc/rc5.d
> + ln -s ../init.d/hantro S51hantro
> +
> + # back on track
> + cd $curdir
> +}
Add that to the recipe and use the updated-rc.d class
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (Darwin)
iD8DBQFNR6G0MkyGM64RGpERAmWdAJ45V+ZF5fMXZAwO5g7vvaJSy4Sg3gCfe6nr
U7flNLkyur1hOoAiX2teRSs=
=9ww2
-----END PGP SIGNATURE-----
More information about the Openembedded-devel
mailing list