forked from wolfSSL/wolfssl
Merge https://github.com/tisb-vikram/wolfssl into ti
This commit is contained in:
@ -2349,7 +2349,7 @@ ProtocolVersion MakeDTLSv1_2(void)
|
||||
|
||||
word32 LowResTimer(void)
|
||||
{
|
||||
return (word32) MYTIME_gettime();
|
||||
return (word32) Seconds_get();
|
||||
}
|
||||
|
||||
#elif defined(USER_TICKS)
|
||||
|
@ -50,7 +50,7 @@ var wolfSSLObjList = [
|
||||
|
||||
for each (var targ in Build.targets) {
|
||||
var libOptions = {incs: wolfsslPathInclude};
|
||||
var lib = Pkg.addLibrary("lib/" + Pkg.name, targ, libOptions);
|
||||
var lib = Pkg.addLibrary("lib/wolfssl", targ, libOptions);
|
||||
lib.addObjects(wolfSSLObjList);
|
||||
}
|
||||
|
||||
|
@ -1,7 +1,6 @@
|
||||
/*!
|
||||
* ======== ti.net.wolfssl ========
|
||||
* wolfSSL library for TI-RTOS
|
||||
*
|
||||
*/
|
||||
package ti.net.wolfssl {
|
||||
package ti.net.wolfssl [1, 0, 0] {
|
||||
}
|
||||
|
@ -8,5 +8,5 @@
|
||||
*/
|
||||
function getLibs(prog)
|
||||
{
|
||||
return ("lib/" + this.$name + ".a" + prog.build.target.suffix);
|
||||
return ("lib/wolfssl.a" + prog.build.target.suffix);
|
||||
}
|
||||
|
@ -1,6 +1,6 @@
|
||||
/*
|
||||
* ======== main.c ========
|
||||
* Entry point for Benchmark application
|
||||
* Entry point for Benchmark application
|
||||
*/
|
||||
/* BIOS Header files */
|
||||
#include <ti/sysbios/BIOS.h>
|
||||
@ -27,7 +27,7 @@ void runBenchmarks(UArg arg0, UArg arg1)
|
||||
{
|
||||
void *args = NULL;
|
||||
msTimer_init();
|
||||
|
||||
|
||||
System_printf("Running benchmarks...\n");
|
||||
System_flush();
|
||||
benchmark_test(args);
|
@ -10,7 +10,7 @@ if ((typeof(TivaWareDir) == undefined) || (TivaWareDir == "")) {
|
||||
var Build = xdc.useModule('xdc.bld.BuildEnvironment');
|
||||
var Pkg = xdc.useModule('xdc.bld.PackageContents');
|
||||
|
||||
/* make command to search for the srcs */
|
||||
/* make command to search for the srcs */
|
||||
Pkg.makePrologue = "vpath %.c $(subst ;, ,$(XPKGPATH))";
|
||||
|
||||
var srcs = [
|
||||
@ -37,16 +37,16 @@ for each (var targ in Build.targets) {
|
||||
targ.$orig.lnkOpts.suffix = suffix.replace(/PrintfSmall/, "PrintfFull");
|
||||
}
|
||||
else if (targ.$name.match(/^gnu/)) {
|
||||
targ.$orig.lnkOpts.suffix += " -L" + TivaWareDir + "/driverlib/gcc "
|
||||
targ.$orig.lnkOpts.suffix += " -L" + TivaWareDir + "/driverlib/gcc "
|
||||
+ " -Wl,--start-group -ldriver -Wl,--end-group ";
|
||||
targ.$orig.bspLib = "rdimon";
|
||||
}
|
||||
|
||||
var exeOptions = { incs: wolfsslPathInclude
|
||||
|
||||
var exeOptions = { incs: wolfsslPathInclude
|
||||
+ " -DNO_MAIN_DRIVER -D_INCLUDE_NIMU_CODE -DBENCH_EMBEDDED "
|
||||
+ " -DTIVAWARE -DPART_TM4C1294NCPDT",
|
||||
lopts: lnkOpts
|
||||
};
|
||||
};
|
||||
|
||||
var exe = Pkg.addExecutable("benchmark", targ, platform, exeOptions);
|
||||
exe.addObjects(srcs);
|
@ -0,0 +1,6 @@
|
||||
/*
|
||||
* ======== ti.net.wolfssl.tests.EK_TM4C1294XL.wolfcrypt.benchmark ========
|
||||
* wc_ Benchmark Application
|
||||
*/
|
||||
package ti.net.wolfssl.tests.EK_TM4C1294XL.wolfcrypt.benchmark [1, 0, 0] {
|
||||
}
|
@ -1,6 +1,6 @@
|
||||
/*
|
||||
* ======== main.c ========
|
||||
* Entry point to wolfcrypt Test Application
|
||||
* Entry point to wolfcrypt Test Application
|
||||
*/
|
||||
|
||||
/* XDCtools Header files */
|
||||
@ -53,4 +53,3 @@ int main(int argc, char** argv)
|
||||
|
||||
BIOS_start();
|
||||
}
|
||||
|
@ -10,7 +10,7 @@ if ((typeof(TivaWareDir) == undefined) || (TivaWareDir == "")) {
|
||||
var Build = xdc.useModule('xdc.bld.BuildEnvironment');
|
||||
var Pkg = xdc.useModule('xdc.bld.PackageContents');
|
||||
|
||||
/* make command to search for the srcs */
|
||||
/* make command to search for the srcs */
|
||||
Pkg.makePrologue = "vpath %.c $(subst ;, ,$(XPKGPATH))";
|
||||
|
||||
var srcs = [
|
||||
@ -33,16 +33,16 @@ for each (var targ in Build.targets) {
|
||||
platform = "ti.platforms.tiva:TM4C1294NCPDT";
|
||||
}
|
||||
else if (targ.$name.match(/^gnu/)) {
|
||||
targ.$orig.lnkOpts.suffix += " -L" + TivaWareDir + "/driverlib/gcc "
|
||||
targ.$orig.lnkOpts.suffix += " -L" + TivaWareDir + "/driverlib/gcc "
|
||||
+ " -Wl,--start-group -ldriver -Wl,--end-group ";
|
||||
targ.$orig.bspLib = "rdimon";
|
||||
}
|
||||
|
||||
var exeOptions = { incs: wolfsslPathInclude
|
||||
|
||||
var exeOptions = { incs: wolfsslPathInclude
|
||||
+ " -DNO_MAIN_DRIVER -D_INCLUDE_NIMU_CODE -DBENCH_EMBEDDED "
|
||||
+ " -DTIVAWARE -DPART_TM4C1294NCPDT",
|
||||
lopts: lnkOpts,
|
||||
};
|
||||
};
|
||||
|
||||
var exe = Pkg.addExecutable("test", targ, platform, exeOptions);
|
||||
exe.addObjects(srcs);
|
@ -0,0 +1,6 @@
|
||||
/*
|
||||
* ======== ti.net.wolfssl.tests.EK_TM4C1294XL.wolfcrypt.test ========
|
||||
* wolfcrypt Test Application
|
||||
*/
|
||||
package ti.net.wolfssl.tests.EK_TM4C1294XL.wolfcrypt.test [1, 0, 0] {
|
||||
}
|
@ -1,6 +0,0 @@
|
||||
/*
|
||||
* ======== ti.net.wolfssl.tests.wolfcrypt.benchmark ========
|
||||
* wc_ Benchmark Application
|
||||
*/
|
||||
package ti.net.wolfssl.tests.wolfcrypt.benchmark {
|
||||
}
|
@ -1,6 +0,0 @@
|
||||
/*
|
||||
* ======== ti.net.wolfssl.tests.wolfcrypt.test ========
|
||||
* wolfcrypt Test Application
|
||||
*/
|
||||
package ti.net.wolfssl.tests.wolfcrypt.test {
|
||||
}
|
@ -32,21 +32,24 @@
|
||||
*/
|
||||
|
||||
var armOpts = " -ms ";
|
||||
var gnuOpts = "";
|
||||
var gnuOpts = " -D_POSIX_SOURCE ";
|
||||
var iarOpts = "";
|
||||
|
||||
/* Uncomment the following lines to build libraries for debug mode: */
|
||||
// Pkg.attrs.profile = "debug";
|
||||
// armOpts += " -g -o0 ";
|
||||
// gnuOpts += " -g ";
|
||||
// gnuOpts += " -g -D_POSIX_SOURCE ";
|
||||
// iarOpts += " --debug ";
|
||||
|
||||
var ccOpts = {
|
||||
"ti.targets.arm.elf.M4F" : armOpts,
|
||||
"ti.targets.arm.elf.M4" : armOpts,
|
||||
"ti.targets.arm.elf.M4F" : armOpts,
|
||||
|
||||
"gnu.targets.arm.M4F" : gnuOpts,
|
||||
"gnu.targets.arm.M4" : gnuOpts,
|
||||
"gnu.targets.arm.M4F" : gnuOpts,
|
||||
|
||||
"iar.targets.arm.M4F" : iarOpts,
|
||||
"iar.targets.arm.M4" : iarOpts,
|
||||
"iar.targets.arm.M4F" : iarOpts,
|
||||
};
|
||||
|
||||
/* initialize local vars with those set in xdcpaths.mak (via XDCARGS) */
|
||||
|
@ -363,7 +363,7 @@ time_t XTIME(time_t * timer)
|
||||
{
|
||||
time_t sec = 0;
|
||||
|
||||
sec = (time_t) MYTIME_gettime();
|
||||
sec = (time_t) Seconds_get();
|
||||
|
||||
if (timer != NULL)
|
||||
*timer = sec;
|
||||
|
@ -340,7 +340,7 @@
|
||||
#pragma diag_suppress=11
|
||||
#endif
|
||||
|
||||
#include <ti/ndk/nettools/mytime/mytime.h>
|
||||
#include <ti/sysbios/hal/Seconds.h>
|
||||
#endif
|
||||
|
||||
#ifdef EBSNET
|
||||
|
Reference in New Issue
Block a user