# Config.in.legacy - support for backward compatibility
# When an existing Config.in symbol is removed, it should be added again in
# this file, and take appropriate action to approximate backward compatibility.
# This will make the transition for the user more convenient.
# When adding legacy symbols to this file, add them to the front. The oldest
# symbols will be removed again after about two years.
# The symbol should be copied as-is from the place where it was previously
# defined, but the help text should be removed or replaced with something that
# explains how to fix it.
# For bool options, the old symbol should select BR2_LEGACY, so that the user
# is informed at build-time about selected legacy options.
# If there is an equivalent (set of) new symbols, these should be select'ed by
# the old symbol for backwards compatibility.
# It is not possible to select an option that is part of a choice. In that
# case, the new option should use the old symbol as default. This requires a
# change outside of Config.in.legacy, and this should be clearly marked as such
# in a comment, so that removal of legacy options also include the removal of
# these external references.
# [Example: renaming a bool option that is part of a choice from FOO to BAR]
# default BR2_BAR_1 if BR2_FOO_1 # legacy
# default BR2_BAR_2 if BR2_FOO_2 # legacy
# and in Config.in.legacy:
# bool "foobar 1 has been renamed"
# # Note: BR2_FOO_1 is still referenced from package/foo/Config.in
# bool "foobar 2 has been renamed"
# # Note: BR2_FOO_2 is still referenced from package/foo/Config.in
# For string options, it is not possible to directly select another symbol. In
# this case, a hidden wrap bool option has to be added, that defaults to y if
# the old string is not set at its default value. The wrap symbol should select
# If the original symbol has been renamed, the new symbol should use the value
# of the old symbol as default. Like for choice options, a comment should be
# added to flag that the symbol is still used in another file.
# [Example: renaming a string option from FOO to BAR]
# string "Some foo string"
# string "Some bar string"
# default BR2_FOO_STRING if BR2_FOO_STRING != "" # legacy
# and in Config.in.legacy:
# string "The foo string has been renamed"
# config BR2_FOO_STRING_WRAP
# default y if BR2_FOO_STRING != ""
# # Note: BR2_FOO_STRING is still referenced from package/foo/Config.in