barebox: add an option to embed environment image
authorYegor Yefremov <yegorslists@googlemail.com>
Fri, 6 May 2016 05:46:04 +0000 (07:46 +0200)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Fri, 6 May 2016 13:48:01 +0000 (15:48 +0200)
commitf80735ce39165762f33e06d2a54c1d1db5206e12
tree88c3906c0fe4fd8ab89c18ce73ad95ba71adba2c
parent1cc99eb33ea7ebed9052d6e4f848d7fe5e3ed74f
barebox: add an option to embed environment image

Barebox provides an option to embed a custom environment image into
barebox binary. This image will be used, when the environment found in
the environment sector is invalid. Both embedded and external images
can be used together, so having both options at the same time is
justified.

This patch sets barebox Kconfig option CONFIG_DEFAULT_ENVIRONMENT_PATH
to user specified path. This way one can use such BR's variables like
BR2_EXTERNAL, TOPDIR etc. to provide paths to custom environment
folders.

Cc: Pieter Smith <pieter@boesman.nl>
Signed-off-by: Yegor Yefremov <yegorslists@googlemail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
boot/barebox/barebox-aux/Config.in
boot/barebox/barebox.mk
boot/barebox/barebox/Config.in