summaryrefslogtreecommitdiffstats
path: root/meta/classes
diff options
context:
space:
mode:
authorChen Qi <Qi.Chen@windriver.com>2018-08-30 13:03:40 +0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2018-09-04 11:03:55 +0100
commit352d1a4bfdb687bc0d14c74d76e538eeac88ab5d (patch)
treee6db5edb0d1a9e826380b3c4ae9f5ae0d82bdedf /meta/classes
parentf19360329a9c63d35ace11745eda82a03bf6f2a9 (diff)
downloadpoky-352d1a4bfdb687bc0d14c74d76e538eeac88ab5d.tar.gz
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>
Diffstat (limited to 'meta/classes')
-rw-r--r--meta/classes/package.bbclass6
1 files changed, 5 insertions, 1 deletions
diff --git a/meta/classes/package.bbclass b/meta/classes/package.bbclass
index 9cfe43cbd1..0b6f65a855 100644
--- a/meta/classes/package.bbclass
+++ b/meta/classes/package.bbclass
@@ -774,7 +774,11 @@ python fixup_perms () {
774 bbpath = d.getVar('BBPATH') 774 bbpath = d.getVar('BBPATH')
775 fs_perms_tables = d.getVar('FILESYSTEM_PERMS_TABLES') or "" 775 fs_perms_tables = d.getVar('FILESYSTEM_PERMS_TABLES') or ""
776 for conf_file in fs_perms_tables.split(): 776 for conf_file in fs_perms_tables.split():
777 str += " %s" % bb.utils.which(bbpath, conf_file) 777 confpath = bb.utils.which(bbpath, conf_file)
778 if confpath:
779 str += " %s" % bb.utils.which(bbpath, conf_file)
780 else:
781 bb.warn("cannot find %s specified in FILESYSTEM_PERMS_TABLES" % conf_file)
778 return str 782 return str
779 783
780 784