1 DESCRIPTION
= "DMAI for TI ARM/DSP processors"
8 #This is a kernel module
, don't set PR directly
9 MACHINE_KERNEL_PR_append
= "e"
11 # Yes
, the xdc stuff still breaks with a '.' in PWD
13 PV
= "1.0+svnr${SRCPV}"
15 BRANCH
= "branches/BRANCH_BRIJESH_DMAI_DEV_2_xx"
16 BRANCH_omapl138
= "trunk"
17 BRANCH_omapl137
= "trunk"
18 BRANCH_dm6467
= "branches/GITPSP_INT_101009"
19 BRANCH_dm355
= "branches/GITPSP_INT_101009"
20 BRANCH_dm365
= "branches/GITPSP_INT_101009"
21 BRANCH_omap3
= "trunk"
28 SRC_URI
= "svn://gforge.ti.com/svn/dmai/;module=${BRANCH};proto=https;user=anonymous;pswd='' \
29 file://loadmodules-ti-dmai-dm355_al.sh \
30 file://loadmodules-ti-dmai-dm365_al.sh \
31 file://loadmodules-ti-dmai-dm6446_al.sh \
32 file://loadmodules-ti-dmai-dm6467_al.sh \
33 file://loadmodules-ti-dmai-o3530_al.sh \
34 file://loadmodules-ti-dmai-ol138_al.sh \
37 S
= "${WORKDIR}/${BRANCH}/davinci_multimedia_application_interface"
39 INHIBIT_PACKAGE_STRIP
= "1"
41 # compile time dependencies
42 DEPENDS
= "alsa-lib ti-framework-components ti-codec-engine ti-xdctools"
44 DEPENDS_append_omap3
= " ti-dspbios ti-cgt6x ti-codecs-omap3530 virtual/kernel ti-linuxutils"
45 DEPENDS_append_dm6446
= " ti-dspbios ti-cgt6x ti-codecs-dm6446 virtual/kernel ti-linuxutils"
46 DEPENDS_append_dm6467
= " ti-dspbios ti-cgt6x ti-codecs-dm6467 virtual/kernel ti-linuxutils"
47 DEPENDS_append_dm355
= " ti-codecs-dm355 virtual/kernel"
48 DEPENDS_append_dm365
= " ti-codecs-dm365 virtual/kernel"
49 DEPENDS_append_omapl137
= " ti-dspbios ti-cgt6x ti-codecs-omapl137 virtual/kernel ti-linuxutils"
50 DEPENDS_append_omapl138
= " ti-dspbios ti-cgt6x ti-codecs-omapl138 virtual/kernel ti-linuxutils"
52 # Define DMAI build time variables
53 TARGET_omap3
= "o3530_al"
54 TARGET_dm6446
= "dm6446_al"
55 TARGET_dm6467
= "dm6467_al"
56 TARGET_omapl137
= "ol137_al"
57 TARGET_omapl138
= "ol138_al"
58 TARGET_dm355
= "dm355_al"
59 TARGET_dm365
= "dm365_al"
62 USER_XDC_PATH
= "${CE_INSTALL_DIR}/examples"
67 sed
-i
-e 's
:(LINK_INSTALL_DIR
)/packages
:(LINK_INSTALL_DIR
):g' $
{S
}/dmai
/packages
/ti
/sdo
/dmai
/apps
/Makefile.app
68 sed
-i
-e 's
:(LINK_INSTALL_DIR
)/packages
:(LINK_INSTALL_DIR
):g' $
{S
}/dmai
/packages
/ti
/sdo
/dmai
/Makefile
70 # PSP kernel is based on older DSS. we need
to replace linux
/omapfb.h with
73 if ! [ -e $
{STAGING_KERNEL_DIR
}/include/linux
/omapfb.h
] ; then
74 sed
-i
-e s
:linux
/omapfb
:mach
/omapfb
:g $
{S
}/dmai
/packages
/ti
/sdo
/dmai
/linux
/Display_fbdev.c
75 sed
-i
-e s
:linux
/omapfb
:mach
/omapfb
:g $
{S
}/dmai
/packages
/ti
/sdo
/dmai
/linux
/priv
/_Display.h
82 unset DMAI_INSTALL_DIR
84 make XDC_INSTALL_DIR
="${XDC_INSTALL_DIR}" PLATFORM
="${TARGET}" clean
86 for dir in $
{S
}/dmai $
{S
}/tests
; do
88 # TODO
: Figure out how
to pass the alsa require location
, currently
89 # LINUXLIBS_INSTALL_DIR is hard
-coded
for armv5te
90 make CE_INSTALL_DIR
="${CE_INSTALL_DIR}" \
91 CODEC_INSTALL_DIR
="${CODEC}" \
92 FC_INSTALL_DIR
="${FC_INSTALL_DIR}" \
93 LINUXKERNEL_INSTALL_DIR
="${STAGING_KERNEL_DIR}" \
94 XDC_INSTALL_DIR
="${XDC_INSTALL_DIR}" \
95 CODEGEN_INSTALL_DIR
="${CODEGEN_INSTALL_DIR}" \
96 BIOS_INSTALL_DIR
="${BIOS_INSTALL_DIR}"\
97 LINUXLIBS_INSTALL_DIR
="${STAGING_DIR_TARGET}/usr" \
98 USER_XDC_PATH
="${USER_XDC_PATH}" \
99 CROSS_COMPILE
="${TOOLCHAIN_PATH}/bin/${TARGET_PREFIX}" \
101 XDAIS_INSTALL_DIR
="${XDAIS_INSTALL_DIR}" \
102 LINK_INSTALL_DIR
="${LINK_INSTALL_DIR}" \
103 CMEM_INSTALL_DIR
="${CMEM_INSTALL_DIR}" \
104 LPM_INSTALL_DIR
="${LPM_INSTALL_DIR}" \
105 MVTOOL_PREFIX
="${TARGET_PREFIX}" \
111 unset DMAI_INSTALL_DIR
112 # install dmai apps on target
113 install
-d $
{D
}/$
{installdir
}/dmai
-apps
115 make PLATFORM
="${TARGET}" EXEC_DIR
=$
{D
}/$
{installdir
}/dmai
-apps install
116 install
-m
0755 $
{WORKDIR
}/loadmodules
-ti
-dmai
-$
{TARGET
}.sh $
{D
}/$
{installdir
}/dmai
-apps
/loadmodule.sh
118 install
-d $
{D
}/$
{installdir
}/dmai
-tests
120 make PLATFORM
="${TARGET}" EXEC_DIR
=$
{D
}/$
{installdir
}/dmai
-tests install
121 install
-m
0755 $
{WORKDIR
}/loadmodules
-ti
-dmai
-$
{TARGET
}.sh $
{D
}/$
{installdir
}/dmai
-tests
/loadmodule.sh
123 install
-d $
{D
}$
{DMAI_INSTALL_DIR_RECIPE
}
124 cp
-pPrf $
{S
}/dmai
/* $
{D
}$
{DMAI_INSTALL_DIR_RECIPE
}
127 pkg_postinst_ti
-dmai
-apps
() {
128 ln
-sf $
{installdir
}/codec
-combo
/* $
{installdir
}/dmai
-apps
/
131 # Disable QA check untils we figure out how
to pass LDFLAGS in build
132 INSANE_SKIP_$
{PN
} = True
133 INSANE_SKIP_ti
-dmai
-apps
= True
134 INSANE_SKIP_ti
-dmai
-tests
= True
136 PACKAGE_ARCH
= "${MACHINE_ARCH}"
137 INHIBIT_PACKAGE_STRIP
= "1"
138 PACKAGES
+= "ti-dmai-apps ti-dmai-tests"
139 FILES_ti
-dmai
-apps
= "${installdir}/dmai-apps/*"
140 FILES_ti
-dmai
-tests
= "${installdir}/dmai-tests/*"
142 # run time dependencies
143 RDEPENDS_ti
-dmai
-apps_dm355
+= "ti-dm355mm-module ti-cmem-module ti-codecs-dm355"
144 RDEPENDS_ti
-dmai
-apps_dm365
+= "ti-dm365mm-module ti-cmem-module ti-codecs-dm365"
145 RDEPENDS_ti
-dmai
-apps_dm6446
+= "ti-cmem-module ti-dsplink-module ti-codecs-dm6446"
146 RDEPENDS_ti
-dmai
-apps_dm6467
+= "ti-cmem-module ti-dsplink-module ti-codecs-dm6467"
147 RDEPENDS_ti
-dmai
-apps_omap3
+= "ti-cmem-module ti-dsplink-module ti-codecs-omap3530 ti-lpm-module ti-sdma-module"
148 RDEPENDS_ti
-dmai
-apps_omapl137
+= "ti-cmem-module ti-dsplink-module ti-codecs-omapl137"
149 RDEPENDS_ti
-dmai
-apps_omapl138
+= "ti-cmem-module ti-dsplink-module ti-codecs-omapl138"