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