9
0
Fork 0
barebox/arch/arm/boards/pm9g45
Sascha Hauer 4d9734c8a2 defaultenv: add defaultenv-1 in boards via defaultenv_append_directory()
Currently it's hardcoded for each board which defaultenv version is
used. This is unfortunate since some people like the other defaultenv
version better and may want to select it.

This patch removes the board specific environment path
CONFIG_DEFAULT_ENVIRONMENT_PATH and instead adds it via:

	if (IS_ENABLED(CONFIG_DEFAULT_ENVIRONMENT_GENERIC))
		defaultenv_append_directory(defaultenv_<board>);

This way we can make sure that the defaultenv-1 board specific bits are
only compiled in when defaultenv-1 is actually in use.

The next step is to make the defaultenv version selection a user visible
choice.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2016-10-10 08:30:26 +02:00
..
defaultenv-pm9g45 defaultenv: add defaultenv-1 in boards via defaultenv_append_directory() 2016-10-10 08:30:26 +02:00
Makefile defaultenv: add defaultenv-1 in boards via defaultenv_append_directory() 2016-10-10 08:30:26 +02:00
init.c defaultenv: add defaultenv-1 in boards via defaultenv_append_directory() 2016-10-10 08:30:26 +02:00