xref: /OK3568_Linux_fs/buildroot/boot/at91bootstrap3/Config.in (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1config BR2_TARGET_AT91BOOTSTRAP3
2	bool "AT91 Bootstrap 3+"
3	depends on BR2_arm926t || BR2_cortex_a5 || BR2_cortex_a7
4	help
5	  AT91Bootstrap is a first level bootloader for the Atmel AT91
6	  devices. It integrates algorithms for:
7	  - Device initialization such as clock configuration, PIO
8	    settings...
9	  - Peripheral drivers such as PIO, PMC or SDRAMC...
10	  - Physical media algorithm such as DataFlash, NandFlash, NOR
11	    Flash...
12
13	  https://www.at91.com/linux4sam/bin/view/Linux4SAM/AT91Bootstrap
14
15if BR2_TARGET_AT91BOOTSTRAP3
16
17choice
18
19	prompt "AT91 Bootstrap 3+ version"
20
21config BR2_TARGET_AT91BOOTSTRAP3_LATEST_VERSION
22	bool "4.0.0"
23
24config BR2_TARGET_AT91BOOTSTRAP3_LATEST_VERSION_3X
25	bool "3.10.3"
26
27config BR2_TARGET_AT91BOOTSTRAP3_CUSTOM_GIT
28	bool "Custom Git repository"
29	help
30	  This option allows Buildroot to get the AT91 Bootstrap 3
31	  source code from a Git repository.
32
33config BR2_TARGET_AT91BOOTSTRAP3_CUSTOM_TARBALL
34	bool "Custom tarball"
35
36endchoice
37
38config BR2_TARGET_AT91BOOTSTRAP3_CUSTOM_TARBALL_LOCATION
39	string "URL of custom AT91Bootstrap tarball"
40	depends on BR2_TARGET_AT91BOOTSTRAP3_CUSTOM_TARBALL
41
42if BR2_TARGET_AT91BOOTSTRAP3_CUSTOM_GIT
43
44config BR2_TARGET_AT91BOOTSTRAP3_CUSTOM_REPO_URL
45	string "URL of custom repository"
46
47config BR2_TARGET_AT91BOOTSTRAP3_CUSTOM_REPO_VERSION
48	string "Custom repository version"
49	help
50	  Revision to use in the typical format used by Git
51	  E.G. a sha id, a tag, branch, ..
52
53endif
54
55config BR2_TARGET_AT91BOOTSTRAP3_VERSION
56	string
57	default "v4.0.0" if BR2_TARGET_AT91BOOTSTRAP3_LATEST_VERSION
58	default "v3.10.3" if BR2_TARGET_AT91BOOTSTRAP3_LATEST_VERSION_3X
59	default BR2_TARGET_AT91BOOTSTRAP3_CUSTOM_REPO_VERSION \
60		if BR2_TARGET_AT91BOOTSTRAP3_CUSTOM_GIT
61	default "custom"	if BR2_TARGET_AT91BOOTSTRAP3_CUSTOM_TARBALL
62
63config BR2_TARGET_AT91BOOTSTRAP3_CUSTOM_PATCH_DIR
64	string "custom patch dir"
65	help
66	  If your board requires custom patches, add the path to the
67	  directory containing the patches here. The patches must be
68	  named at91bootstrap3-<something>.patch.
69
70	  Most users may leave this empty
71
72#
73# Configuration selection
74#
75
76choice
77	prompt "AT91 Bootstrap 3 configuration"
78	default BR2_TARGET_AT91BOOTSTRAP3_USE_DEFCONFIG
79
80config BR2_TARGET_AT91BOOTSTRAP3_USE_DEFCONFIG
81	bool "Using a defconfig"
82
83config BR2_TARGET_AT91BOOTSTRAP3_USE_CUSTOM_CONFIG
84	bool "Using a custom config file"
85
86endchoice
87
88config BR2_TARGET_AT91BOOTSTRAP3_DEFCONFIG
89	string "Defconfig name"
90	depends on BR2_TARGET_AT91BOOTSTRAP3_USE_DEFCONFIG
91	help
92	  Name of the at91bootstrap3 defconfig file to use, without the
93	  trailing _defconfig.  The defconfig is located at
94	  board/<processor>/<board>_defconfig in the at91bootstrap3
95	  tree.
96
97config BR2_TARGET_AT91BOOTSTRAP3_CUSTOM_CONFIG_FILE
98	string "Configuration file path"
99	depends on BR2_TARGET_AT91BOOTSTRAP3_USE_CUSTOM_CONFIG
100	help
101	  Path to the at91bootstrap3 configuration file
102
103config BR2_TARGET_AT91BOOTSTRAP3_NEEDS_PYTHON3
104	bool "needs host-python3"
105	help
106	  Enable this option if the at91bootstrap build process needs
107	  Python 3.x to be available on the host. This is needed in
108	  some at91bootstrap configurations to use NAND/PMECC Python
109	  scripts.
110
111endif # BR2_TARGET_AT91BOOTSTRAP3
112