blob: becf893e997a690e662ae8b9c740f007f3cc5ab4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
|
# ti-sci-fw builds and packages multiple config variants via multiconfig
# Let's take a page from gcc-source as a common recipe for all gcc stages,
# but also to provide a single package for MAINMACHINE of all multiconfigs
require recipes-bsp/ti-sci-fw/ti-sci-fw_${PV}.inc
SUMMARY += "- sources"
COMPATIBLE_MACHINE = "k3"
EXCLUDE_FROM_WORLD = "1"
INHIBIT_DEFAULT_DEPS = "1"
DEPENDS = ""
PACKAGES = "${PN}"
PACKAGE_ARCH = "${MACHINE_ARCH}"
do_configure[noexec] = "1"
do_compile[noexec] = "1"
SRCIPK_SRC_DIR = "${WORKDIR}/imggen"
SRCIPK_INSTALL_DIR = "board-support/k3-image-gen-${PV}"
FILES_${PN} = "${SRCIPK_INSTALL_DIR}"
do_install() {
# Copy sources for packaging
mkdir -p ${D}/${SRCIPK_INSTALL_DIR}
if [ -e ${SRCIPK_SRC_DIR} ]; then
if [ "${SRCIPK_SRC_DIR}" = "${WORKDIR}" ]; then
excludes='--exclude ./temp --exclude ${D}'
fi
tar -C ${SRCIPK_SRC_DIR} -cO $excludes . | tar -C ${D}/${SRCIPK_INSTALL_DIR} -xpf -
fi
# Fix up patches/ directory to contain actual patches instead of symlinks
if [ -e ${D}/${SRCIPK_INSTALL_DIR}/patches ]
then
mv ${D}/${SRCIPK_INSTALL_DIR}/patches ${D}/${SRCIPK_INSTALL_DIR}/patches-links
cp -rL ${D}/${SRCIPK_INSTALL_DIR}/patches-links ${D}/${SRCIPK_INSTALL_DIR}/patches
rm -rf ${D}/${SRCIPK_INSTALL_DIR}/patches-links
fi
}
# Do not perform any QA checks on source package
INSANE_SKIP_${PN} += "${ALL_QA}"
|