diff --git a/chip/g/upgrade_fw.c b/chip/g/upgrade_fw.c index c5c933cc90..caa5b88818 100644 --- a/chip/g/upgrade_fw.c +++ b/chip/g/upgrade_fw.c @@ -162,8 +162,13 @@ int usb_pdu_valid(struct upgrade_command *cmd_body, size_t cmd_size) return 1; } -#ifndef CR50_DEV +#ifdef CR50_DEV +#ifndef CONFIG_IGNORE_G_UPDATE_CHECKS +#define CONFIG_IGNORE_G_UPDATE_CHECKS +#endif +#endif +#ifndef CONFIG_IGNORE_G_UPDATE_CHECKS /* Compare two versions, return True if the new version is older. */ static int new_is_older(const struct SignedHeader *new, const struct SignedHeader *old) diff --git a/include/config.h b/include/config.h index 5a176670c7..7390e3d179 100644 --- a/include/config.h +++ b/include/config.h @@ -908,6 +908,11 @@ */ #undef CONFIG_UPTO_SHA512 +/* + * When enabled ignore version et al during fw upgrade for chip/g. + */ +#undef CONFIG_IGNORE_G_UPDATE_CHECKS + /*****************************************************************************/ /* * Debugging config