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