Go to file
Yann E. MORIN 376fda8f99 core/printvars: allow dumping a set of variables
Dumping our 176164 variables can take quite some time (~12s here). What
takes the most time is sorting the variables (~9s), followed by the
parsing of our Makefiles (~3s), with the actual printing in the noise.

However, sometimes only one or a few variables are needed. For example,
one may want to retrieve the Linux build dir from a post-build hook (to
get the Linux' actual .config after our fixups and check for various
features).

Add the possibility to only dump the variables listed in $(VAR) which
must be passed as a make argument, like so:

    $ make -s printvars VARS="LINUX_DIR TOPDIR O"
    LINUX_DIR=/home/ymorin/dev/buildroot/O/build/linux-4.3 ($(BUILD_DIR)/$(LINUX_BASE_NAME))
    O=/home/ymorin/dev/buildroot/O/. (/home/ymorin/dev/buildroot/O/.)
    TOPDIR=/home/ymorin/dev/buildroot/buildroot (/home/ymorin/dev/buildroot/buildroot)

It is also possible to use make-appterns, like:

    $ make -s printvars VARS="BUSYBOX_%"

This is much faster (the time is just about the time it takes to parse
our Makefiles, 3s here) and easier to parse.

[Thomas: improve comment above the printvars target.]

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Cc: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
2015-11-29 19:04:53 +01:00
arch arch/arm: VFP and Thumb1 are not compatible 2015-11-03 23:50:01 +01:00
board board: readme.txt for Intel Galileo Gen 1/2 2015-11-18 21:55:38 +01:00
boot barebox: bump to version 2015.11.0 2015-11-12 22:21:22 +01:00
configs configs/riotboard: bump kernel to version 4.2.6 2015-11-24 22:23:07 +01:00
docs Update for 2015.11-rc1 2015-11-07 22:43:57 +01:00
fs fs/ext2: add options for extra space and extra inodes 2015-10-31 15:56:56 +01:00
linux linux: bump default version to 4.3 2015-11-02 20:56:43 +01:00
package spi-tools: new package 2015-11-29 15:53:25 +01:00
support support/download: fetch all refs on full git clone 2015-11-29 18:52:44 +01:00
system readline: install configuration file from package recipe 2015-11-17 22:19:15 +01:00
toolchain toolchain/external: fix gdbserver install with Linaro 2015.08 2015-11-05 23:21:38 +01:00
.defconfig arch: kill avr32 2015-02-14 17:39:50 +01:00
.gitignore update gitignore 2013-05-04 12:41:55 +02:00
CHANGES Update for 2015.11-rc1 2015-11-07 22:43:57 +01:00
Config.in pkg-download: support 'file://' in BR2_PRIMARY_SITE 2015-11-19 23:03:42 +01:00
Config.in.legacy infozip: rename to zip 2015-11-28 18:21:18 +01:00
COPYING clarify license and fix website license link 2009-05-08 09:29:41 +02:00
Makefile core/printvars: allow dumping a set of variables 2015-11-29 19:04:53 +01:00
Makefile.legacy Makefile.legacy: fix recursive invocation with BUILDROOT_DL_DIR and _CONFIG 2014-02-11 08:14:57 +01:00
README README: mention 'make list-defconfigs' 2015-04-04 15:19:43 +02:00

Buildroot is a simple, efficient and easy-to-use tool to generate embedded
Linux systems through cross-compilation.

The documentation can be found in docs/manual. You can generate a text
document with 'make manual-text' and read output/docs/manual/manual.text.
Online documentation can be found at http://buildroot.org/docs.html

To build and use the buildroot stuff, do the following:

1) run 'make menuconfig'
2) select the target architecture and the packages you wish to compile
3) run 'make'
4) wait while it compiles
5) find the kernel, bootloader, root filesystem, etc. in output/images

You do not need to be root to build or run buildroot.  Have fun!

Buildroot comes with a basic configuration for a number of boards. Run
'make list-defconfigs' to view the list of provided configurations.

Please feed suggestions, bug reports, insults, and bribes back to the
buildroot mailing list: buildroot@buildroot.org
You can also find us on #buildroot on Freenode IRC.