]> code.ossystems Code Review - openembedded-core.git/commit
scripts/wic: explicitly set BUILDDIR within eSDK
authorChang Rebecca Swee Fun <rebecca.swee.fun.chang@intel.com>
Thu, 11 Jan 2018 14:55:22 +0000 (22:55 +0800)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 12 Jan 2018 08:43:54 +0000 (08:43 +0000)
commit03fa13a269d2887cc5d13fd474fb39a2be037f2c
tree2dad4c5353dd81ca8308d4ecd5d2d605946dbff6
parentdcea30b885797ece3439cf1201795a975628d664
scripts/wic: explicitly set BUILDDIR within eSDK

When we run wic within eSDK:
$ wic create mkefidisk -e core-image-minimal

ERROR: BUILDDIR not found, exiting. (Did you forget to source oe-init-build-env?)

In order to figure out variable values, one must have sourced
the OE build environment setup script. However, when we are in
within the eSDK environment which isn't initialised like the
normal OE build environment, we can't use wic utility with eSDK.

Reference:
https://www.yoctoproject.org/docs/latest/mega-manual/mega-manual.html#wic-requirements

While wic ought to be fixed to be able to run without bitbake
& native tools [YOCTO #11281], but this is a workaround to set
BUILDDIR in the environment so that bitbake environment is setup
for wic to build its required native tools.

Signed-off-by: Chang Rebecca Swee Fun <rebecca.swee.fun.chang@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
scripts/wic