]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core.git/commit
devupstream: fix handling of SRC_URI
authorRoss Burton <ross@burtonini.com>
Tue, 15 Mar 2022 16:23:43 +0000 (16:23 +0000)
committerAnuj Mittal <anuj.mittal@intel.com>
Thu, 7 Apr 2022 06:40:13 +0000 (14:40 +0800)
commite62e906a2c3d002628c893fdc6a7d2c31499201a
treefc0266fd0347bd2c81f490c96431baf9eb07f0c8
parent6d106b1446516426af0fee54b6551465901e6bdb
devupstream: fix handling of SRC_URI

As the class handler runs before overrides are actually applied we need
to check both SRC_URI:class-devupstream and SRC_URI, otherwise the
automatic assignment of S="${WORKDIR}/git" for git repositories does
not work if the base recipe uses http: but :class-devupstream has a git://
entry instead.

Also, there's no need to set S:class-devupstream, we can just assign to
S here.

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit d0edb03088d0d1c20c899daed1bb3a7110b19670)
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
meta/classes/devupstream.bbclass