python __anonymous() { import bb from bb import data def fixupvar(key): rdepends = data.getVar(key, d, True) deps = explode_deps(rdepends) print deps # We will fixup all keys starting with RDEPENDS # e.g. RDEPENDS, RDEPENDS_${PN}. And luckily # RDEPENDS_append is already a flag. for key in data.keys(d): if key.startswith('RDEPENDS'): bb.note("Fixing RDEPENDS for the native package '%s'" % key) fixupvar(key) }