1
0
mirror of https://git.yoctoproject.org/meta-ti synced 2026-07-16 14:27:48 +00:00

cppi-lld: Update to new version 2.1.0.8

- Add init script for creating symbolic link for generic device library boot time

Signed-off-by: Sam Nelson <sam.nelson@ti.com>
Signed-off-by: Denys Dmytriyenko <denys@ti.com>
This commit is contained in:
Sam Nelson
2015-04-10 20:11:02 +00:00
committed by Denys Dmytriyenko
parent bbe8b4f17d
commit 58d45b9abd
3 changed files with 66 additions and 5 deletions
+15 -1
View File
@@ -5,15 +5,29 @@ DEPENDS = "common-csl-ip rm-lld qmss-lld"
include cppi-lld.inc
SRC_URI += "file://init_cppi.sh"
inherit update-rc.d
INITSCRIPT_NAME = "init_cppi.sh"
INITSCRIPT_PARAMS = "defaults 10"
do_compile () {
# Now build the lld in the updated directory
make -f makefile_armv7 clean PDK_INSTALL_PATH=${STAGING_INCDIR}
for device in ${DEVICELIST}
do
make -f makefile_armv7 lib PDK_INSTALL_PATH=${STAGING_INCDIR} DEVICE="${device}"
make -f makefile_armv7 lib PDK_INSTALL_PATH=${STAGING_INCDIR} DEVICE="${device}"
done
}
do_install () {
make -f makefile_armv7 install PDK_INSTALL_PATH=${STAGING_INCDIR} INSTALL_INC_BASE_DIR=${D}/${includedir} INSTALL_LIB_BASE_DIR=${D}${libdir}
# Set the generic device library symbolic link to default k2h
cd ${D}${libdir}
ln -sf libcppi_k2h.so.1.0.0 libcppi_device.so.1
ln -sf libcppi_device.so.1 libcppi_device.so
# Copy init scripts
install -d ${D}${sysconfdir}/init.d/
install -c -m 755 ${WORKDIR}/init_cppi.sh ${D}${sysconfdir}/init.d/${INITSCRIPT_NAME}
}