Tiny Core Linux

Tiny Core Base => TCB Q&A Forum => Topic started by: blue horse on June 03, 2012, 02:43:28 AM

Title: source code for compiletc.tcz
Post by: blue horse on June 03, 2012, 02:43:28 AM
where can i find source code for compiletc.tcz?
i intend to build toolchain on cygwin within windows environment, so i will be able to compile tc applications within windows then run on tc.
 
Title: Re: source code for compiletc.tcz
Post by: solorin on June 03, 2012, 03:38:19 AM
http://distro.ibiblio.org/tinycorelinux/4.x/x86/tcz/compiletc.tcz.dep

i believe most of what's in the -dev extensions is in source form already.
then work your way down the list and check if your cygwin environment has those tools.

while your at it, see if you can't get tc-ext-tools to work too?
it's *so* much easier than hand-rolling extensions.
Title: Re: source code for compiletc.tcz
Post by: Juanito on June 03, 2012, 07:40:13 AM
..and the source should be in the relevant src folder - eg 4.x/x86/tcz/src/sed or similar
Title: source code for compiletc.tcz
Post by: coreplayer2 on June 03, 2012, 08:43:40 AM
For this I simply run tc in a VM on Windows, makes compiling any source and hand rolling your extensions as easy as eating apple pie, what could possibly be easier than that?
Title: Re: source code for compiletc.tcz
Post by: curaga on June 03, 2012, 09:22:17 AM
That's going to be a lot of work and trouble. I too think it would be easier to use a VM or a native box, etc.
Title: Re: source code for compiletc.tcz
Post by: blue horse on June 03, 2012, 06:50:22 PM
i guess this deserves a bit explanation.

i am developing a fully automated testing software, which would build binaries for different target platforms on a single host machine, then deploy binaries to the target systems. apparently, the target system mostly likely does not have toolchain.

as such, i do not necessarily have to build tc application, but i personally like tc as a lightweight/free/easy-to-use distro, it would represent linux platform as good as any. 

i have been very curious about how much adoption of tc in commercial applications.

by the way, my code will be open source, and suggestions are always welcome.
Title: Re: source code for compiletc.tcz
Post by: curaga on June 04, 2012, 05:24:32 AM
For such an universal build machine, you should use Linux not Windows. From that direction things are much easier, even when building for Windows or other non-unix platforms. (this is not taking into account the other niceties like proper shell, stability...)

Then building for TC becomes a fact of having a TC chroot. Or just having the host with matching or older versions - if you build on Debian stable, the binary is going to run on most distros newer than it.

Quote
i have been very curious about how much adoption of tc in commercial applications.

There are a few, but I'm not sure we can mention any. :)