| View previous topic :: View next topic |
| Author |
Message |
callihn Voice
Joined: 08 Jul 2009 Posts: 1
|
Posted: Wed Jul 08, 2009 5:05 pm Post subject: Cygwin to compile for Windows, not what I needed. |
|
|
OK, this is not what I had in mind, I didn't install Cygwin on this Windows machine to compile programs for Windows. So, let me be direct as to my intentions here, so that not only can someone point me in the right dirrection to get something that might run on Linux but maybe I can get some tips as well. I'm wanting to get a bot running on my Linux router, that being said this seems to be plenty small enough, but I need to make sure it doesn't write anything to prevent excessive flash wear, I need all configuration done before I send it to the router and again I need to make sure it won't be writing anything.
So, here are the questions I need answered, if someone would be so kind....
Does this seem doable?
How do I get this thing to compile as a Linux binary on Cygwin?
Is there anything I can do to compile the modules into the binary?
That should do, thanks in advance. |
|
| Back to top |
|
 |
nml375 Revered One
Joined: 04 Aug 2006 Posts: 2857
|
Posted: Thu Jul 09, 2009 7:26 am Post subject: |
|
|
First off, most home-end routers are either arm- or mipsel-based. As such, you'll need a suitable cross-compiler and build-environment matching your router.
Regarding configurations and flash-wear, you'll have to turn off logging (not too hard, simply comment out any logfile commands in your config), and make sure you don't load any custom scripts that might make use of the filesystem. You should also make certain that you do not specify any channel's-file either.
Unfortunately, you'll still have to live with the user file being written to the file system every now and then (at least once an hour), this is pretty much unavoidable without editing the source and having to redo your whole user list whenever you restart your router.
Modules can be compiled into the eggdrop binary, using the "static" make target (this is the default targets on builds not supporting dynamically linked libraries). _________________ NML_375, idling at #eggdrop@IrcNET |
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|