summaryrefslogtreecommitdiffstats
path: root/recipes-bsp/ti-pdk-source
diff options
context:
space:
mode:
authorJacob Stiffler <j-stiffler@ti.com>2019-12-07 02:11:49 +0000
committerDenys Dmytriyenko <denys@ti.com>2019-12-09 18:15:23 +0000
commitd8a176c3844fc48a09905a376948c40aa434de49 (patch)
treeda5cc709b000905a090830f5c562fae501f1ec17 /recipes-bsp/ti-pdk-source
parentf35a0fdd869110d268c14ba6925f589152791127 (diff)
downloadmeta-ti-d8a176c3844fc48a09905a376948c40aa434de49.tar.gz
ti-pdk-fetch: add class for common pdk sources
Recently individual components and LLD sources have been combined into a single PDK repo. Use this class to specify the common source. Also use this class to keep the sources separate from each other when building. This keeps the build identical to previous recipes while keeping control on interdependencies. Similar to gcc-source, use the ti-pdk-source recipe to unpack the sources into a "work-shared" area. Then hard-link only the necessary files into a recipe's WORKDIR. Signed-off-by: Jacob Stiffler <j-stiffler@ti.com> Signed-off-by: Denys Dmytriyenko <denys@ti.com>
Diffstat (limited to 'recipes-bsp/ti-pdk-source')
-rw-r--r--recipes-bsp/ti-pdk-source/ti-pdk-source_git.bb33
1 files changed, 33 insertions, 0 deletions
diff --git a/recipes-bsp/ti-pdk-source/ti-pdk-source_git.bb b/recipes-bsp/ti-pdk-source/ti-pdk-source_git.bb
new file mode 100644
index 00000000..f4b3da92
--- /dev/null
+++ b/recipes-bsp/ti-pdk-source/ti-pdk-source_git.bb
@@ -0,0 +1,33 @@
1# Recipe to fetch/unpack sources used by ti-pdk-fetch recipes.
2#
3# Mimic gcc-source.inc from oe-core.
4
5# These shources will be unpacked to a "work-shared" directory. Then each
6# "ti-pdk-fetch" recipe will hard-link only the sources it requires.
7
8deltask do_configure
9deltask do_compile
10deltask do_install
11deltask do_populate_sysroot
12deltask do_populate_lic
13
14RM_WORK_EXCLUDE += "${PN}"
15EXCLUDE_FROM_WORLD = "1"
16
17inherit nopackages ti-pdk-fetch
18
19LICENSE = "BSD-3-Clause"
20
21PN = "${TI_PDK_SOURCE_PN}"
22WORKDIR = "${TI_PDK_SOURCE_WORKDIR}"
23SSTATE_SWSPEC = "sstate:ti-pdk::${PV}:${PR}::${SSTATE_VERSION}:"
24
25STAMP = "${STAMPS_DIR}/work-shared/ti-pdk-${PV}"
26STAMPCLEAN = "${STAMPS_DIR}/work-shared/ti-pdk-${PV}*"
27
28INHIBIT_DEFAULT_DEPS = "1"
29DEPENDS = ""
30PACKAGES = ""
31
32SRC_URI = "${TI_PDK_GIT_URI};branch=${TI_PDK_GIT_BRANCH};protocol=${TI_PDK_GIT_PROTOCOL}"
33SRCREV = "${TI_PDK_SRCREV}"