diff options
Diffstat (limited to 'meta/classes/externalsrc.bbclass')
-rw-r--r-- | meta/classes/externalsrc.bbclass | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/meta/classes/externalsrc.bbclass b/meta/classes/externalsrc.bbclass index c7fcdca6ef..e94a5cc2af 100644 --- a/meta/classes/externalsrc.bbclass +++ b/meta/classes/externalsrc.bbclass | |||
@@ -109,6 +109,16 @@ python () { | |||
109 | continue | 109 | continue |
110 | bb.build.deltask(task, d) | 110 | bb.build.deltask(task, d) |
111 | 111 | ||
112 | if bb.data.inherits_class('reproducible_build', d) and 'do_unpack' in d.getVar("SRCTREECOVEREDTASKS").split(): | ||
113 | # The reproducible_build's create_source_date_epoch_stamp function must | ||
114 | # be run after the source is available and before the | ||
115 | # do_deploy_source_date_epoch task. In the normal case, it's attached | ||
116 | # to do_unpack as a postfuncs, but since we removed do_unpack (above) | ||
117 | # we need to move the function elsewhere. The easiest thing to do is | ||
118 | # move it into the prefuncs of the do_deploy_source_date_epoch task. | ||
119 | # This is safe, as externalsrc runs with the source already unpacked. | ||
120 | d.prependVarFlag('do_deploy_source_date_epoch', 'prefuncs', 'create_source_date_epoch_stamp ') | ||
121 | |||
112 | d.prependVarFlag('do_compile', 'prefuncs', "externalsrc_compile_prefunc ") | 122 | d.prependVarFlag('do_compile', 'prefuncs', "externalsrc_compile_prefunc ") |
113 | d.prependVarFlag('do_configure', 'prefuncs', "externalsrc_configure_prefunc ") | 123 | d.prependVarFlag('do_configure', 'prefuncs', "externalsrc_configure_prefunc ") |
114 | 124 | ||