blob: 7cdbaefb119a9eff5794150ec97dc072b0122eff [file] [log] [blame]
Masahiro Yamadadd840582014-07-30 14:08:14 +09001menu "Sandbox architecture"
2 depends on SANDBOX
3
Tom Rini286a1592021-10-19 21:16:55 -04004config ARCH_MAP_SYSMEM
5 def_bool y
6
Masahiro Yamadadd840582014-07-30 14:08:14 +09007config SYS_ARCH
Masahiro Yamadadd840582014-07-30 14:08:14 +09008 default "sandbox"
9
10config SYS_BOARD
Masahiro Yamadadd840582014-07-30 14:08:14 +090011 default "sandbox"
12
Tom Rini0c4b3882016-04-18 13:57:42 -040013config SYS_CPU
14 default "sandbox"
15
Mario Sixc6b89f32018-02-12 08:05:57 +010016config SANDBOX64
17 bool "Use 64-bit addresses"
18 select PHYS_64BIT
19 select HOST_64BIT
20
Heinrich Schuchardte85497a2020-06-07 18:47:35 +020021config SANDBOX_RAM_SIZE_MB
22 int "RAM size in MiB"
23 default 128
24 range 64 4095 if !SANDBOX64
25 range 64 268435456 if SANDBOX64
26 help
27 Memory size of the sandbox in MiB. The default value is 128 MiB.
28 The minimum value is 64 MiB. The maximum value is 4095 MiB for the
29 32bit sandbox.
30
Simon Glass8797b2c2016-07-04 11:57:54 -060031config SANDBOX_SPL
32 bool "Enable SPL for sandbox"
33 select SUPPORT_SPL
34
Masahiro Yamadadd840582014-07-30 14:08:14 +090035config SYS_CONFIG_NAME
Simon Glass8797b2c2016-07-04 11:57:54 -060036 default "sandbox_spl" if SANDBOX_SPL
37 default "sandbox" if !SANDBOX_SPL
Masahiro Yamadadd840582014-07-30 14:08:14 +090038
Bin Meng98cff662017-08-01 16:33:33 -070039choice
40 prompt "Run sandbox on 32/64-bit host"
Mario Sixc6b89f32018-02-12 08:05:57 +010041 default HOST_64BIT
Bin Meng98cff662017-08-01 16:33:33 -070042 help
43 Sandbox can be built on 32-bit and 64-bit hosts.
44 The default is to build on a 64-bit host and run
45 on a 64-bit host. If you want to run sandbox on
46 a 32-bit host, change it here.
47
Mario Sixc6b89f32018-02-12 08:05:57 +010048config HOST_32BIT
Bin Meng98cff662017-08-01 16:33:33 -070049 bool "32-bit host"
Mario Sixc6b89f32018-02-12 08:05:57 +010050 depends on !PHYS_64BIT
Bin Meng98cff662017-08-01 16:33:33 -070051
Mario Sixc6b89f32018-02-12 08:05:57 +010052config HOST_64BIT
Bin Meng98cff662017-08-01 16:33:33 -070053 bool "64-bit host"
54
55endchoice
56
Heinrich Schuchardtb46f30a2020-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
61 sandbox by default writes a crash dump and exits. If you set this
62 flag, the sandbox is reset instead. This may be useful when running
63 test suites like the UEFI self certification test which continue
64 with the next test after a crash.
65
Bin Meng226b50b2017-08-01 16:33:34 -070066config SANDBOX_BITS_PER_LONG
67 int
Mario Sixc6b89f32018-02-12 08:05:57 +010068 default 32 if HOST_32BIT
69 default 64 if HOST_64BIT
Bin Meng226b50b2017-08-01 16:33:34 -070070
Simon Glass5ae25782021-11-24 09:26:41 -070071config SYS_FDT_LOAD_ADDR
72 hex "Address at which to load devicetree"
73 default 0x100
74 help
75 With sandbox the devicetree is loaded into the emulated RAM. This sets
76 the address that is used. There must be enough space at this address
77 to load the full devicetree without it overwriting anything else.
78
79 See `doc/arch/sandbox.rst` for more information.
80
Masahiro Yamadadd840582014-07-30 14:08:14 +090081endmenu