* Best practice for building a large amount of source files
@ 2015-12-10 21:16 Michael Habibi
2015-12-10 21:32 ` Jeremy A. Puhlman
2015-12-10 21:54 ` Burton, Ross
0 siblings, 2 replies; 5+ messages in thread
From: Michael Habibi @ 2015-12-10 21:16 UTC (permalink / raw)
To: yocto
[-- Attachment #1: Type: text/plain, Size: 563 bytes --]
If I have some source I want to bring into my layer, for example:
Recipe dir:
meta-mylayer/recipes-management/myapplication/myapplication_1.0/<tons of
source files>
What is the best option for adding all of these and compiling? As far as I
know, you have to do one of the following:
1) Use a fetch that fetches a tarball with all your source, or a repo with
all of your source
2) Use a million-line long SRC_URI assignment to include every file that
your application uses.
Is there a third (or fourth) option that I may have missed?
Michael
[-- Attachment #2: Type: text/html, Size: 744 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Best practice for building a large amount of source files
2015-12-10 21:16 Best practice for building a large amount of source files Michael Habibi
@ 2015-12-10 21:32 ` Jeremy A. Puhlman
2015-12-10 21:54 ` Burton, Ross
1 sibling, 0 replies; 5+ messages in thread
From: Jeremy A. Puhlman @ 2015-12-10 21:32 UTC (permalink / raw)
To: Michael Habibi; +Cc: yocto
[-- Attachment #1: Type: text/plain, Size: 1565 bytes --]
On 12/10/2015 1:16 PM, Michael Habibi wrote:
> If I have some source I want to bring into my layer, for example:
>
> Recipe dir:
> meta-mylayer/recipes-management/myapplication/myapplication_1.0/<tons
> of source files>
>
> What is the best option for adding all of these and compiling? As far
> as I know, you have to do one of the following:
>
> 1) Use a fetch that fetches a tarball with all your source, or a repo
> with all of your source
> 2) Use a million-line long SRC_URI assignment to include every file
> that your application uses.
>
> Is there a third (or fourth) option that I may have missed?
Not necessarily best practice, but it is something that bitbake has
supported.
If you create a directory under myapplication_1.0 that is unique and not
an override, you can specify the directory name
as the SRC_URI and bitbake will pull the directory and its contents in.
Something like
meta-mylayer/recipes-management/myapplication/myapplication_1.0/mysources/<tons
of source files>
and SRC_URI file://mysources
It should work.
Something like the following:
> find recipes/
recipes/
recipes/myapp
recipes/myapp/files
recipes/myapp/files/mysources
recipes/myapp/files/mysources/Makefile
recipes/myapp/myapp_1.0.bb
> cat recipes/myapp/myapp_1.0.bb
LICENSE="MIT"
LIC_FILES_CHKSUM =
"file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420"
SRC_URI = "file://mysources"
S="${WORKDIR}/mysources"
>
> Michael
>
>
>
>
--
Jeremy A. Puhlman
jpuhlman@mvista.com
[-- Attachment #2: Type: text/html, Size: 3247 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Best practice for building a large amount of source files
2015-12-10 21:16 Best practice for building a large amount of source files Michael Habibi
2015-12-10 21:32 ` Jeremy A. Puhlman
@ 2015-12-10 21:54 ` Burton, Ross
2015-12-10 22:07 ` Michael Habibi
1 sibling, 1 reply; 5+ messages in thread
From: Burton, Ross @ 2015-12-10 21:54 UTC (permalink / raw)
To: Michael Habibi; +Cc: yocto@yoctoproject.org
[-- Attachment #1: Type: text/plain, Size: 604 bytes --]
On 10 December 2015 at 21:16, Michael Habibi <mikehabibi@gmail.com> wrote:
> What is the best option for adding all of these and compiling? As far as I
> know, you have to do one of the following:
>
> 1) Use a fetch that fetches a tarball with all your source, or a repo with
> all of your source
> 2) Use a million-line long SRC_URI assignment to include every file that
> your application uses.
>
> Is there a third (or fourth) option that I may have missed?
>
(1) is definitely my recommendation, separate the application development
from the recipe to build the application.
Ross
[-- Attachment #2: Type: text/html, Size: 996 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Best practice for building a large amount of source files
2015-12-10 21:54 ` Burton, Ross
@ 2015-12-10 22:07 ` Michael Habibi
2015-12-10 22:11 ` Burton, Ross
0 siblings, 1 reply; 5+ messages in thread
From: Michael Habibi @ 2015-12-10 22:07 UTC (permalink / raw)
To: Burton, Ross; +Cc: yocto@yoctoproject.org
[-- Attachment #1: Type: text/plain, Size: 930 bytes --]
Ross, I will likely try a different workflow if we enter production
environment with yocto. Right now I am just doing yocto integration testing
myself, and want to simplify things as much as possible for myself :)
On Thu, Dec 10, 2015 at 3:54 PM, Burton, Ross <ross.burton@intel.com> wrote:
>
> On 10 December 2015 at 21:16, Michael Habibi <mikehabibi@gmail.com> wrote:
>
>> What is the best option for adding all of these and compiling? As far as
>> I know, you have to do one of the following:
>>
>> 1) Use a fetch that fetches a tarball with all your source, or a repo
>> with all of your source
>> 2) Use a million-line long SRC_URI assignment to include every file that
>> your application uses.
>>
>> Is there a third (or fourth) option that I may have missed?
>>
>
> (1) is definitely my recommendation, separate the application development
> from the recipe to build the application.
>
> Ross
>
[-- Attachment #2: Type: text/html, Size: 1664 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Best practice for building a large amount of source files
2015-12-10 22:07 ` Michael Habibi
@ 2015-12-10 22:11 ` Burton, Ross
0 siblings, 0 replies; 5+ messages in thread
From: Burton, Ross @ 2015-12-10 22:11 UTC (permalink / raw)
To: Michael Habibi; +Cc: yocto@yoctoproject.org
[-- Attachment #1: Type: text/plain, Size: 456 bytes --]
On 10 December 2015 at 22:07, Michael Habibi <mikehabibi@gmail.com> wrote:
> Ross, I will likely try a different workflow if we enter production
> environment with yocto. Right now I am just doing yocto integration testing
> myself, and want to simplify things as much as possible for myself :)
>
A simply workflow would be a local git repo with all the sources in, and
then a recipe with a git SRC_URI pointing at the local directory.
Ross
[-- Attachment #2: Type: text/html, Size: 799 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2015-12-10 22:11 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-12-10 21:16 Best practice for building a large amount of source files Michael Habibi
2015-12-10 21:32 ` Jeremy A. Puhlman
2015-12-10 21:54 ` Burton, Ross
2015-12-10 22:07 ` Michael Habibi
2015-12-10 22:11 ` Burton, Ross
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.