xref: /OK3568_Linux_fs/buildroot/package/uboot-tools/Config.in.host (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593Smuzhiyunconfig BR2_PACKAGE_HOST_UBOOT_TOOLS
2*4882a593Smuzhiyun	bool "host u-boot tools"
3*4882a593Smuzhiyun	help
4*4882a593Smuzhiyun	  Companion tools for Das U-Boot bootloader.
5*4882a593Smuzhiyun
6*4882a593Smuzhiyun	  http://www.denx.de/wiki/U-Boot/WebHome
7*4882a593Smuzhiyun
8*4882a593Smuzhiyunif BR2_PACKAGE_HOST_UBOOT_TOOLS
9*4882a593Smuzhiyun
10*4882a593Smuzhiyunconfig BR2_PACKAGE_HOST_UBOOT_TOOLS_FIT_SUPPORT
11*4882a593Smuzhiyun	bool "Flattened Image Tree (FIT) support"
12*4882a593Smuzhiyun	select BR2_PACKAGE_HOST_DTC
13*4882a593Smuzhiyun	help
14*4882a593Smuzhiyun	  Enables support for Flattened Image Tree (FIT).
15*4882a593Smuzhiyun
16*4882a593Smuzhiyun	  This option allows to boot the new uImage structure,
17*4882a593Smuzhiyun	  Flattened Image Tree. FIT is formally a FDT, which can include
18*4882a593Smuzhiyun	  images of various types (kernel, FDT blob, ramdisk, etc.)
19*4882a593Smuzhiyun	  in a single blob. To boot this new uImage structure,
20*4882a593Smuzhiyun	  pass the address of the blob to the "bootm" command.
21*4882a593Smuzhiyun
22*4882a593Smuzhiyunif BR2_PACKAGE_HOST_UBOOT_TOOLS_FIT_SUPPORT
23*4882a593Smuzhiyun
24*4882a593Smuzhiyunconfig BR2_PACKAGE_HOST_UBOOT_TOOLS_FIT_SIGNATURE_SUPPORT
25*4882a593Smuzhiyun	bool "FIT signature verification support"
26*4882a593Smuzhiyun	help
27*4882a593Smuzhiyun	  Enables support for FIT Signature Verification.
28*4882a593Smuzhiyun
29*4882a593Smuzhiyun	  Flat Image Trees (FIT) supports hashing of images so that
30*4882a593Smuzhiyun	  these hashes can be checked on loading. This protects
31*4882a593Smuzhiyun	  against corruption of the image. However it does not prevent
32*4882a593Smuzhiyun	  the substitution of one image for another.
33*4882a593Smuzhiyun
34*4882a593Smuzhiyun	  The signature feature allows the hash to be signed with a
35*4882a593Smuzhiyun	  private key such that it can be verified using a public key
36*4882a593Smuzhiyun	  later. Provided that the private key is kept secret and the
37*4882a593Smuzhiyun	  public key is stored in a non-volatile place, any image can
38*4882a593Smuzhiyun	  be verified in this way.
39*4882a593Smuzhiyun
40*4882a593Smuzhiyunendif # BR2_PACKAGE_HOST_UBOOT_TOOLS_FIT_SUPPORT
41*4882a593Smuzhiyun
42*4882a593Smuzhiyunconfig BR2_PACKAGE_HOST_UBOOT_TOOLS_ENVIMAGE
43*4882a593Smuzhiyun	bool "Environment image"
44*4882a593Smuzhiyun	help
45*4882a593Smuzhiyun	  Generate a valid binary environment image from a text file
46*4882a593Smuzhiyun	  describing the key=value pairs of the environment.
47*4882a593Smuzhiyun
48*4882a593Smuzhiyun	  This option can be useful to build enviornment configurations
49*4882a593Smuzhiyun	  as part of a Linux / rootfs only defconfig instead of using
50*4882a593Smuzhiyun	  post scripts. This supports a hardware use case of a single
51*4882a593Smuzhiyun	  bootloader only defconfig but multiple Linux / rootfs
52*4882a593Smuzhiyun	  defconfigs with different boot environments.
53*4882a593Smuzhiyun
54*4882a593Smuzhiyun	  The environment image will be called uboot-env.bin.
55*4882a593Smuzhiyun
56*4882a593Smuzhiyunif BR2_PACKAGE_HOST_UBOOT_TOOLS_ENVIMAGE
57*4882a593Smuzhiyun
58*4882a593Smuzhiyunconfig BR2_PACKAGE_HOST_UBOOT_TOOLS_ENVIMAGE_SOURCE
59*4882a593Smuzhiyun	string "Source files for environment"
60*4882a593Smuzhiyun	default BR2_TARGET_UBOOT_ENVIMAGE_SOURCE if BR2_TARGET_UBOOT_ENVIMAGE_SOURCE != "" # legacy
61*4882a593Smuzhiyun	help
62*4882a593Smuzhiyun	  Text files describing the environment. Files should have
63*4882a593Smuzhiyun	  lines of the form var=value, one per line. Blank lines and
64*4882a593Smuzhiyun	  lines starting with a # are ignored.
65*4882a593Smuzhiyun
66*4882a593Smuzhiyun	  Multiple source files are concatenated in the order listed.
67*4882a593Smuzhiyun
68*4882a593Smuzhiyun	  Leave empty to generate image from compiled-in env if a U-boot
69*4882a593Smuzhiyun	  target build is configured (BR2_TARGET_UBOOT)
70*4882a593Smuzhiyun
71*4882a593Smuzhiyunconfig BR2_PACKAGE_HOST_UBOOT_TOOLS_ENVIMAGE_SIZE
72*4882a593Smuzhiyun	string "Size of environment"
73*4882a593Smuzhiyun	default BR2_TARGET_UBOOT_ENVIMAGE_SIZE if BR2_TARGET_UBOOT_ENVIMAGE_SIZE != "" # legacy
74*4882a593Smuzhiyun	help
75*4882a593Smuzhiyun	  Size of envronment, can be prefixed with 0x for hexadecimal
76*4882a593Smuzhiyun	  values.
77*4882a593Smuzhiyun
78*4882a593Smuzhiyunconfig BR2_PACKAGE_HOST_UBOOT_TOOLS_ENVIMAGE_REDUNDANT
79*4882a593Smuzhiyun	bool "Environment has two copies"
80*4882a593Smuzhiyun	help
81*4882a593Smuzhiyun	  Some platforms define in their U-Boot configuration that the
82*4882a593Smuzhiyun	  U-Boot environment should be duplicated in two locations (for
83*4882a593Smuzhiyun	  extra safety). Check your U-Boot configuration for the
84*4882a593Smuzhiyun	  CONFIG_ENV_ADDR_REDUND and CONFIG_ENV_SIZE_REDUND settings to
85*4882a593Smuzhiyun	  see if this is the case for your platform.
86*4882a593Smuzhiyun
87*4882a593Smuzhiyun	  If it is the case, then you should enable this option to
88*4882a593Smuzhiyun	  ensure that the U-Boot environment image generated by
89*4882a593Smuzhiyun	  Buildroot is compatible with the "redundant environment"
90*4882a593Smuzhiyun	  mechanism of U-Boot.
91*4882a593Smuzhiyun
92*4882a593Smuzhiyunendif # BR2_PACKAGE_HOST_UBOOT_TOOLS_ENVIMAGE
93*4882a593Smuzhiyun
94*4882a593Smuzhiyunconfig BR2_PACKAGE_HOST_UBOOT_TOOLS_BOOT_SCRIPT
95*4882a593Smuzhiyun	bool "Generate a U-Boot boot script"
96*4882a593Smuzhiyun	help
97*4882a593Smuzhiyun	  Generate a U-Boot boot script, given a file listing U-Boot
98*4882a593Smuzhiyun	  commands to be executed at boot time. The generated boot
99*4882a593Smuzhiyun	  script will be called 'boot.scr'.
100*4882a593Smuzhiyun
101*4882a593Smuzhiyunif BR2_PACKAGE_HOST_UBOOT_TOOLS_BOOT_SCRIPT
102*4882a593Smuzhiyun
103*4882a593Smuzhiyunconfig BR2_PACKAGE_HOST_UBOOT_TOOLS_BOOT_SCRIPT_SOURCE
104*4882a593Smuzhiyun	string "U-Boot boot script source"
105*4882a593Smuzhiyun	default BR2_TARGET_UBOOT_BOOT_SCRIPT_SOURCE if BR2_TARGET_UBOOT_BOOT_SCRIPT_SOURCE != "" # legacy
106*4882a593Smuzhiyun	help
107*4882a593Smuzhiyun	  Source file to generate the U-Boot boot script.
108*4882a593Smuzhiyun
109*4882a593Smuzhiyunendif # BR2_PACKAGE_HOST_UBOOT_TOOLS_BOOT_SCRIPT
110*4882a593Smuzhiyun
111*4882a593Smuzhiyunendif # BR2_PACKAGE_HOST_UBOOT_TOOLS
112