]> code.ossystems Code Review - openembedded-core.git/commit
devtool/standard.py: Not filtering devtool workspace for devtool finish
authorJaewon Lee <jaewon.lee@xilinx.com>
Fri, 20 Sep 2019 00:13:29 +0000 (17:13 -0700)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 7 Oct 2019 22:09:22 +0000 (23:09 +0100)
commitaa94f00eec64ef936acc80dfa826fd309daa294f
treefcc8a68d0baf1cf5a2d06034b038f97a65d8ef31
parent44f0047c0268f3e9f9fdf78f93bdad9bfe491174
devtool/standard.py: Not filtering devtool workspace for devtool finish

All devtool commands right now are filtering out the devtool workspace
bbappends in build/workspace/appends when calling parse_recipe. While
this may make sense for devtool add and modify, we need devtool finish
to include those appends.

A specific breakage that is caused because devtool finish filters devtool
appends is the cmake/cml1 flow where a file is created in the WORKDIR
that finish needs access to, to commit those files. Particularly for
git packages with SRCPV in PV, SRCPV is only changed to 999 when using
external source, hence when creating the cfg or cmake config files using
for instance bitbake -c diffconfig, these files are created in the
git999 workdir correctly (as in the devtool bbapends, we are inheriting
externalsrc class). But when devtool finish is run, the devtool appends
are not parsed, hence SRCPV is not changed to 999 and devtool is looking
for the fragment files in the wrong WORKDIR.

Changing the parse_recipe call just in devtool finish to not filter out
the devtool workspace.

Fixes [YOCTO #13533]

Signed-off-by: Jaewon Lee <jaewon.lee@xilinx.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
scripts/lib/devtool/standard.py