Hello,
Having ported Newlib (and built a specific toolchain) for my OS, I would now like to port some GNU binaries, such as coreutils and bash. However, I am not a specialist about cross-compilation, and this is the reason why I ask for your help. I know that it is necessary to execute a configure script before "making". But which parameters should I provide the script with ?
Sorry if my question seems stupid, but I am not an expert at all. If bash is too complicated to deal with, maybe you could tell me about how porting dash ? I have heard that it is much easier, but I do not know where to find the source code.
Thanks a lot for your help.
[Cross-compilation] How can I port coreutils and bash/dash ?
Re: [Cross-compilation] How can I port coreutils and bash/da
Hi,
Cheers,
Adam
Dash Shell.fiveayem wrote:Sorry if my question seems stupid, but I am not an expert at all. If bash is too complicated to deal with, maybe you could tell me about how porting dash ? I have heard that it is much easier, but I do not know where to find the source code.
Cheers,
Adam
Re: [Cross-compilation] How can I port coreutils and bash/da
Ok, thanks
And what about the procedure for porting ?
And what about the procedure for porting ?
- Combuster
- Member
- Posts: 9301
- Joined: Wed Oct 18, 2006 3:45 am
- Libera.chat IRC: [com]buster
- Location: On the balcony, where I can actually keep 1½m distance
- Contact:
Re: [Cross-compilation] How can I port coreutils and bash/da
Homework: RTFM
Code: Select all
./configure --help
Re: [Cross-compilation] How can I port coreutils and bash/da
This worked for me for both dash and coreutils.I haven't tried bash.
I used newlib as my C library but needed to add about 60 extra functions to it to get dash working. Even more for coreutils.
Code: Select all
./configure --host=x86_64-myos --prefix=/Users/gerryg/myos/
make
I used newlib as my C library but needed to add about 60 extra functions to it to get dash working. Even more for coreutils.
If a trainstation is where trains stop, what is a workstation ?