All of lore.kernel.org
 help / color / mirror / Atom feed
From: Gilles Chanteperdrix <gilles.chanteperdrix@xenomai.org>
To: niklaus.giger@domain.hid
Cc: xenomai-core <xenomai@xenomai.org>
Subject: Re: [Xenomai-core] Two patches for the documentation
Date: Sun, 8 Jan 2006 15:24:28 +0100	[thread overview]
Message-ID: <17345.8348.137708.453294@domain.hid> (raw)
In-Reply-To: <200601072103.32588.niklaus.giger@domain.hid>

[-- Attachment #1: message body and .signature --]
[-- Type: text/plain, Size: 650 bytes --]

Niklaus Giger wrote:
 > xeno.patch is a shorter way how to cross-compile using the CROSS_COMPILE 
 > variable.

The CROSS_COMPILE prefix is not used by the configure script of branch
2.1 of Xenomai (though it works with branch 2.0), the --host option of
configure should be used instead.

 > Also contains a hint to use O=../a-build-dir to compile the linux kernel.

Maybe this would look more apropriate in section 1.2, entitled "Configuring and
building Linux kernel" ?

The attached patch, for your review, attempt to reword the paragraph I
had written on cross-compilation, and reflect the last two remarks.

-- 


					    Gilles Chanteperdrix.

[-- Attachment #2: xeno.readme.patch --]
[-- Type: application/octet-stream, Size: 3729 bytes --]

Index: README.INSTALL
===================================================================
--- README.INSTALL	(revision 398)
+++ README.INSTALL	(working copy)
@@ -76,6 +76,14 @@
 
 Once configured, the kernel should be built as usual.
 
+It might be a good idea to put all the output into a different build
+directory as to build from from linux source several targets. For each
+target add O=../build-<target> to each make invocation.
+
+In order to cross-compile the Linux kernel, pass an ARCH and
+CROSS_COMPILE variable on make command line. See sections 2.2, 2.3 and
+2.4 for examples.
+
 1.3 Building the user-space support
 -----------------------------------
 
@@ -144,33 +152,29 @@
 -----------------------
 
 Passing a --host option to the configure script allows to select the
-architecture for which the libraries and programs are built. The --build option
-allow to choose the architecture on which the compilation tool are run, i.e. the
-system running the configure script. Using the --build option should not be
-needed, but if you do not use it, configure emit a warning, which may be
-confusing.
+architecture for which the libraries and programs are built. The
+--build option allow to choose the architecture on which the
+compilation tool are run, i.e. the system running the configure
+script. Using the --build option should not be needed, but if you do
+not use it, configure emit a warning, which may be confusing.
 
-The easiest way to build a GNU cross-compiler might involve using Dan Kegel 
-crosstools found at http://kegel.com/crosstool.
+The easiest way to build a GNU cross-compiler might involve using Dan
+Kegel crosstools found at http://kegel.com/crosstool.
 
-Since cross-compiling requires specific tools, such tools are generally prefixed
-with the host architecture name; for example, a compiler for the power PC
-architecture may be named powerpc-405-linux-gnu-gcc.
+Since cross-compiling requires specific tools, such tools are
+generally prefixed with the host architecture name; for example, a
+compiler for the power PC architecture may be named
+powerpc-405-linux-gnu-gcc.
 
-configure will automatically use powerpc-405-linux-gnu- as a prefix too all compilation
-tools names and deduce the architecture name. If configure is unable to deduce
-the architecture name from this prefix, you will have to manually pass the name
-of all compilation tools on configure command line. As in:
+When passing the option --host=powerpc-405-linux-gnu to configure,
+configure will automatically use powerpc-405-linux-gnu- as a prefix to
+all compilation tools names and infer the host architecture name from
+this prefix. If configure is unable to infer the architecture name
+from the cross-compilation tools prefix, you will have to manually
+pass the name of all compilation tools on configure command line. 
 
-It might be a good idea to put all the output into a differen build directory
-as to build from from linux source several targets. For each target add 
-O=../build-<target> to each make invocation.
-configure CROSS_COMPILE=powerpc-405-linux-gnu-
+See sections 2.2, 2.3 and 2.4 for examples.
 
-For more details:
-http://sourceware.org/autobook/autobook/autobook_264.html#SEC264
-http://sourceware.org/autobook/autobook/autobook_266.html#SEC266
-
 2. Typical installation procedures
 ----------------------------------
 
@@ -217,7 +221,7 @@
 $ make 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 CROSS_COMPILE=powerpc-405-linux-gnu-
+$ $xenomai_root/configure --build=i686-linux --host=powerpc-405-linux-gnu
 $ make install
 
 2.3 Building for the IPF

      parent reply	other threads:[~2006-01-08 14:24 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-01-07 20:03 [Xenomai-core] Two patches for the documentation Niklaus Giger
2006-01-08 10:53 ` Philippe Gerum
2006-01-09 20:34   ` Niklaus Giger
2006-01-08 14:24 ` Gilles Chanteperdrix [this message]

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=17345.8348.137708.453294@domain.hid \
    --to=gilles.chanteperdrix@xenomai.org \
    --cc=niklaus.giger@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.