All of lore.kernel.org
 help / color / mirror / Atom feed
* How to prevent fetching?
@ 2011-08-31 17:25 Dave Beal
  2011-08-31 19:20 ` Frans Meulenbroeks
  2011-08-31 19:35 ` Joshua Lock
  0 siblings, 2 replies; 7+ messages in thread
From: Dave Beal @ 2011-08-31 17:25 UTC (permalink / raw)
  To: openembedded-devel

My company is using OE to develop the embedded Linux infrastructure of a
medical device.  The US government agency that approves such devices
(FDA) requires that its source code be strictly controlled.  We would
like to configure our OE installation to prevent the fetching of new
source code except when we explicitly allow it.

Is there a way to accomplish this that doesn't require modifying all the
individual .bb files?  Is there a global configuration option that would
prevent fetching?  I've looked through the OE and Bitbake User Manuals,
but haven't found an answer.

Thank you!

Dave Beal
Cardinal Peak, LLC
Lafayette, Colorado, USA


Dave Beal 
Cardinal Peak
(303) 665-3962 x124 | Email | vCard
| Web | Company Blog | LinkedIn 

 

 




^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: How to prevent fetching?
  2011-08-31 17:25 How to prevent fetching? Dave Beal
@ 2011-08-31 19:20 ` Frans Meulenbroeks
  2011-08-31 19:35 ` Joshua Lock
  1 sibling, 0 replies; 7+ messages in thread
From: Frans Meulenbroeks @ 2011-08-31 19:20 UTC (permalink / raw)
  To: openembedded-devel

2011/8/31 Dave Beal <dbeal@cardinalpeak.com>

> My company is using OE to develop the embedded Linux infrastructure of a
> medical device.  The US government agency that approves such devices
> (FDA) requires that its source code be strictly controlled.  We would
> like to configure our OE installation to prevent the fetching of new
> source code except when we explicitly allow it.
>
> Is there a way to accomplish this that doesn't require modifying all the
> individual .bb files?  Is there a global configuration option that would
> prevent fetching?  I've looked through the OE and Bitbake User Manuals,
> but haven't found an answer.
>
> Thank you!
>
> Simplest way is to set up a premirror with all source packages you need;
then change the routing table of your build system allowing only routing to
your premirror (and maybe some other hosts you want to access during
development).
Personally I do this with a VM.
At a certain point you probably also want to pin your OE tree on a certain
git hash to avoid that suddenly you drag in new code (and new problems) late
in your development cycle.
When you have pinned a version you could still backport fixes and put them
in a local overlay.

Good luck!

Frans


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: How to prevent fetching?
  2011-08-31 17:25 How to prevent fetching? Dave Beal
  2011-08-31 19:20 ` Frans Meulenbroeks
@ 2011-08-31 19:35 ` Joshua Lock
  2011-08-31 21:18   ` Dave Beal
  1 sibling, 1 reply; 7+ messages in thread
From: Joshua Lock @ 2011-08-31 19:35 UTC (permalink / raw)
  To: openembedded-devel

On Wed, 2011-08-31 at 11:25 -0600, Dave Beal wrote:
> My company is using OE to develop the embedded Linux infrastructure of a
> medical device.  The US government agency that approves such devices
> (FDA) requires that its source code be strictly controlled.  We would
> like to configure our OE installation to prevent the fetching of new
> source code except when we explicitly allow it.
> 
> Is there a way to accomplish this that doesn't require modifying all the
> individual .bb files?  Is there a global configuration option that would
> prevent fetching?  I've looked through the OE and Bitbake User Manuals,
> but haven't found an answer.

If you're using relatively recent BitBake and your metadata uses fetch2
(I don't know if oe.dev does, but oe-core is using fetch2) you can set
BB_NO_NETWORK="1" in a conf file somewhere.

Regards,
Joshua
-- 
Joshua Lock
        Yocto Project "Johannes factotum"
        Intel Open Source Technology Centre




^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: How to prevent fetching?
  2011-08-31 19:35 ` Joshua Lock
@ 2011-08-31 21:18   ` Dave Beal
  2011-08-31 22:30     ` Joshua Lock
  0 siblings, 1 reply; 7+ messages in thread
From: Dave Beal @ 2011-08-31 21:18 UTC (permalink / raw)
  To: openembedded-devel

Thank you, Joshua.  I don't know what you mean by "if your metadata uses
fetch2".  Is fetch2 some python function?  How would I know if I'm using
it?

- Dave


-----Original Message-----
From: Joshua Lock <josh@linux.intel.com>
Reply-to: openembedded-devel@lists.openembedded.org
To: openembedded-devel@lists.openembedded.org
Subject: Re: [oe] How to prevent fetching?
Date: Wed, 31 Aug 2011 12:35:00 -0700


On Wed, 2011-08-31 at 11:25 -0600, Dave Beal wrote:
> My company is using OE to develop the embedded Linux infrastructure of a
> medical device.  The US government agency that approves such devices
> (FDA) requires that its source code be strictly controlled.  We would
> like to configure our OE installation to prevent the fetching of new
> source code except when we explicitly allow it.
> 
> Is there a way to accomplish this that doesn't require modifying all the
> individual .bb files?  Is there a global configuration option that would
> prevent fetching?  I've looked through the OE and Bitbake User Manuals,
> but haven't found an answer.

