Re: [yocto] Creating a directory in a recipe
Hi Bahjat, >do_install() { > >install -d /test/ >install -m 0777 bye.sh /test/ >} Assuming you actually want to create "test" in the root-dir of your *image*, rather than in the root-dir of your host, I think you'll find that "$(D}" is your friend, as in ... install -d ${D}/test etc. -- jim RAYLASE AG Argelsrieder Feld 2+4 82234 Wessling Germany Tel.: +49-(0)8153/88 98-0 Fax: +49-(0)8153/88 98-10 http://www.raylase.de District Court Munich, HRB 131450 Board: Dr. Philipp Schön (Chairman), Berthold Dambacher, Christoph von Jan Supervisory Board: Dr. Ulrich Lohmann (Chairman) Diese E-Mail enthält vertrauliche und/oder rechtlich geschützte Informationen. Wenn Sie nicht der richtige Adressat sind oder diese E-Mail irrtümlich erhalten haben, informieren Sie bitte sofort den Absender und vernichten Sie diese Mail. Das unerlaubte Kopieren sowie die unbefugte Weitergabe dieser Mail ist nicht gestattet. This e-mail may contain confidential and/or privileged information. If you are not the intended recipient (or have received this e-mail in error) please notify the sender immediately and destroy this e-mail. Any unauthorized copying, disclosure or distribution of the material in this e-mail is strictly forbidden. -- ___ yocto mailing list yocto@yoctoproject.org https://lists.yoctoproject.org/listinfo/yocto
Re: [yocto] Creating a directory in a recipe
On Sun, May 21, 2017 at 7:25 AM, bahjat khanwrote: > *do_install() {* > * install -d /test/* > > Should be: install -d ${D}/test/ > > *install -m 0777 bye.sh /test/* > > Should be: install -m 0777 bye.sh ${D}/test/ > *}* > > All of your install tasks need to install into the ${D} directory See: http://www.yoctoproject.org/docs/2.3/mega-manual/mega-manual.html#ref-tasks-install -- ___ yocto mailing list yocto@yoctoproject.org https://lists.yoctoproject.org/listinfo/yocto
[yocto] Creating a directory in a recipe
I've searched the vast net for an answer to this but i've found NOTHING! that works for me. All i want to do is a simple task, i want to create a new directory called "test" located in "/". My recipe is below DESCRIPTION = "Hello world" S = "${WORKDIR}" SRC_URI="file://bye.sh" LICENSE = "CLOSED" LIC_FILES_CHKSUM = "file://${S}/README;md5=e584df0feead52ed7de9b60172adc0cf " #INHIBIT_DEFAULT_DEPS = "1" do_install() { install -d /test/ install -m 0777 bye.sh /test/ } I can't seem to to do this, the error message is below [cid:927d4972-8462-4e14-a645-1e674bf9e641] I understand that there is a permissions issue with making a directory in "/" but i have no idea how to to get past this. I feel it would be very useful to newbies (like me) if there was a tutorial which gave solutions to simple tasks like this. The reference manual breezes over most things and i understand that it can't cover everything but this does cause a massive barrier to entry when learning Yocto. Apologies if i'm sounding a bit harsh but i've been self teaching Yocto for 3 weeks in my spare time and still don't have any fruits to show for my labour :'(. Kind Regards, Bahjat (Very stressed engineer) -- ___ yocto mailing list yocto@yoctoproject.org https://lists.yoctoproject.org/listinfo/yocto