Wiki » Historial » Versió 1
Pau Escrich, 07-10-2011 19:58
| 1 | 1 | Pau Escrich | h1. Qmpfw |
|---|---|---|---|
| 2 | |||
| 3 | |||
| 4 | |||
| 5 | Qmpfw is a tool for developers to create a development enviroment for qMp. |
||
| 6 | |||
| 7 | |||
| 8 | |||
| 9 | Basically it consists in one Makefile, so it is called using `make` command. |
||
| 10 | |||
| 11 | |||
| 12 | |||
| 13 | h3. Download the code |
||
| 14 | |||
| 15 | Read Only URL: |
||
| 16 | |||
| 17 | |||
| 18 | |||
| 19 | @http://qmp.cat/git/qmpfw.git@ |
||
| 20 | |||
| 21 | |||
| 22 | |||
| 23 | Developer URL: |
||
| 24 | |||
| 25 | |||
| 26 | |||
| 27 | @ssh://gitosis@qmp.cat:221/qmpfw.git@ |
||
| 28 | |||
| 29 | |||
| 30 | |||
| 31 | h3. Directory structure |
||
| 32 | |||
| 33 | |||
| 34 | |||
| 35 | There are several directories. This is the functionallity for each of them: |
||
| 36 | |||
| 37 | |||
| 38 | |||
| 39 | * build: here you will have all needed sources |
||
| 40 | |||
| 41 | |||
| 42 | |||
| 43 | ** build/configs: if you do some change in config file using `menuconfig` option, the new config is placed here (and also in destination target) |
||
| 44 | |||
| 45 | |||
| 46 | |||
| 47 | * dl: download folder for OpenWRT packages |
||
| 48 | |||
| 49 | |||
| 50 | |||
| 51 | * configs: config files for each kind of hardware. These are the default ones provided by qmpfw |
||
| 52 | |||
| 53 | |||
| 54 | |||
| 55 | h3. Command options |
||
| 56 | |||
| 57 | |||
| 58 | |||
| 59 | To compile a qMp image from scratch, you need to specify the target (next example with target=rspro): |
||
| 60 | |||
| 61 | This command will run all necessary commands to compile the image. After the compilation you can see the OpenWRT code in directory: build/[target] |
||
| 62 | |||
| 63 | * make T=rspro build |
||
| 64 | |||
| 65 | |||
| 66 | |||
| 67 | Also you can specify the number of parallel processes for compilation and the verbose level: |
||
| 68 | |||
| 69 | * make V=99 J=2 T=rspro build |
||
| 70 | |||
| 71 | |||
| 72 | |||
| 73 | To see list of avaiable targets run: |
||
| 74 | |||
| 75 | * make list_targets |
||
| 76 | |||
| 77 | |||
| 78 | |||
| 79 | To update targets (this will update qmp and eigennet feeds, not openwrt source): |
||
| 80 | |||
| 81 | |||
| 82 | |||
| 83 | |||
| 84 | |||
| 85 | This will update all targets |
||
| 86 | |||
| 87 | * make update |
||
| 88 | |||
| 89 | |||
| 90 | |||
| 91 | This will update only rspro target |
||
| 92 | |||
| 93 | * make T=rspro update |
||
| 94 | |||
| 95 | |||
| 96 | |||
| 97 | To run menuconfig (from openwrt): |
||
| 98 | |||
| 99 | * make T=rspro menuconfig |
||
| 100 | |||
| 101 | |||
| 102 | |||
| 103 | After that, the new config file will be applied to destination target and also it will by copied inside build/configs directory |
||
| 104 | |||
| 105 | |||
| 106 | |||
| 107 | To run kernel menuconfig (from openwrt): |
||
| 108 | |||
| 109 | * make T=rspro kernel_menuconfig |
||
| 110 | |||
| 111 | |||
| 112 | |||
| 113 | TODO: copy kernel config file in build/configs directory |
||
| 114 | |||
| 115 | |||
| 116 | |||
| 117 | To clean specific target: |
||
| 118 | |||
| 119 | * make T=rspro clean |
||
| 120 | |||
| 121 | |||
| 122 | |||
| 123 | To clean all targets: |
||
| 124 | |||
| 125 | * make clean |
||
| 126 | |||
| 127 | |||
| 128 | |||
| 129 | To configure some general parameters from qMp you can run: |
||
| 130 | |||
| 131 | * make config |
||
| 132 | |||
| 133 | |||
| 134 | |||
| 135 | TODO: This feature is missing |