Skip to content

Makefile: add variable print capabilities

Émeric Vigier buildroot 1 version New

Get series with b4
b4 am 928152212.982383.1342736759185.JavaMail.root@mail.savoirfairelinux.com

Versions newest first

  1. v1 Latest0 of 1 patch 0 repliesNew

Patches in v1 No applies recorded yet

The patch the cover letter announces is not in this archive.

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [Buildroot] [PATCH 0/1] Makefile: add variable print capabilities

----- Mail original -----

Quoted 10 lines

Le Thu, 19 Jul 2012 15:01:17 -0400,
Emeric Vigier <[email protected]> a ?crit :

Quoted 7 lines

I just got started with buildroot yesterday, and like it :-). I am no Makefile expert, then often I turn into wanting to check Makefile variables.
This patch adds a capability to do so by issuing:

$ make print-<myvariable>
Quoted 7 lines
Quoted 4 lines

e.g.

$ make print-DL_DIR
DL_DIR = /home/evigier/buildroot/dl

Hum, is this really useful? What are the use cases? What do other thinks about this?

It is somehow similar to Android's "get_build_var" which is very useful to me.

$ get_build_var TARGET_OUT
out/target/product/panda/system

But maybe there are other convenient ways to retrieve those INKTV (I never know the value) variables without grepping or reading Makefile and included ones?

Quoted 8 lines

Thomas
--
Thomas Petazzoni, Free Electrons
Kernel, drivers, real-time and embedded Linux
development, consulting, training and support.
http://free-electrons.com

Signature · 1 line
Emeric