1# 2# Creates a list of all options for the port in the current location. 3# 4# The BSDA_GROUPS format is as follows: 5# ${group}|${options} 6# 7# The options are a comma seperated list. 8# 9# The BSDA_OPTIONS format is as follows: 10# ${group}|${opt}|${${opt}_IMPLIES}|${${opt}_PREVENTS} 11# 12# ${opt}_IMPLIES and ${opt}_PREVENTS are comma seperated lists of options. 13# 14 15.include "Makefile" 16 17.for _grp in OPTIONS_DEFINE \ 18 ${OPTIONS_SINGLE:S,^,OPTIONS_SINGLE_,} \ 19 ${OPTIONS_RADIO:S,^,OPTIONS_RADIO_,} \ 20 ${OPTIONS_MULTI:S,^,OPTIONS_MULTI_,} \ 21 ${OPTIONS_GROUP:S,^,OPTIONS_GROUP_,} 22.if ! empty(${_grp}) 23BSDA_GROUPS+= ${_grp}|${${_grp}:ts,} 24.endif 25.for _opt in ${${_grp}} 26BSDA_OPTIONS+= ${_grp}|${_opt}|${${_opt}_IMPLIES:ts,}|${${_opt}_PREVENTS:ts,} 27.endfor 28.endfor 29