Projecte

General

Perfil

Qmpfw » Historial » Versió 1

Pau Escrich, 07-10-2011 13:48

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