If you're using relatively recent BitBake and your metadata uses fetch2
(I don't know if oe.dev does, but oe-core is using fetch2) you can set
BB_NO_NETWORK="1" in a conf file somewhere.

Regards,
Joshua


Dave Beal 
Cardinal Peak
(303) 665-3962 x124 | Email | vCard
| Web | Company Blog | LinkedIn 

 

 




^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: How to prevent fetching?
  2011-08-31 21:18   ` Dave Beal
@ 2011-08-31 22:30     ` Joshua Lock
  2011-08-31 22:39       ` Dave Beal
  0 siblings, 1 reply; 7+ messages in thread
From: Joshua Lock @ 2011-08-31 22:30 UTC (permalink / raw)
  To: openembedded-devel

On Wed, 2011-08-31 at 15:18 -0600, Dave Beal wrote:
> Thank you, Joshua.  I don't know what you mean by "if your metadata uses
> fetch2".  Is fetch2 some python function?  How would I know if I'm using
> it?

Fetch2 is a Python module that's part of BitBake. It's used from the
base_do_fetch() method of base.bbclass.

You can see that OE.dev isn't using  fetch2[1] but OE-Core is[2].

Joshua

1.
http://git.openembedded.org/cgit.cgi/openembedded/tree/classes/base.bbclass#n99
2.
http://git.openembedded.org/cgit.cgi/openembedded-core/tree/meta/classes/base.bbclass#n80
-- 
Joshua Lock
        Yocto Project "Johannes factotum"
        Intel Open Source Technology Centre




^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: How to prevent fetching?
  2011-08-31 22:30     ` Joshua Lock
@ 2011-08-31 22:39       ` Dave Beal
  2011-08-31 23:46         ` Gary Thomas
  0 siblings, 1 reply; 7+ messages in thread
From: Dave Beal @ 2011-08-31 22:39 UTC (permalink / raw)
  To: openembedded-devel

Thanks again, Joshua.  I found my base.bbclass (in
sources/openembedded/classes), and sadly, my base_do_fetch() uses
bb.fetch, not bb.fetch2.

- Dave


-----Original Message-----
From: Joshua Lock <josh@linux.intel.com>
Reply-to: openembedded-devel@lists.openembedded.org
To: openembedded-devel@lists.openembedded.org
Subject: Re: [oe] How to prevent fetching?
Date: Wed, 31 Aug 2011 15:30:24 -0700


On Wed, 2011-08-31 at 15:18 -0600, Dave Beal wrote:
> Thank you, Joshua.  I don't know what you mean by "if your metadata uses
> fetch2".  Is fetch2 some python function?  How would I know if I'm using
> it?

Fetch2 is a Python module that's part of BitBake. It's used from the
base_do_fetch() method of base.bbclass.

You can see that OE.dev isn't using  fetch2[1] but OE-Core is[2].

Joshua

1.
http://git.openembedded.org/cgit.cgi/openembedded/tree/classes/base.bbclass#n99
2.
http://git.openembedded.org/cgit.cgi/openembedded-core/tree/meta/classes/base.bbclass#n80


Dave Beal 
Cardinal Peak
(303) 665-3962 x124 | Email | vCard
| Web | Company Blog | LinkedIn 

 

 




^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: How to prevent fetching?
  2011-08-31 22:39       ` Dave Beal
@ 2011-08-31 23:46         ` Gary Thomas
  0 siblings, 0 replies; 7+ messages in thread
From: Gary Thomas @ 2011-08-31 23:46 UTC (permalink / raw)
  To: openembedded-devel

On 2011-08-31 16:39, Dave Beal wrote:
> Thanks again, Joshua.  I found my base.bbclass (in
> sources/openembedded/classes), and sadly, my base_do_fetch() uses
> bb.fetch, not bb.fetch2.

Depending on your system requirements, you may be able to transition to
oe-core or yocto, both of which support fetch2.

> -----Original Message-----
> From: Joshua Lock<josh@linux.intel.com>
> Reply-to: openembedded-devel@lists.openembedded.org
> To: openembedded-devel@lists.openembedded.org
> Subject: Re: [oe] How to prevent fetching?
> Date: Wed, 31 Aug 2011 15:30:24 -0700
>
>
> On Wed, 2011-08-31 at 15:18 -0600, Dave Beal wrote:
>> Thank you, Joshua.  I don't know what you mean by "if your metadata uses
>> fetch2".  Is fetch2 some python function?  How would I know if I'm using
>> it?
>
> Fetch2 is a Python module that's part of BitBake. It's used from the
> base_do_fetch() method of base.bbclass.
>
> You can see that OE.dev isn't using  fetch2[1] but OE-Core is[2].
>
> Joshua
>
> 1.
> http://git.openembedded.org/cgit.cgi/openembedded/tree/classes/base.bbclass#n99
> 2.
> http://git.openembedded.org/cgit.cgi/openembedded-core/tree/meta/classes/base.bbclass#n80
>
>
> Dave Beal
> Cardinal Peak
> (303) 665-3962 x124 | Email | vCard
> | Web | Company Blog | LinkedIn
>
>
>
>
>
>
> _______________________________________________
> Openembedded-devel mailing list
> Openembedded-devel@lists.openembedded.org
> http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel

-- 
------------------------------------------------------------
Gary Thomas                 |  Consulting for the
MLB Associates              |    Embedded world
------------------------------------------------------------



^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2011-08-31 23:51 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-08-31 17:25 How to prevent fetching? Dave Beal
2011-08-31 19:20 ` Frans Meulenbroeks
2011-08-31 19:35 ` Joshua Lock
2011-08-31 21:18   ` Dave Beal
2011-08-31 22:30     ` Joshua Lock
2011-08-31 22:39       ` Dave Beal
2011-08-31 23:46         ` Gary Thomas

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.