From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <43C100A2.6040605@domain.hid> Date: Sun, 08 Jan 2006 13:08:02 +0100 From: Philippe Gerum MIME-Version: 1.0 Subject: Re: [Xenomai-core] [rfc] Building Linux kernel in Xenomai tree. References: <17343.42595.626357.181448@domain.hid> In-Reply-To: <17343.42595.626357.181448@domain.hid> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit List-Id: "Xenomai life and development \(bug reports, patches, discussions\)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Gilles Chanteperdrix Cc: xenomai@xenomai.org Gilles Chanteperdrix wrote: > Hi, > > attached is a patch of Xenomai trunk build system to allow building > Linux kernel as part of Xenomai build process. This way, typing make > install builds and installs the Linux kernel, kernel modules and > Xenomai. > > The patch is a bit young and still has a few drawbacks, but before > spending to much time on it, I would like to know if anyone is opposed > to the idea of building Linux in Xenomai build tree. > > To try this patch, apply and run the bootstrap script. > 3 options are then added to configure : > --enable-linux-build Build Linux in Xenomai build tree > --with-linux-srcdir specify the path to Linux sources. Default is to > use, if not cross-compiling, the source of the > running kernel or /usr/src/linux. --enable-linux-build= ? > --with-adeos-patch specify the path to the Adeos patch. Default is to > infer the patch name from Linux kernel version. > > When using the --enable-linux-build option, configure creates a linux > tree in Xenomai build tree, and run the prepare-kernel.sh script for > this tree. Typing "make" re-runs prepare-kernel.sh (in case some changes > occured in Xenomai sources) and run make in the kernel tree. > > Known limitations are: > - it is not very well tested, so, maybe some error cases are not handled > correctly ; > - it is not tested with Linux 2.4 ; > - for an unknown reason, xenomai modules are built every time > prepare-kernel.sh is run ; > - the cross-compilation prefix is inferred from the CC variable, it > should work in most situations, but not all. > > Happy new year. > > > > ------------------------------------------------------------------------ > > _______________________________________________ > Xenomai-core mailing list > Xenomai-core@domain.hid > https://mail.gna.org/listinfo/xenomai-core -- Philippe.