coreboot: Replace all IS_ENABLED(CONFIG_XXX) with CONFIG(XXX)
This patch is a raw application of find src/ -type f | xargs sed -i -e 's/IS_ENABLED\s*(CONFIG_/CONFIG(/g' Change-Id: I6262d6d5c23cabe23c242b4f38d446b74fe16b88 Signed-off-by: Julius Werner <jwerner@chromium.org> Reviewed-on: https://review.coreboot.org/c/coreboot/+/31774 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Patrick Georgi <pgeorgi@google.com>
This commit is contained in:
committed by
Patrick Georgi
parent
b3a8cc54db
commit
cd49cce7b7
@@ -91,11 +91,11 @@ void regen_vbnv_crc(uint8_t *vbnv_copy)
|
||||
*/
|
||||
void read_vbnv(uint8_t *vbnv_copy)
|
||||
{
|
||||
if (IS_ENABLED(CONFIG_VBOOT_VBNV_CMOS))
|
||||
if (CONFIG(VBOOT_VBNV_CMOS))
|
||||
read_vbnv_cmos(vbnv_copy);
|
||||
else if (IS_ENABLED(CONFIG_VBOOT_VBNV_EC))
|
||||
else if (CONFIG(VBOOT_VBNV_EC))
|
||||
read_vbnv_ec(vbnv_copy);
|
||||
else if (IS_ENABLED(CONFIG_VBOOT_VBNV_FLASH))
|
||||
else if (CONFIG(VBOOT_VBNV_FLASH))
|
||||
read_vbnv_flash(vbnv_copy);
|
||||
|
||||
/* Check data for consistency */
|
||||
@@ -109,11 +109,11 @@ void read_vbnv(uint8_t *vbnv_copy)
|
||||
*/
|
||||
void save_vbnv(const uint8_t *vbnv_copy)
|
||||
{
|
||||
if (IS_ENABLED(CONFIG_VBOOT_VBNV_CMOS))
|
||||
if (CONFIG(VBOOT_VBNV_CMOS))
|
||||
save_vbnv_cmos(vbnv_copy);
|
||||
else if (IS_ENABLED(CONFIG_VBOOT_VBNV_EC))
|
||||
else if (CONFIG(VBOOT_VBNV_EC))
|
||||
save_vbnv_ec(vbnv_copy);
|
||||
else if (IS_ENABLED(CONFIG_VBOOT_VBNV_FLASH))
|
||||
else if (CONFIG(VBOOT_VBNV_FLASH))
|
||||
save_vbnv_flash(vbnv_copy);
|
||||
|
||||
/* Clear initialized flag to force cached data to be updated */
|
||||
@@ -156,7 +156,7 @@ int vbnv_udc_enable_flag(void)
|
||||
|
||||
void vbnv_init(uint8_t *vbnv_copy)
|
||||
{
|
||||
if (IS_ENABLED(CONFIG_VBOOT_VBNV_CMOS))
|
||||
if (CONFIG(VBOOT_VBNV_CMOS))
|
||||
vbnv_init_cmos(vbnv_copy);
|
||||
read_vbnv(vbnv_copy);
|
||||
}
|
||||
|
Reference in New Issue
Block a user