Qmpfw » Historial » Versió 5
Pau Escrich, 07-10-2011 13:51
1 | 1 | Pau Escrich | h1. Qmpfw |
---|---|---|---|
2 | |||
3 | Qmpfw is a tool for developers to create a development enviroment for qMp. |
||
4 | |||
5 | Basically it consists in one Makefile, so it is called using `make` command. |
||
6 | |||
7 | 2 | Pau Escrich | h3. Directory structure |
8 | |||
9 | 1 | Pau Escrich | There are several directories. This is the functionallity for each of them: |
10 | 5 | Pau Escrich | |
11 | 1 | Pau Escrich | * build: here you will have all needed sources |
12 | 5 | Pau Escrich | |
13 | 1 | Pau Escrich | ** build/configs: if you do some change in config file using `menuconfig` option, the new config is placed here (and also in destination target) |
14 | 5 | Pau Escrich | |
15 | 1 | Pau Escrich | * dl: download folder for OpenWRT packages |
16 | 5 | Pau Escrich | |
17 | 1 | Pau Escrich | * configs: config files for each kind of hardware. These are the default ones provided by qmpfw |
18 | |||
19 | 2 | Pau Escrich | h3. Command options |
20 | |||
21 | 1 | Pau Escrich | To compile a qMp image from scratch, you need to specify the target (next example with target=rspro): |
22 | This command will run all necessary commands to compile the image. After the compilation you can see the OpenWRT code in directory: build/[target] |
||
23 | 4 | Pau Escrich | * make T=rspro build |
24 | 3 | Pau Escrich | |
25 | 1 | Pau Escrich | Also you can specify the number of parallel processes for compilation and the verbose level: |
26 | * make V=99 J=2 T=rspro build |
||
27 | |||
28 | To see list of avaiable targets run: |
||
29 | * make list_targets |
||
30 | |||
31 | To update targets (this will update qmp and eigennet feeds, not openwrt source): |
||
32 | |||
33 | 4 | Pau Escrich | |
34 | 1 | Pau Escrich | This will update all targets |
35 | 4 | Pau Escrich | * make update |
36 | 3 | Pau Escrich | |
37 | This will update only rspro target |
||
38 | 4 | Pau Escrich | * make T=rspro update |
39 | 1 | Pau Escrich | |
40 | To run menuconfig (from openwrt): |
||
41 | * make T=rspro menuconfig |
||
42 | 4 | Pau Escrich | |
43 | 1 | Pau Escrich | After that, the new config file will be applied to destination target and also it will by copied inside build/configs directory |
44 | |||
45 | To run kernel menuconfig (from openwrt): |
||
46 | * make T=rspro kernel_menuconfig |
||
47 | 4 | Pau Escrich | |
48 | 1 | Pau Escrich | TODO: copy kernel config file in build/configs directory |
49 | |||
50 | To clean specific target: |
||
51 | * make T=rspro clean |
||
52 | |||
53 | To clean all targets: |
||
54 | * make clean |
||
55 | |||
56 | To configure some general parameters from qMp you can run: |
||
57 | * make config |
||
58 | 4 | Pau Escrich | |
59 | 1 | Pau Escrich | TODO: This feature is missing |
60 | |||
61 |