support/testing/infra/builder: configure and build with make target and environment
authorRicardo Martincoski <ricardo.martincoski@datacom.ind.br>
Mon, 28 Jan 2019 23:22:05 +0000 (18:22 -0500)
committerThomas Petazzoni <thomas.petazzoni@bootlin.com>
Tue, 29 Jan 2019 21:14:55 +0000 (22:14 +0100)
commit07bbf1b4dd1fc97e31950b5ba827af7807386179
treeca6f0db7c47f30c6368bdde6b3379cfc725e1b35
parentf33c3090fe167eefe151ea4ad39bf179ab4b5636
support/testing/infra/builder: configure and build with make target and environment

Make the builder able to call 'VAR1=1 make VAR2=2 target'.

Allow sending extra parameters to be added to the end of make command
line. Uses for these purposes:
 - to configure a br2-external, using the 'BR2_EXTERNAL="dir" variable.
 - to specify a make target, such as 'foo-source.'

Allow adding variables to the environment when calling make.
These added variables allow a user to override default values from BuildRoot,
such as 'BR2_DL_DIR="dl"'.

Signed-off-by: Ricardo Martincoski <ricardo.martincoski@datacom.ind.br>
Cc: Arnout Vandecappelle <arnout@mind.be>
Signed-off-by: Matt Weber <matthew.weber@rockwellcollins.com>
Signed-off-by: Daniel J. Leach <dleach@belcan.com>
Signed-off-by: Adam Duskett <Aduskett@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
support/testing/infra/builder.py