[01:37:23] TheSeven: can you spot any mistakes in my Makefile? http://pastie.org/pastes/8345091/text?key=4wnc2enlniakfqfaxkmaqa [01:37:53] there should be two target binaries, both of them build on "make all" [01:39:39] it isn't working how i expect it, it always rebuild regardless of files' timestamps [01:40:11] also, it only builds one of the binaries at each run, alternating between them on sequental runs :) [01:41:26] shouldn't your build target depend on the source files? [01:43:39] n1s: i don't know much about writing makefiles, and i'm looking for something to read about them at the moment [01:45:15] i was going to use some of 7's makefiles, but they look too complicated, so i decided to start from the scratch [01:45:38] and i'm definetely doing something wrong here [01:46:27] usually a target depends on what's needed to build it, which is usually source files [01:46:40] apart from that, emCOREFS compiles and runs fine so far, with the exception of file_rename support, which needs a couple more lines of code to get it done [01:54:38] *** Quits: n1s (~n1s@rockbox/developer/n1s) (Quit: Ex-Chat) [01:56:05] user890104: n1s is right, the dependencies are screwed up [01:56:15] the source file deps are missing [01:56:43] TheSeven: is this better: http://pastie.org/pastes/8345120/text [01:56:50] and the dep on the build dir will cause things to be rebuilt as soon as any file in that dir is touched [01:57:14] that dep must either be declared phony, or the dir creation pulled into the compilation rules [01:57:56] what's "fuse)" in the cflags? [01:58:07] ah, I'm blind [01:58:50] that makefile might work, but it's kinda unusual to do things that way [01:59:26] i'm open for suggestions, i guess you see what's the final goal [01:59:45] make files typically focus on file types rather than individual files [02:00:17] however the different -D flags make that tricky in this particular case [02:02:10] i was thinking about building each of the source files to an object first, and linking them in the end [02:02:40] yes, that's what makefiles typically do [02:02:54] however that also would't work well with the different -D flags [02:04:30] ah, i see [02:04:49] *** Joins: clustur (~logger@c-68-53-250-91.hsd1.tn.comcast.net) [02:04:49] *** Quits: clustur (~logger@c-68-53-250-91.hsd1.tn.comcast.net) (Remote host closed the connection) [02:10:10] *** Quits: Guest39234 (~liar@83.175.90.24) (Remote host closed the connection) [06:51:25] *** Quits: TheSeven (~quassel@rockbox/developer/TheSeven) (Disconnected by services) [06:51:34] *** Joins: [7] (~quassel@rockbox/developer/TheSeven) [08:04:52] *** Joins: clustur (~logger@c-68-53-250-91.hsd1.tn.comcast.net) [08:04:52] *** Quits: clustur (~logger@c-68-53-250-91.hsd1.tn.comcast.net) (Remote host closed the connection) [11:05:32] *** Joins: n1s (~n1s@nl118-168-30.student.uu.se) [11:05:33] *** Quits: n1s (~n1s@nl118-168-30.student.uu.se) (Changing host) [11:05:33] *** Joins: n1s (~n1s@rockbox/developer/n1s) [14:04:51] *** Joins: clustur (~logger@c-68-53-250-91.hsd1.tn.comcast.net) [14:04:51] *** Quits: clustur (~logger@c-68-53-250-91.hsd1.tn.comcast.net) (Remote host closed the connection) [15:19:27] *** Joins: liar (~liar@83.175.90.24) [20:04:50] *** Joins: clustur (~logger@c-68-53-250-91.hsd1.tn.comcast.net) [20:04:50] *** Quits: clustur (~logger@c-68-53-250-91.hsd1.tn.comcast.net) (Remote host closed the connection) [23:15:23] [7]: i'm having some issues with my rename function [23:21:44] http://i.imgur.com/zEokvvm.jpg [23:22:06] that happens after i send: [23:22:07] 29 00 00 00 00 00 00 00 68 0c 00 08 70 0c 00 08 [23:22:17] 0x29 = 41 = file_rename [23:22:49] and the other two pointers are correct IIUC (and the data is written there successfully) [23:23:09] that's the corresponding python code: [23:23:12] result = self.lib.monitorcommand(struct.pack(" here is a usb packet dump: http://pastie.org/pastes/8347123/text [23:26:58] i'm malloc()'ing 0x11 bytes, filling them with "/README\0/README1\0", and passing file_rename a pointer to them