All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jan Kiszka <jan.kiszka@domain.hid>
To: Jeff Webb <jeff.webb@domain.hid>
Cc: xenomai@xenomai.org
Subject: Re: [Xenomai-help] Compiling Linux+Xenomai 32bits kernel on	FC6	x86_64?
Date: Wed, 17 Jan 2007 19:19:59 +0100	[thread overview]
Message-ID: <45AE68CF.5080200@domain.hid> (raw)
In-Reply-To: <45AE3ED4.7040506@domain.hid>


[-- Attachment #1.1: Type: text/plain, Size: 1947 bytes --]

Jeff Webb wrote:
> Matthias Fechner wrote:
>> Eric Noulard schrieb:
>>> Is it possible to run/boot a 32bit xenomai on a 64 bit system
>>> or should I really need to install a 32bit only system on my 64 bit
>>> machine?
>>> If yes how to do this properly?
>>> If no
>>>   - is there a planned support for 64bit in xenomai/adeos?
>>>   - what should I do to use Xenomai on my 64 bit machine?
>>
>> I had exactly the same problem and I installed a second 32-bit Linux on
>> my harddisk and easily linked some dirs from my old 64-bit installation
>> to save space (e.g. /usr/src, /usr/local).
> 
> I installed the FC6 i386 version on a second partition as well.  After
> that, I followed the steps outlined in the attached file to build kernel
> and Xenomai RPMs.

Hmm, that tickles my fantasy once again: Could we derive generic .specs
from your files to include them in the Xenomai distribution? Then some
additional Makefile rules could provide a "make rpm" that generates
packages for kernel and userland (when given some kernel.tar.bz2).
Basically, your steps generalised and automated.

This would help us to provide, e.g., an i386 pre-built package with
reasonable default config, something I still consider useful. But, of
course, it must not cost any effort :). Automated rpm generation would
be a big step in that direction.

BTW, have you seen my Xenomai.spec for the SuSE packages I once posted?
Attached is an updated version. It splits the Xenomai userland in
several sub-packages to allow selective installation.

> 
>> But the best is a Xenomai which supports 64-bit AMD processors :)
> 
> Of course!

Yeah. Who's going to do this? ;)

[Really, it depends on someone feeling enough need to work on this (or
sponsor the work). A few pieces are already there from previous RTAI
efforts towards x86-64 support. But now it takes a clean implementation
over recent Linux/I-pipe/Xenomai.]

Jan

[-- Attachment #1.2: xenomai.spec --]
[-- Type: text/plain, Size: 3034 bytes --]

#
# spec file for package xenomai (Version 2.3.0)
#
# Copyright (c) 2006 Jan Kiszka.
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#
# Please submit bugfixes or comments via xenomai@xenomai.org
#

# norootforbuild
# usedforbuild    aaa_base acl attr audit-libs autoconf automake bash bind-libs bind-utils binutils bison bzip2 coreutils cpio cpp cracklib cvs cyrus-sasl db diffutils e2fsprogs file filesystem fillup findutils flex gawk gcc gcc-c++ gdbm gdbm-devel gettext gettext-devel glibc glibc-devel glibc-locale gpm grep groff gzip info insserv klogd less libacl libattr libcom_err libgcc libnscd libstdc++ libstdc++-devel libtool libxcrypt libzio m4 make man mktemp module-init-tools ncurses ncurses-devel net-tools netcfg openldap2-client openssl pam pam-modules patch perl permissions popt procinfo procps psmisc pwdutils rcs readline rpm sed strace sysvinit tar tcpd texinfo timezone unzip util-linux vim zlib zlib-devel

Name:           xenomai
BuildRequires:  gcc
URL:            http://www.xenomai.org/
License:        LGPL
Group:          System/Base
Summary:        Xenomai Userland (libraries, tools, tests)
Version:        2.3.0
Release:        2
Source0:        xenomai-%{version}.tar.bz2
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
Xenomai is a real-time development framework cooperating with the Linux kernel, in order to provide a pervasive, interface-agnostic, hard real-time support to user-space applications, seamlessly integrated into the GNU/Linux environment.



Authors:
--------
    Philippe Gerum <rpm@xenomai.org>
    and others

%debug_package
%prep
%setup -q

%build
CFLAGS="$RPM_OPT_FLAGS -Wall -DNDEBUG" \
CXXFLAGS="$RPM_OPT_FLAGS -Wall -DNDEBUG" \
./configure	\
	--prefix=%{_prefix}			\
	--libdir=%{_libdir}			\
	--mandir=%{_mandir}			\
	--enable-x86-tsc --enable-x86-sep
make %{?jobs:-j%jobs}

%install
[ "$RPM_BUILD_ROOT" != "/" ] && [ -d $RPM_BUILD_ROOT ] && rm -rf $RPM_BUILD_ROOT
make install-user DESTDIR=$RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%{_bindir}/*
%{_sbindir}/*
%{_libdir}/lib*.so*
%{_mandir}/*
/usr/share/xenomai/*


%package doc
Group:          Documentation/HTML
Summary:        Xenomai API Documentation

%description doc
Xenomai API Documentation

%files doc
%defattr(-,root,root)
%docdir /usr/share/doc
/usr/share/doc/*


%package devel

Group:		Development/Libraries/C and C++
Summary:	Xenomai Headers and Libraries

%description devel
Xenomai Headers and Libraries

%files devel
%defattr(-,root,root)
/usr/include/*
%{_libdir}/lib*.a
%{_libdir}/lib*.la
%{_libdir}/posix.wrappers

%changelog -n xenomai
* Fri Jan 5 2007 - jan.kiszka@domain.hid
- rebased over 2.3 release
* Sun Dec 10 2006 - jan.kiszka@domain.hid
- move posix.wrappers to devel
- rebased over SVN + reorder-installation.patch
* Wed Nov 22 2006 - jan.kiszka@domain.hid
- initial version based on 2.3-rc2


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 250 bytes --]

  reply	other threads:[~2007-01-17 18:19 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-01-17  8:51 [Xenomai-help] Compiling Linux+Xenomai 32bits kernel on FC6 x86_64? Eric Noulard
2007-01-17  9:06 ` Matthias Fechner
2007-01-17 15:20   ` Jeff Webb
2007-01-17 18:19     ` Jan Kiszka [this message]
2007-01-17 19:48       ` Jeff Webb
2007-01-17 20:00         ` Jan Kiszka
2007-01-18 11:18       ` Paul
2007-01-18 11:46         ` Jan Kiszka
2007-01-18 11:53           ` Jan Kiszka
2007-01-18 12:12             ` Philippe Gerum
2007-01-18 20:36             ` Paul

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=45AE68CF.5080200@domain.hid \
    --to=jan.kiszka@domain.hid \
    --cc=jeff.webb@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.