diff options
author | Douglas Royds <douglas.royds@taitradio.com> | 2018-09-14 14:58:16 +1200 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2018-09-21 18:45:46 -0700 |
commit | d6f2ffb5c766d3295863f3a5d9ae47c1b7b14067 (patch) | |
tree | 47f4e1a8f4bae605c82518b9d224e1173186e1ef | |
parent | 73ba6051bebe901b7aac07cbffb2d368ca8408ea (diff) | |
download | poky-d6f2ffb5c766d3295863f3a5d9ae47c1b7b14067.tar.gz |
reproducible: Don't enforce existence of ${S} dir
Unnecessary.
(From OE-Core rev: 75d5a9d72566aca7a9f08bea21523b3c66bddeae)
Signed-off-by: Douglas Royds <douglas.royds@taitradio.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r-- | meta/classes/reproducible_build.bbclass | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/meta/classes/reproducible_build.bbclass b/meta/classes/reproducible_build.bbclass index 42cb37b042..a81f249790 100644 --- a/meta/classes/reproducible_build.bbclass +++ b/meta/classes/reproducible_build.bbclass | |||
@@ -122,16 +122,12 @@ def get_source_date_epoch_from_youngest_file(d, sourcedir): | |||
122 | return source_date_epoch | 122 | return source_date_epoch |
123 | 123 | ||
124 | python do_create_source_date_epoch_stamp() { | 124 | python do_create_source_date_epoch_stamp() { |
125 | sourcedir = d.getVar('S') | ||
126 | if not os.path.isdir(sourcedir): | ||
127 | bb.warn("Unable to determine source_date_epoch! path:%s" % sourcedir) | ||
128 | return | ||
129 | |||
130 | epochfile = d.getVar('SDE_FILE') | 125 | epochfile = d.getVar('SDE_FILE') |
131 | if os.path.isfile(epochfile): | 126 | if os.path.isfile(epochfile): |
132 | bb.debug(1, " path: %s reusing __source_date_epoch.txt" % epochfile) | 127 | bb.debug(1, " path: %s reusing __source_date_epoch.txt" % epochfile) |
133 | return | 128 | return |
134 | 129 | ||
130 | sourcedir = d.getVar('S') | ||
135 | source_date_epoch = ( | 131 | source_date_epoch = ( |
136 | get_source_date_epoch_from_git(d, sourcedir) or | 132 | get_source_date_epoch_from_git(d, sourcedir) or |
137 | get_source_date_epoch_from_known_files(d, sourcedir) or | 133 | get_source_date_epoch_from_known_files(d, sourcedir) or |