mirror of
https://git.yoctoproject.org/poky
synced 2026-05-08 17:19:20 +00:00
meta: Manual override fixes
The automated conversion of OE-Core to use the new override sytax isn't perfect. This patches some mis-converted lines and some lines which were missed by the automation. (From OE-Core rev: 4e9a06b64b43131b731fb59a0305f78a98e27fbd) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
+1
-1
@@ -100,7 +100,7 @@ def read_workspace():
|
||||
_enable_workspace_layer(config.workspace_path, config, basepath)
|
||||
|
||||
logger.debug('Reading workspace in %s' % config.workspace_path)
|
||||
externalsrc_re = re.compile(r'^EXTERNALSRC(_pn-([^ =]+))? *= *"([^"]*)"$')
|
||||
externalsrc_re = re.compile(r'^EXTERNALSRC(:pn-([^ =]+))? *= *"([^"]*)"$')
|
||||
for fn in glob.glob(os.path.join(config.workspace_path, 'appends', '*.bbappend')):
|
||||
with open(fn, 'r') as f:
|
||||
pnvalues = {}
|
||||
|
||||
@@ -523,7 +523,7 @@ def _extract_source(srctree, keep_temp, devbranch, sync, config, basepath, works
|
||||
history = d.varhistory.variable('SRC_URI')
|
||||
for event in history:
|
||||
if not 'flag' in event:
|
||||
if event['op'].startswith(('_append[', '_prepend[')):
|
||||
if event['op'].startswith((':append[', ':prepend[')):
|
||||
extra_overrides.append(event['op'].split('[')[1].split(']')[0])
|
||||
# We want to remove duplicate overrides. If a recipe had multiple
|
||||
# SRC_URI_override += values it would cause mulitple instances of
|
||||
@@ -955,17 +955,17 @@ def modify(args, config, basepath, workspace):
|
||||
f.write('SRCTREECOVEREDTASKS = "do_validate_branches do_kernel_checkout '
|
||||
'do_fetch do_unpack do_kernel_configcheck"\n')
|
||||
f.write('\ndo_patch[noexec] = "1"\n')
|
||||
f.write('\ndo_configure_append() {\n'
|
||||
f.write('\ndo_configure:append() {\n'
|
||||
' cp ${B}/.config ${S}/.config.baseline\n'
|
||||
' ln -sfT ${B}/.config ${S}/.config.new\n'
|
||||
'}\n')
|
||||
f.write('\ndo_kernel_configme_prepend() {\n'
|
||||
f.write('\ndo_kernel_configme:prepend() {\n'
|
||||
' if [ -e ${S}/.config ]; then\n'
|
||||
' mv ${S}/.config ${S}/.config.old\n'
|
||||
' fi\n'
|
||||
'}\n')
|
||||
if rd.getVarFlag('do_menuconfig','task'):
|
||||
f.write('\ndo_configure_append() {\n'
|
||||
f.write('\ndo_configure:append() {\n'
|
||||
' if [ ! ${DEVTOOL_DISABLE_MENUCONFIG} ]; then\n'
|
||||
' cp ${B}/.config ${S}/.config.baseline\n'
|
||||
' ln -sfT ${B}/.config ${S}/.config.new\n'
|
||||
|
||||
Reference in New Issue
Block a user