summaryrefslogtreecommitdiff
path: root/src/vendorcode/cavium
diff options
context:
space:
mode:
authorArthur Heymans <arthur@aheymans.xyz>2022-05-12 18:01:13 +0200
committerJulius Werner <jwerner@chromium.org>2022-05-16 21:52:22 +0000
commit6acc05ed310fcd81bea9288df8c4cb4471a8bbbe (patch)
treed5a360b1cb9d34d75ac279ce18e474cc64bbc9c4 /src/vendorcode/cavium
parent94223c41657fa604ff75ce2790504765c8a04713 (diff)
rules.h: Use more consistent naming
Use 'ENV' consistently and drop the redundant 'STAGE' in the naming. Change-Id: I51f2a7e70eefad12aa214e92f23e5fd2edf46698 Signed-off-by: Arthur Heymans <arthur@aheymans.xyz> Reviewed-on: https://review.coreboot.org/c/coreboot/+/64296 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Raul Rangel <rrangel@chromium.org>
Diffstat (limited to 'src/vendorcode/cavium')
-rw-r--r--src/vendorcode/cavium/bdk/libbdk-hal/bdk-config.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/vendorcode/cavium/bdk/libbdk-hal/bdk-config.c b/src/vendorcode/cavium/bdk/libbdk-hal/bdk-config.c
index 630403d44c..eec44434a5 100644
--- a/src/vendorcode/cavium/bdk/libbdk-hal/bdk-config.c
+++ b/src/vendorcode/cavium/bdk/libbdk-hal/bdk-config.c
@@ -47,7 +47,7 @@ static struct bdk_devicetree_key_value *bdk_config_duplicate(
*/
int bdk_config_set_fdt(const struct bdk_devicetree_key_value *fdt)
{
- if (ENV_STAGE_HAS_HEAP_SECTION)
+ if (ENV_HAS_HEAP_SECTION)
config_fdt = bdk_config_duplicate(fdt, 0);
else
config_fdt = (void *)fdt;
@@ -203,7 +203,7 @@ void bdk_config_set_int(int64_t value, bdk_config_t cfg_item, ...)
/* Make sure the correct access function was called */
assert(config_info[cfg_item].ctype == BDK_CONFIG_TYPE_INT);
- if (!ENV_STAGE_HAS_HEAP_SECTION)
+ if (!ENV_HAS_HEAP_SECTION)
return;
if (!config_fdt)