mirror of
https://git.yoctoproject.org/poky
synced 2026-04-17 09:32:12 +02:00
package.bbclass: warn if perms conf file does not exist
It's possible that the perms conf file specified by FILESYSTEM_PERMS_TABLES does not exist. Currently, this situation is silently ignored, which is likely to lead to further do_rootfs failures. So fix to output a warning, telling user that the specified file in FILESYSTEM_PERMS_TABLES cannot be found. (From OE-Core rev: e14b9f2a667889092251053933dc2f3c51f01ef0) Signed-off-by: Chen Qi <Qi.Chen@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
@@ -774,7 +774,11 @@ python fixup_perms () {
|
||||
bbpath = d.getVar('BBPATH')
|
||||
fs_perms_tables = d.getVar('FILESYSTEM_PERMS_TABLES') or ""
|
||||
for conf_file in fs_perms_tables.split():
|
||||
str += " %s" % bb.utils.which(bbpath, conf_file)
|
||||
confpath = bb.utils.which(bbpath, conf_file)
|
||||
if confpath:
|
||||
str += " %s" % bb.utils.which(bbpath, conf_file)
|
||||
else:
|
||||
bb.warn("cannot find %s specified in FILESYSTEM_PERMS_TABLES" % conf_file)
|
||||
return str
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user