[yocto] Section 5.10.6, current YP reference manual, "default working directory"
Robert P. J. Day
rpjday at crashcourse.ca
Wed Feb 22 03:58:27 PST 2017
just noticed this in ref manual:
"${B} is no longer the default working directory for tasks.
Consequently, any custom tasks you define now need to either have
the [dirs] flag set, or the task needs to change into the appropriate
working directory manually (e.g using cd for a shell task)."
Note
The preferred method is to use the [dirs] flag.
except it was just recently that ross burton(?) pointed me at OE's
base.bbclass to see the default working directory for at least the
most fundamental tasks:
$ grep "\[dirs\]" base.bbclass
do_fetch[dirs] = "${DL_DIR}"
do_unpack[dirs] = "${WORKDIR}"
do_configure[dirs] = "${B}"
do_compile[dirs] = "${B}"
do_install[dirs] = "${B}"
$
so, *technically*, that claim in the ref manual is not wholly true;
there are still a small number of tasks that use that default
directory. is that a distinction worth making in the reference manual?
rday
--
========================================================================
Robert P. J. Day Ottawa, Ontario, CANADA
http://crashcourse.ca
Twitter: http://twitter.com/rpjday
LinkedIn: http://ca.linkedin.com/in/rpjday
========================================================================
More information about the yocto
mailing list