Commit 3174e4e812b77f9707b358927a5ddf24228c2ae8
Committed by
Tom Rini
1 parent
8d028d404f
Exists in
v2017.01-smarct4x
and in
37 other branches
kconfig: add CONFIG_SYS_{ARCH, CPU, ...} type def to arch/Kconfig
This commit adds the type definitions (+ help messages) of CONFIG_SYS_{ARCH, CPU, SOC, VENDOR, BOARD, CONFIG_NAME} to arch/Kconfig, which would save lots of type defs for taget boards. (See also the next commit.) Signed-off-by: Masahiro Yamada <yamada.m@jp.panasonic.com>
Showing 1 changed file with 56 additions and 0 deletions Side-by-side Diff
arch/Kconfig
... | ... | @@ -49,6 +49,62 @@ |
49 | 49 | |
50 | 50 | endchoice |
51 | 51 | |
52 | +config SYS_ARCH | |
53 | + string | |
54 | + help | |
55 | + This option should contain the architecture name to build the | |
56 | + appropriate arch/<CONFIG_SYS_ARCH> directory. | |
57 | + All the architectures should specify this option correctly. | |
58 | + | |
59 | +config SYS_CPU | |
60 | + string | |
61 | + help | |
62 | + This option should contain the CPU name to build the correct | |
63 | + arch/<CONFIG_SYS_ARCH>/cpu/<CONFIG_SYS_CPU> directory. | |
64 | + | |
65 | + This is optional. For those targets without the CPU directory, | |
66 | + leave this option empty. | |
67 | + | |
68 | +config SYS_SOC | |
69 | + string | |
70 | + help | |
71 | + This option should contain the SoC name to build the directory | |
72 | + arch/<CONFIG_SYS_ARCH>/cpu/<CONFIG_SYS_CPU>/<CONFIG_SYS_SOC>. | |
73 | + | |
74 | + This is optional. For those targets without the SoC directory, | |
75 | + leave this option empty. | |
76 | + | |
77 | +config SYS_VENDOR | |
78 | + string | |
79 | + help | |
80 | + This option should contain the vendor name of the target board. | |
81 | + If it is set and | |
82 | + board/<CONFIG_SYS_VENDOR>/common/Makefile exists, the vendor common | |
83 | + directory is compiled. | |
84 | + If CONFIG_SYS_BOARD is also set, the sources under | |
85 | + board/<CONFIG_SYS_VENDOR>/<CONFIG_SYS_BOARD> directory are compiled. | |
86 | + | |
87 | + This is optional. For those targets without the vendor directory, | |
88 | + leave this option empty. | |
89 | + | |
90 | +config SYS_BOARD | |
91 | + string | |
92 | + help | |
93 | + This option should contain the name of the target board. | |
94 | + If it is set, either board/<CONFIG_SYS_VENDOR>/<CONFIG_SYS_BOARD> | |
95 | + or board/<CONFIG_SYS_BOARD> directory is compiled depending on | |
96 | + whether CONFIG_SYS_VENDOR is set or not. | |
97 | + | |
98 | + This is optional. For those targets without the board directory, | |
99 | + leave this option empty. | |
100 | + | |
101 | +config SYS_CONFIG_NAME | |
102 | + string | |
103 | + help | |
104 | + This option should contain the base name of board header file. | |
105 | + The header file include/configs/<CONFIG_SYS_CONFIG_NAME>.h | |
106 | + should be included from include/config.h. | |
107 | + | |
52 | 108 | source "arch/arc/Kconfig" |
53 | 109 | source "arch/arm/Kconfig" |
54 | 110 | source "arch/avr32/Kconfig" |