All of lore.kernel.org
 help / color / mirror / Atom feed
From: Joachim Meyer <Jogi95@domain.hid>
To: xenomai@xenomai.org
Subject: [Xenomai-help] Cross-Compile Xenomai
Date: Tue, 13 May 2008 10:53:13 +0200	[thread overview]
Message-ID: <749025575@domain.hid> (raw)

Hi

I try to cross compile Xenomai for an embedded PPC405. 
I already patched the Linux Kernel and now I try to crosscompile Xenomai like I read in the README:

2.2 Building for the PowerPC architecture
-----------------------------------------

A typical cross-compilation setup, in order to build Xenomai for a
PowerPC-405-based system:

$ $xenomai_root/scripts/prepare-kernel.sh --arch=powerpc \
  --adeos=$xenomai_root/ksrc/arch/powerpc/patches/adeos-ipipe-2.6.14-ppc-X.Y-ZZ.patch \
  --linux=$linux_tree
$ cd $linux_tree
$ mkdir ../build-powerpc-405-2.6.14
$ make ARCH=ppc CROSS_COMPILE=powerpc-405-linux-gnu- O=../build-powerpc-405-2.6.14 xconfig/gconfig/menuconfig 
# select the kernel and Xenomai options
$ make ARCH=ppc CROSS_COMPILE=powerpc-405-linux-gnu- O=../build-powerpc-405-2.6.14 bzImage modules 
# then install as needed
$ mkdir $build_root && cd $build_root
$ $xenomai_root/configure --build=i686-linux --host=powerpc-405-linux-gnu
$ make install

Now, everything seems to be fine but when I try make install, I get errors because I have now root privileges and so I can't create a folder:

make[4]: Entering directory `/home/meyer/xenomai/xenroot2/src/skins/native'
test -z "/usr/xenomai/lib" || mkdir -p -- "/usr/xenomai/lib"
mkdir: cannot create directory `/usr/xenomai': Permission denied
make[4]: *** [install-libLTLIBRARIES] Error 1
make[4]: Leaving directory `/home/meyer/xenomai/xenroot2/src/skins/native'
make[3]: *** [install-am] Error 2
make[3]: Leaving directory `/home/meyer/xenomai/xenroot2/src/skins/native'
make[2]: *** [install-recursive] Error 1
make[2]: Leaving directory `/home/meyer/xenomai/xenroot2/src/skins'
make[1]: *** [install-recursive] Error 1
make[1]: Leaving directory `/home/meyer/xenomai/xenroot2/src'
make: *** [install-recursive] Error 1

Can I crosscompile Xenomai without root privileges?

Greez
Joachim

_____________________________________________________________________
Der WEB.DE SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen!
http://smartsurfer.web.de/?mc=100071&distributionid=000000000066



             reply	other threads:[~2008-05-13  8:53 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-05-13  8:53 Joachim Meyer [this message]
2008-05-13  8:59 ` [Xenomai-help] Cross-Compile Xenomai Gilles Chanteperdrix
  -- strict thread matches above, loose matches on Subject: below --
2008-05-14  8:07 Joachim Meyer
2008-05-14  8:32 ` Gilles Chanteperdrix
2008-05-14  9:15 Fillod Stephane
2008-05-14 12:32 Joachim Meyer
2008-05-14 18:45 ` Gilles Chanteperdrix
2008-05-27 16:11 Joachim Meyer

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=749025575@domain.hid \
    --to=jogi95@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.