diff options
Diffstat (limited to 'recipes/dvsdk/ti-dmai_svn.bb')
-rw-r--r-- | recipes/dvsdk/ti-dmai_svn.bb | 57 |
1 files changed, 29 insertions, 28 deletions
diff --git a/recipes/dvsdk/ti-dmai_svn.bb b/recipes/dvsdk/ti-dmai_svn.bb index e089595086..d94dd61b21 100644 --- a/recipes/dvsdk/ti-dmai_svn.bb +++ b/recipes/dvsdk/ti-dmai_svn.bb @@ -1,47 +1,47 @@ require ti-dmai.inc +require ti-paths.inc inherit module-base +#This is a kernel module, don't set PR directly +MACHINE_KERNEL_PR_append = "a" + # compile time dependencies -DEPENDS_omap3evm += "alsa-lib ti-codec-engine ti-xdctools-native ti-dspbios-native ti-cgt6x-native ti-codec-combo-omap3530 virtual/kernel" -DEPENDS_beagleboard += "alsa-lib ti-codec-engine ti-xdctools-native ti-dspbios-native ti-cgt6x-native ti-codec-combo-omap3530 virtual/kernel " -DEPENDS_dm6446-evm += "alsa-lib ti-codec-engine ti-xdctools-native ti-dspbios-native ti-cgt6x-native ti-codec-combo-dm6446 virtual/kernel " +DEPENDS_omap3evm += "alsa-lib ti-codec-engine ti-xdctools-native ti-dspbios-native ti-cgt6x-native ti-cs1-omap3530 virtual/kernel ti-dsplink-module" +DEPENDS_beagleboard += "alsa-lib ti-codec-engine ti-xdctools-native ti-dspbios-native ti-cgt6x-native ti-cs1-omap3530 virtual/kernel ti-dsplink-module " +DEPENDS_dm6446-evm += "alsa-lib ti-codec-engine ti-xdctools-native ti-dspbios-native ti-cgt6x-native ti-codec-combo-dm6446 virtual/kernel ti-dsplink-module " DEPENDS_dm355-evm += "alsa-lib ti-codec-engine ti-xdctools-native ti-codec-combo-dm355 virtual/kernel" - -installdir = "${datadir}/ti" +DEPENDS_da830-omapl137-evm += "alsa-lib ti-codec-engine ti-xdctools-native ti-dspbios-native ti-cgt6x-native ti-codec-combo-omapl137 virtual/kernel ti-dsplink-module " # Define DMAI build time variables TARGET ?= "all" -TARGET_omap3evm ?= "o3530_al" -TARGET_beagleboard ?= "o3530_al" +TARGET_armv7a ?= "o3530_al" TARGET_dm355-evm ?= "dm355_al" TARGET_dm6446-evm ?= "dm6446_al" +TARGET_da830-omapl137-evm ?= "ol137_al" -CE_INSTALL_DIR="${STAGING_DIR}/${MULTIMACH_TARGET_SYS}/ti-codec-engine" -CODEC_dm355-evm ="${STAGING_DIR}/${MULTIMACH_TARGET_SYS}/ti-codec-combo-dm355" -CODEC_omap3evm ="${STAGING_DIR}/${MULTIMACH_TARGET_SYS}/ti-codec-combo-omap3530" -CODEC_beagleboard ="${STAGING_DIR}/${MULTIMACH_TARGET_SYS}/ti-codec-combo-omap3530" -CODEC_dm6446-evm ="${STAGING_DIR}/${MULTIMACH_TARGET_SYS}/ti-codec-combo-dm6446" -FC_INSTALL_DIR="${STAGING_DIR}/${MULTIMACH_TARGET_SYS}/ti-codec-engine/cetools" -DSPBIOS_DIR="${STAGING_DIR_NATIVE}/ti-dspbios-native" -CGT6x_DIR="${STAGING_DIR_NATIVE}/ti-cgt6x-native" -XDCTOOLS_DIR="${STAGING_DIR_NATIVE}/ti-xdctools-native" -USER_XDC_PATH="${CE_INSTALL_DIR}/examples" +DSPBIOS_DIR = "${STAGING_DIR_NATIVE}/ti-dspbios-native" +CGT6x_DIR = "${STAGING_DIR_NATIVE}/ti-cgt6x-native" +XDCTOOLS_DIR = "${STAGING_DIR_NATIVE}/ti-xdctools-native" +USER_XDC_PATH = "${CE_INSTALL_DIR}/examples" PARALLEL_MAKE = "" do_configure () { - # If kernel version is greater than 2.6.28 replace mach/omapfb.h with - # linux/omapfb.h - if [ $(echo ${KERNEL_VERSION} | cut -c5,6) -gt 28 ] ; then - sed -i -e s:mach/omapfb:linux/omapfb:g ${S}/dmai/packages/ti/sdo/dmai/linux/Display_fbdev.c + # PSP kernel is based on older DSS. we need to replace linux/omapfb.h with + # mach/omapfb.h + + if [ ${MACHINE} == "omap3evm" ] ; then + sed -i -e s:linux/omapfb:mach/omapfb:g ${S}/dmai/packages/ti/sdo/dmai/linux/Display_fbdev.c + sed -i -e s:linux/omapfb:mach/omapfb:g ${S}/dmai/packages/ti/sdo/dmai/linux/priv/_Display.h fi } do_compile () { + unset DMAI_INSTALL_DIR cd ${S} make XDC_INSTALL_DIR="${XDCTOOLS_DIR}" clean @@ -59,21 +59,20 @@ do_compile () { CROSS_COMPILE="${CROSS_DIR}/bin/${TARGET_PREFIX}" \ VERBOSE="true" \ XDAIS_INSTALL_DIR="${CE_INSTALL_DIR}/cetools" \ - LINK_INSTALL_DIR="${CE_INSTALL_DIR}/cetools/packages/dsplink" \ + LINK_INSTALL_DIR="${LINK_INSTALL_DIR}" \ CMEM_INSTALL_DIR="${CE_INSTALL_DIR}/cetools" \ LPM_INSTALL_DIR="${CE_INSTALL_DIR}/cetools" \ PLATFORM="${TARGET}" } do_install () { + unset DMAI_INSTALL_DIR # install dmai apps on target - install -d ${D}/dmai-apps cd ${S}/dmai make PLATFORM="${TARGET}" EXEC_DIR=${D}/${installdir}/dmai-apps install install -m 0755 ${WORKDIR}/loadmodules-ti-dmai-${TARGET}.sh ${D}/${installdir}/dmai-apps/loadmodule.sh cd ${S}/tests - install -d ${D}/dmai-tests make PLATFORM="${TARGET}" EXEC_DIR=${D}/${installdir}/dmai-tests install install -m 0755 ${WORKDIR}/loadmodules-ti-dmai-${TARGET}.sh ${D}/${installdir}/dmai-tests/loadmodule.sh } @@ -83,8 +82,8 @@ pkg_postinst_ti-dmai-apps () { } do_stage () { - install -d ${STAGING_DIR}/${MULTIMACH_TARGET_SYS}/ti-dmai - cp -pPrf ${S}/dmai/* ${STAGING_DIR}/${MULTIMACH_TARGET_SYS}/ti-dmai + install -d ${DMAI_INSTALL_DIR} + cp -pPrf ${S}/dmai/* ${DMAI_INSTALL_DIR} } # Disable QA check untils we figure out how to pass LDFLAGS in build @@ -101,5 +100,7 @@ FILES_ti-dmai-tests = "${installdir}/dmai-tests/*" # run time dependencies RDEPENDS_ti-dmai-apps_dm355-evm += "ti-dm355mm-module ti-cmem-module ti-codec-combo-dm355" RDEPENDS_ti-dmai-apps_dm6446-evm += "ti-cmem-module ti-dsplink-module ti-codec-combo-dm6446" -RDEPENDS_ti-dmai-apps_omap3evm += "ti-cmem-module ti-dsplink-module ti-codec-combo-omap3530 ti-lpm-module ti-sdma-module" -RDEPENDS_ti-dmai-apps_beagleboard += "ti-cmem-module ti-dsplink-module ti-codec-combo-omap3530 ti-lpm-module ti-sdma-module" +RDEPENDS_ti-dmai-apps_omap3evm += "ti-cmem-module ti-dsplink-module ti-cs1-omap3530 ti-lpm-module ti-sdma-module" +RDEPENDS_ti-dmai-apps_beagleboard += "ti-cmem-module ti-dsplink-module ti-cs1-omap3530 ti-lpm-module ti-sdma-module" +RDEPENDS_ti-dmai-apps_da830-omapl137-evm += "ti-cmem-module ti-dsplink-module ti-codec-combo-ol137" + |