Environment » Historial » Versió 18
Jorge L. Florit, 29-10-2013 22:49
1 | 18 | Jorge L. Florit | http://qmp.cat/Development |
---|---|---|---|
2 | TO DO: mantain this page in the main site. Only tricks or hack articles recommended in the wiki. |
||
3 | |||
4 | |||
5 | |||
6 | 12 | Victor Oncins | h1. Development Environment |
7 | 1 | Pau Escrich | |
8 | 14 | Pau Escrich | h3. Get the needed software |
9 | |||
10 | 15 | Simó Albert i Beltran | First of all you should take a look on the system requirements: |
11 | |||
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 | <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 | And if your machine is x86_64 you will need 32 bit development files. |
||
21 | In Debian/Ubuntu: |
||
22 | <pre>sudo aptitude install gcc-multilib</pre> |
||
23 | |||
24 | In CentOS/Fedora/RHEL the packets: |
||
25 | <pre>gcc.i686, libgcc.i686, and glibc-devel.i686</pre> |
||
26 | |||
27 | |||
28 | |||
29 | 14 | Pau Escrich | |
30 | 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 | |||
36 | 1 | Pau Escrich | * Then enter to source directory: <pre>cd qmpfw</pre> |
37 | |||
38 | 15 | Simó Albert i Beltran | * [Advanced] Do a checkout specifying the branch: <pre>make .checkout_qmp QMP_GIT_BRANCH=branch_name</pre> |
39 | |||
40 | Example for testing branch: <pre>make .checkout_qmp QMP_GIT_BRANCH=testing</pre> |
||
41 | 14 | Pau Escrich | |
42 | * And compile it specifying the target: <pre>make build T=alix</pre> |
||
43 | |||
44 | You can find available targets by executing: <pre>make list_targets</pre> |
||
45 | |||
46 | If you have more than one core in your computer you can use J=N: <pre>make build T=alix J=4</pre> |
||
47 | |||
48 | After that, you will find the images ready to install in your devices inside directory images/ |