include/rules.h: Add ENV_USER_SPACE definition
This lets code that run in userspace notify coreboot of that fact so things that can't run in userspace can be excluded. Signed-off-by: Martin Roth <martin@coreboot.org> Change-Id: I4da414bc96cfcf0464125eddc6b3f3a7b4506fcf Reviewed-on: https://review.coreboot.org/c/coreboot/+/43784 Reviewed-by: Julius Werner <jwerner@chromium.org> Reviewed-by: Felix Held <felix-coreboot@felixheld.de> Reviewed-by: Furquan Shaikh <furquan@google.com> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
This commit is contained in:
@ -267,6 +267,13 @@
|
||||
/* Currently rmodules, ramstage and smm have heap. */
|
||||
#define ENV_STAGE_HAS_HEAP_SECTION (ENV_RMODULE || ENV_RAMSTAGE || ENV_SMM)
|
||||
|
||||
/* Set USER_SPACE in the makefile for the rare code that runs in userspace */
|
||||
#if defined(__USER_SPACE__)
|
||||
#define ENV_USER_SPACE 1
|
||||
#else
|
||||
#define ENV_USER_SPACE 0
|
||||
#endif
|
||||
|
||||
/**
|
||||
* For pre-DRAM stages and post-CAR always build with simple device model, ie.
|
||||
* PCI, PNP and CPU functions operate without use of devicetree. The reason
|
||||
|
Reference in New Issue
Block a user