Skip to content

update shell commands to static registration #3453

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 26 commits into
base: master
Choose a base branch
from

Conversation

kasjer
Copy link
Contributor

@kasjer kasjer commented Jul 7, 2025

This updates bunch of packages to have shell commands registered statically during link time instead of run time.

Now fs cli commands are register at link time to
reduce memory footprint.
No change in functionality.

Signed-off-by: Jerzy Kasenberg <[email protected]>
@github-actions github-actions bot added USB All USB work should have this label STM STM32 related size/l labels Jul 7, 2025
@kasjer kasjer force-pushed the kasjer/update-shell-commands-to-static-registration branch 2 times, most recently from 95d404b to 45baa87 Compare July 7, 2025 21:22
kasjer added 24 commits July 7, 2025 23:24
Now stat cli commands are register at link time to
reduce memory footprint.
No change in functionality.

Signed-off-by: Jerzy Kasenberg <[email protected]>
Now flash_test commands are register at link time to
reduce memory footprint.
No change in functionality.

Signed-off-by: Jerzy Kasenberg <[email protected]>
Now coremark shell commands are register at link time to
reduce memory footprint.
No change in functionality.

Signed-off-by: Jerzy Kasenberg <[email protected]>
Now log shell commands are register at link time to
reduce memory footprint.
No change in functionality.

Remove unfinished code depending on non-existing
flag LOG_FCB_SLOT1.

Signed-off-by: Jerzy Kasenberg <[email protected]>
Now crash shell commands are register at link time to
reduce memory footprint.
No change in functionality.

Signed-off-by: Jerzy Kasenberg <[email protected]>
Now config shell command is register at link time to
reduce memory footprint.
No change in functionality.

Signed-off-by: Jerzy Kasenberg <[email protected]>
Now imgr shell command is register at link time to
reduce memory footprint.
No change in functionality.

Signed-off-by: Jerzy Kasenberg <[email protected]>
Now usb shell module is register at link time to
reduce memory footprint.
No change in functionality.

Signed-off-by: Jerzy Kasenberg <[email protected]>
Now flashstress shell command is register at link time to
reduce memory footprint.
No change in functionality.

Signed-off-by: Jerzy Kasenberg <[email protected]>
Now fault shell command is register at link time to
reduce memory footprint.
No change in functionality.

Signed-off-by: Jerzy Kasenberg <[email protected]>
Now i2c_scan shell command is register at link time to
reduce memory footprint.
No change in functionality.

Signed-off-by: Jerzy Kasenberg <[email protected]>
Now mcu shell module is register at link time to
reduce memory footprint.
No change in functionality.

Signed-off-by: Jerzy Kasenberg <[email protected]>
Now mcu shell module is register at link time to
reduce memory footprint.
No change in functionality.

Signed-off-by: Jerzy Kasenberg <[email protected]>
Now BQ27Z561 shell command is registered at link time to
reduce memory footprint.
No change in functionality.

Signed-off-by: Jerzy Kasenberg <[email protected]>
Now ina219 shell command is registered at link time to
reduce memory footprint.
No change in functionality.

Signed-off-by: Jerzy Kasenberg <[email protected]>
Now ina226 shell command is registered at link time to
reduce memory footprint.
No change in functionality.

Signed-off-by: Jerzy Kasenberg <[email protected]>
Now bat shell module is registered at link time to
reduce memory footprint.
No change in functionality.

Signed-off-by: Jerzy Kasenberg <[email protected]>
Now loar shell commands are registered at link time to
reduce memory footprint.
No change in functionality.

Signed-off-by: Jerzy Kasenberg <[email protected]>
Now adp5061 shell command is registered at link time to
reduce memory footprint.
No change in functionality.

Signed-off-by: Jerzy Kasenberg <[email protected]>
Now lsm6dso shell command is registered at link time to
reduce memory footprint.
Command was register before by function lsm6dso_shell_init()
that is not removed and replaced by syscfg value LSM6DSO_SHELL

Signed-off-by: Jerzy Kasenberg <[email protected]>
Now ds3231 shell command is registered at link time to
reduce memory footprint.
No change in functionality.

Signed-off-by: Jerzy Kasenberg <[email protected]>
Now bme280 shell command is registered at link time to
reduce memory footprint.

Signed-off-by: Jerzy Kasenberg <[email protected]>
Now bmp280 shell command is registered at link time to
reduce memory footprint.

Signed-off-by: Jerzy Kasenberg <[email protected]>
Now ds1307 shell command is registered at link time to
reduce memory footprint.
No change in functionality.

Signed-off-by: Jerzy Kasenberg <[email protected]>
Now adxl345 shell command is registered at link time to
reduce memory footprint.
Command was register before by function adxl345_shell_init()
Now command is added when syscfg value ADXL345_CLI is 1

Signed-off-by: Jerzy Kasenberg <[email protected]>
@kasjer kasjer force-pushed the kasjer/update-shell-commands-to-static-registration branch from 45baa87 to b77d8f2 Compare July 7, 2025 21:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
size/l STM STM32 related USB All USB work should have this label
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant