ron minnich has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/32709
Change subject: Define ENV_PAYLOAD_LOADER ......................................................................
Define ENV_PAYLOAD_LOADER
We've been assuming that ENV_RAMSTAGE is always the payload loader. In order to test out different models, we need a way to mark the "stage we are in" as the payload loader.
Define a new rule, ENV_PAYLOAD_LOADER. For now, it is set to ENV_RAMSTAGE. It is not used yet pending approval of this approach.
Change-Id: I7d4aa71bad92987374d57ff350b9b0178ee7c12b Signed-off-by: Ronald G. Minnich rminnich@gmail.com --- M src/include/rules.h 1 file changed, 10 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/09/32709/1
diff --git a/src/include/rules.h b/src/include/rules.h index ea8335f..9698765 100644 --- a/src/include/rules.h +++ b/src/include/rules.h @@ -24,6 +24,7 @@ #define ENV_BOOTBLOCK 0 #define ENV_ROMSTAGE 0 #define ENV_RAMSTAGE 0 +#define ENV_PAYLOAD_LOADER 0 #define ENV_SMM 0 #define ENV_VERSTAGE 0 #define ENV_RMODULE 0 @@ -36,6 +37,7 @@ #define ENV_BOOTBLOCK 1 #define ENV_ROMSTAGE 0 #define ENV_RAMSTAGE 0 +#define ENV_PAYLOAD_LOADER 0 #define ENV_SMM 0 #define ENV_VERSTAGE 0 #define ENV_RMODULE 0 @@ -48,6 +50,7 @@ #define ENV_BOOTBLOCK 0 #define ENV_ROMSTAGE 1 #define ENV_RAMSTAGE 0 +#define ENV_PAYLOAD_LOADER 0 #define ENV_SMM 0 #define ENV_VERSTAGE 0 #define ENV_RMODULE 0 @@ -60,6 +63,7 @@ #define ENV_BOOTBLOCK 0 #define ENV_ROMSTAGE 0 #define ENV_RAMSTAGE 0 +#define ENV_PAYLOAD_LOADER 0 #define ENV_SMM 1 #define ENV_VERSTAGE 0 #define ENV_RMODULE 0 @@ -72,6 +76,7 @@ #define ENV_BOOTBLOCK 0 #define ENV_ROMSTAGE 0 #define ENV_RAMSTAGE 0 +#define ENV_PAYLOAD_LOADER 0 #define ENV_SMM 0 #define ENV_VERSTAGE 1 #define ENV_RMODULE 0 @@ -84,6 +89,7 @@ #define ENV_BOOTBLOCK 0 #define ENV_ROMSTAGE 0 #define ENV_RAMSTAGE 1 +#define ENV_PAYLOAD_LOADER 1 #define ENV_SMM 0 #define ENV_VERSTAGE 0 #define ENV_RMODULE 0 @@ -96,6 +102,7 @@ #define ENV_BOOTBLOCK 0 #define ENV_ROMSTAGE 0 #define ENV_RAMSTAGE 0 +#define ENV_PAYLOAD_LOADER 0 #define ENV_SMM 0 #define ENV_VERSTAGE 0 #define ENV_RMODULE 1 @@ -108,6 +115,7 @@ #define ENV_BOOTBLOCK 0 #define ENV_ROMSTAGE 0 #define ENV_RAMSTAGE 0 +#define ENV_PAYLOAD_LOADER 0 #define ENV_SMM 0 #define ENV_VERSTAGE 0 #define ENV_RMODULE 0 @@ -120,6 +128,7 @@ #define ENV_BOOTBLOCK 0 #define ENV_ROMSTAGE 0 #define ENV_RAMSTAGE 0 +#define ENV_PAYLOAD_LOADER 0 #define ENV_SMM 0 #define ENV_VERSTAGE 0 #define ENV_RMODULE 0 @@ -136,6 +145,7 @@ #define ENV_BOOTBLOCK 0 #define ENV_ROMSTAGE 0 #define ENV_RAMSTAGE 0 +#define ENV_PAYLOAD_LOADER 0 #define ENV_SMM 0 #define ENV_VERSTAGE 0 #define ENV_RMODULE 0