blob: 5b00536bef628b95b9f10442b1e338ff56eea6bb (
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
|
// -*- mode:doc -*- ;
[[make-tips]]
'make' tips
-----------
Because Buildroot is a set of Makefiles and patches, there are few
things useful to know, such as:
+make *config+ commands offer a search tool. Read the help message in
the different frontend menu to know how to use it:
* in _menuconfig_, search tool is called by pressing +/+;
* in _xconfig_, search tool is called by pressing +ctrl+ + +f+.
The result of the search show the help message of the matching items.
Display all command executed by make:
--------------------
$ make V=0|1 <target>
--------------------
Display all available targets:
--------------------
$ make help
--------------------
Note that some settings in the +.config+ file may hide some targets:
* +busybox-menuconfig+ depends on whether +busybox+ is enabled or not
in the +Package selection+ menu
* +linux-menuconfig+ and +linux-savedefconfig+ depend on whether
+linux+ is enabled or not
* +uclibc-menuconfig+ depends on whether the toolchain uses the
Buildroot internal toolchain backend or not
* +ctng-menuconfig+ depends on whether the toolchain uses the
crosstool-NG backend or not
* +barebox-menuconfig+ and +barebox-savedefconfig+ depend on whether
+barebox+ bootloader is enabled or not
Delete all build products (including build directories, host, staging
and target trees, the images and the toolchain):
--------------------
$ make clean
--------------------
Delete all build products as well as the configuration:
--------------------
$ make distclean
--------------------
Note that if +ccache+ is enabled, running +make clean|distclean+ does
not empty the cache of compiler used by Buildroot. To delete it, refer
to xref:ccache[].
|