From: Gilles Chanteperdrix <gilles.chanteperdrix@xenomai.org>
To: Jonathan Haws <Jonathan.Haws@domain.hid>
Cc: "xenomai@xenomai.org" <xenomai@xenomai.org>
Subject: Re: [Xenomai-help] Installation and Makefile Help
Date: Thu, 10 Sep 2009 22:50:17 +0200 [thread overview]
Message-ID: <4AA96689.3010502@domain.hid> (raw)
In-Reply-To: <BB99A6BA28709744BF22A68E6D7EB51F03248BDBCD@midas.usurf.usu.edu>
Jonathan Haws wrote:
>> Use DESTDIR, that is what it was made for. The makefiles use it
>> when running "make install", and xeno-config prepends it to the
>> directories it returns.
>>
>> So, in a makefile, you woud do:
>>
>> XENO_DESTDIR:=~/eldk/ppc_4xx
>> XENO_CONFIG:=$(XENO_DESTDIR)/usr/local/xenomai/bin/xeno-config
>> XENO_CPPFLAGS:=$(shell DESTDIR=$(XENO_DESTDIR) $(XENO_CONFIG) --
>> xeno-cflags) XENO_LIBS:=$(shell DESTDIR=$(XENO_DESTDIR)
>> $(XENO_CONFIG) --xeno- ldflags)
>
> Ah, that makes sense. Thanks, Gilles.
>
>
>> Note that to ease working in a cross-compile embedded environnement
>> you may want to avoid copying header files, documentation, etc...
>> in the directory that will be used to generate the root filesystem.
>> In this case pass a different --prefix and --exec-prefix options to
>> xenomai configure script.
>
> So, in that case I would do something like the following:
>
> ./configure --exec-prefix=~/eldk/ppc_4xx/usr/local/xenomai \
> --prefix=/usr/local/xenomai --host=ppc-linux
>
> That would put headers, documentation, and other development files in
> a usable location on the host and the libraries and executables in
> ~/eldk/ppc_4xx.
Well no, unfortunately not. To get things working properly, you have to
pass ~/eldk/ppc_4xx as the DESTDIR when running "make install". At least
that is the way the makefiles coming from automake are supposed to be
used.
So, what you would do is rather:
./configure --exec-prefix=/usr/local/xenomai --prefix=/xenomai-host --host=ppc-linux
And then in the script generating the rootfs, prune the
~/eldk/ppc_4xx/xenomai-host directory.
--
Gilles.
next prev parent reply other threads:[~2009-09-10 20:50 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-09-10 20:05 [Xenomai-help] Installation and Makefile Help Jonathan Haws
2009-09-10 20:20 ` Gilles Chanteperdrix
2009-09-10 20:41 ` Jonathan Haws
2009-09-10 20:50 ` Gilles Chanteperdrix [this message]
2009-09-10 20:54 ` Jonathan Haws
2009-11-09 20:54 ` Jonathan Haws
2009-11-09 21:42 ` Gilles Chanteperdrix
2009-11-09 21:43 ` Jonathan Haws
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4AA96689.3010502@domain.hid \
--to=gilles.chanteperdrix@xenomai.org \
--cc=Jonathan.Haws@domain.hid \
--cc=xenomai@xenomai.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.