summaryrefslogtreecommitdiffstats
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
parent2251edb9b93aef4dfcd8a0f7b3ec4e1ddeb970af (diff)
downloadmeta-ti-83e5425a127360419940546b6f4c4d74c0f3d40c.tar.gz
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>
-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 117e54fa..d4c32ab7 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"
3TI_PDK_GIT_PROTOCOL ?= "git" 3TI_PDK_GIT_PROTOCOL ?= "git"
4TI_PDK_SRCREV ?= "2357d1436f1b2c3b5f1d0c9c94e045d33b63f3fe" 4TI_PDK_SRCREV ?= "2357d1436f1b2c3b5f1d0c9c94e045d33b63f3fe"
5 5
6TI_PDK_VERSION ?= "2019.12.2" 6TI_PDK_VERSION ?= "2019.12.3"
7 7
8PV = "${TI_PDK_VERSION}" 8PV = "${TI_PDK_VERSION}"
9 9
@@ -32,6 +32,9 @@ python do_unpack_append() {
32 32
33 # Recursively hard-link the sources 33 # Recursively hard-link the sources
34 shutil.copytree(src, s, copy_function=os.link) 34 shutil.copytree(src, s, copy_function=os.link)
35
36 # Recursively hard-link the git directory
37 shutil.copytree(os.path.join(d.getVar('TI_PDK_SOURCE'),'.git'), os.path.join(s,'.git'), copy_function=os.link)
35} 38}
36 39
37# Make sure that ti-pdk-source is unpacked before we set up the hardlinks. 40# Make sure that ti-pdk-source is unpacked before we set up the hardlinks.