summaryrefslogtreecommitdiffstats
path: root/meta/classes/package_ipk.bbclass
diff options
context:
space:
mode:
authorChen Qi <Qi.Chen@windriver.com>2015-02-17 10:08:12 +0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2015-02-19 07:51:38 +0000
commit0aa5ea125181364ddb7de67cc3f006f1d3926dd3 (patch)
treedb8268b242991bdb8b7c5642d6d490c895b1a808 /meta/classes/package_ipk.bbclass
parentc4cc479beb5970672f52f80ce5f77376d58861bc (diff)
downloadpoky-0aa5ea125181364ddb7de67cc3f006f1d3926dd3.tar.gz
packaging: allow globs in CONFFILES
Allow globs in CONFFILES. This patch changes the way of CONFFILES handling. After this change, the CONFFILES can take the same form as FILES. That means, we don't have to list a bunch of files for CONFFILES. It will just be expanded like the FILES variable. We don't assume default value for CONFFILES in OE. But distro vendors could provide a default value for CONFFILES in their distro configuration file like below. CONFFILES = "${sysconfdir}" In this way, files under /etc are treated as configuration files by default. Of course, setting CONFFILES in recipes take precedence over the CONFFILES. For example, if the recipe author decides that package A should only treat files under ${sysconfdir}/default/ as config files, he/she can write like this. CONFFILES_A = "${sysconfdir}/default" [YOCTO #5200] (From OE-Core rev: 0d446ef0e5bbca7058eec7259e34f2a1637dfab1) Signed-off-by: Chen Qi <Qi.Chen@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes/package_ipk.bbclass')
-rw-r--r--meta/classes/package_ipk.bbclass2
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/classes/package_ipk.bbclass b/meta/classes/package_ipk.bbclass
index 44fd3eb29c..dba68042ac 100644
--- a/meta/classes/package_ipk.bbclass
+++ b/meta/classes/package_ipk.bbclass
@@ -226,7 +226,7 @@ python do_package_ipk () {
226 scriptfile.close() 226 scriptfile.close()
227 os.chmod(os.path.join(controldir, script), 0755) 227 os.chmod(os.path.join(controldir, script), 0755)
228 228
229 conffiles_str = localdata.getVar("CONFFILES", True) 229 conffiles_str = ' '.join(get_conffiles(pkg, d))
230 if conffiles_str: 230 if conffiles_str:
231 try: 231 try:
232 conffiles = open(os.path.join(controldir, 'conffiles'), 'w') 232 conffiles = open(os.path.join(controldir, 'conffiles'), 'w')