openembedded-core/meta/lib
에 각종 openembedded-core
util이 있다.
- 레시피에서 from
oe.utils
import Class,Method...
등을 가져오면 된다.

oe.utils
method | argument |
---|
read_file | def read_file(filename)  |
ifelse | def read_file(filename) |
conditional | def conditional(variable, checkvalue, truevalue, falsevalue, d) |
vartrue | def vartrue(var, iftrue, iffalse, d) |
less_or_equal | def less_or_equal(variable, checkvalue, truevalue, falsevalue, d) |
version_less_or_equal | def version_less_or_equal(variable, checkvalue, truevalue, falsevalue, d) |
both_contain | def both_contain(variable1, variable2, checkvalue, d) |
set_intersect | def set_intersect(variable1, variable2, d) |
prune_suffix | def prune_suffix(var, suffixes, d)  |
str_filter | def str_filter(f, str, d)  |
str_filter_out | def str_filter_out(f, str, d)  |
build_depends_string | def build_depends_string(depends, task) |
inherits | def inherits(d, *classes) |
featrues_backfill | def features_backfill(var,d) |
all_distro_features | def all_distro_features(d, features, truevalue="1", falsevalue="") |
any_distro_features | def any_distro_features(d, features, truevalue="1", falsevalue="") |
parallel_make | def parallel_make(d, makeinst=False) |
parallel_make_argument | def parallel_make_argument(d, fmt, limit=None, makeinst=False) |
getstatusoutput | def getstatusoutput(cmd): |
trim_version | def trim_version(version, num_parts=2) |
cpu_count | def cpu_count(at_least=1) |
execute_pre_post_process | def execute_pre_post_process(d, cmds) |
multiprocess_launch | |
squashspace | |
format_pkg_list | |
get_host_compiler_version | |
host_gcc_version | |
get_multilib_datastore | |
class ThreadWorker | |
class ThreadPool | |
write_ld_so_conf | |
class ImageQAFailed | |
sh_quote | |
oe.data
method | argument |
---|
typed_value | def typed_value(key, d)  |
export2json | def export2json(d, json_file, expand=True, searchString="",replaceString="")  |
bb.utils
bitbake/lib
에 각종 bb
util이 있다.
- 레시피에서 from
bb.utils
import Class,Method...
등을 가져오면 된다.

bb.utils.lockfile
file_name = 'FILENAME'
lock = bb.utils.lockfile(file_name + '.lock')
with open(file_name, mode) as f:
f.write(...)
bb.utils.unlockfile(lock)
bb.utils.contains('DISTRO_FEATURES', 'x11', 'true', 'false', d)
bb.data
bb.data.inherits_class('image',d))
import bb
print( bb.data.inherits_class('image', d) )
True
bb.plain
bb.plain("string")

- Recipe 개발 시 print에 유용함
- python Task, def PythonFunction 에서
print( )
안됨
d
__inherit_cache
cmd | description |
---|
d.getVar('__inherit_cache',True) | 이 레시피가 inherit하는 bbclass |
Author And Source
이 문제에 관하여(oe-core, bitbake 를 이용한 recipe 개발), 우리는 이곳에서 더 많은 자료를 발견하고 링크를 클릭하여 보았다
https://velog.io/@markyang92/oe-core-bb
저자 귀속: 원작자 정보가 원작자 URL에 포함되어 있으며 저작권은 원작자 소유입니다.
우수한 개발자 콘텐츠 발견에 전념
(Collection and Share based on the CC Protocol.)