mirror of
https://github.com/Telecominfraproject/OpenCellular.git
synced 2026-01-08 16:41:55 +00:00
Add CONFIG_CMD_HASH to optionally remove 'hash' console command.
Create optional config to remove 'hash' console command and undef it for a few space-constrained boards (ryu*, samus_pd). Signed-off-by: Todd Broch <tbroch@chromium.org> BRANCH=samus BUG=chrome-os-partner:34489 TEST=manual, - compile for ryu, samus_pd and save ~400bytes - 'hash' command no longer appears as a console command Change-Id: I054fd4473911dd362c2c1d171ee7aaad859d893a Reviewed-on: https://chromium-review.googlesource.com/238433 Reviewed-by: Vincent Palatin <vpalatin@chromium.org> Reviewed-by: Alec Berg <alecaberg@chromium.org> Commit-Queue: Todd Broch <tbroch@chromium.org> Tested-by: Todd Broch <tbroch@chromium.org>
This commit is contained in:
committed by
ChromeOS Commit Bot
parent
c3adc315b3
commit
efb28cc783
@@ -19,6 +19,7 @@
|
||||
#define CC_DEFAULT (CC_ALL & ~CC_MASK(CC_USBPD))
|
||||
|
||||
/* Optional features */
|
||||
#undef CONFIG_CMD_HASH
|
||||
#define CONFIG_FORCE_CONSOLE_RESUME
|
||||
#define CONFIG_STM_HWTIMER32
|
||||
#define CONFIG_USB_POWER_DELIVERY
|
||||
|
||||
@@ -19,6 +19,7 @@
|
||||
#define CC_DEFAULT (CC_ALL & ~CC_MASK(CC_USBPD))
|
||||
|
||||
/* Optional features */
|
||||
#undef CONFIG_CMD_HASH
|
||||
#define CONFIG_COMMON_GPIO_SHORTNAMES
|
||||
#define CONFIG_STM_HWTIMER32
|
||||
#define CONFIG_USB_POWER_DELIVERY
|
||||
|
||||
@@ -19,6 +19,7 @@
|
||||
#define CONFIG_ADC
|
||||
#define CONFIG_BOARD_PRE_INIT
|
||||
#define CONFIG_CHARGE_MANAGER
|
||||
#undef CONFIG_CMD_HASH
|
||||
/* Minimum ilim = 500 mA */
|
||||
#define CONFIG_CHARGER_INPUT_CURRENT PWM_0_MA
|
||||
#define CONFIG_COMMON_GPIO_SHORTNAMES
|
||||
|
||||
@@ -209,7 +209,7 @@ DECLARE_HOOK(HOOK_SYSJUMP, vboot_hash_preserve_state, HOOK_PRIO_DEFAULT);
|
||||
|
||||
/****************************************************************************/
|
||||
/* Console commands */
|
||||
|
||||
#ifdef CONFIG_CMD_HASH
|
||||
static int command_hash(int argc, char **argv)
|
||||
{
|
||||
uint32_t offset = CONFIG_FW_RW_OFF;
|
||||
@@ -274,7 +274,7 @@ DECLARE_CONSOLE_COMMAND(hash, command_hash,
|
||||
"[abort | ro | rw] | [<offset> <size> [<nonce>]]",
|
||||
"Request hash recomputation",
|
||||
NULL);
|
||||
|
||||
#endif /* CONFIG_CMD_HASH */
|
||||
/****************************************************************************/
|
||||
/* Host commands */
|
||||
|
||||
|
||||
@@ -328,6 +328,7 @@
|
||||
#undef CONFIG_CMD_ECTEMP
|
||||
#undef CONFIG_CMD_FLASH
|
||||
#undef CONFIG_CMD_GSV
|
||||
#define CONFIG_CMD_HASH
|
||||
#undef CONFIG_CMD_HOSTCMD
|
||||
#undef CONFIG_CMD_ILIM
|
||||
#undef CONFIG_CMD_JUMPTAGS
|
||||
|
||||
Reference in New Issue
Block a user