Skip to content
Commit 3a72cc98 authored by Ulf Magnusson's avatar Ulf Magnusson Committed by Anas Nashif
Browse files

doc: genrest: Simplify select logic with split_expr()



The logic for walking reverse dependencies (from 'select's and 'imply's)
is a bit tricky to read (and write), and was essentially duplicated in a
few different spots (including in the upcoming menuconfig
implementation).

Use a new split_expr() helper function that's been added to Kconfiglib
to reduce code duplication and make the code more readable.

This also has another nice side effect: The list of symbols that select
a particular symbol now has the symbols in the order that they appear in
the Kconfig files.

Signed-off-by: default avatarUlf Magnusson <ulfalizer@gmail.com>
parent b742b62b
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment