classes: removed obsolete externalgitsrc.bbclass

Complements commit 3422a7a329.
The distro version is set by an include file which makes the
externalgitsrc class obsolete (local builds are not our
reference and the developer needs to take care for differentiating
the distro versions ;-P)

BugzID: 79719
Signed-off-by: Marc Mattmueller <marc.mattmueller@netmodule.com>
This commit is contained in:
Marc Mattmueller 2022-06-14 11:28:19 +02:00
parent 30d95eb8c8
commit 7bdb5eb8a6
1 changed files with 0 additions and 16 deletions

View File

@ -1,16 +0,0 @@
# Provides git describe tag from yocto root directory
EXTERNALSRC = "${@os.path.abspath(os.path.join("${TOPDIR}", os.pardir))}"
def get_externalsrc_rev(d):
import subprocess
srcdir = d.expand(d.getVar("EXTERNALSRC"))
#bb.note("external source: %s" % (srcdir))
rev = subprocess.check_output("cd %s && git describe --tags --dirty " % (srcdir),
shell=True).strip()
rev = rev.decode("utf-8")
d.setVar('BB_DONT_CACHE', '1')
return rev
EXTERNALSRC_GIT_SRCREV := "${@get_externalsrc_rev(d)}"