sandbox: support forcing 32-bit x86
If gcc supports multiple architectures, barebox uses only the default
when compiling for ARCH=sandbox, this is e.g. the case with compilers
that generate both 32- and 64-bit x86 executables.

There can be good reasons to force 32-bit though, e.g. to reduce memory
consumption while fuzzing or to temporarily avoid 32-to-64-bit warnings,
while running the static analyzer. Add an option for this.

Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
1 parent 5e4dfd4 commit 54d47eb7e91274bb3edd8ac4b2e87db6d6f95c43
@Ahmad Fatoum Ahmad Fatoum authored on 2 Jun 2020
Sascha Hauer committed on 3 Jun 2020
Showing 3 changed files
View
arch/sandbox/Kconfig
View
arch/sandbox/Makefile
View
arch/sandbox/os/Makefile