* Developing in Python for Bitbake
@ 2013-12-17 20:11 Brad Litterell
2013-12-17 20:31 ` Paul Eggleton
0 siblings, 1 reply; 3+ messages in thread
From: Brad Litterell @ 2013-12-17 20:11 UTC (permalink / raw)
To: bitbake-devel@lists.openembedded.org
[-- Attachment #1: Type: text/plain, Size: 721 bytes --]
Hi,
I want to create a new bbclass for some internal build tooling and am fairly new to Python, so I have a couple of (hopefully quick) questions:
1. Can you recommend an Python IDE for developing for bitbake on Linux? There seem to be several, and if there is a consensus among the bitbake developers, I thought I'd start there.
2. Is there a list of pre-defined variables? For example, gitpkgv.bbclass starts with def get_git_pkgv(d, use_tags):
"d" appears to be frequently assumed. I'm guessing it is the same as the "D" variable in the recipes, but I am not sure whether there is a document that verifies this - and what else is available, or whether it is just tribal knowledge?
Thanks,
Brad
[-- Attachment #2: Type: text/html, Size: 1565 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Developing in Python for Bitbake
2013-12-17 20:11 Developing in Python for Bitbake Brad Litterell
@ 2013-12-17 20:31 ` Paul Eggleton
2013-12-17 21:56 ` Brad Litterell
0 siblings, 1 reply; 3+ messages in thread
From: Paul Eggleton @ 2013-12-17 20:31 UTC (permalink / raw)
To: Brad Litterell; +Cc: bitbake-devel
Hi Brad,
On Tuesday 17 December 2013 20:11:18 Brad Litterell wrote:
> I want to create a new bbclass for some internal build tooling and am fairly
> new to Python, so I have a couple of (hopefully quick) questions:
>
> 1. Can you recommend an Python IDE for developing for bitbake on Linux?
> There seem to be several, and if there is a consensus among the bitbake
> developers, I thought I'd start there.
I expect most people who work on BitBake don't use an IDE - just a text
editor, and we probably all use different ones. I myself mostly use Kate (from
KDE) which does provide syntax highlighting and completion though; at the
command line I also use vi.
> 2. Is there a list of pre-defined variables? For example, gitpkgv.bbclass
> starts with def get_git_pkgv(d, use_tags):
There's no reference for this level of things other than the code, I'm afraid,
but we're more than happy to answer questions if you have any.
> "d" appears to be frequently assumed. I'm guessing it is the same as the
> "D" variable in the recipes, but I am not sure whether there is a document
> that verifies this - and what else is available, or whether it is just
> tribal knowledge?
d is the data dictionary, as defined in bitbake/lib/bb/data_smart.py. d is not
related to the "D" variable in OpenEmbedded (although just as with any other
variable you can of course use d.getVar('D', True) to access it).
Cheers,
Paul
--
Paul Eggleton
Intel Open Source Technology Centre
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Developing in Python for Bitbake
2013-12-17 20:31 ` Paul Eggleton
@ 2013-12-17 21:56 ` Brad Litterell
0 siblings, 0 replies; 3+ messages in thread
From: Brad Litterell @ 2013-12-17 21:56 UTC (permalink / raw)
To: Paul Eggleton; +Cc: bitbake-devel@lists.openembedded.org
thanks!
________________________________________
From: Paul Eggleton [paul.eggleton@linux.intel.com]
Sent: Tuesday, December 17, 2013 12:31 PM
To: Brad Litterell
Cc: bitbake-devel@lists.openembedded.org
Subject: Re: [bitbake-devel] Developing in Python for Bitbake
Hi Brad,
On Tuesday 17 December 2013 20:11:18 Brad Litterell wrote:
> I want to create a new bbclass for some internal build tooling and am fairly
> new to Python, so I have a couple of (hopefully quick) questions:
>
> 1. Can you recommend an Python IDE for developing for bitbake on Linux?
> There seem to be several, and if there is a consensus among the bitbake
> developers, I thought I'd start there.
I expect most people who work on BitBake don't use an IDE - just a text
editor, and we probably all use different ones. I myself mostly use Kate (from
KDE) which does provide syntax highlighting and completion though; at the
command line I also use vi.
> 2. Is there a list of pre-defined variables? For example, gitpkgv.bbclass
> starts with def get_git_pkgv(d, use_tags):
There's no reference for this level of things other than the code, I'm afraid,
but we're more than happy to answer questions if you have any.
> "d" appears to be frequently assumed. I'm guessing it is the same as the
> "D" variable in the recipes, but I am not sure whether there is a document
> that verifies this - and what else is available, or whether it is just
> tribal knowledge?
d is the data dictionary, as defined in bitbake/lib/bb/data_smart.py. d is not
related to the "D" variable in OpenEmbedded (although just as with any other
variable you can of course use d.getVar('D', True) to access it).
Cheers,
Paul
--
Paul Eggleton
Intel Open Source Technology Centre
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2013-12-17 21:56 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-12-17 20:11 Developing in Python for Bitbake Brad Litterell
2013-12-17 20:31 ` Paul Eggleton
2013-12-17 21:56 ` Brad Litterell
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.