mirror of
https://github.com/thead-yocto-mirror/meta-external-toolchain
synced 2026-09-16 12:13:08 +02:00
oe.external: drop unneeded ,True from getVars
Signed-off-by: Christopher Larson <chris_larson@mentor.com>
This commit is contained in:
@@ -5,10 +5,10 @@ import bb
|
|||||||
|
|
||||||
|
|
||||||
def run(d, cmd, *args):
|
def run(d, cmd, *args):
|
||||||
topdir = d.getVar('TOPDIR', True)
|
topdir = d.getVar('TOPDIR')
|
||||||
toolchain_path = d.getVar('EXTERNAL_TOOLCHAIN', True)
|
toolchain_path = d.getVar('EXTERNAL_TOOLCHAIN')
|
||||||
if toolchain_path:
|
if toolchain_path:
|
||||||
target_prefix = d.getVar('EXTERNAL_TARGET_SYS', True) + '-'
|
target_prefix = d.getVar('EXTERNAL_TARGET_SYS') + '-'
|
||||||
path = os.path.join(toolchain_path, 'bin', target_prefix + cmd)
|
path = os.path.join(toolchain_path, 'bin', target_prefix + cmd)
|
||||||
args = [path] + list(args)
|
args = [path] + list(args)
|
||||||
|
|
||||||
@@ -26,7 +26,7 @@ def get_file_search_metadata(d):
|
|||||||
'''Given the metadata, return the mirrors and sysroots to operate against.'''
|
'''Given the metadata, return the mirrors and sysroots to operate against.'''
|
||||||
|
|
||||||
mirrors = []
|
mirrors = []
|
||||||
for entry in d.getVar('FILES_MIRRORS', True).replace('\\n', '\n').split('\n'):
|
for entry in d.getVar('FILES_MIRRORS').replace('\\n', '\n').split('\n'):
|
||||||
entry = entry.strip()
|
entry = entry.strip()
|
||||||
if not entry:
|
if not entry:
|
||||||
continue
|
continue
|
||||||
@@ -34,7 +34,7 @@ def get_file_search_metadata(d):
|
|||||||
mirrors.append(('^' + re.escape(pathname), subst))
|
mirrors.append(('^' + re.escape(pathname), subst))
|
||||||
|
|
||||||
source_paths = [os.path.realpath(p)
|
source_paths = [os.path.realpath(p)
|
||||||
for p in d.getVar('EXTERNAL_INSTALL_SOURCE_PATHS', True).split()]
|
for p in d.getVar('EXTERNAL_INSTALL_SOURCE_PATHS').split()]
|
||||||
|
|
||||||
return source_paths, mirrors
|
return source_paths, mirrors
|
||||||
|
|
||||||
@@ -44,9 +44,9 @@ def gather_pkg_files(d):
|
|||||||
this recipe.'''
|
this recipe.'''
|
||||||
import itertools
|
import itertools
|
||||||
files = []
|
files = []
|
||||||
for pkg in d.getVar('PACKAGES', True).split():
|
for pkg in d.getVar('PACKAGES').split():
|
||||||
files = itertools.chain(files, (d.getVar('FILES_{}'.format(pkg), True) or '').split())
|
files = itertools.chain(files, (d.getVar('FILES_{}'.format(pkg)) or '').split())
|
||||||
files = itertools.chain(files, d.getVar('EXTERNAL_EXTRA_FILES', True).split())
|
files = itertools.chain(files, d.getVar('EXTERNAL_EXTRA_FILES').split())
|
||||||
return files
|
return files
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user