Send commitlog mailing list submissions to
commitlog@lists.openmoko.org
To subscribe or unsubscribe via the World Wide Web, visit
http://lists.openmoko.org/mailman/listinfo/commitlog
or, via email, send a message with subject or body 'help' to
[EMAIL PROTECTED]
You can reach the person managing the list at
[EMAIL PROTECTED]
When replying, please edit your Subject line so it is more specific
than "Re: Contents of commitlog digest..."
Today's Topics:
1. r4854 - in trunk/src/target/opkg: libopkg tests
([EMAIL PROTECTED])
2. r4855 - in trunk/src/target/opkg: libopkg tests
([EMAIL PROTECTED])
3. r4856 - developers/charlie/Wiki ([EMAIL PROTECTED])
--- Begin Message ---
Author: tick
Date: 2008-12-08 09:09:19 +0100 (Mon, 08 Dec 2008)
New Revision: 4854
Modified:
trunk/src/target/opkg/libopkg/active_list.c
trunk/src/target/opkg/libopkg/active_list.h
trunk/src/target/opkg/tests/opkg_active_list_test.c
Log:
opkg: refactory active_list_next remove unnecessary field.
Modified: trunk/src/target/opkg/libopkg/active_list.c
===================================================================
--- trunk/src/target/opkg/libopkg/active_list.c 2008-12-08 08:09:02 UTC (rev
4853)
+++ trunk/src/target/opkg/libopkg/active_list.c 2008-12-08 08:09:19 UTC (rev
4854)
@@ -23,7 +23,6 @@
void active_list_init(struct active_list *ptr) {
INIT_LIST_HEAD(&ptr->node);
INIT_LIST_HEAD(&ptr->depend);
- ptr->walked=0;
ptr->depended = NULL;
}
@@ -31,38 +30,23 @@
*/
struct active_list * active_list_next(struct active_list *head, struct
active_list *ptr) {
struct active_list *next=NULL;
- if (!head || !ptr) {
+ if (!head) {
fprintf(stderr, "active_list_prev head = %p, ptr = %p invalid
value!!\n", head, ptr);
return NULL;
}
- if (ptr == head) {
- head->walked = !head->walked;
- next = list_entry(ptr->node.next, struct active_list, node);
- if (next == head)
- return NULL;
- return active_list_next(head, next);
+ if (!ptr)
+ ptr = head;
+ next = list_entry(ptr->node.next, struct active_list, node);
+ if (next == head ) {
+ return NULL;
}
- if (ptr->depend.next != &ptr->depend) {
- next = list_entry(ptr->depend.next, struct active_list, node);
- if (head->walked != next->walked) {
- ptr->walked = head->walked;
- return active_list_next(head, next);
- }
- }
- if (ptr->walked != head->walked) {
- ptr->walked = head->walked;
- return ptr;
- }
-
- if (ptr->depended && ptr->node.next == &ptr->depended->depend ) {
+ if (ptr->depended && &ptr->depended->depend == ptr->node.next ) {
return ptr->depended;
}
-
- if (ptr->node.next != &head->node) {
- next = list_entry(ptr->node.next, struct active_list, node);
- return active_list_next(head, next);
- }
- return NULL;
+ while (next->depend.next != &next->depend) {
+ next = list_entry(next->depend.next, struct active_list, node);
+ }
+ return next;
}
@@ -78,4 +62,5 @@
void active_list_add(struct active_list *head, struct active_list *node) {
list_del_init(&node->node);
list_add_tail(&node->node, &head->node);
+ node->depended = head;
}
Modified: trunk/src/target/opkg/libopkg/active_list.h
===================================================================
--- trunk/src/target/opkg/libopkg/active_list.h 2008-12-08 08:09:02 UTC (rev
4853)
+++ trunk/src/target/opkg/libopkg/active_list.h 2008-12-08 08:09:19 UTC (rev
4854)
@@ -23,7 +23,6 @@
struct active_list {
struct list_head node;
struct list_head depend;
- char walked;
struct active_list *depended;
};
Modified: trunk/src/target/opkg/tests/opkg_active_list_test.c
===================================================================
--- trunk/src/target/opkg/tests/opkg_active_list_test.c 2008-12-08 08:09:02 UTC
(rev 4853)
+++ trunk/src/target/opkg/tests/opkg_active_list_test.c 2008-12-08 08:09:19 UTC
(rev 4854)
@@ -110,7 +110,7 @@
printf ("%s ",test->str);
}
printf("\n");
- for(ptr = active_list_next(&head, &head); ptr ;ptr =
active_list_next(&head, ptr)) {
+ for(ptr = active_list_next(&head, NULL); ptr ;ptr =
active_list_next(&head, ptr)) {
test = list_entry(ptr, struct active_test, list);
printf ("%s ",test->str);
}
--- End Message ---
--- Begin Message ---
Author: tick
Date: 2008-12-08 09:09:35 +0100 (Mon, 08 Dec 2008)
New Revision: 4855
Modified:
trunk/src/target/opkg/libopkg/active_list.c
trunk/src/target/opkg/libopkg/active_list.h
trunk/src/target/opkg/tests/opkg_active_list_test.c
Log:
opkg: implement active_list_prev and test cases.
Modified: trunk/src/target/opkg/libopkg/active_list.c
===================================================================
--- trunk/src/target/opkg/libopkg/active_list.c 2008-12-08 08:09:19 UTC (rev
4854)
+++ trunk/src/target/opkg/libopkg/active_list.c 2008-12-08 08:09:35 UTC (rev
4855)
@@ -30,26 +30,47 @@
*/
struct active_list * active_list_next(struct active_list *head, struct
active_list *ptr) {
struct active_list *next=NULL;
- if (!head) {
- fprintf(stderr, "active_list_prev head = %p, ptr = %p invalid
value!!\n", head, ptr);
+ if ( !head ) {
+ fprintf(stderr, "active_list_next head = %p, ptr = %p invalid
value!!\n", head, ptr);
return NULL;
}
- if (!ptr)
+ if ( !ptr )
ptr = head;
next = list_entry(ptr->node.next, struct active_list, node);
- if (next == head ) {
+ if ( next == head ) {
return NULL;
}
- if (ptr->depended && &ptr->depended->depend == ptr->node.next ) {
+ if ( ptr->depended && &ptr->depended->depend == ptr->node.next ) {
return ptr->depended;
}
- while (next->depend.next != &next->depend) {
+ while ( next->depend.next != &next->depend ) {
next = list_entry(next->depend.next, struct active_list, node);
}
return next;
}
+struct active_list * active_list_prev(struct active_list *head, struct
active_list *ptr) {
+ struct active_list *prev=NULL;
+ if ( !head ) {
+ fprintf(stderr, "active_list_prev head = %p, ptr = %p invalid
value!!\n", head, ptr);
+ return NULL;
+ }
+ if ( !ptr )
+ ptr = head;
+ if ( ptr->depend.prev != &ptr->depend ) {
+ prev = list_entry(ptr->depend.prev, struct active_list, node);
+ return prev;
+ }
+ if ( ptr->depended && ptr->depended != head && &ptr->depended->depend ==
ptr->node.prev ) {
+ prev = list_entry(ptr->depended->node.prev, struct active_list, node);
+ } else
+ prev = list_entry(ptr->node.prev, struct active_list, node);
+ if ( prev == head )
+ return NULL;
+ return prev;
+}
+
void active_list_clear(struct active_list *head) {
}
Modified: trunk/src/target/opkg/libopkg/active_list.h
===================================================================
--- trunk/src/target/opkg/libopkg/active_list.h 2008-12-08 08:09:19 UTC (rev
4854)
+++ trunk/src/target/opkg/libopkg/active_list.h 2008-12-08 08:09:35 UTC (rev
4855)
@@ -26,10 +26,13 @@
struct active_list *depended;
};
-struct active_list * active_list_next(struct active_list *head, struct
active_list *ptr);
void active_list_init(struct active_list *ptr);
void active_list_clear(struct active_list *head);
void active_list_add_depend(struct active_list *node, struct active_list
*depend);
void active_list_add(struct active_list *head, struct active_list *node);
+struct active_list * active_list_next(struct active_list *head, struct
active_list *ptr);
+
+struct active_list * active_list_prev(struct active_list *head, struct
active_list *ptr);
+
#endif
Modified: trunk/src/target/opkg/tests/opkg_active_list_test.c
===================================================================
--- trunk/src/target/opkg/tests/opkg_active_list_test.c 2008-12-08 08:09:19 UTC
(rev 4854)
+++ trunk/src/target/opkg/tests/opkg_active_list_test.c 2008-12-08 08:09:35 UTC
(rev 4855)
@@ -48,7 +48,8 @@
|_M |_O
Then the sequence will be
-G M H I O J A B K N L C D E F
++: G M H I O J A B K N L C D E F
+-: F E D C L N K B A J O I H M G
*/
void make_list(struct active_list *head) {
struct active_test *A = active_test_new("A");
@@ -100,16 +101,17 @@
active_list_init(&head);
make_list(&head);
+ printf("pos order: ");
for(ptr = active_list_next(&head, &head); ptr ;ptr =
active_list_next(&head, ptr)) {
test = list_entry(ptr, struct active_test, list);
printf ("%s ",test->str);
}
- printf("\n");
- for(ptr = active_list_next(&head, &head); ptr ;ptr =
active_list_next(&head, ptr)) {
+ printf("\nneg order: ");
+ for(ptr = active_list_prev(&head, &head); ptr ;ptr =
active_list_prev(&head, ptr)) {
test = list_entry(ptr, struct active_test, list);
printf ("%s ",test->str);
}
- printf("\n");
+ printf("\npos order: ");
for(ptr = active_list_next(&head, NULL); ptr ;ptr =
active_list_next(&head, ptr)) {
test = list_entry(ptr, struct active_test, list);
printf ("%s ",test->str);
--- End Message ---
--- Begin Message ---
Author: charlie
Date: 2008-12-08 11:18:26 +0100 (Mon, 08 Dec 2008)
New Revision: 4856
Added:
developers/charlie/Wiki/KBase
Modified:
developers/charlie/Wiki/OpenEmbedded
Log:
Add KBase
Added: developers/charlie/Wiki/KBase
===================================================================
--- developers/charlie/Wiki/KBase (rev 0)
+++ developers/charlie/Wiki/KBase 2008-12-08 10:18:26 UTC (rev 4856)
@@ -0,0 +1,40 @@
+
+
+evas: C graphic library (similar to cairo)
+
+edje: language to create user interface
+
+illume: windows manger used on OpenMoko
+
+efl: enlightenment fondation libraries : Set of C libraries that
+ include evas, edje, and all raster stuffs
+
+python-efl: python library that allow to call efl from python
+
+C: compiled programming language (very fast)
+
+python: high level script programming language (very slow, but easy
+ and you can write code very quickly)
+
+java: an other language (not as fast as C, faster than python), used by Android
+
+openembedded: software framework to create Linux distributions aimed
+ for embedded devices. It uses bitbake, and it is a huge crazy thing.
+
+bitbake: (.bb files) python based program to run many tasks
+
+Tichy: Applets manager for OpenMoko. Integrated environment to easily
+ write applet to create user interface, communication with the
+ framework. Example of tichy applet : Dialer application.
+
+Paroli: Set of plugins for tichy + some modifications of tichy
+
+Framework: Intermediate level DBus deamon that provides Phone features.
+
+Zhone: Application made by Jane & Daniel that uses the framework and
+ edje. Phone user interface. Very simple.
+
+DBus: IPC (Inter Process Communication) system. It allow applications
+ to communicate between each others.
+
+
Modified: developers/charlie/Wiki/OpenEmbedded
===================================================================
--- developers/charlie/Wiki/OpenEmbedded 2008-12-08 08:09:35 UTC (rev
4855)
+++ developers/charlie/Wiki/OpenEmbedded 2008-12-08 10:18:26 UTC (rev
4856)
@@ -31,3 +31,10 @@
src/gz charlie http://192.168.0.200/opk-moko/armv4t/
and add a line in arch.conf file :
arch charlie 51
+
+
+** To use the conf from buildhost :
+put this file : http://downloads.openmoko.org/build/testing/local.conf
+in local/conf/
+
+(but I may need to change the parameters of the file)
--- End Message ---
_______________________________________________
commitlog mailing list
commitlog@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/commitlog