opkg-build needs to be executed in the root of the package, so save and restore the current directory so this task doesn't modify the state.
Signed-off-by: Ross Burton <[email protected]> --- meta/classes/package_ipk.bbclass | 3 +++ 1 file changed, 3 insertions(+) diff --git a/meta/classes/package_ipk.bbclass b/meta/classes/package_ipk.bbclass index 08f7020..1b5f4f5 100644 --- a/meta/classes/package_ipk.bbclass +++ b/meta/classes/package_ipk.bbclass @@ -21,6 +21,8 @@ python do_package_ipk () { import textwrap import subprocess + oldcwd = os.getcwd() + workdir = d.getVar('WORKDIR', True) outdir = d.getVar('PKGWRITEDIRIPK', True) tmpdir = d.getVar('TMPDIR', True) @@ -254,6 +256,7 @@ python do_package_ipk () { cleanupcontrol(root) bb.utils.unlockfile(lf) + os.chdir(oldcwd) } # Otherwise allarch packages may change depending on override configuration do_package_ipk[vardepsexclude] = "OVERRIDES" -- 2.8.0.rc3 -- _______________________________________________ Openembedded-core mailing list [email protected] http://lists.openembedded.org/mailman/listinfo/openembedded-core
