OSDev.org

The Place to Start for Operating System Developers
It is currently Sun Sep 20, 2020 5:09 am

All times are UTC - 6 hours




Post new topic Reply to topic  [ 5 posts ] 
Author Message
 Post subject: [Cross-compilation] How can I port coreutils and bash/dash ?
PostPosted: Thu Dec 29, 2011 12:35 pm 
Offline
Member
Member

Joined: Sun Aug 14, 2011 8:01 am
Posts: 51
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.


Top
 Profile  
 
 Post subject: Re: [Cross-compilation] How can I port coreutils and bash/da
PostPosted: Thu Dec 29, 2011 12:58 pm 
Offline
Member
Member
User avatar

Joined: Sun Oct 22, 2006 7:01 am
Posts: 2637
Location: Devon, UK
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


Top
 Profile  
 
 Post subject: Re: [Cross-compilation] How can I port coreutils and bash/da
PostPosted: Thu Dec 29, 2011 1:02 pm 
Offline
Member
Member

Joined: Sun Aug 14, 2011 8:01 am
Posts: 51
Ok, thanks :)

And what about the procedure for porting ?


Top
 Profile  
 
 Post subject: Re: [Cross-compilation] How can I port coreutils and bash/da
PostPosted: Thu Dec 29, 2011 2:00 pm 
Offline
Member
Member
User avatar

Joined: Wed Oct 18, 2006 3:45 am
Posts: 9287
Location: On the balcony, watching the Swedish Chef
Homework: RTFM
Code:
./configure --help

_________________
"Certainly avoid yourself. He is a newbie and might not realize it. You'll hate his code deeply a few years down the road." - Sortie
[ My OS ] [ VDisk/SFS ]


Top
 Profile  
 
 Post subject: Re: [Cross-compilation] How can I port coreutils and bash/da
PostPosted: Thu Dec 29, 2011 2:52 pm 
Offline
Member
Member

Joined: Thu Mar 25, 2010 11:26 pm
Posts: 1801
Location: Melbourne, Australia
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.

_________________
If a trainstation is where trains stop, what is a workstation ?


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 posts ] 

All times are UTC - 6 hours


Who is online

Users browsing this forum: awik, bloodline, Google [Bot], sham1 and 12 guests


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 post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group