Commit 16ceb81
committed
kconfig: Support a list of search paths
Projects such as Zephyr OS have a module system, where Kconfig files can
exist in multiple directories that are effectively merged together by the
build system. In other words, one project directory can refer to
subdir/Kconfig where subdir/ is actually in another project directory.
As an example:
zephyr/ - main source directory
Kconfig - main Kconfig file
module/ec - module directory
motion/ - motion subsystem
Kconfig - Kconfig file for motion subsystem
Wtih the above, we might have, in zephyr/Kconfig:
source "motion/Kconfig"
and it automatically locates the file in the module/ec directory.
Add support for this, by allowing a list of search paths to be supplied to
Kconfiglib.
Signed-off-by: Simon Glass <sjg@chromium.org>1 parent a3c60eb commit 16ceb81
1 file changed
+22
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
834 | 834 | | |
835 | 835 | | |
836 | 836 | | |
| 837 | + | |
837 | 838 | | |
838 | 839 | | |
839 | 840 | | |
| |||
865 | 866 | | |
866 | 867 | | |
867 | 868 | | |
868 | | - | |
| 869 | + | |
869 | 870 | | |
870 | 871 | | |
871 | 872 | | |
| |||
942 | 943 | | |
943 | 944 | | |
944 | 945 | | |
| 946 | + | |
| 947 | + | |
| 948 | + | |
| 949 | + | |
| 950 | + | |
| 951 | + | |
| 952 | + | |
| 953 | + | |
| 954 | + | |
| 955 | + | |
| 956 | + | |
| 957 | + | |
| 958 | + | |
| 959 | + | |
945 | 960 | | |
946 | 961 | | |
947 | | - | |
| 962 | + | |
948 | 963 | | |
949 | 964 | | |
950 | 965 | | |
| |||
956 | 971 | | |
957 | 972 | | |
958 | 973 | | |
959 | | - | |
| 974 | + | |
960 | 975 | | |
961 | 976 | | |
962 | 977 | | |
| |||
966 | 981 | | |
967 | 982 | | |
968 | 983 | | |
| 984 | + | |
969 | 985 | | |
970 | 986 | | |
971 | 987 | | |
| |||
2983 | 2999 | | |
2984 | 3000 | | |
2985 | 3001 | | |
| 3002 | + | |
| 3003 | + | |
| 3004 | + | |
2986 | 3005 | | |
2987 | 3006 | | |
2988 | 3007 | | |
| |||
0 commit comments