Skip to contentSkip to conversation

devtool: include do_patch in SRCTREECOVEREDTASKS

PATCH In review Tzu-Jung Lee 2 participants 2 messages Nov 2, 2015 – Nov 4, 2015

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 devtool: include do_patch in SRCTREECOVEREDTASKS

The external source of kernel has been patched during the construction of git repository. Include the do_patch task in the SRCTREECOVEREDTASKS.

scripts/lib/devtool/standard.py +1 -1
index 7b87558..a7747c7 100644
@@ -623,7 +623,7 @@ def modify(args, config, basepath, workspace):
             f.write('EXTERNALSRC_BUILD_pn-%s = "%s"\n' % (pn, srctree))
 
         if bb.data.inherits_class('kernel', rd):
-            f.write('SRCTREECOVEREDTASKS = "do_validate_branches do_kernel_checkout do_fetch do_unpack"\n')
+            f.write('SRCTREECOVEREDTASKS = "do_validate_branches do_kernel_checkout do_fetch do_unpack do_patch"\n')
         if initial_rev:
             f.write('\n# initial_rev: %s\n' % initial_rev)
             for commit in commits:
Signature · 1 line
2.6.2
Acked-by on v1 1/1
#1 lore raw
Quoted 15 lines · On Monday 02 November 2015 19:21:25 Tzu-Jung Lee wrote:

The external source of kernel has been patched during the construction of git repository. Include the do_patch task in the SRCTREECOVEREDTASKS.

(quoted diff) +0 -0

b/scripts/lib/devtool/standard.py index 7b87558..a7747c7 100644

scripts/lib/devtool/standard.py +0 -1
@@ -623,7 +623,7 @@ def modify(args, config, basepath, workspace):
             f.write('EXTERNALSRC_BUILD_pn-%s = "%s"\n' % (pn, srctree))
 
         if bb.data.inherits_class('kernel', rd):
-            f.write('SRCTREECOVEREDTASKS = "do_validate_branches
Quoted 5 lines

do_kernel_checkout do_fetch do_unpack"\n') + f.write('SRCTREECOVEREDTASKS = "do_validate_branches do_kernel_checkout do_fetch do_unpack do_patch"\n') if initial_rev:
f.write('\n# initial_rev: %s\n' % initial_rev) for commit in commits:

Seems reasonable - I can't think why this would have been legitimately excluded, though I wonder if it had something to do with linux-yocto vs. more traditional OE kernel recipes.

(This will get queued for master, but we can backport to jethro after the release.)

Cheers,
Paul

Signature · 2 lines
Paul Eggleton
Intel Open Source Technology Centre