diff options
| author | Denys Dmytriyenko <denys@ti.com> | 2020-08-05 22:12:03 +0000 |
|---|---|---|
| committer | Denys Dmytriyenko <denys@ti.com> | 2020-08-05 20:29:12 +0000 |
| commit | 7ee10b10831e8b67c0737201fc8e19e18caa042f (patch) | |
| tree | ac4e1329b76f4d3ad4f600f426b26afb8f750972 /recipes-bsp/ti-sci-fw/ti-sci-fw-source_git.bb | |
| parent | 93f261719d0574397e114a7f7a8b02dd5e1f1114 (diff) | |
| download | meta-ti-7ee10b10831e8b67c0737201fc8e19e18caa042f.tar.gz | |
ti-sci-fw: set PV inside .inc so it's easier to update 3 files
Signed-off-by: Denys Dmytriyenko <denys@ti.com>
Diffstat (limited to 'recipes-bsp/ti-sci-fw/ti-sci-fw-source_git.bb')
| -rw-r--r-- | recipes-bsp/ti-sci-fw/ti-sci-fw-source_git.bb | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/recipes-bsp/ti-sci-fw/ti-sci-fw-source_git.bb b/recipes-bsp/ti-sci-fw/ti-sci-fw-source_git.bb new file mode 100644 index 00000000..063e72d7 --- /dev/null +++ b/recipes-bsp/ti-sci-fw/ti-sci-fw-source_git.bb | |||
| @@ -0,0 +1,45 @@ | |||
| 1 | # ti-sci-fw builds and packages multiple config variants via multiconfig | ||
| 2 | # Let's take a page from gcc-source as a common recipe for all gcc stages, | ||
| 3 | # but also to provide a single package for MAINMACHINE of all multiconfigs | ||
| 4 | |||
| 5 | require recipes-bsp/ti-sci-fw/ti-sci-fw.inc | ||
| 6 | |||
| 7 | SUMMARY += "- sources" | ||
| 8 | |||
| 9 | COMPATIBLE_MACHINE = "k3" | ||
| 10 | |||
| 11 | EXCLUDE_FROM_WORLD = "1" | ||
| 12 | INHIBIT_DEFAULT_DEPS = "1" | ||
| 13 | DEPENDS = "" | ||
| 14 | |||
| 15 | PACKAGES = "${PN}" | ||
| 16 | PACKAGE_ARCH = "${MACHINE_ARCH}" | ||
| 17 | |||
| 18 | do_configure[noexec] = "1" | ||
| 19 | do_compile[noexec] = "1" | ||
| 20 | |||
| 21 | SRCIPK_SRC_DIR = "${WORKDIR}/imggen" | ||
| 22 | SRCIPK_INSTALL_DIR = "board-support/k3-image-gen-${PV}" | ||
| 23 | FILES_${PN} = "${SRCIPK_INSTALL_DIR}" | ||
| 24 | |||
| 25 | do_install() { | ||
| 26 | # Copy sources for packaging | ||
| 27 | mkdir -p ${D}/${SRCIPK_INSTALL_DIR} | ||
| 28 | if [ -e ${SRCIPK_SRC_DIR} ]; then | ||
| 29 | if [ "${SRCIPK_SRC_DIR}" = "${WORKDIR}" ]; then | ||
| 30 | excludes='--exclude ./temp --exclude ${D}' | ||
| 31 | fi | ||
| 32 | tar -C ${SRCIPK_SRC_DIR} -cO $excludes . | tar -C ${D}/${SRCIPK_INSTALL_DIR} -xpf - | ||
| 33 | fi | ||
| 34 | |||
| 35 | # Fix up patches/ directory to contain actual patches instead of symlinks | ||
| 36 | if [ -e ${D}/${SRCIPK_INSTALL_DIR}/patches ] | ||
| 37 | then | ||
| 38 | mv ${D}/${SRCIPK_INSTALL_DIR}/patches ${D}/${SRCIPK_INSTALL_DIR}/patches-links | ||
| 39 | cp -rL ${D}/${SRCIPK_INSTALL_DIR}/patches-links ${D}/${SRCIPK_INSTALL_DIR}/patches | ||
| 40 | rm -rf ${D}/${SRCIPK_INSTALL_DIR}/patches-links | ||
| 41 | fi | ||
| 42 | } | ||
| 43 | |||
| 44 | # Do not perform any QA checks on source package | ||
| 45 | INSANE_SKIP_${PN} += "${ALL_QA}" | ||
