supervision - discussion about system services, daemon supervision, init, runlevel management, and tools such as s6 and runit
 help / color / mirror / Atom feed
* How to cross-compile runit
@ 2004-01-13 16:06 Charlie Brady
  2004-01-19 15:52 ` Clemens Fischer
  0 siblings, 1 reply; 3+ messages in thread
From: Charlie Brady @ 2004-01-13 16:06 UTC (permalink / raw)



For those who might be interested, here's what's needed to be done to 
cross-compile runit. 

The Makefile as delivered assumes that it is possible to build binaries
and execute them in order to test for feature availability on the target.
You won't be able to do that in a cross compile environment. Instead, 
you'll need to do some hand testing to determine the correct answers to 
questions that make usually determines at build time.

# start with a clean slate
make clean

# Set up build tools
echo path/to/cc > conf-cc
echo path/to/cc -s > conf-ld

make compile load choose

# Detect and avoid imitation poll() libraries
# If trypoll builds and executes without error on the target
# set H to iopause.h2
H=iopause.h1
cp $H iopause.h

# Does target have 64bit long arithmetic?
# Test by building tryulong64 and executing on target
# set H to uint64.h2 if so
H=uint64.h1
cp $H uint64.h

# Does target have a short gid_t type?
# Test by building tryshsgr and executing on target
# set H to hasshsgr.h2 if so
make chkshsgr
H=hasshsgr.h1
cp $H hasshsgr.h

# All the configuration based on runtime results is now complete
# The rest are compile and/or link tests, and can be relied upon
make

--
Charlie



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: How to cross-compile runit
  2004-01-13 16:06 How to cross-compile runit Charlie Brady
@ 2004-01-19 15:52 ` Clemens Fischer
  2004-01-19 16:37   ` Charlie Brady
  0 siblings, 1 reply; 3+ messages in thread
From: Clemens Fischer @ 2004-01-19 15:52 UTC (permalink / raw)


* 2004-01-13 Charlie Brady:

> For those who might be interested, here's what's needed to be done
> to cross-compile runit.

what was the target?

  clemens


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: How to cross-compile runit
  2004-01-19 15:52 ` Clemens Fischer
@ 2004-01-19 16:37   ` Charlie Brady
  0 siblings, 0 replies; 3+ messages in thread
From: Charlie Brady @ 2004-01-19 16:37 UTC (permalink / raw)



On 19 Jan 2004, Clemens Fischer wrote:

> * 2004-01-13 Charlie Brady:
> 
> > For those who might be interested, here's what's needed to be done
> > to cross-compile runit.
> 
> what was the target?

mipsel linux. The process is generic however. The only thing which will 
need to change from target to target is setting up the correct contents of 
iopause.h, uint64.h and hasshsgr.h (which is normally done via 
"choose clr ...").

--
Charlie



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2004-01-19 16:37 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-01-13 16:06 How to cross-compile runit Charlie Brady
2004-01-19 15:52 ` Clemens Fischer
2004-01-19 16:37   ` Charlie Brady

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).