diff options
author | OpenEmbedded Project <openembedded-devel@lists.openembedded.org> | 2008-06-30 22:07:04 +0000 |
---|---|---|
committer | OpenEmbedded Project <openembedded-devel@lists.openembedded.org> | 2008-06-30 22:07:04 +0000 |
commit | d4f7af436d07c7bc4dd61ac45bff3414a1c12c74 (patch) | |
tree | 049f5903fea26153466932a6b271c49f10b75ba8 /packages/dsplink/dsplink.inc | |
parent | 873ce28c40814edb45f534003450318c6e9b2650 (diff) | |
parent | 7339a83b4095582728045cee92aa215373607caf (diff) |
merge of '08199c52a592fe71e2675200cf618a439d710884'
and '3e5f187370604cf4577025ebc49d90ca52a72d4d'
Diffstat (limited to 'packages/dsplink/dsplink.inc')
-rw-r--r-- | packages/dsplink/dsplink.inc | 87 |
1 files changed, 87 insertions, 0 deletions
diff --git a/packages/dsplink/dsplink.inc b/packages/dsplink/dsplink.inc new file mode 100644 index 0000000000..877697eb99 --- /dev/null +++ b/packages/dsplink/dsplink.inc @@ -0,0 +1,87 @@ +DESCRIPTION = "DSP Link for TI ARM/DSP processors" + +DEPENDS = "virtual/kernel perl-native" +RDEPENDS = "update-modules" + +inherit module + +S = "${WORKDIR}/dsplink_1_50/dsplink" + +# Needed for buildscripts +export DSPLINK = "${S}" + +DSPLINKPLATFORM ?= "Davinci" + +DSPLINKPLATFORM_omap5912osk = "OMAP" +DSPLINKPLATFORM_beagleboard = "OMAP" +DSPLINKPLATFORM_davinci-sffsdr = "Davinci" +DSPLINKPLATFORM_davinci-dvevm = "Davinci" + +DSPLINKDSP ?= "C64XX" +DSPLINKSOC ?= "DM6446" + +DSPLINKSOC_beagleboard = "3530" + +export DSPLINKPLATFORM +export DSPLINKDSP + +do_configure () { + cp ${WORKDIR}/CURRENTCFG.MK ${S}/config + cp ${WORKDIR}/davinci_mvlpro5.0.mk ${S}/make/Linux + cp ${WORKDIR}/c64xx_5.xx_linux.mk ${S}/make/DspBios + + sed -i -e s:SED_ME_SOURCEDIR:${S}:g \ + -e s:SED_ME_GPPDISTRO:davinci_mvlpro5\.0:g \ + -e s:SED_ME_KERNELVERSION:${KERNEL_VERSION}:g \ + -e s:SED_ME_DSPDISTRO:davinci_mvlpro5\.0:g \ + -e s:SED_ME_PLATFORM:${DSPLINKPLATFORM}:g \ + -e s:SED_ME_DSP:${DSPLINKDSP}:g \ + -e s:SED_ME_SOC:${DSPLINKSOC}:g \ + ${S}/config/CURRENTCFG.MK + + sed -i -e s:SED_ME_CROSS:${STAGING_INCDIR}:g \ + -e s:SED_ME_STAGINGDIR:${STAGING_DIR_TARGET}:g \ + -e s:SED_ME_TARGET_PREFIX:${TARGET_PREFIX}:g \ + -e s:SED_ME_KERNELDIR:${STAGING_KERNEL_DIR}:g \ + ${S}/make/Linux/davinci_mvlpro5.0.mk + +} + +PARALLEL_MAKE = "" + +do_compile () { + ln -sf ${S}/gpp/src/api/*h ${S}/gpp/inc/ + ln -sf ${S}/gpp/src/pmgr/Linux/2.6.18 ${S}/gpp/src/pmgr/Linux/${KERNEL_VERSION} + ln -sf ${S}/gpp/src/api/Linux/2.6.18 ${S}/gpp/src/api/Linux/${KERNEL_VERSION} + ln -sf ${S}/gpp/src/osal/Linux/2.6.18 ${S}/gpp/src/osal/Linux/${KERNEL_VERSION} + ln -sf ${S}/gpp/src/pmgr/Linux/drv_pmgr.h ${S}/gpp/inc/drv_pmgr.h + ln -sf ${S}/gpp/src/pmgr/pmgr_proc.h ${S}/gpp/inc/pmgr_proc.h + + unset DISPLAY + + oe_runmake -C ${S}/gpp/src all targets + oe_runmake -C ${S}/gpp/src/samples +} + +do_install () { + install -d ${D}/lib/modules/${KERNEL_VERSION}/kernel/drivers/dsp + cp ${S}/gpp/BUILD/EXPORT/RELEASE/dsplinkk.ko ${D}/lib/modules/${KERNEL_VERSION}/kernel/drivers/dsp/ +} + +pkg_postinst_${PN}-module () { + if [ -n "$D" ]; then + exit 1 + fi + depmod -a + update-modules || true +} + +pkg_postrm_${PN}-module () { + update-modules || true +} + +PACKAGES =+ "${PN}-module" +FILES_${PN}-module = "${sysconfdir} /lib/modules" + +PACKAGE_ARCH = "${MACHINE_ARCH}" + |