summaryrefslogtreecommitdiffstats
path: root/platforms/u-boot.in
blob: 4ddf3b3fb02dd64c44c0bac64524af16e0d8d351 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
## SECTION=bootloader

menuconfig U_BOOT
	select BOOTLOADER
	prompt "U-Boot                        "
	bool

if U_BOOT

config U_BOOT_VERSION
	string
	default "2019.01"
	prompt "U-Boot version"
	help
	  Enter the U-Boot version you want to build. Usually something like
	  "2019.01".

config U_BOOT_MD5
	string
	prompt "U-Boot source md5"

choice
	prompt "config system"
	default U_BOOT_CONFIGSYSTEM_LEGACY

config U_BOOT_CONFIGSYSTEM_KCONFIG
	prompt "Kconfig"
	bool
	help
	  U-Boot from version 2014.10 uses Kconfig for configuring a target.
	  Use this if you want to configure U-Boot inside the BSP, e.g.
	  with menuconfig.
	  
	  NOTE: if you just want to use a defconfig, you can still use the
	  legacy config system by using the name of a defconfig file from
	  the "configs" folder as config target.

config U_BOOT_CONFIGSYSTEM_LEGACY
	prompt "legacy"
	bool
	help
	  Select this if you use an old U-Boot prior 2014.10 or want to use
	  a defconfig as config target.

endchoice

if U_BOOT_CONFIGSYSTEM_KCONFIG

config U_BOOT_CONFIGFILE_KCONFIG
	prompt "config file"
	string
	default "u-boot.config"
	help
	  This entry specifies the .config file used to compile U-Boot.

endif

if U_BOOT_CONFIGSYSTEM_LEGACY

config U_BOOT_CONFIG
	prompt "U-Boot config target"
	string
	help
	  The U-Boot make config target. Usually something like
	  "yourbox_config". Before U-Boot 2014.10 that was something from
	  the file "boards.cfg". With version 2014.10 U-Boot switched to
	  Kconfig based build and configuration, and from there you could
	  use some defconfig name as config target, e.g.
	  "yourbox_defconfig", where that name is a file from the folder
	  "configs".

endif

config U_BOOT_CUSTOM_MAKE_OPTS
	prompt "Custom make options"
	string
	help
	  List of custom make options passed at build time. Can be
	  used for example to pass a DEVICE_TREE= value.

choice
	prompt "Generate environment image"
	default U_BOOT_ENV_IMAGE_NONE
	help
	  U-Boot from version 2018.03 supports out-of-tree environment
	  image generation.

config U_BOOT_ENV_IMAGE_NONE
	prompt "none"
	bool
	help
	  Don't generate an U-Boot environment image.

config U_BOOT_ENV_IMAGE_DEFAULT
	prompt "default"
	bool
	help
	  Use U-Boot's mkenvimage to compile a default U-Boot environment
	  image for use in e.g. device manufacturing or development.

config U_BOOT_ENV_IMAGE_CUSTOM
	prompt "custom"
	bool
	help
	  Use U-Boot's mkenvimage to compile a custom U-Boot environment
	  image based on the text file in U_BOOT_ENV_IMAGE_CUSTOM_SOURCE
	  for use in e.g. device manufacturing or development.

endchoice

config U_BOOT_ENV_IMAGE_CUSTOM_SOURCE
	prompt "Custom environment source"
	string
	default "custom_env.config"
	depends on U_BOOT_ENV_IMAGE_CUSTOM
	help
	  Text file in platform config directory describing the custom
	  environment.
	  The file should have lines in the form var=value, one per line.
	  Blank lines and lines starting with a # are ignored.

if !U_BOOT_ENV_IMAGE_NONE

config U_BOOT_ENV_IMAGE_SIZE
	prompt "Environment image size"
	hex
	default 0x2000
	help
	  Enter the U-Boot environment size in hexadecimal for generation
	  of image. A wrong size will typically cause crc error when used.
	  Must match size defined in target config and "/etc/fw_env.config".

config U_BOOT_ENV_IMAGE_REDUNDANT
	prompt "Environment image with redundant copy"
	bool
	help
	  Use to generate a redundant environment in the image.
	  Must match target config and "/etc/fw_env.config".

endif

config U_BOOT_BOOT_SCRIPT
	prompt "Compile U-Boot boot script"
	bool
	help
	  Use U-Boot's mkimage to compile a U-Boot boot script and install it
	  into the rootfs

if U_BOOT_BOOT_SCRIPT

config U_BOOT_BOOT_SCRIPT_ROOTFS_PATH
	string
	default "/boot/boot.scr.uimg"
	prompt "Installation path"
	help
	  Target rootfs path where the U-Boot script should be located

endif

comment "target install"

config U_BOOT_INSTALL_SREC
	prompt "install u-boot.srec"
	bool
	help
	  Installing the U-Boot srec hexfile into platform image directory.

config U_BOOT_INSTALL_ELF
	prompt "install u-boot.elf"
	bool
	help
	  Installing the U-Boot ELF binary into platform image directory.

config U_BOOT_INSTALL_EFI_APPLICATION
	prompt "install u-boot-app.efi"
	bool
	help
	  Installing the U-Boot EFI application into platform image directory.

config U_BOOT_INSTALL_EFI_PAYLOAD
	prompt "install u-boot-payload.efi"
	bool
	help
	  Installing the U-Boot EFI payload into platform image directory.

config U_BOOT_INSTALL_SPL
	prompt "install SPL"
	bool
	help
	  Installing the U-Boot SPL (Secondary Program Loader) binary into
	  platform image directory.

config U_BOOT_INSTALL_MLO
	prompt "install MLO"
	bool
	depends on !X_LOAD
	help
	  Installing the U-Boot SPL ("MLO") binary needed for OMAP CPUs into platform
	  image directory.

if U_BOOT_INSTALL_MLO || U_BOOT_INSTALL_SPL

config U_BOOT_INSTALL_U_BOOT_IMG
	prompt "install u-boot.img"
	bool
	help
	  Installing the U-Boot image with header ("u-boot.img") which is executed
	  by U-Boot SPL into platform image directory.

endif

config U_BOOT_INSTALL_U_BOOT_IMX
	prompt "install u-boot.imx"
	bool
	help
	  Installing the U-Boot image with imx header (u-boot.imx) into platform 
	  image directory. Say yes if you are building for freescale i.MX SOCs
	  and are not using SPL.

config U_BOOT_INSTALL_U_BOOT_DTB_IMX
        prompt "install u-boot-dtb.imx"
        bool
        help
          Installing the U-Boot image with device tree support and imx header (u-boot-dtb.imx)
          into platform image directory. Say yes if you are building for freescale i.MX SOCs
          and are not using SPL.

config U_BOOT_INSTALL_U_BOOT_DTB
	prompt "install u-boot-dtb.bin"
	bool
	help
	  Installing the U-Boot binary concatenated with the device tree
	  into platform image directory.

config U_BOOT_INSTALL_U_BOOT_WITH_SPL_PBL
	prompt "install u-boot-with-spl-pbl.bin"
	bool
	help
	  Installing the U-Boot binary which contains as well the SPL and PBL.
	  Say yes if you are building for Layerscape SoCs

config U_BOOT_INSTALL_U_BOOT_STM32
	prompt "install u-boot.stm32"
	bool
	help
	  Installing the U-Boot image with stm32 header (u-boot.stm32) into
	  platform image directory. Say yes if you are building for STM32MP1
	  SOCs.

endif