1 DESCRIPTION = "DSP Link for TI ARM/DSP processors"
3 DEPENDS = "virtual/kernel perl-native"
4 RDEPENDS_${PN}-module = "update-modules"
5 RRECOMMENDS_${PN} = "${PN}-module"
9 S = "${WORKDIR}/dsplink_1_60/dsplink"
11 # Needed for buildscripts
12 export DSPLINK = "${S}"
16 DSPLINKPLATFORM ?= "DAVINCI"
17 DSPLINKPLATFORM_omap5912osk = "OMAP"
18 DSPLINKPLATFORM_beagleboard = "OMAP3530"
19 DSPLINKPLATFORM_davinci-sffsdr = "DAVINCI"
20 DSPLINKPLATFORM_davinci-dvevm = "DAVINCI"
24 DSPLINKSOC ?= "DM6446"
25 DSPLINKSOC_beagleboard = "3530"
27 DSPCFG ?= "DM6446GEMSHMEM"
28 DSPCFG_beagleboard ?= "OMAP3530SHMEM"
31 GPPOS_beagleboard = "OMAPLSP"
33 export DSPLINKPLATFORM
41 # Run perl script to create appropriate makefiles (v1.60 and up)
42 DSPLINK=${S} perl config/bin/dsplinkcfg.pl --platform=${DSPLINKPLATFORM} --nodsp=1 --dspcfg_0=${DSPCFG} --dspos_0=DSPBIOS5XX --gppos=${GPPOS} --comps=ponslrm
50 sed -i -e s:armv7a:armv7-a:g make/Linux/omap3530_2.6.mk || true
52 # export various settings to override the defaults in the makefiles
53 export DSP_BASE_CGTOOLS=${TITOOLSDIR}/${TICGTOOLSDIR}
54 export DSP_BASE_BIOS=${TITOOLSDIR}/${TIBIOSDIR}
55 export DSP_BASE_RTDX=${TITOOLSDIR}/${TIBIOSDIR}/packages/ti/rtdx
56 export GPPTOOL_DIR=${CROSS_DIR}
57 export LINUXKERNEL_INSTALL_DIR=${STAGING_KERNEL_DIR}
58 export LINK_INSTALL_DIR=${S}
59 export VARIANT=${DSPLINKSOC}
60 export PLATFORM=${DSPLINKPLATFORM}
61 export BASE_TOOLCHAIN=${CROSS_DIR}
62 export BASE_CGTOOLS=${BASE_TOOLCHAIN}/bin
63 export OSINC_PLATFORM1=${CROSS_DIR}/lib/gcc/${TARGET_SYS}/$(${TARGET_PREFIX}gcc -dumpversion)/include
64 export OSINC_TARGET=${BASE_TOOLCHAIN}/target/usr/include
65 export ARCHIVER_AR=${TARGET_PREFIX}ar
66 export BASE_SABIOS=${DSP_BASE_BIOS}
68 make -e -f ${WORKDIR}/Makefile.dsplink
72 install -d ${D}/lib/modules/${KERNEL_VERSION}/kernel/drivers/dsp
73 cp ${S}/gpp/BUILD/EXPORT/RELEASE/dsplinkk.ko ${D}/lib/modules/${KERNEL_VERSION}/kernel/drivers/dsp/
75 install -d ${D}/${bindir}
76 # install ${S}/gpp/BUILD/EXPORT/RELEASE/loopgpp ${D}/${bindir}
77 install ${S}/gpp/BUILD/EXPORT/RELEASE/messagegpp ${D}/${bindir}
78 install ${S}/gpp/BUILD/EXPORT/RELEASE/messagemultigpp ${D}/${bindir}
79 install ${S}/gpp/BUILD/EXPORT/RELEASE/mpcsxfergpp ${D}/${bindir}
80 install ${S}/gpp/BUILD/EXPORT/RELEASE/mplistgpp ${D}/${bindir}
81 install ${S}/gpp/BUILD/EXPORT/RELEASE/readwritegpp ${D}/${bindir}
82 install ${S}/gpp/BUILD/EXPORT/RELEASE/ringiogpp ${D}/${bindir}
83 install ${S}/gpp/BUILD/EXPORT/RELEASE/scalegpp ${D}/${bindir}
85 install -d ${D}/${datadir}/dsplink
86 for i in $(find ${S}/dsp/BUILD/ -name "*.out") ; do
87 install ${i} ${D}/${datadir}/dsplink
90 install -d ${D}/${libdir}
91 install -m 0755 ${S}/gpp/BUILD/EXPORT/RELEASE/dsplink.lib ${D}/${libdir}
95 # Coded Engine and friends need a complete tree, so stage it all
97 install -d ${STAGING_DIR}/${MULTIMACH_TARGET_SYS}/dsplink
98 cp -pPr ${S}/* ${STAGING_DIR}/${MULTIMACH_TARGET_SYS}/dsplink/
101 pkg_postinst_${PN}-module () {
106 update-modules || true
109 pkg_postrm_${PN}-module () {
110 update-modules || true
113 PACKAGES =+ "${PN}-module"
114 FILES_${PN}-module = "${sysconfdir} /lib/modules"
115 FILES_${PN} = "${bindir}/* ${datadir}/dsplink/*"
117 INHIBIT_PACKAGE_STRIP = "1"
119 PACKAGE_ARCH = "${MACHINE_ARCH}"