summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 3f92cd3)
raw | patch | inline | side by side (parent: 3f92cd3)
author | Angela Stegmaier <angelabaker@ti.com> | |
Mon, 11 Jan 2016 17:32:22 +0000 (11:32 -0600) | ||
committer | Buddy Liong <a0270631@ti.com> | |
Mon, 2 Oct 2017 15:24:49 +0000 (10:24 -0500) |
Created a library "ipu.aem4" with a single entry point "IPUMM_Main".
Main source files are moved to a folder named "baselib".
The baseimage is still built by linking with the baselib library and
then calling the main function that is included in this library.
Change-Id: Ieee7b011e06119397dd108ae9ea3e9c03fc8762d
Signed-off-by: Angela Stegmaier <angelabaker@ti.com>
Main source files are moved to a folder named "baselib".
The baseimage is still built by linking with the baselib library and
then calling the main function that is included in this library.
Change-Id: Ieee7b011e06119397dd108ae9ea3e9c03fc8762d
Signed-off-by: Angela Stegmaier <angelabaker@ti.com>
16 files changed:
diff --git a/.gitignore b/.gitignore
index 9a0081ede08140b6bee66878a56a538c823f8865..0792bcf30ccf80f3d7d29087e7a2dc7e142d85da 100644 (file)
--- a/.gitignore
+++ b/.gitignore
.libraries*
*.mak
*/baseimage/package/
+*/baselib/package/
platform/ti/dce/baseimage/out/
+platform/ti/dce/baselib/lib/
bldcfg.mk
platform/ti/dce/baseimage/package/
+platform/ti/dce/baselib/package/
+platform/ti/dce/baselib/BASELIB.h
src/ti/framework/dce/lib/
src/ti/framework/dce/package/
src/ti/utils/lib/
diff --git a/Makefile b/Makefile
index 793d0ea1e524762b8f7f29150071402d46e1749b..ac1b1cfca99341d2abbfd303afbe93f7e0f67ef8 100644 (file)
--- a/Makefile
+++ b/Makefile
XDCDIST_TREE = $(REPO)/$(XDCVERSION)
export XDCROOT = $(XDCDIST_TREE)
-export XDCPATH = $(BIOSPROD)/packages;$(IPCSRC)/packages;$(CEPROD)/packages;$(FCPROD)/packages;$(XDAISPROD)/packages;$(DUCATIDCEMMSRC)/extrel/ti/ivahd_codecs/packages;$(DUCATIDCEMMSRC)/src;
+export XDCPATH = $(BIOSPROD)/packages;$(IPCSRC)/packages;$(CEPROD)/packages;$(FCPROD)/packages;$(XDAISPROD)/packages;$(DUCATIDCEMMSRC)/extrel/ti/ivahd_codecs/packages;$(DUCATIDCEMMSRC)/src;$(DUCATIDCEMMSRC);
# Custom settings for build
JOBS ?= 1
clean: config
export XDCARGS=$(MYXDCARGS); \
+ $(XDCROOT)/xdc --jobs=$(JOBS) clean -PD $(DUCATIDCEMMSRC)/platform/ti/dce/baselib/.; \
$(XDCROOT)/xdc --jobs=$(JOBS) clean -PD $(DUCATIDCEMMSRC)/platform/ti/dce/baseimage/.
build: config
@exit 1
endif
export XDCARGS=$(MYXDCARGS); \
+ $(XDCROOT)/xdc --jobs=$(JOBS) -PD $(DUCATIDCEMMSRC)/platform/ti/dce/baselib/.; \
$(XDCROOT)/xdc --jobs=$(JOBS) -PD $(DUCATIDCEMMSRC)/platform/ti/dce/baseimage/.
ducatibin: build
index a17a2d27052f095aa36f0d85cbd583bd46a49ec9..efe9e12e18453968a0cde4229b39651999af3982 100644 (file)
xdc.loadPackage('ti.srvmgr');
xdc.loadPackage('ti.srvmgr.omaprpc');
+xdc.useModule('platform.ti.dce.baselib.BASELIB');
+
var Memory = xdc.useModule('xdc.runtime.Memory');
var HeapMem = xdc.useModule('ti.sysbios.heaps.HeapMem');
var GateHwi = xdc.useModule('ti.sysbios.gates.GateHwi');
xdc.useModule('ti.sdo.fc.global.Settings').profile = "debug";
xdc.loadPackage('ti.sdo.fc.rman').profile = "debug";
xdc.loadPackage('ti.sdo.fc.ires.hdvicp').profile = "debug";
-xdc.loadPackage('ti.sdo.fc.ires.tiledmemory').profile = "debug";
xdc.loadPackage('ti.sdo.fc.utils').profile = "debug";
var ipcSettings = xdc.useModule('ti.sdo.ce.ipc.Settings');
index 662c9ec54441e942e0f12914563cfdd406ca8a78..dc02e500b9d2ce46e2703495409bc2168f154f9f 100644 (file)
#include <xdc/runtime/Diags.h>
#include <xdc/runtime/Error.h>
-#include <ti/ipc/MultiProc.h>
#include <ti/sysbios/BIOS.h>
-#include <ti/sysbios/knl/Task.h>
#include <ti/ipc/rpmsg/_RPMessage.h>
#include <ti/ipc/remoteproc/Resource.h>
-#include <ti/grcm/RcmTypes.h>
-#include <ti/grcm/RcmServer.h>
-#include <ti/framework/dce/dce_priv.h>
+#include <ti/utils/osal/trace.h>
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
+#include <platform/ti/dce/baselib/ipumm_main.h>
+
// Include the custom resource table for memory configuration.
#if (defined VAYU_ES10)
#if (defined BUILD_FOR_QNX)
extern uint32_t dce_debug;
extern Uint32 kpi_control;
-/* Legacy function to allow Linux side rpmsg sample tests to work: */
-extern void start_ping_tasks();
-
static unsigned int SyslinkMemUtils_VirtToPhys(Ptr Addr)
{
unsigned int pa;
return (pa);
}
-void *MEMUTILS_getPhysicalAddr(Ptr vaddr)
-{
- unsigned int paddr = SyslinkMemUtils_VirtToPhys(vaddr);
-
- DEBUG("virtual addr:%x\tphysical addr:%x", vaddr, paddr);
- return ((void *)paddr);
-}
-
#pragma DATA_SECTION(ipummversion, ".ipummversion")
char ipummversion[128] = ducati_ver_tag;
System_printf("Trace level PA 0x%x Trace Level %d\
\nTrace Usage: level:[0-4: 0-no trace, 1-err, 2-debug, 3-info, 4-CE,FC,IPC traces] \n\n",
- MEMUTILS_getPhysicalAddr(&dce_debug), dce_debug);
- System_printf("Trace Buffer PA 0x%x kpi_control (PA 0x%x value 0x%x)\n", MEMUTILS_getPhysicalAddr((Ptr)(TRACEBUFADDR)), MEMUTILS_getPhysicalAddr((Ptr)(&kpi_control)), kpi_control);
+ SyslinkMemUtils_VirtToPhys(&dce_debug), dce_debug);
+ System_printf("Trace Buffer PA 0x%x kpi_control (PA 0x%x value 0x%x)\n", SyslinkMemUtils_VirtToPhys((Ptr)(TRACEBUFADDR)), SyslinkMemUtils_VirtToPhys((Ptr)(&kpi_control)), kpi_control);
}
int main(int argc, char * *argv)
{
- extern void start_load_task(void);
- UInt16 hostId;
-
- /* Set up interprocessor notifications */
- System_printf("%s starting..\n", MultiProc_getName(MultiProc_self()));
-
- hostId = MultiProc_getId("HOST");
- RPMessage_init(hostId);
-
- /* CPU load reporting in the trace. */
- start_load_task();
+ IPUMM_Main(argc, argv);
/* Dump Tools version */
tools_ShowVersion();
return (0);
}
-
index 459c258c6f2e08cfb50e1b21ce3a2f8cb1851ff1..25b545572f38ced4f17630528e2f967085ea3291 100644 (file)
var SRC_FILES_APP = [
"main.c",
- "ping_tasks.c",
- "load_task.c",
- "iresman_tiledmemory.c"
- ];
+];
var SRC_FILES_SYS = [
];
print(profileOpts+"\r\n");
print("HwType = " + HwType);
print("HwVer = " + HwVer);
+
var exe = Pkg.addExecutable(out_name, targ, targ.platform,
{cfgScript:cfgFileName, profile:profile, copts: profileOpts,
cfgArgs:"{HwType:" + HwType + ",enableSMP:" + SMPmode +
index 1d6266267f8b76fcc1a3e72565e6ac318332cf06..8ff7ee4fddfd407b90ea8a3eaebae21e6023adb9 100644 (file)
* ======== package.xdc ========
*
*/
-requires ti.framework.dce;
-requires src.ti.utils;
/*!
diff --git a/platform/ti/dce/baselib/BASELIB.xdc b/platform/ti/dce/baselib/BASELIB.xdc
--- /dev/null
@@ -0,0 +1,40 @@
+/*
+ * Copyright (c) 2015, Texas Instruments Incorporated
+ * All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ *
+ * * Redistributions of source code must retain the above copyright
+ * notice, this list of conditions and the following disclaimer.
+ *
+ * * Redistributions in binary form must reproduce the above copyright
+ * notice, this list of conditions and the following disclaimer in the
+ * documentation and/or other materials provided with the distribution.
+ *
+ * * Neither the name of Texas Instruments Incorporated nor the names of
+ * its contributors may be used to endorse or promote products derived
+ * from this software without specific prior written permission.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
+ * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
+ * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
+ * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
+ * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
+ * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
+ * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
+ * OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
+ * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
+ * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
+ * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ */
+
+/*
+ * ======== BASELIB.xdc ========
+ *
+ */
+
+module BASELIB {
+
+}
diff --git a/platform/ti/dce/baselib/BASELIB.xs b/platform/ti/dce/baselib/BASELIB.xs
--- /dev/null
@@ -0,0 +1,79 @@
+/*
+ * Copyright (c) 2015, Texas Instruments Incorporated
+ * All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ *
+ * * Redistributions of source code must retain the above copyright
+ * notice, this list of conditions and the following disclaimer.
+ *
+ * * Redistributions in binary form must reproduce the above copyright
+ * notice, this list of conditions and the following disclaimer in the
+ * documentation and/or other materials provided with the distribution.
+ *
+ * * Neither the name of Texas Instruments Incorporated nor the names of
+ * its contributors may be used to endorse or promote products derived
+ * from this software without specific prior written permission.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
+ * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
+ * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
+ * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
+ * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
+ * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
+ * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
+ * OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
+ * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
+ * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
+ * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ */
+
+/*
+ * ======== package.xs ========
+ *
+ */
+
+
+/*
+ * ======== init ========
+ */
+function init()
+{
+ /*
+ * install a SYS/BIOS startup function
+ * it will be called during BIOS_start()
+ */
+ var BIOS = xdc.useModule('ti.sysbios.BIOS');
+}
+
+
+
+/*
+ * ======== Package.getLibs ========
+ * This function is called when a program's configuration files are
+ * being generated and it returns the name of a library appropriate
+ * for the program's configuration.
+ */
+
+function getLibs(prog)
+{
+ var pkg = "ipu";
+ var commonBld = xdc.loadCapsule("build/common.bld");
+ var dir = xdc.getPackageBase("platform.ti.dce.baselib");
+ var lib = commonBld.commonGetLibs(prog, true, pkg, dir);
+ return lib;
+
+}
+
+/*
+ * ======== package.close ========
+ */
+function close()
+{
+
+ if (xdc.om.$name != 'cfg') {
+ return;
+ }
+}
diff --git a/platform/ti/dce/baselib/ipumm_main.c b/platform/ti/dce/baselib/ipumm_main.c
--- /dev/null
@@ -0,0 +1,90 @@
+/*
+ * Copyright (c) 2011-2015, Texas Instruments Incorporated
+ * All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ *
+ * * Redistributions of source code must retain the above copyright
+ * notice, this list of conditions and the following disclaimer.
+ *
+ * * Redistributions in binary form must reproduce the above copyright
+ * notice, this list of conditions and the following disclaimer in the
+ * documentation and/or other materials provided with the distribution.
+ *
+ * * Neither the name of Texas Instruments Incorporated nor the names of
+ * its contributors may be used to endorse or promote products derived
+ * from this software without specific prior written permission.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
+ * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
+ * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
+ * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
+ * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
+ * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
+ * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
+ * OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
+ * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
+ * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
+ * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ */
+
+#include <xdc/std.h>
+#include <xdc/cfg/global.h>
+#include <xdc/runtime/System.h>
+#include <xdc/runtime/Diags.h>
+#include <xdc/runtime/Error.h>
+
+#include <ti/ipc/MultiProc.h>
+#include <ti/sysbios/BIOS.h>
+#include <ti/sysbios/knl/Task.h>
+#include <ti/ipc/rpmsg/_RPMessage.h>
+#include <ti/ipc/remoteproc/Resource.h>
+
+#include <ti/grcm/RcmTypes.h>
+#include <ti/grcm/RcmServer.h>
+#include <ti/framework/dce/dce_priv.h>
+
+#include <stdio.h>
+#include <string.h>
+#include <stdlib.h>
+
+
+/* Legacy function to allow Linux side rpmsg sample tests to work: */
+extern void start_ping_tasks();
+
+static unsigned int SyslinkMemUtils_VirtToPhys(Ptr Addr)
+{
+ unsigned int pa;
+
+ if( !Addr || Resource_virtToPhys((unsigned int) Addr, &pa)) {
+ return (0);
+ }
+ return (pa);
+}
+
+void *MEMUTILS_getPhysicalAddr(Ptr vaddr)
+{
+ unsigned int paddr = SyslinkMemUtils_VirtToPhys(vaddr);
+
+ DEBUG("virtual addr:%x\tphysical addr:%x", vaddr, paddr);
+ return ((void *)paddr);
+}
+
+int IPUMM_Main(int argc, char * *argv)
+{
+ extern void start_load_task(void);
+ UInt16 hostId;
+
+ /* Set up interprocessor notifications */
+ System_printf("%s starting..\n", MultiProc_getName(MultiProc_self()));
+
+ hostId = MultiProc_getId("HOST");
+ RPMessage_init(hostId);
+
+ /* CPU load reporting in the trace. */
+ start_load_task();
+
+ return (0);
+}
diff --git a/platform/ti/dce/baselib/ipumm_main.h b/platform/ti/dce/baselib/ipumm_main.h
--- /dev/null
@@ -0,0 +1,6 @@
+#ifndef __IPUMM_MAIN_H__
+#define __IPUMM_MAIN_H__
+
+int IPUMM_Main(int argc, char * *argv);
+
+#endif
diff --git a/platform/ti/dce/baseimage/iresman_tiledmemory.c b/platform/ti/dce/baselib/iresman_tiledmemory.c
similarity index 100%
rename from platform/ti/dce/baseimage/iresman_tiledmemory.c
rename to platform/ti/dce/baselib/iresman_tiledmemory.c
rename from platform/ti/dce/baseimage/iresman_tiledmemory.c
rename to platform/ti/dce/baselib/iresman_tiledmemory.c
similarity index 100%
rename from platform/ti/dce/baseimage/load_task.c
rename to platform/ti/dce/baselib/load_task.c
rename from platform/ti/dce/baseimage/load_task.c
rename to platform/ti/dce/baselib/load_task.c
diff --git a/platform/ti/dce/baselib/package.bld b/platform/ti/dce/baselib/package.bld
--- /dev/null
@@ -0,0 +1,110 @@
+/*
+ * Copyright (c) 2015, Texas Instruments Incorporated
+ * All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ *
+ * * Redistributions of source code must retain the above copyright
+ * notice, this list of conditions and the following disclaimer.
+ *
+ * * Redistributions in binary form must reproduce the above copyright
+ * notice, this list of conditions and the following disclaimer in the
+ * documentation and/or other materials provided with the distribution.
+ *
+ * * Neither the name of Texas Instruments Incorporated nor the names of
+ * its contributors may be used to endorse or promote products derived
+ * from this software without specific prior written permission.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
+ * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
+ * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
+ * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
+ * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
+ * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
+ * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
+ * OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
+ * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
+ * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
+ * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ */
+/*
+ * ======== ipumm/platform/ti/dce/baselib/package.bld ========
+ */
+
+var Build = xdc.useModule('xdc.bld.BuildEnvironment');
+var Pkg = xdc.useModule('xdc.bld.PackageContents');
+var compileOpts = " "
+var waval = 0;
+
+var commonBld = xdc.loadCapsule("../build/common.bld");
+
+var SRC_FILES_APP = [
+ "ipumm_main.c",
+ "ping_tasks.c",
+ "load_task.c",
+ "iresman_tiledmemory.c"
+];
+
+var SRC_FILES_SYS = [
+];
+
+coreNames = commonBld.getCores(arguments);
+/* select default as ipu */
+if (coreNames.length==0) {
+ coreNames[0] = "ipu";
+}
+
+var profiles = commonBld.getProfiles(arguments);
+/* If no profiles were assigned, build for release */
+if (profiles.length == 0) {
+ profiles[0] = "release";
+}
+
+
+for (var i = 0; i < Build.targets.length; i++) {
+
+ var targ = Build.targets[i];
+
+ for (var j = 0; j < coreNames.length; j++) {
+ var coreName = coreNames[j];
+
+ var cfgFileName = 'dce_' + coreName + '.cfg';
+
+ if(coreName.match(/sys_m3/)){
+ var SRC_FILES = SRC_FILES_SYS;
+ }
+
+ if(coreName.match(/ipu/)){
+ var SRC_FILES = SRC_FILES_APP;
+ }
+
+ for( var k = 0; k< profiles.length; k++)
+ {
+ var profile = profiles[k];
+ var profileOpts = commonBld.buildOptions(arguments, compileOpts, coreName);
+
+
+ var lib_name = 'lib/' + coreName + '/' + profile + '/' + coreName;
+ var lib_name_qnx = 'lib/' + coreName + '/' + profile + '/' + "qnx_ipu";
+
+ print ("config file: " + cfgFileName + "\n");
+ print ("profile: " + profile + "\n");
+ print(profileOpts+"\r\n");
+ print("HwType = " + HwType);
+ print("HwVer = " + HwVer);
+
+ var mylib = Pkg.addLibrary(lib_name, targ,
+ {profile:profile, copts: profileOpts });
+
+ mylib.addObjects(SRC_FILES);
+
+ var qnxLib = Pkg.addLibrary(lib_name_qnx, targ,
+ {profile:profile, copts: profileOpts,
+ defs: "-D BUILD_FOR_QNX" });
+
+ qnxLib.addObjects(SRC_FILES);
+ }
+ }
+}
diff --git a/platform/ti/dce/baselib/package.xdc b/platform/ti/dce/baselib/package.xdc
--- /dev/null
@@ -0,0 +1,44 @@
+/*
+ * Copyright (c) 2015, Texas Instruments Incorporated
+ * All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ *
+ * * Redistributions of source code must retain the above copyright
+ * notice, this list of conditions and the following disclaimer.
+ *
+ * * Redistributions in binary form must reproduce the above copyright
+ * notice, this list of conditions and the following disclaimer in the
+ * documentation and/or other materials provided with the distribution.
+ *
+ * * Neither the name of Texas Instruments Incorporated nor the names of
+ * its contributors may be used to endorse or promote products derived
+ * from this software without specific prior written permission.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
+ * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
+ * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
+ * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
+ * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
+ * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
+ * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
+ * OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
+ * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
+ * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
+ * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ */
+/*
+ * ======== package.xdc ========
+ *
+ */
+requires ti.framework.dce;
+requires src.ti.utils;
+
+/*!
+ * ======== platform.ti.dce.baselib ========
+ */
+package platform.ti.dce.baselib [1,0,0,0] {
+ module BASELIB;
+}
diff --git a/platform/ti/dce/baselib/package.xs b/platform/ti/dce/baselib/package.xs
--- /dev/null
@@ -0,0 +1,106 @@
+/*
+ * Copyright (c) 2015, Texas Instruments Incorporated
+ * All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ *
+ * * Redistributions of source code must retain the above copyright
+ * notice, this list of conditions and the following disclaimer.
+ *
+ * * Redistributions in binary form must reproduce the above copyright
+ * notice, this list of conditions and the following disclaimer in the
+ * documentation and/or other materials provided with the distribution.
+ *
+ * * Neither the name of Texas Instruments Incorporated nor the names of
+ * its contributors may be used to endorse or promote products derived
+ * from this software without specific prior written permission.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
+ * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
+ * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
+ * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
+ * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
+ * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
+ * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
+ * OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
+ * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
+ * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
+ * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ */
+
+/*
+ * ======== package.xs ========
+ *
+ */
+
+
+/*
+ * ======== init ========
+ */
+function init()
+{
+ /*
+ * install a SYS/BIOS startup function
+ * it will be called during BIOS_start()
+ */
+ var BIOS = xdc.useModule('ti.sysbios.BIOS');
+}
+
+
+
+/*
+ * ======== Package.getLibs ========
+ * This function is called when a program's configuration files are
+ * being generated and it returns the name of a library appropriate
+ * for the program's configuration.
+ */
+
+function getLibs(prog)
+{
+ var pkg = this;
+ var commonBld = xdc.loadCapsule("build/common.bld");
+ var dir = xdc.getPackageBase("platform.ti.dce.baselib");
+ var suffix;
+
+ /* find a compatible suffix */
+ if ("findSuffix" in prog.build.target) {
+ suffix = prog.build.target.findSuffix(pkg);
+ }
+ else {
+ suffix = prog.build.target.suffix;
+ }
+
+ var name = "ipu.a" + suffix;
+ var lib = "";
+
+ lib = "lib/" + prog.global.coreName + "/" + pkg.profile + "/" + name;
+
+ if (java.io.File(dir + lib).exists()) {
+ return lib;
+ }
+ else {
+ print("Default lib not found: " + lib +"\nlooking for release lib");
+ lib = "lib/" + prog.global.coreName + "/" + "release/" + name;
+ if (java.io.File(dir + lib).exists()) {
+ return lib;
+ }
+ }
+
+ /* could not find any library, throw exception */
+ throw Error("Library not found: " + lib);
+
+ return lib;
+}
+
+/*
+ * ======== package.close ========
+ */
+function close()
+{
+
+ if (xdc.om.$name != 'cfg') {
+ return;
+ }
+}
similarity index 99%
rename from platform/ti/dce/baseimage/ping_tasks.c
rename to platform/ti/dce/baselib/ping_tasks.c
index 9402c77a5a974800fe9117c4a20fcba95f33d685..ad4302e423c5ad8f5bad1d4dc0c3155253cf8e06 100644 (file)
rename from platform/ti/dce/baseimage/ping_tasks.c
rename to platform/ti/dce/baselib/ping_tasks.c
index 9402c77a5a974800fe9117c4a20fcba95f33d685..ad4302e423c5ad8f5bad1d4dc0c3155253cf8e06 100644 (file)
params.arg0 = 51;
Task_create(copyTaskFxn, ¶ms, NULL);
}
-