Quickstart: Difference between revisions

From TUDOS-Wiki
Jump to navigationJump to search
(obj-dir of fiasco also in global obj dir)
No edit summary
 
(10 intermediate revisions by 3 users not shown)
Line 2: Line 2:


* Get the sources
* Get the sources
** ''hello'' is a simple set of programs, ''l4linux-2.6-env'' is everything needed for L4Linux.


  $ cd /path/to/src
  $ cd /somedir/tudos
  $ svn checkout -N http://svn.tudos.org/repos/tudos/trunk tudos
  $ svn cat http://svn.tudos.org/repos/oc/tudos/trunk/repomgr | perl - init http://svn.tudos.org/repos/oc/tudos fiasco l4re l4linux_requirements
$ cd tudos
$ ./repomgr co hello
$ ./repomgr co l4linux-2.6-env


* L4Env: Create a build directory and configure
If you do not want to run L4Linux you may leave out ''l4linux_requirements'' in the above commands to get less.


  $ mkdir /path/to/obj/tudos
* L4Re: Create a build directory, configure and build
  $ cd /path/to/src/tudos/l4
 
  $ mkdir -p /path/to/obj/tudos
  $ cd /somedir/tudos/src/l4
  $ make O=/path/to/obj/tudos oldconfig
  $ make O=/path/to/obj/tudos oldconfig
 
  $ make O=/path/to/obj/tudos -j2
* L4Env: Build
 
  $ make O=/path/to/obj/tudos


* Fiasco: Create build directory, configure and build
* Fiasco: Create build directory, configure and build


  $ cd /path/to/src/tudos/kernel/fiasco
  $ cd /somedir/tudos/src/kernel/fiasco
  $ make BUILDDIR=/path/to/obj/fiasco
  $ make BUILDDIR=/path/to/obj/fiasco
  $ cd /path/to/obj/fiasco
  $ cd /path/to/obj/fiasco
Line 28: Line 23:


* L<sup>4</sup>Linux
* L<sup>4</sup>Linux
** Get the source, configure and build
** Get the source, configure and build (example for x86 target)


  $ cd /path/to/src
  $ cd /somedir/tudos
  $ svn co http://svn.tudos.org/repos/l4linux/trunk l4linux-2.6
  $ svn co http://svn.tudos.org/repos/oc/l4linux/trunk l4linux
  $ cd l4linux-2.6
  $ cd l4linux
  $ make O=/path/to/obj/l4linux x86-ux_defconfig
  $ make O=/path/to/obj/l4linux x86-native_defconfig
# In the menu, in "L4Linux configuration", set "L4 tree build directory" to /path/to/obj/tudos
$ make O=/path/to/obj/l4linux menuconfig
  $ make O=/path/to/obj/l4linux
  $ make O=/path/to/obj/l4linux
When building for the ARM architecture, you need to add 'L4ARCH=arm CROSS_COMPILER=arm-linux-' to each make call, which modifies the above as follows:
$ cd /somedir/tudos
$ svn co http://svn.tudos.org/repos/oc/l4linux/trunk l4linux
$ cd l4linux
$ make L4ARCH=arm CROSS_COMPILE=arm-linux- O=/path/to/obj/l4linux arm_defconfig
# In the menu, in "L4Linux configuration", set "L4 tree build directory" to /path/to/obj/tudos
$ make L4ARCH=arm CROSS_COMPILE=arm-linux- O=/path/to/obj/l4linux menuconfig
$ make L4ARCH=arm CROSS_COMPILE=arm-linux- O=/path/to/obj/l4linux
Remember that you need at least the ''l4linux_requirements'' subset of the L4Re packages to build L4Linux, as described above.

Latest revision as of 22:15, 13 July 2011

Quick guide to get the system compiled, without much explanation.

  • Get the sources
$ cd /somedir/tudos
$ svn cat http://svn.tudos.org/repos/oc/tudos/trunk/repomgr | perl - init http://svn.tudos.org/repos/oc/tudos fiasco l4re l4linux_requirements

If you do not want to run L4Linux you may leave out l4linux_requirements in the above commands to get less.

  • L4Re: Create a build directory, configure and build
$ mkdir -p /path/to/obj/tudos
$ cd /somedir/tudos/src/l4
$ make O=/path/to/obj/tudos oldconfig
$ make O=/path/to/obj/tudos -j2
  • Fiasco: Create build directory, configure and build
$ cd /somedir/tudos/src/kernel/fiasco
$ make BUILDDIR=/path/to/obj/fiasco
$ cd /path/to/obj/fiasco
$ make
  • L4Linux
    • Get the source, configure and build (example for x86 target)
$ cd /somedir/tudos
$ svn co http://svn.tudos.org/repos/oc/l4linux/trunk l4linux
$ cd l4linux
$ make O=/path/to/obj/l4linux x86-native_defconfig
# In the menu, in "L4Linux configuration", set "L4 tree build directory" to /path/to/obj/tudos
$ make O=/path/to/obj/l4linux menuconfig
$ make O=/path/to/obj/l4linux

When building for the ARM architecture, you need to add 'L4ARCH=arm CROSS_COMPILER=arm-linux-' to each make call, which modifies the above as follows:

$ cd /somedir/tudos
$ svn co http://svn.tudos.org/repos/oc/l4linux/trunk l4linux
$ cd l4linux
$ make L4ARCH=arm CROSS_COMPILE=arm-linux- O=/path/to/obj/l4linux arm_defconfig
# In the menu, in "L4Linux configuration", set "L4 tree build directory" to /path/to/obj/tudos
$ make L4ARCH=arm CROSS_COMPILE=arm-linux- O=/path/to/obj/l4linux menuconfig
$ make L4ARCH=arm CROSS_COMPILE=arm-linux- O=/path/to/obj/l4linux

Remember that you need at least the l4linux_requirements subset of the L4Re packages to build L4Linux, as described above.