mirror of
https://git.yoctoproject.org/poky
synced 2026-05-30 00:20:08 +00:00
sanity.bbclass: warn the user if BBPATH contains wrong entries
If BBPATH references the working directory, the user is warned and asked to fix the problem. [Yocto #1465] (From OE-Core rev: 73f10ae955ba217078fa2c5288b736ae8a30b184) Signed-off-by: Laurentiu Palcu <laurentiu.palcu@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
5a50eb1ce6
commit
d8d95d10bd
@@ -387,6 +387,17 @@ def check_sanity(sanity_data):
|
|||||||
if "." in paths or "" in paths:
|
if "." in paths or "" in paths:
|
||||||
messages = messages + "PATH contains '.' or '', which will break the build, please remove this."
|
messages = messages + "PATH contains '.' or '', which will break the build, please remove this."
|
||||||
|
|
||||||
|
bbpaths = sanity_data.getVar('BBPATH', True).split(":")
|
||||||
|
if "." in bbpaths or "" in bbpaths:
|
||||||
|
# TODO: change the following message to fatal when all BBPATH issues
|
||||||
|
# are fixed
|
||||||
|
bb.warn("BBPATH references the current directory, either through " \
|
||||||
|
"an empty entry, or a '.'.\n\t This is unsafe and means your "\
|
||||||
|
"layer configuration is adding empty elements to BBPATH.\n\t "\
|
||||||
|
"Please check your layer.conf files and other BBPATH " \
|
||||||
|
"settings to remove the current working directory " \
|
||||||
|
"references.");
|
||||||
|
|
||||||
if sanity_data.getVar('TARGET_ARCH', True) == "arm":
|
if sanity_data.getVar('TARGET_ARCH', True) == "arm":
|
||||||
# This path is no longer user-readable in modern (very recent) Linux
|
# This path is no longer user-readable in modern (very recent) Linux
|
||||||
try:
|
try:
|
||||||
|
|||||||
Reference in New Issue
Block a user