Hi,

In case of writing the spec file for RPM we need to create first the directory 
layout and then putting the files using cp or other commands and then perform 
%file etc. stuff. But when I take a look to some of the recipe file present 
under poky sometime I see FILES_${PN} and it didn’t specify from where to pick 
the files.
May be the case is that these project use Auto tools for building. But in our 
case we have plain Makefile for building and then collecting files from 
different location and putting in package.
So I was thinking can be use such shortcut method for such job.

-Abhinav

-----Original Message-----
From: Victor Rodriguez [mailto:[email protected]] 
Sent: Monday, February 09, 2015 18:46
To: Bipnesh, Abhinav (Abhinav)
Cc: [email protected]
Subject: Re: [yocto] Multiple packages from single recipe file

On Mon, Feb 9, 2015 at 4:51 AM, Bipnesh, Abhinav (Abhinav) 
<[email protected]> wrote:
> Hi,
>
>
>
> I was looking further into the document to find a way to define 
> multiple packages from a single recipe file. As in current recipe I 
> have written a
> do_install() function for putting files in particular directories. So 
> it copies files from ${S} to ${D}.
>
> But some of the documents talk about multiple package something as 
> below
>
>
>
> FILES_${PN} = "\
>
>     ${bindir}/* \
>
>     ${sbindir}/* \
>
>     ${libexecdir}/* \
>
>     ${libdir}/lib*.so.* \
>
>     ${sysconfdir} \
>
>     ${sharedstatedir} \
>
>     ${localstatedir} \
>
>     /bin/* \
>
>     /sbin/* \
>
>     /lib/*.so* \
>
>     ${datadir}/${PN} \
>
>     ${libdir}/${PN}/* \
>
>     ${datadir}/pixmaps \
>
>     ${datadir}/applications \
>
>     ${datadir}/idl \
>
>     ${datadir}/omf \
>
>     ${datadir}/sounds \
>
>     ${libdir}/bonobo/servers"
>
>
>
> FILES_${PN}-dbg = "\
>
>     ${bindir}/.debug \
>
>     ${sbindir}/.debug \
>
>     ${libexecdir}/.debug \
>
>     ${libdir}/.debug \
>
>     /bin/.debug \
>
>     /sbin/.debug \
>
>     /lib/.debug \
>
>     ${libdir}/${PN}/.debug"
>
>
>
> But I am not getting how the source for such file will be determine as 
> in our project files will be present in different directories and need 
> to be placed in some predefined paths.
>
>
>
> So how we can achieve the same.
>
>
>
> Thanks,
>
> Abhinav
>
>
> --
> _______________________________________________
> yocto mailing list
> [email protected]
> https://urldefense.proofpoint.com/v2/url?u=https-3A__lists.yoctoprojec
> t.org_listinfo_yocto&d=AwIBaQ&c=BFpWQw8bsuKpl1SgiZH64Q&r=geJ1wB7xRIMmt
> eYB2Fo8esL32BOWvwP1HmY0YuLEB4E&m=Le2EtCjj9AW08t4Lrx7TNDzfZB3qnUINViKNg
> ly8NfY&s=4rO6-qcX4Lhvfc0WXO7Z7njj_OXkMHo3K_ITC2P5cmg&e=
>


Hi , basically the yocto recepeis work exactly as an spec file:

www.rpm.org/max-rpm/s1-rpm-build-creating-spec-file.html

The scenario you mention is possible:

rpm5.org/docs/rpm-guide.html

Hope it helps

Victor Rodriguez
-- 
_______________________________________________
yocto mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/yocto

Reply via email to