OSDev.org
https://forum.osdev.org/

[Cross-compilation] How can I port coreutils and bash/dash ?
https://forum.osdev.org/viewtopic.php?f=1&t=24616
Page 1 of 1

Author:  fiveayem [ Thu Dec 29, 2011 12:35 pm ]
Post subject:  [Cross-compilation] How can I port coreutils and bash/dash ?

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.

Author:  AJ [ Thu Dec 29, 2011 12:58 pm ]
Post subject:  Re: [Cross-compilation] How can I port coreutils and bash/da

Hi,

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.


Dash Shell.

Cheers,
Adam

Author:  fiveayem [ Thu Dec 29, 2011 1:02 pm ]
Post subject:  Re: [Cross-compilation] How can I port coreutils and bash/da

Ok, thanks :)

And what about the procedure for porting ?

Author:  Combuster [ Thu Dec 29, 2011 2:00 pm ]
Post subject:  Re: [Cross-compilation] How can I port coreutils and bash/da

Homework: RTFM
Code:
./configure --help

Author:  gerryg400 [ Thu Dec 29, 2011 2:52 pm ]
Post subject:  Re: [Cross-compilation] How can I port coreutils and bash/da

This worked for me for both dash and coreutils.
Code:
./configure --host=x86_64-myos --prefix=/Users/gerryg/myos/
make
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.

Page 1 of 1 All times are UTC - 6 hours
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/