Comments
Patch
@@ -18,7 +18,7 @@ PROVIDES += "ti-c6accel-apps"
# This recipe links statically against kernel dependant stuff, use kernel PR as base and append a local version
PR = "${MACHINE_KERNEL_PR}"
-PR_append = "c"
+PR_append = "d"
S = "${WORKDIR}/c6accel_${PV}"
new file mode 100644
@@ -0,0 +1,46 @@
+Index: c6accel_1_01_00_03/soc/app/benchmark.h
+===================================================================
+--- c6accel_1_01_00_03.orig/soc/app/benchmark.h 2011-03-12 17:45:49.640633120 +0100
++++ c6accel_1_01_00_03/soc/app/benchmark.h 2011-03-12 17:46:10.360988120 +0100
+@@ -39,7 +39,7 @@
+
+
+ extern Time_Object sTime;
+- extern UInt32 time;
++ extern UInt32 timestamp;
+
+ #define OPEN_LOG_FILE(Name) \
+ if ((benchmarkFd = fopen(Name,"wb")) == NULL) { \
+@@ -49,7 +49,7 @@
+ #define CLOSE_LOG_FILE() fclose(benchmarkFd);
+
+ #define START_BENCHMARK() \
+- Time_delta(&sTime,&time);
++ Time_delta(&sTime,×tamp);
+
+ #define LOG_STRING(str) \
+ fprintf(benchmarkFd,"%s",str);
+@@ -70,8 +70,8 @@
+
+
+ #define END_AND_WRITE_BENCHMARK() \
+- Time_delta(&sTime,&time); \
+- fprintf(benchmarkFd,"%d",(unsigned int)time);
++ Time_delta(&sTime,×tamp); \
++ fprintf(benchmarkFd,"%d",(unsigned int)timestamp);
+
+
+
+Index: c6accel_1_01_00_03/soc/app/appMain.c
+===================================================================
+--- c6accel_1_01_00_03.orig/soc/app/appMain.c 2011-03-12 17:46:42.030148120 +0100
++++ c6accel_1_01_00_03/soc/app/appMain.c 2011-03-12 17:48:00.619423120 +0100
+@@ -66,7 +66,7 @@
+ /* This object is used in MACRO in benchmark.h */
+ #include "timeObj.h"
+ Time_Object sTime;
+-UInt32 time;
++UInt32 timestamp;
+
+ void Time_reset(Time_Object *sTime)
+ {
@@ -7,6 +7,8 @@ SRC_URI_append = "file://fix-loadmodule.patch \
file://0001-soc-honour-buildsystem-CFLAGS-and-LDFLAGS-when-set.patch \
"
+SRC_URI_append_libc-uclibc = "file://fix_time_symbol.patch"
+
PV = "1_01_00_03"