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:20:39 +0200 [thread overview]
Message-ID: <4AA95F97.6010802@domain.hid> (raw)
In-Reply-To: <BB99A6BA28709744BF22A68E6D7EB51F03248BDB59@domain.hid>
Jonathan Haws wrote:
> All,
>
> I am new to Xenomai, so please bear with me.
>
> I have a question regarding creating Makefiles for building Xenomai
> enabled programs. I would like to simply use "xeno-config" to set my
> CFLAGS and LDFLAGS settings in the Makefile.
>
> However, the problem I run into is that my target (AMCC 405EX PPC
> system) requires that I have the --prefix option set to
> /usr/local/xenomai. However, that is not the real path to where the
> libraries are installed on my host system. They are at
> ~/eldk/ppc_4xx/usr/local/xenomai. I then have a script that will
> build a ramdisk and pull the libraries from the correct location (if
> anyone has used the root filesystem builder from Denx that is how I
> am doing it).
>
> How can I fix that discrepancy? I would like to accomplish this the
> correct way and if that is simply creating a symlink, so be it.
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)
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.
--
Gilles.
next prev parent reply other threads:[~2009-09-10 20:20 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 [this message]
2009-09-10 20:41 ` Jonathan Haws
2009-09-10 20:50 ` Gilles Chanteperdrix
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=4AA95F97.6010802@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.