summaryrefslogtreecommitdiffstats
path: root/rules/tf-a.in
blob: 3cddf79079600b837cf01ad65428712c7d02b8d8 (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
## SECTION=bootloader

menuconfig TF_A
	select BOOTLOADER
	prompt "ARM Trusted Firmware-A        "
	depends on ARCH_ARM || ARCH_ARM64
	bool

if TF_A

config TF_A_VERSION
	string
	default "v2.2"
	prompt "TF-A version"
	help
	  Enter the TF-A git commit-ish you want to build. Usually a tagged
	  release like "v2.2"

config TF_A_MD5
	string
	default "bb300e5a62c911e189c80d935d497a4b"
	prompt "TF-A source md5"

config TF_A_ARCH_STRING
        string
        default "aarch32" if ARCH_ARM
        default "aarch64" if ARCH_ARM64

choice
	prompt "TF-A Architecture"
	default TF_A_ARM_ARCH_MAJOR_7 if ARCH_ARM
	default TF_A_ARM_ARCH_MAJOR_8 if ARCH_ARM64
	help
	  Architecture version major number

	config TF_A_ARM_ARCH_MAJOR_7
		depends on ARCH_ARM
		prompt "ARMv7"
		bool

	config TF_A_ARM_ARCH_MAJOR_8_32_BIT
		depends on ARCH_ARM
		prompt "ARMv8 32-bit"
		bool

	config TF_A_ARM_ARCH_MAJOR_8
		depends on ARCH_ARM64
		prompt "ARMv8"
		bool

endchoice

config TF_A_ARM_ARCH_MAJOR
        int
        default 7 if TF_A_ARM_ARCH_MAJOR_7
        default 8 if TF_A_ARM_ARCH_MAJOR_8_32_BIT
        default 8 if TF_A_ARM_ARCH_MAJOR_8


config TF_A_PLATFORM
	string
	prompt "TF-A target platform"
	help
	  The TF-A target platform.

config TF_A_ARM_ARCH_MINOR
	depends on TF_A_ARM_ARCH_MAJOR_8 || TF_A_ARM_ARCH_MAJOR_8_32_BIT
	int
	default 0
	prompt "TF-A target ARMv8.MINOR version"
	help
	  The minor version of the ARMv8 architecture targeted. Defaults to 0.

config TF_A_EXTRA_ARGS
	string
	prompt "TF-A extra build arguments"
	help
	  Extra platform-specific build arguments to pass to the TF-A build
	  process, e.g. DTB_FILE_NAME= for the stm32mp1

config TF_A_ARTIFACTS
	string
	prompt "TF-A artifact file names"
	help
	  A space-separated list of glob patterns of artifacts to copy from the
	  build directory.
	  All file names are relative to the appropriate TF-A platform build
	  directory.

comment "Payloads"

choice
	prompt "BL32 Payload"
	default TF_A_BL32_NONE
	help
	  payload for BL32 (Secure World OS)

	config TF_A_BL32_NONE
		prompt "None"
		bool

	config TF_A_BL32_SP_MIN
		depends on ARCH_ARM
		prompt "sp_min"
		bool

	config TF_A_BL32_TSP
		depends on ARCH_ARM64
		prompt "Test Secure Payload"
		bool

endchoice

if TF_A_BL32_TSP
choice TF_A_BL32_TSP_RAM_LOCATION
	prompt "TSP location"
	default TF_A_BL32_TSP_RAM_LOCATION_TSRAM

	config TF_A_BL32_TSP_RAM_LOCATION_TSRAM
		prompt "Trusted SRAM"
		bool

	config TF_A_BL32_TSP_RAM_LOCATION_TDRAM
		prompt "Trusted DRAM (if available)"
		bool

	config TF_A_BL32_TSP_RAM_LOCATION_DRAM
		prompt "Secure DRAM region (configured by TrustZone controller)"
		bool
endchoice

config TF_A_BL32_TSP_RAM_LOCATION_STRING
        string
        default "tsram" if TF_A_BL32_TSP_RAM_LOCATION_TSRAM
        default "tdram" if TF_A_BL32_TSP_RAM_LOCATION_TDRAM
        default "dram"  if TF_A_BL32_TSP_RAM_LOCATION_DRAM

endif

endif