All of lore.kernel.org
 help / color / mirror / Atom feed
* How to copy local recipe file to target root filesystem /etc folder
@ 2011-01-17 10:17 Elvis Dowson
  2011-01-17 11:30 ` Paul Menzel
  0 siblings, 1 reply; 2+ messages in thread
From: Elvis Dowson @ 2011-01-17 10:17 UTC (permalink / raw)
  To: OpenEmbedded Developer Mailing List

Hi,
      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

Elvis Dowson



^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: How to copy local recipe file to target root filesystem /etc folder
  2011-01-17 10:17 How to copy local recipe file to target root filesystem /etc folder Elvis Dowson
@ 2011-01-17 11:30 ` Paul Menzel
  0 siblings, 0 replies; 2+ messages in thread
From: Paul Menzel @ 2011-01-17 11:30 UTC (permalink / raw)
  To: openembedded-devel

[-- Attachment #1: Type: text/plain, Size: 1817 bytes --]

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

[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 205 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2011-01-17 11:31 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-01-17 10:17 How to copy local recipe file to target root filesystem /etc folder Elvis Dowson
2011-01-17 11:30 ` Paul Menzel

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.