Project

General

Profile

Environment » History » Version 17

Jorge L. Florit, 07/19/2013 03:49 PM

1 12 Victor Oncins
h1. Development Environment
2 1 Pau Escrich
3 14 Pau Escrich
h3. Get the needed software
4 14 Pau Escrich
5 15 Simó Albert i Beltran
First of all you should take a look on the system requirements:
6 15 Simó Albert i Beltran
7 2 Pau Escrich
In a Debian based distributions (like Ubuntu), a set of packages are needed, you should install them:
8 6 Pau Escrich
9 6 Pau Escrich
<pre>
10 17 Jorge L. Florit
sudo aptitude install \
11 10 Simó Albert i Beltran
git subversion zlib1g-dev gawk flex unzip bzip2 gettext build-essential \
12 16 Simó Albert i Beltran
libncurses5-dev libncursesw5-dev binutils cpp psmisc docbook-to-man
13 1 Pau Escrich
</pre>
14 17 Jorge L. Florit
15 17 Jorge L. Florit
And if your machine is x86_64 you will need 32 bit development files.
16 17 Jorge L. Florit
In Debian/Ubuntu:
17 17 Jorge L. Florit
<pre>sudo aptitude install gcc-multilib</pre>
18 17 Jorge L. Florit
19 17 Jorge L. Florit
In CentOS/Fedora/RHEL the packets:
20 17 Jorge L. Florit
<pre>gcc.i686, libgcc.i686, and glibc-devel.i686</pre>
21 17 Jorge L. Florit
22 17 Jorge L. Florit
23 17 Jorge L. Florit
24 14 Pau Escrich
25 14 Pau Escrich
h3. Get the code and compile
26 1 Pau Escrich
27 15 Simó Albert i Beltran
* [Recomended] Get the qMp firmware generator using git: <pre>git clone git://qmp.cat/qmpfw.git qmpfw</pre>
28 1 Pau Escrich
29 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>
30 15 Simó Albert i Beltran
31 1 Pau Escrich
* Then enter to source directory: <pre>cd qmpfw</pre>
32 1 Pau Escrich
33 15 Simó Albert i Beltran
* [Advanced] Do a checkout specifying the branch: <pre>make .checkout_qmp QMP_GIT_BRANCH=branch_name</pre>
34 15 Simó Albert i Beltran
35 15 Simó Albert i Beltran
Example for testing branch: <pre>make .checkout_qmp QMP_GIT_BRANCH=testing</pre>
36 14 Pau Escrich
37 14 Pau Escrich
* And compile it specifying the target: <pre>make build T=alix</pre>
38 14 Pau Escrich
39 14 Pau Escrich
You can find available targets by executing: <pre>make list_targets</pre>
40 14 Pau Escrich
41 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>
42 14 Pau Escrich
43 14 Pau Escrich
After that, you will find the images ready to install in your devices inside directory images/