# Warning - this function is not multimachine safe (see stagingdir reference)!
#
- import os, sys
+ import os, sys, bb
pkg = bb.data.getVar('PKG', d, 1)
pkgfn = bb.data.getVar('PKGFN', d, 1)
rootfs = bb.data.getVar('IMAGE_ROOTFS', d, 1)
}
python do_package_ipk () {
- import sys, re, copy
+ import sys, re, copy, bb
workdir = bb.data.getVar('WORKDIR', d, 1)
if not workdir:
}
python do_package_write_ipk () {
+ import bb
packages = bb.data.getVar('PACKAGES', d, True)
if not packages:
bb.debug(1, "No PACKAGES defined, nothing to package")