BitBake (dev): Difference between revisions
Jump to navigation
Jump to search
Line 18: | Line 18: | ||
version = bb.__version__ | version = bb.__version__ | ||
bb.note("Hello from helloworld using lib bb v%s." % ( version )) | bb.note("Hello from helloworld using lib bb v%s." % ( version )) | ||
</pre> | |||
Same using data class : | |||
<pre> | |||
import os | |||
from bb import data | |||
version = bb.__version__ | |||
HELLO_MSG = "Hello from helloworld using lib bb v%s." % ( version ) | |||
d = data.init() | |||
data.setVar('HELLO_MSG', os.getcwd(), d) | |||
myval = data.getVar('HELLO_MSG', d, 1) | |||
bb.note(myval) | |||
</pre> | </pre> |
Revision as of 12:08, 1 October 2008
Where are all bitbake hot information !!
- First , RTFM ;-) : http://bitbake.berlios.de/manual/
- Don't forget mailinglist :
- Best documentation for source is via python documentation system.
Helloworld using lib bb
#!/usr/bin/env python # ex:ts=4:sw=4:sts=4:et # -*- tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*- import bb version = bb.__version__ bb.note("Hello from helloworld using lib bb v%s." % ( version ))
Same using data class :
import os from bb import data version = bb.__version__ HELLO_MSG = "Hello from helloworld using lib bb v%s." % ( version ) d = data.init() data.setVar('HELLO_MSG', os.getcwd(), d) myval = data.getVar('HELLO_MSG', d, 1) bb.note(myval)