From 6acc05ed310fcd81bea9288df8c4cb4471a8bbbe Mon Sep 17 00:00:00 2001 From: Arthur Heymans Date: Thu, 12 May 2022 18:01:13 +0200 Subject: 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 Reviewed-on: https://review.coreboot.org/c/coreboot/+/64296 Tested-by: build bot (Jenkins) Reviewed-by: Raul Rangel --- src/vendorcode/cavium/bdk/libbdk-hal/bdk-config.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/vendorcode') 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) -- cgit v1.2.3