[yocto] Creating a recipe to create /usr/local

Chan Kit Yu yuchankit at gmail.com
Wed Nov 26 23:09:58 PST 2014


Hi all,

I'm not sure if emailing this is the most appropriate way and I
apologize in advance if that's not.

I have some scripts that require /usr/local to exist in Yocto and
therefore I need to a recipe to create /usr/local directory. I tried
to accomplish this with a simple recipe but that proved futile.

Although bitbaking that particular recipe was fine, trying to include
that package in local.conf resulted errors and those errors are
gibberish (it listed all the packages inside the image that I was
trying to comple) . Here's my simple stupid recipe:

SUMMARY= "...."
LICENSE = "something...."
...
...
INSANE_SKIP_${PN} = "installed-vs-shipped"

do_install(){
     mkdir -p ${D}/usr/local
}

Is there a better way (or preferably the canonical way) to do this?

Thanks,
Chan Kit



More information about the yocto mailing list