From 83e5425a127360419940546b6f4c4d74c0f3d40c Mon Sep 17 00:00:00 2001 From: Jacob Stiffler Date: Mon, 20 Jan 2020 23:52:09 +0000 Subject: 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 Signed-off-by: Denys Dmytriyenko --- classes/ti-pdk-fetch.bbclass | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'classes') 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" 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. -- cgit v1.2.3-54-g00ecf