blob: fe1c63d235018296c83b89ccff9bc65d1ddae564 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
|
# Autobuild script usage
## Generation
To be integrated in the Yocto build workflow you have to generate `autobuild`
scripts using _autobuild_ target.
To generate those scripts proceeds:
```bash
mkdir -p build
cd build
cmake .. && make autobuild
```
You should see _conf.d/autobuild/agl/autobuild_ file now.
## Available targets
Here are the available targets available from _autobuild_ scripts:
- **clean** : clean build directory from object file and targets results.
- **distclean** : delete build directory
- **configure** : generate project Makefile from CMakeLists.txt files.
- **build** : compile all project targets.
- **package** : build and output a wgt package.
You can specify variables that modify the behavior of compilation using
the following variables:
- **CONFIGURE_ARGS** : Variable used at **configure** time.
- **BUILD_ARGS** : Variable used at **build** time.
- **DEST** : Directory where to output ***wgt*** file.
Variable as to be in CMake format. (ie: BUILD_ARGS="-DC_FLAGS='-g -O2'")
Usage example:
```bash
./conf.d/autobuild/wgt/autobuild package DEST=/tmp
```
|