diff options
Diffstat (limited to 'meta-ti-bsp/recipes-bsp/ti-sci-fw/ti-sci-fw-source_git.bb')
-rw-r--r-- | meta-ti-bsp/recipes-bsp/ti-sci-fw/ti-sci-fw-source_git.bb | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/meta-ti-bsp/recipes-bsp/ti-sci-fw/ti-sci-fw-source_git.bb b/meta-ti-bsp/recipes-bsp/ti-sci-fw/ti-sci-fw-source_git.bb new file mode 100644 index 00000000..bab4acf0 --- /dev/null +++ b/meta-ti-bsp/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-linux-fw/ti-linux-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}" | ||