From 7bdb5eb8a6c2d2287edc6d00255214affa4825b5 Mon Sep 17 00:00:00 2001 From: Marc Mattmueller Date: Tue, 14 Jun 2022 11:28:19 +0200 Subject: [PATCH] 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 --- classes/externalgitsrc.bbclass | 16 ---------------- 1 file changed, 16 deletions(-) delete mode 100644 classes/externalgitsrc.bbclass diff --git a/classes/externalgitsrc.bbclass b/classes/externalgitsrc.bbclass deleted file mode 100644 index 4b6ede9..0000000 --- a/classes/externalgitsrc.bbclass +++ /dev/null @@ -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)}"