dvsdk is dvsdk_4_01_00_09_omap3530.
my board is omap3530.
I want to use codec engine for my code.
So I add some files in dvsdk/codec-engine_2_26_01_09/examples/ti/sdo/ce/examples/codecs/videnc_copy.
but I don't know how to change the file of package.bld.
it cann't to compile success,
my file is as follows:
/* when constructing a release, release everything */
Pkg.attrs.exportAll = true;
// Uncomment this to build debug binaries
//Pkg.attrs.profile = "debug";
/*
* Create an array containing the files to include in this package. Note
* that the extension is added by XDC, so it need not be explicitly specified.
*/
var SRCS = ["videnc_copy"];
print("build file:" + SRCS + "**************");
for (var i = 0; i < Build.targets.length; i++)
{
var targ = Build.targets[i];
print("building for target " + targ.name + " ...");
/*
* Add a library to this package and add the files described in
* SRCS to the library.
*/
if (targ.name == "C64P" || targ.name == "C674") {
/*
* The 64P target can provide an optimized implementation that
* uses DMA! So we build 2 libraries, the traditional one
* (done outside this if branch), and another one that's
* optimized to use DMA.
*/
Pkg.addLibrary("lib/videnc_copy_dma", targ, {
copts: "-DUSE_ACPY3 ",
}).addObjects(SRCS);
Pkg.addLibrary("lib/videnc_copy_dma", targ, {
copts: "-DUSE_ACPY3 ",
}).addObjects(SRCS);
}
Pkg.addLibrary("lib/videnc_copy", targ).addObjects(SRCS);
}
var SRCS = ["list"];
print("build file:" + SRCS + "**************");
for (var i = 0; i < Build.targets.length; i++)
{
var targ = Build.targets[i];
print("building for target " + targ.name + " ...");
/*
* Add a library to this package and add the files described in
* SRCS to the library.
*/
if (targ.name == "C64P" || targ.name == "C674") {
/*
* The 64P target can provide an optimized implementation that
* uses DMA! So we build 2 libraries, the traditional one
* (done outside this if branch), and another one that's
* optimized to use DMA.
*/
Pkg.addLibrary("lib/videnc_copy_dma", targ, {
copts: "-DUSE_ACPY3 ",
}).addObjects(SRCS);
}
Pkg.addLibrary("lib/list", targ).addObjects(SRCS);
}
var SRCS = ["fft"];
print("build file:" + SRCS + "**************");
for (var i = 0; i < Build.targets.length; i++)
{
var targ = Build.targets[i];
print("building for target " + targ.name + " ...");
/*
* Add a library to this package and add the files described in
* SRCS to the library.
*/
if (targ.name == "C64P" || targ.name == "C674") {
/*
* The 64P target can provide an optimized implementation that
* uses DMA! So we build 2 libraries, the traditional one
* (done outside this if branch), and another one that's
* optimized to use DMA.
*/
Pkg.addLibrary("lib/videnc_copy_dma", targ, {
copts: "-DUSE_ACPY3 ",
}).addObjects(SRCS);
}
Pkg.addLibrary("lib/fft", targ).addObjects(SRCS);
}
var SRCS = ["msg"];
print("build file:" + SRCS + "**************");
for (var i = 0; i < Build.targets.length; i++)
{
var targ = Build.targets[i];
print("building for target " + targ.name + " ...");
/*
* Add a library to this package and add the files described in
* SRCS to the library.
*/
if (targ.name == "C64P" || targ.name == "C674") {
/*
* The 64P target can provide an optimized implementation that
* uses DMA! So we build 2 libraries, the traditional one
* (done outside this if branch), and another one that's
* optimized to use DMA.
*/
Pkg.addLibrary("lib/videnc_copy_dma", targ, {
copts: "-DUSE_ACPY3 ",
}).addObjects(SRCS);
}
Pkg.addLibrary("lib/msg", targ).addObjects(SRCS);
}
var SRCS = ["mpool"];
print("build file:" + SRCS + "**************");
for (var i = 0; i < Build.targets.length; i++)
{
var targ = Build.targets[i];
print("building for target " + targ.name + " ...");
/*
* Add a library to this package and add the files described in
* SRCS to the library.
*/
if (targ.name == "C64P" || targ.name == "C674") {
/*
* The 64P target can provide an optimized implementation that
* uses DMA! So we build 2 libraries, the traditional one
* (done outside this if branch), and another one that's
* optimized to use DMA.
*/
Pkg.addLibrary("lib/videnc_copy_dma", targ, {
copts: "-DUSE_ACPY3 ",
}).addObjects(SRCS);
}
Pkg.addLibrary("lib/mpool", targ).addObjects(SRCS);
}
var SRCS = ["vad_detect"];
print("build file:" + SRCS + "**************");
for (var i = 0; i < Build.targets.length; i++)
{
var targ = Build.targets[i];
print("building for target " + targ.name + " ...");
/*
* Add a library to this package and add the files described in
* SRCS to the library.
*/
if (targ.name == "C64P" || targ.name == "C674") {
/*
* The 64P target can provide an optimized implementation that
* uses DMA! So we build 2 libraries, the traditional one
* (done outside this if branch), and another one that's
* optimized to use DMA.
*/
Pkg.addLibrary("lib/videnc_copy_dma", targ, {
copts: "-DUSE_ACPY3 ",
}).addObjects(SRCS);
}
Pkg.addLibrary("lib/vad_detect", targ).addObjects(SRCS);
}
How to do ?
Can you help me?