[oe] How to copy local recipe file to target root filesystem /etc folder

Paul Menzel paulepanter at users.sourceforge.net
Mon Jan 17 11:30:59 UTC 2011


Dear Elvis,


Am Montag, den 17.01.2011, 14:17 +0400 schrieb Elvis Dowson:

>       I have an OE recipe that I created to automatically login to the beagleboard. I have added the autologin recipe to the omap3-console-image.bb recipe.
> 
> Would someone happen to know what OE command I should insert into a recipe, that will allow me to copy a file from the autologin recipe folder to the target root filesystem /etc folder?
> 
> cp inittab-autologin <TARGET-ROOTFS>/etc/inittab
> cp autologin.profile <TARGET-ROOTFS>/etc

It should be something similar to what is for example done in
`recipes/busybox/busybox_1.1x.inc` [1].

        do_install_append() {
            install -m 0644 ${WORKDIR}/mdev.conf ${D}${sysconfdir}/
            install -d ${D}${sysconfdir}/init.d/
            install -d ${D}${sysconfdir}/mdev
            install -m 0755 ${WORKDIR}/find-touchscreen.sh ${D}${sysconfdir}/mdev/
            install -m 0755 ${WORKDIR}/usb.sh ${D}${sysconfdir}/mdev/
            install -m 0755 ${WORKDIR}/mdev ${D}${sysconfdir}/init.d/
        
            if grep "CONFIG_UDHCPD=y" ${WORKDIR}/defconfig; then
                  install -m 0755 ${WORKDIR}/busybox-udhcpd ${D}${sysconfdir}/init.d/
            fi
        
            if grep "CONFIG_UDHCPC=y" ${WORKDIR}/defconfig; then
                  install -d ${D}${sysconfdir}/udhcpc.d
                  install -d ${D}${datadir}/udhcpc
                  install -m 0755 ${WORKDIR}/simple.script ${D}${sysconfdir}/udhcpc.d/50default
                  install -m 0755 ${WORKDIR}/default.script ${D}${datadir}/udhcpc/default.script
            fi
        }


Thanks,

Paul


[1] http://cgit.openembedded.org/cgit.cgi/openembedded/tree/recipes/busybox/busybox_1.1x.inc?id=a3d8ebc6318b72c03cd6b626efcbd5186234b32d#n43
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part
URL: <http://lists.openembedded.org/pipermail/openembedded-devel/attachments/20110117/a6feb47e/attachment-0002.sig>


More information about the Openembedded-devel mailing list