]> git.karo-electronics.de Git - karo-tx-uboot.git/blob - Kconfig
kconfig: Adjust ordering so that defaults work as expected
[karo-tx-uboot.git] / Kconfig
1 #
2 # For a description of the syntax of this configuration file,
3 # see Documentation/kbuild/kconfig-language.txt.
4 #
5 mainmenu "U-Boot $UBOOTVERSION Configuration"
6
7 config UBOOTVERSION
8         string
9         option env="UBOOTVERSION"
10
11 config KCONFIG_OBJDIR
12         string
13         option env="KCONFIG_OBJDIR"
14
15 # Allow defaults in arch-specific code to override any given here
16 source "arch/Kconfig"
17
18 menu "General setup"
19
20 config LOCALVERSION
21         string "Local version - append to U-Boot release"
22         depends on !SPL_BUILD
23         help
24           Append an extra string to the end of your U-Boot version.
25           This will show up on your boot log, for example.
26           The string you set here will be appended after the contents of
27           any files with a filename matching localversion* in your
28           object and source tree, in that order.  Your total string can
29           be a maximum of 64 characters.
30
31 config LOCALVERSION_AUTO
32         bool "Automatically append version information to the version string"
33         depends on !SPL_BUILD
34         default y
35         help
36           This will try to automatically determine if the current tree is a
37           release tree by looking for git tags that belong to the current
38           top of tree revision.
39
40           A string of the format -gxxxxxxxx will be added to the localversion
41           if a git-based tree is found.  The string generated by this will be
42           appended after any matching localversion* files, and after the value
43           set in CONFIG_LOCALVERSION.
44
45           (The actual string used here is the first eight characters produced
46           by running the command:
47
48             $ git rev-parse --verify HEAD
49
50           which is done within the script "scripts/setlocalversion".)
51
52 config CC_OPTIMIZE_FOR_SIZE
53         bool "Optimize for size"
54         depends on !SPL_BUILD
55         default y
56         help
57           Enabling this option will pass "-Os" instead of "-O2" to gcc
58           resulting in a smaller U-Boot image.
59
60           This option is enabled by default for U-Boot.
61
62 config SYS_MALLOC_F
63         bool "Enable malloc() pool before relocation"
64         default 0x400
65         help
66           Before relocation memory is very limited on many platforms. Still,
67           we can provide a small malloc() pool if needed. Driver model in
68           particular needs this to operate, so that it can allocate the
69           initial serial device and any others that are needed.
70
71 config SYS_MALLOC_F_LEN
72         hex "Size of malloc() pool before relocation"
73         depends on SYS_MALLOC_F
74         default 0x400
75         help
76           Before relocation memory is very limited on many platforms. Still,
77           we can provide a small malloc() pool if needed. Driver model in
78           particular needs this to operate, so that it can allocate the
79           initial serial device and any others that are needed.
80
81 menuconfig EXPERT
82         bool "Configure standard U-Boot features (expert users)"
83         help
84           This option allows certain base U-Boot options and settings
85           to be disabled or tweaked. This is for specialized
86           environments which can tolerate a "non-standard" U-Boot.
87           Only use this if you really know what you are doing.
88
89 endmenu         # General setup
90
91 menu "Boot images"
92
93 config SPL_BUILD
94         bool
95         default y if $KCONFIG_OBJDIR="spl" || $KCONFIG_OBJDIR="tpl"
96
97 config TPL_BUILD
98         bool
99         depends on $KCONFIG_OBJDIR="tpl"
100         default y
101
102 config SUPPORT_SPL
103         bool
104
105 config SUPPORT_TPL
106         bool
107
108 config SPL
109         bool
110         depends on SUPPORT_SPL
111         prompt "Enable SPL" if !SPL_BUILD
112         default y if SPL_BUILD
113         help
114           If you want to build SPL as well as the normal image, say Y.
115
116 config TPL
117         bool
118         depends on SPL && SUPPORT_TPL
119         prompt "Enable TPL" if !SPL_BUILD
120         default y if TPL_BUILD
121         default n
122         help
123           If you want to build TPL as well as the normal image and SPL, say Y.
124
125 config FIT
126         bool "Support Flattened Image Tree"
127         depends on !SPL_BUILD
128         help
129           This option allows to boot the new uImage structrure,
130           Flattened Image Tree.  FIT is formally a FDT, which can include
131           images of various types (kernel, FDT blob, ramdisk, etc.)
132           in a single blob.  To boot this new uImage structure,
133           pass the the address of the blob to the "bootm" command.
134
135 config FIT_VERBOSE
136         bool "Display verbose messages on FIT boot"
137         depends on FIT
138
139 config FIT_SIGNATURE
140         bool "Enable signature verification of FIT uImages"
141         depends on FIT
142         depends on DM
143         select RSA
144         help
145           This option enables signature verification of FIT uImages,
146           using a hash signed and verified using RSA.
147           See doc/uImage.FIT/signature.txt for more details.
148
149 config SYS_EXTRA_OPTIONS
150         string "Extra Options (DEPRECATED)"
151         depends on !SPL_BUILD
152         help
153           The old configuration infrastructure (= mkconfig + boards.cfg)
154           provided the extra options field. If you have something like
155           "HAS_BAR,BAZ=64", the optional options
156             #define CONFIG_HAS
157             #define CONFIG_BAZ  64
158           will be defined in include/config.h.
159           This option was prepared for the smooth migration from the old
160           configuration to Kconfig. Since this option will be removed sometime,
161           new boards should not use this option.
162
163 config SYS_TEXT_BASE
164         depends on SPARC || ARC
165         hex "Text Base"
166         help
167           TODO: Move CONFIG_SYS_TEXT_BASE for all the architecture
168
169 config SYS_CLK_FREQ
170         depends on ARC
171         int "CPU clock frequency"
172         help
173           TODO: Move CONFIG_SYS_CLK_FREQ for all the architecture
174
175 endmenu         # Boot images
176
177 source "common/Kconfig"
178
179 source "disk/Kconfig"
180
181 source "dts/Kconfig"
182
183 source "net/Kconfig"
184
185 source "drivers/Kconfig"
186
187 source "fs/Kconfig"
188
189 source "lib/Kconfig"
190
191 source "test/Kconfig"