Project

General

Profile

Environment » History » Version 18

Jorge L. Florit, 10/29/2013 10:49 PM

1 18 Jorge L. Florit
http://qmp.cat/Development
2 18 Jorge L. Florit
TO DO: mantain this page in the main site. Only tricks or hack articles recommended in the wiki.
3 18 Jorge L. Florit
4 18 Jorge L. Florit
5 18 Jorge L. Florit
6 12 Victor Oncins
h1. Development Environment
7 1 Pau Escrich
8 14 Pau Escrich
h3. Get the needed software
9 14 Pau Escrich
10 15 Simó Albert i Beltran
First of all you should take a look on the system requirements:
11 15 Simó Albert i Beltran
12 2 Pau Escrich
In a Debian based distributions (like Ubuntu), a set of packages are needed, you should install them:
13 6 Pau Escrich
14 6 Pau Escrich
<pre>
15 17 Jorge L. Florit
sudo aptitude install \
16 10 Simó Albert i Beltran
git subversion zlib1g-dev gawk flex unzip bzip2 gettext build-essential \
17 16 Simó Albert i Beltran
libncurses5-dev libncursesw5-dev binutils cpp psmisc docbook-to-man
18 1 Pau Escrich
</pre>
19 17 Jorge L. Florit
20 17 Jorge L. Florit
And if your machine is x86_64 you will need 32 bit development files.
21 17 Jorge L. Florit
In Debian/Ubuntu:
22 17 Jorge L. Florit
<pre>sudo aptitude install gcc-multilib</pre>
23 17 Jorge L. Florit
24 17 Jorge L. Florit
In CentOS/Fedora/RHEL the packets:
25 17 Jorge L. Florit
<pre>gcc.i686, libgcc.i686, and glibc-devel.i686</pre>
26 17 Jorge L. Florit
27 17 Jorge L. Florit
28 17 Jorge L. Florit
29 14 Pau Escrich
30 14 Pau Escrich
h3. Get the code and compile
31 1 Pau Escrich
32 15 Simó Albert i Beltran
* [Recomended] Get the qMp firmware generator using git: <pre>git clone git://qmp.cat/qmpfw.git qmpfw</pre>
33 1 Pau Escrich
34 15 Simó Albert i Beltran
* [Outdated] Or get the code using http: <pre>wget -c -q -O - "http://qmp.cat/gitrevision_download?project_id=7&rev=anonymous" | tar zxvf -</pre>
35 15 Simó Albert i Beltran
36 1 Pau Escrich
* Then enter to source directory: <pre>cd qmpfw</pre>
37 1 Pau Escrich
38 15 Simó Albert i Beltran
* [Advanced] Do a checkout specifying the branch: <pre>make .checkout_qmp QMP_GIT_BRANCH=branch_name</pre>
39 15 Simó Albert i Beltran
40 15 Simó Albert i Beltran
Example for testing branch: <pre>make .checkout_qmp QMP_GIT_BRANCH=testing</pre>
41 14 Pau Escrich
42 14 Pau Escrich
* And compile it specifying the target: <pre>make build T=alix</pre>
43 14 Pau Escrich
44 14 Pau Escrich
You can find available targets by executing: <pre>make list_targets</pre>
45 14 Pau Escrich
46 14 Pau Escrich
If you have more than one core in your computer you can use J=N: <pre>make build T=alix J=4</pre>
47 14 Pau Escrich
48 14 Pau Escrich
After that, you will find the images ready to install in your devices inside directory images/