[yocto] Recipe question

Darren Breeze darren.j.breeze at gmail.com
Tue Jun 9 14:55:48 PDT 2015


Hi

I have sorted this out.

I had assumed the ${D} contained a trailing slash when it didn't

I changed do_install to

do_install() {
         install -d ${D}/opt/web_remote
         cp -r ${S}/* ${D}/opt/web_remote/.
}

And it worked.

Thanks for all the responses.

Darren B.




On 8/06/2015 3:36 PM, Anders Darander wrote:
> * Darren Breeze <darren.j.breeze at gmail.com> [150606 02:52]:
>> the recipe file is :
>> ---------
>> DESCRIPTION = "Web Remote"
>> SECTION = "utils"
>> SRC_URI =
>> "git://192.168.192.46/mygroup/web_remote.git;protocol=http;branch=master;"
>> S = "${WORKDIR}/git"
>> do_install() {
>>          install -d ${D}opt/web_remote
>>          cp -r ${S}/* ${D}opt/web_remote/.
>> }
>> ----------
>> but I keep getting this error
>> "error: Can't install packagegroup-core-boot-1.0-r17 at rk3188: no package
>> provides web-remote"
> You have installed the files under /opt, though there's nothing that
> tells the system in which package these files should be installed.
>
> Add a line:
>
> FILES_${PN} += "/opt/we_remote"
>
> to your recipe. This should tell the packaging step that all files under
> /opt/web_root should be included in the ${PN}-package.
>
> Cheers,
> Anders
>




More information about the yocto mailing list