LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
Search this Thread
Old 11-10-2012, 09:35 PM   #1
FeyFre
Member
 
Registered: Jun 2010
Location: Ukraine, Vinnitsa
Distribution: Slackware
Posts: 308

Rep: Reputation: 22
Question Creating crosscompiling kit on slackware.


Hi.
Life beats me again offering tasks which I never done before(and honestly anticipated any possibility to do them) and have not anybody experienced to teach me.
So task is to setup environment to crossbuild software to specified platform(including building kernel, coreutils and whole minimal bunch of software required to boot-up system).
So seeking for any modern information of what, how, in which order to build in order to produce well working result.

Have Googled for ready made tools, scripts, strict descriptions, but nothing suitable found. Most of verbal descriptions are highly outdated(>5 year old). Some of them are stick to limited number of platforms. Most of them explains nothing. Some of them are just inconsistent(writing one, running other). LFS is not suitable either.

thx
 
Old 11-11-2012, 02:45 AM   #2
zk1234
Member
 
Registered: Oct 2010
Location: Poland
Distribution: 4MLinux, Slackware, Slitaz, Mint
Posts: 116

Rep: Reputation: 7
http://www.scratchbox.org/
http://landley.net/aboriginal/about.html
http://buildroot.uclibc.org/
 
Old 11-11-2012, 04:23 AM   #3
gnashley
Amigo developer
 
Registered: Dec 2003
Location: Germany
Distribution: Slackware
Posts: 4,758

Rep: Reputation: 469Reputation: 469Reputation: 469Reputation: 469Reputation: 469
crosstool-ng is probably the easiest and most versatile cross-builder.
 
1 members found this post helpful.
Old 11-11-2012, 05:14 AM   #4
D1ver
Member
 
Registered: Jan 2010
Distribution: Slackware 13.37
Posts: 527
Blog Entries: 3

Rep: Reputation: 126Reputation: 126
I've had good experiences with open-embedded and, if you just want a build toolchain, code-sorcery lite.
 
Old 11-11-2012, 05:47 AM   #5
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 5,270

Rep: Reputation: Disabled
I have used http://fedorapeople.org/cgit/djdelor...bootstrap.git/ as inspiration to create my own bootstrapping framework which creates a cross-compiler and a mini rootfs for my ARM port (which has been abandoned since april and which I re-started a few weeks ago). I was never in favour of using someone else's binaries to bootstrap a new port or even cross-compile Slackware packages, I needed to learn how to create this myself.

The intention is to publish all that work when I have the full Slackware 14 package set compiled for an ARM target with hardware FPU support (i.e. modern CPU's as found in tablets and the chromebook), my port won't run on a Raspberry Pi for instance.

Eric
 
Old 11-11-2012, 07:07 AM   #6
FeyFre
Member
 
Registered: Jun 2010
Location: Ukraine, Vinnitsa
Distribution: Slackware
Posts: 308

Original Poster
Rep: Reputation: 22
Thanks for answers
> crosstool-ng
> http://landley.net/aboriginal/about.html
> http://buildroot.uclibc.org/
> http://www.scratchbox.org/
> code-sorcery
Hardcoded to work with limited number of targets. No description how to add new target.
> open-embedded
Trying...
 
Old 11-11-2012, 10:11 AM   #7
gnashley
Amigo developer
 
Registered: Dec 2003
Location: Germany
Distribution: Slackware
Posts: 4,758

Rep: Reputation: 469Reputation: 469Reputation: 469Reputation: 469Reputation: 469
crosstool-ng is here:
http://crosstool-ng.org/
See here for a table of which arches are supported:
http://crosstool-ng.org/#status
 
Old 11-11-2012, 11:34 AM   #8
FeyFre
Member
 
Registered: Jun 2010
Location: Ukraine, Vinnitsa
Distribution: Slackware
Posts: 308

Original Poster
Rep: Reputation: 22
gnashley, I know, I tried it already.
 
Old 11-21-2012, 05:43 PM   #9
FeyFre
Member
 
Registered: Jun 2010
Location: Ukraine, Vinnitsa
Distribution: Slackware
Posts: 308

Original Poster
Rep: Reputation: 22
Thanks everybody for answers.
@Alien Bob, I'll try it as soon as find HDD space to instantiate fedora. But I have not any real expectations of it, because it is one of hundreds ARM architecture locked solutions.

For now I going to postpone this task, since platform vendor provides pre-built cross-compiling kit(RH5 compatible, works on 13.37). But it is 64-bit only, so task still here.
For now my task is to determine right sequence of Slackware's packages to crossbuild them.
 
Old 11-21-2012, 07:35 PM   #10
D1ver
Member
 
Registered: Jan 2010
Distribution: Slackware 13.37
Posts: 527
Blog Entries: 3

Rep: Reputation: 126Reputation: 126
Out of curiosity, what is your target platform?
 
Old 11-22-2012, 07:27 AM   #11
FeyFre
Member
 
Registered: Jun 2010
Location: Ukraine, Vinnitsa
Distribution: Slackware
Posts: 308

Original Poster
Rep: Reputation: 22
Tile-Gx
 
  


Reply

Tags
binutils, crosscompile, gcc, glibc, kernel


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Jack audio connection kit problems, Slackware 13 - 37 zeelog Slackware 7 09-13-2012 09:25 AM
crosscompiling issues with qtopia for ARM9 raman_31181 Linux - Embedded & Single-board computer 3 09-02-2008 09:21 AM
Crosscompiling C sources for an OS-less ARM microcontroller - is it possible? winterhunter Programming 2 03-26-2007 11:30 AM
crosscompiling grub tilman1 Linux - Software 0 03-11-2007 11:32 AM
crosscompiling gcc error Alotau Linux - Software 4 06-22-2005 04:39 PM


All times are GMT -5. The time now is 09:23 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration