blob: 1c8353d6156d744cc8d4c54f6bcb5434cbcca591 [file] [log] [blame]
Masahiro Yamadad3ae6782014-07-30 14:08:14 +09001menu "Sandbox architecture"
2 depends on SANDBOX
3
4config SYS_ARCH
Masahiro Yamadad3ae6782014-07-30 14:08:14 +09005 default "sandbox"
6
7config SYS_BOARD
Masahiro Yamadad3ae6782014-07-30 14:08:14 +09008 default "sandbox"
9
Tom Rini54975042016-04-18 13:57:42 -040010config SYS_CPU
11 default "sandbox"
12
Mario Six61efece2018-02-12 08:05:57 +010013config SANDBOX64
14 bool "Use 64-bit addresses"
15 select PHYS_64BIT
Michal Suchanek32bc4f22022-10-14 22:52:33 +020016 depends on HOST_64BIT
Mario Six61efece2018-02-12 08:05:57 +010017
Heinrich Schuchardtfff251e2020-06-07 18:47:35 +020018config SANDBOX_RAM_SIZE_MB
19 int "RAM size in MiB"
Heinrich Schuchardtd74a60a2022-04-30 07:55:53 +020020 default 256
Heinrich Schuchardtfff251e2020-06-07 18:47:35 +020021 range 64 4095 if !SANDBOX64
22 range 64 268435456 if SANDBOX64
23 help
Heinrich Schuchardtd74a60a2022-04-30 07:55:53 +020024 Memory size of the sandbox in MiB. The default value is 256 MiB.
Heinrich Schuchardtfff251e2020-06-07 18:47:35 +020025 The minimum value is 64 MiB. The maximum value is 4095 MiB for the
26 32bit sandbox.
27
Simon Glass9ca517d2016-07-04 11:57:54 -060028config SANDBOX_SPL
29 bool "Enable SPL for sandbox"
30 select SUPPORT_SPL
31
Simon Glassc86e6202022-04-30 00:56:54 -060032config SANDBOX_TPL
33 bool "Enable TPL for sandbox"
34 select SUPPORT_TPL
35
36config SANDBOX_VPL
37 bool "Enable VPL for sandbox"
38 select SUPPORT_VPL
39
Masahiro Yamadad3ae6782014-07-30 14:08:14 +090040config SYS_CONFIG_NAME
Simon Glass9ca517d2016-07-04 11:57:54 -060041 default "sandbox_spl" if SANDBOX_SPL
42 default "sandbox" if !SANDBOX_SPL
Masahiro Yamadad3ae6782014-07-30 14:08:14 +090043
Mario Six61efece2018-02-12 08:05:57 +010044config HOST_32BIT
Michal Suchanek32bc4f22022-10-14 22:52:33 +020045 def_bool ! $(cc-define,_LP64)
Bin Meng6bafd242017-08-01 16:33:33 -070046
Mario Six61efece2018-02-12 08:05:57 +010047config HOST_64BIT
Michal Suchanek32bc4f22022-10-14 22:52:33 +020048 def_bool $(cc-define,_LP64)
Bin Meng6bafd242017-08-01 16:33:33 -070049
Tom Riniea79bb72022-11-19 18:45:43 -050050config HOST_HAS_SDL
51 def_bool $(success,sdl2-config --version)
52
53config SANDBOX_SDL
54 bool "Enable SDL2 support in sandbox"
55 default HOST_HAS_SDL
56
Heinrich Schuchardt28eb5092020-11-12 00:29:56 +010057config SANDBOX_CRASH_RESET
58 bool "Reset on crash"
59 help
60 If an illegal instruction or an illegal memory access occurs, the
Heinrich Schuchardt8fb94302024-02-12 09:37:30 +010061 sandbox exits with an error by default.
62
63 If the u-boot binary is invoked with --signals (or -S), U-Boot will
64 handle the signal writing a crash dump before exiting.
65
66 If you additionally set the CONFIG_SANDBOX_CRASH_RESET flag, the
67 sandbox is reset after writing the crash dump. This may be useful
68 when running test suites like the UEFI self certification test which
69 continue with the next test after a crash.
Heinrich Schuchardt28eb5092020-11-12 00:29:56 +010070
Bin Mengf34b4de2017-08-01 16:33:34 -070071config SANDBOX_BITS_PER_LONG
72 int
Mario Six61efece2018-02-12 08:05:57 +010073 default 32 if HOST_32BIT
74 default 64 if HOST_64BIT
Bin Mengf34b4de2017-08-01 16:33:34 -070075
Simon Glass8af0b152021-11-24 09:26:41 -070076config SYS_FDT_LOAD_ADDR
77 hex "Address at which to load devicetree"
78 default 0x100
79 help
80 With sandbox the devicetree is loaded into the emulated RAM. This sets
81 the address that is used. There must be enough space at this address
82 to load the full devicetree without it overwriting anything else.
83
84 See `doc/arch/sandbox.rst` for more information.
85
Masahiro Yamadad3ae6782014-07-30 14:08:14 +090086endmenu
Sughosh Ganu77079e72022-10-21 18:16:05 +053087
88config FWU_NUM_BANKS
89 default 2
90
91config FWU_NUM_IMAGES_PER_BANK
92 default 2