aboutsummaryrefslogtreecommitdiffstats
path: root/classes
diff options
context:
space:
mode:
authorJacob Stiffler <j-stiffler@ti.com>2020-01-20 23:52:09 +0000
committerDenys Dmytriyenko <denys@ti.com>2020-01-23 02:15:07 +0000
commit83e5425a127360419940546b6f4c4d74c0f3d40c (patch)
tree35e88171fa5829f91da30eadabdb3a95adfd2e5a /classes
parent2251edb9b93aef4dfcd8a0f7b3ec4e1ddeb970af (diff)
downloadmeta-ti-83e5425a127360419940546b6f4c4d74c0f3d40c.tar.gz
meta-ti-83e5425a127360419940546b6f4c4d74c0f3d40c.tar.bz2
meta-ti-83e5425a127360419940546b6f4c4d74c0f3d40c.zip
ti-pdk-fetch: hard-link .git directory into workdir
Link the git directory into the recipe's work directory to provide git history and commit information for recipes that may need it. Signed-off-by: Jacob Stiffler <j-stiffler@ti.com> Signed-off-by: Denys Dmytriyenko <denys@ti.com>
Diffstat (limited to 'classes')
-rw-r--r--classes/ti-pdk-fetch.bbclass5
1 files changed, 4 insertions, 1 deletions
diff --git a/classes/ti-pdk-fetch.bbclass b/classes/ti-pdk-fetch.bbclass
index 117e54fa5..d4c32ab7a 100644
--- a/classes/ti-pdk-fetch.bbclass
+++ b/classes/ti-pdk-fetch.bbclass
@@ -3,7 +3,7 @@ TI_PDK_GIT_BRANCH ?= "release/PROCESSOR-SDK_06.02.00"
TI_PDK_GIT_PROTOCOL ?= "git"
TI_PDK_SRCREV ?= "2357d1436f1b2c3b5f1d0c9c94e045d33b63f3fe"
-TI_PDK_VERSION ?= "2019.12.2"
+TI_PDK_VERSION ?= "2019.12.3"
PV = "${TI_PDK_VERSION}"
@@ -32,6 +32,9 @@ python do_unpack_append() {
# Recursively hard-link the sources
shutil.copytree(src, s, copy_function=os.link)
+
+ # Recursively hard-link the git directory
+ shutil.copytree(os.path.join(d.getVar('TI_PDK_SOURCE'),'.git'), os.path.join(s,'.git'), copy_function=os.link)
}
# Make sure that ti-pdk-source is unpacked before we set up the hardlinks.