diff options
| author | Jacob Stiffler <j-stiffler@ti.com> | 2019-12-07 02:11:49 +0000 |
|---|---|---|
| committer | Denys Dmytriyenko <denys@ti.com> | 2019-12-09 18:15:23 +0000 |
| commit | d8a176c3844fc48a09905a376948c40aa434de49 (patch) | |
| tree | da5cc709b000905a090830f5c562fae501f1ec17 /recipes-bsp/ti-pdk-source | |
| parent | f35a0fdd869110d268c14ba6925f589152791127 (diff) | |
| download | meta-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.bb | 33 |
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 | |||
| 8 | deltask do_configure | ||
| 9 | deltask do_compile | ||
| 10 | deltask do_install | ||
| 11 | deltask do_populate_sysroot | ||
| 12 | deltask do_populate_lic | ||
| 13 | |||
| 14 | RM_WORK_EXCLUDE += "${PN}" | ||
| 15 | EXCLUDE_FROM_WORLD = "1" | ||
| 16 | |||
| 17 | inherit nopackages ti-pdk-fetch | ||
| 18 | |||
| 19 | LICENSE = "BSD-3-Clause" | ||
| 20 | |||
| 21 | PN = "${TI_PDK_SOURCE_PN}" | ||
| 22 | WORKDIR = "${TI_PDK_SOURCE_WORKDIR}" | ||
| 23 | SSTATE_SWSPEC = "sstate:ti-pdk::${PV}:${PR}::${SSTATE_VERSION}:" | ||
| 24 | |||
| 25 | STAMP = "${STAMPS_DIR}/work-shared/ti-pdk-${PV}" | ||
| 26 | STAMPCLEAN = "${STAMPS_DIR}/work-shared/ti-pdk-${PV}*" | ||
| 27 | |||
| 28 | INHIBIT_DEFAULT_DEPS = "1" | ||
| 29 | DEPENDS = "" | ||
| 30 | PACKAGES = "" | ||
| 31 | |||
| 32 | SRC_URI = "${TI_PDK_GIT_URI};branch=${TI_PDK_GIT_BRANCH};protocol=${TI_PDK_GIT_PROTOCOL}" | ||
| 33 | SRCREV = "${TI_PDK_SRCREV}" | ||
