barebox: add custom version option

Add custom version option as used in the linux kernel.
This way we can easily specify newer and older version.
Remove the list of the older versions because is obsoleted
by the new custom version option that is more flexible.

Signed-off-by: Fabio Porcedda <fabio.porcedda@gmail.com>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
This commit is contained in:
Fabio Porcedda 2013-05-06 04:10:53 +00:00 committed by Peter Korsgaard
parent 0d2fbe9d75
commit 05d7edbedc

View File

@ -8,22 +8,17 @@ config BR2_TARGET_BAREBOX
if BR2_TARGET_BAREBOX if BR2_TARGET_BAREBOX
choice choice
prompt "version" prompt "version"
default BR2_TARGET_BAREBOX_2013_04
help help
Select the specific Barebox version you want to use Select the specific Barebox version you want to use
config BR2_TARGET_BAREBOX_2013_01 config BR2_TARGET_BAREBOX_LATEST_VERSION
bool "2013.01.0"
config BR2_TARGET_BAREBOX_2013_02
bool "2013.02.0"
config BR2_TARGET_BAREBOX_2013_03
bool "2013.03.0"
config BR2_TARGET_BAREBOX_2013_04
bool "2013.04.0" bool "2013.04.0"
config BR2_TARGET_BAREBOX_CUSTOM_VERSION
bool "Custom version"
help
This option allows to use a specific official versions
config BR2_TARGET_BAREBOX_CUSTOM_TARBALL config BR2_TARGET_BAREBOX_CUSTOM_TARBALL
bool "Custom tarball" bool "Custom tarball"
@ -32,6 +27,10 @@ config BR2_TARGET_BAREBOX_CUSTOM_GIT
endchoice endchoice
config BR2_TARGET_BAREBOX_CUSTOM_VERSION_VALUE
string "Barebox version"
depends on BR2_TARGET_BAREBOX_CUSTOM_VERSION
if BR2_TARGET_BAREBOX_CUSTOM_TARBALL if BR2_TARGET_BAREBOX_CUSTOM_TARBALL
config BR2_TARGET_BAREBOX_CUSTOM_TARBALL_LOCATION config BR2_TARGET_BAREBOX_CUSTOM_TARBALL_LOCATION
@ -41,10 +40,8 @@ endif
config BR2_TARGET_BAREBOX_VERSION config BR2_TARGET_BAREBOX_VERSION
string string
default "2013.01.0" if BR2_TARGET_BAREBOX_2013_01 default "2013.04.0" if BR2_TARGET_BAREBOX_LATEST_VERSION
default "2013.02.0" if BR2_TARGET_BAREBOX_2013_02 default $BR2_TARGET_BAREBOX_CUSTOM_VERSION_VALUE if BR2_TARGET_BAREBOX_CUSTOM_VERSION
default "2013.03.0" if BR2_TARGET_BAREBOX_2013_03
default "2013.04.0" if BR2_TARGET_BAREBOX_2013_04
default "custom" if BR2_TARGET_BAREBOX_CUSTOM_TARBALL default "custom" if BR2_TARGET_BAREBOX_CUSTOM_TARBALL
default $BR2_TARGET_BAREBOX_CUSTOM_GIT_VERSION if BR2_TARGET_BAREBOX_CUSTOM_GIT default $BR2_TARGET_BAREBOX_CUSTOM_GIT_VERSION if BR2_TARGET_BAREBOX_CUSTOM_GIT