oe.external: obey EXTERNAL_FILES over FILES

This lets one add files to be packaged beyond those being extracted from
the external toolchain, i.e. for files coming from elsewhere, or created
by do_install/do_install_extra.

Signed-off-by: Christopher Larson <chris_larson@mentor.com>
This commit is contained in:
Christopher Larson
2018-03-21 01:12:00 +05:00
parent e89a84fdff
commit 20795cfd6b

View File

@@ -45,7 +45,7 @@ def gather_pkg_files(d):
import itertools
files = []
for pkg in d.getVar('PACKAGES').split():
files = itertools.chain(files, (d.getVar('FILES_{}'.format(pkg)) or '').split())
files = itertools.chain(files, (d.getVar('EXTERNAL_FILES_{}'.format(pkg)) or d.getVar('FILES_{}'.format(pkg)) or '').split())
files = itertools.chain(files, d.getVar('EXTERNAL_EXTRA_FILES').split())
return files