only full-size u-boot env on gfrg240.
gfrg240 does not have multiple size u-boot environment partitions,
and we don't have the alternate size definitions.
Change-Id: I8b2ea9d5cf3a327f79c51da7988ca9b779af6061
diff --git a/drivers/qtn/bootcfg/bootcfg_drv.c b/drivers/qtn/bootcfg/bootcfg_drv.c
index 11dc14f8..3dd94ff 100644
--- a/drivers/qtn/bootcfg/bootcfg_drv.c
+++ b/drivers/qtn/bootcfg/bootcfg_drv.c
@@ -208,8 +208,12 @@
int ret;
u32 crc;
int32_t idx = 0;
- uint32_t env_size[] = {gBootCfgData.size, F64K_ENV_PARTITION_SIZE - sizeof(u32),
- BOOT_CFG_BASE_SIZE - sizeof(u32)};
+ uint32_t env_size[] = {gBootCfgData.size,
+#ifndef GFRG240
+ F64K_ENV_PARTITION_SIZE - sizeof(u32),
+ BOOT_CFG_BASE_SIZE - sizeof(u32)
+#endif /* ifndef GFRG240 */
+ };
ret = store_ops->read(store_ops, &gBootCfgData, gBootCfgData.size + sizeof(u32));
if (ret < 0 && ret != -ENODATA) {