]> code.ossystems Code Review - openembedded-core.git/commit
devtool: warn user about multiple layer having the same base name
authorChen Qi <Qi.Chen@windriver.com>
Thu, 27 Jun 2019 03:14:55 +0000 (11:14 +0800)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 28 Jun 2019 12:28:32 +0000 (13:28 +0100)
commit2c8740f543c38dbaef3345e40827ef48b3f75405
treeba4d7633c528074fe4570b0a5fd9cb68a6b7fb17
parent0f82b53a650e76e0129fae6ce7581a41d042315b
devtool: warn user about multiple layer having the same base name

Currently `devtool finish RECIPE meta' will silently succeed even
if there are multiple layers having the same base name of 'meta'.
e.g. meta layer from oe-core and meta layer from meta-secure-core.

We should at least give user a warning in such case. With the patch,
we will get warning like below.

WARNING: Multiple layers have the same base name 'meta', use the first one '<PROJ_DIR>/oe-core/meta'.
WARNING: Consider using path instead of base name to specify layer:
    <PROJ_DIR>/oe-core/meta
  <PROJ_DIR>/meta-secure-core/meta

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
scripts/lib/devtool/standard.py