summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMartin Roth <martin@coreboot.org>2020-07-23 18:27:58 -0600
committerFelix Held <felix-coreboot@felixheld.de>2020-07-27 21:00:23 +0000
commit44d5347ed17237e9df8f57557ca2709e9efae29a (patch)
tree7c18b6d14543fb242c8865b1b95fb42e34bda2cb /src
parentc508894faf031ed26657168d5ba4bbd22b4274d8 (diff)
downloadcoreboot-44d5347ed17237e9df8f57557ca2709e9efae29a.tar.xz
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>
Diffstat (limited to 'src')
-rw-r--r--src/include/rules.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/include/rules.h b/src/include/rules.h
index 2cc54e7942..be72e9ea06 100644
--- a/src/include/rules.h
+++ b/src/include/rules.h
@@ -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