blob: 477c51960da2cad2ffe349312cdd34e628b2547e [file] [log] [blame]
Masahiro Yamadadd840582014-07-30 14:08:14 +09001menu "Sandbox architecture"
2 depends on SANDBOX
3
4config SYS_ARCH
Masahiro Yamadadd840582014-07-30 14:08:14 +09005 default "sandbox"
6
7config SYS_BOARD
Masahiro Yamadadd840582014-07-30 14:08:14 +09008 default "sandbox"
9
Tom Rini0c4b3882016-04-18 13:57:42 -040010config SYS_CPU
11 default "sandbox"
12
Mario Sixc6b89f32018-02-12 08:05:57 +010013config SANDBOX64
14 bool "Use 64-bit addresses"
15 select PHYS_64BIT
16 select HOST_64BIT
17
Heinrich Schuchardte85497a2020-06-07 18:47:35 +020018config SANDBOX_RAM_SIZE_MB
19 int "RAM size in MiB"
20 default 128
21 range 64 4095 if !SANDBOX64
22 range 64 268435456 if SANDBOX64
23 help
24 Memory size of the sandbox in MiB. The default value is 128 MiB.
25 The minimum value is 64 MiB. The maximum value is 4095 MiB for the
26 32bit sandbox.
27
Simon Glass8797b2c2016-07-04 11:57:54 -060028config SANDBOX_SPL
29 bool "Enable SPL for sandbox"
30 select SUPPORT_SPL
31
Masahiro Yamadadd840582014-07-30 14:08:14 +090032config SYS_CONFIG_NAME
Simon Glass8797b2c2016-07-04 11:57:54 -060033 default "sandbox_spl" if SANDBOX_SPL
34 default "sandbox" if !SANDBOX_SPL
Masahiro Yamadadd840582014-07-30 14:08:14 +090035
Bin Meng98cff662017-08-01 16:33:33 -070036choice
37 prompt "Run sandbox on 32/64-bit host"
Mario Sixc6b89f32018-02-12 08:05:57 +010038 default HOST_64BIT
Bin Meng98cff662017-08-01 16:33:33 -070039 help
40 Sandbox can be built on 32-bit and 64-bit hosts.
41 The default is to build on a 64-bit host and run
42 on a 64-bit host. If you want to run sandbox on
43 a 32-bit host, change it here.
44
Mario Sixc6b89f32018-02-12 08:05:57 +010045config HOST_32BIT
Bin Meng98cff662017-08-01 16:33:33 -070046 bool "32-bit host"
Mario Sixc6b89f32018-02-12 08:05:57 +010047 depends on !PHYS_64BIT
Bin Meng98cff662017-08-01 16:33:33 -070048
Mario Sixc6b89f32018-02-12 08:05:57 +010049config HOST_64BIT
Bin Meng98cff662017-08-01 16:33:33 -070050 bool "64-bit host"
51
52endchoice
53
Heinrich Schuchardtb46f30a2020-11-12 00:29:56 +010054config SANDBOX_CRASH_RESET
55 bool "Reset on crash"
56 help
57 If an illegal instruction or an illegal memory access occurs, the
58 sandbox by default writes a crash dump and exits. If you set this
59 flag, the sandbox is reset instead. This may be useful when running
60 test suites like the UEFI self certification test which continue
61 with the next test after a crash.
62
Bin Meng226b50b2017-08-01 16:33:34 -070063config SANDBOX_BITS_PER_LONG
64 int
Mario Sixc6b89f32018-02-12 08:05:57 +010065 default 32 if HOST_32BIT
66 default 64 if HOST_64BIT
Bin Meng226b50b2017-08-01 16:33:34 -070067
Simon Glass5ae25782021-11-24 09:26:41 -070068config SYS_FDT_LOAD_ADDR
69 hex "Address at which to load devicetree"
70 default 0x100
71 help
72 With sandbox the devicetree is loaded into the emulated RAM. This sets
73 the address that is used. There must be enough space at this address
74 to load the full devicetree without it overwriting anything else.
75
76 See `doc/arch/sandbox.rst` for more information.
77
Masahiro Yamadadd840582014-07-30 14:08:14 +090078endmenu