]> rtime.felk.cvut.cz Git - ert_linux.git/blob - README
README: Mention how to cross-compile
[ert_linux.git] / README
1 Mimimalistic Simulink Coder Target for Linux
2 ============================================
3 Authors: Michal Sojka <sojkam1@fel.cvut.cz>
4          Lukas Hamacek <hamacl1@fel.cvut.cz>
5
6 Copyright (C) 2009 - 2014
7          Department of Control Engineering
8          Faculty of Electrical Engineering
9          Czech Technical University in Prague
10
11 The aim of this target is to allow Simulink to generate code that
12 runs in real-time on Linux. This target tries to be minimalist in
13 the sense that it reuses as much as possible from Simulink built-in
14 targets.
15
16
17 Installation
18 ------------
19
20 In Matlab prompt execute:
21
22   cd <root>/ert_linux/ert_linux
23   ert_linux_setup
24
25 From now on, Code Generation pane of Simulink Model Configuration
26 Parameters should offer ert_linux.tlc as System Target File (after
27 pressing "Browse...." button).
28
29 Documentation
30 -------------
31
32 In order to cross-compile the generated source, modify the "Make
33 command" in Code Generation pane to set the CC variable (and/or CPP
34 for C++ compiler). For example:
35
36     make_rtw CC=arm-linux-gnueabi-gcc
37
38 Pointers to more ERT Linux target documentation can be found at the
39 project SourceForge page http://lintarget.sourceforge.net/.
40
41 Michal Sojka's blogpost about the actual version can be found at
42 http://rtime.felk.cvut.cz/~sojka/blog/on-generating-linux-applications-from-simulink/.
43
44 Development sources repository
45 ------------------------------
46
47   http://rtime.felk.cvut.cz/gitweb/ert_linux.git
48
49   git clone git://rtime.felk.cvut.cz/ert_linux.git
50
51 Note: This target was tested with Matlab R2012b and R2013a
52       and Humusoft MF624 cards with Linux kernels up to 3.12 RT
53       on 64-bit Debian GNU/Linux system.