2013-02-13 13:59:02 +01:00
|
|
|
// -*- mode:doc; -*-
|
|
|
|
// vim: set syntax=asciidoc:
|
2012-11-11 04:14:49 +01:00
|
|
|
|
|
|
|
[[make-tips]]
|
|
|
|
'make' tips
|
|
|
|
-----------
|
|
|
|
|
2012-11-27 12:59:16 +01:00
|
|
|
This is a collection of tips that help you make the most of Buildroot.
|
2012-11-11 04:14:49 +01:00
|
|
|
|
2012-11-27 12:59:16 +01:00
|
|
|
.Configuration searches:
|
|
|
|
|
|
|
|
The +make *config+ commands offer a search tool. Read the help message in
|
2012-11-16 05:54:19 +01:00
|
|
|
the different frontend menus to know how to use it:
|
2012-11-11 04:14:49 +01:00
|
|
|
|
2012-11-27 12:59:16 +01:00
|
|
|
* in _menuconfig_, the search tool is called by pressing +/+;
|
|
|
|
* in _xconfig_, the search tool is called by pressing +Ctrl+ + +f+.
|
2012-11-11 04:14:49 +01:00
|
|
|
|
2012-11-16 05:54:19 +01:00
|
|
|
The result of the search shows the help message of the matching items.
|
2012-11-11 04:14:49 +01:00
|
|
|
|
2012-11-27 12:59:16 +01:00
|
|
|
.Display all commands executed by make:
|
2012-11-11 04:14:49 +01:00
|
|
|
|
|
|
|
--------------------
|
2012-11-27 12:59:16 +01:00
|
|
|
$ make V=1 <target>
|
2012-11-11 04:14:49 +01:00
|
|
|
--------------------
|
|
|
|
|
2012-11-27 12:59:16 +01:00
|
|
|
.Display all available targets:
|
2012-11-11 04:14:49 +01:00
|
|
|
|
|
|
|
--------------------
|
|
|
|
$ make help
|
|
|
|
--------------------
|
|
|
|
|
2012-11-27 12:59:16 +01:00
|
|
|
.Not all targets are always available,
|
|
|
|
|
|
|
|
some settings in the +.config+ file may hide some targets:
|
|
|
|
|
|
|
|
* +linux-menuconfig+ and +linux-savedefconfig+ only work when
|
|
|
|
+linux+ is enabled;
|
|
|
|
* +uclibc-menuconfig+ is only available when the
|
|
|
|
Buildroot internal toolchain backend is used;
|
|
|
|
* +ctng-menuconfig+ is only available when the
|
|
|
|
crosstool-NG backend is used;
|
|
|
|
* +barebox-menuconfig+ and +barebox-savedefconfig+ only work when the
|
|
|
|
+barebox+ bootloader is enabled.
|
|
|
|
|
|
|
|
.Cleaning:
|
2012-11-11 04:14:49 +01:00
|
|
|
|
2012-11-27 12:59:16 +01:00
|
|
|
Explicit cleaning is required when any of the architecture or toolchain
|
|
|
|
configuration options are changed.
|
2012-11-11 04:14:49 +01:00
|
|
|
|
2012-11-27 12:59:16 +01:00
|
|
|
To delete all build products (including build directories, host, staging
|
2012-11-11 04:14:49 +01:00
|
|
|
and target trees, the images and the toolchain):
|
|
|
|
|
|
|
|
--------------------
|
|
|
|
$ make clean
|
|
|
|
--------------------
|
|
|
|
|
2012-11-27 12:59:16 +01:00
|
|
|
To delete all build products as well as the configuration:
|
2012-11-11 04:14:49 +01:00
|
|
|
|
|
|
|
--------------------
|
|
|
|
$ make distclean
|
|
|
|
--------------------
|
|
|
|
|
2012-11-27 12:59:16 +01:00
|
|
|
Note that if +ccache+ is enabled, running +make clean+ or +distclean+ does
|
2012-11-16 05:54:19 +01:00
|
|
|
not empty the compiler cache used by Buildroot. To delete it, refer
|
2012-11-11 04:14:49 +01:00
|
|
|
to xref:ccache[].
|