[IMG] Commonize and separate out the functions for flashing
Summary
Description
What is the current behavior? Functions used for the flashing are not inherited from a common script. Each device script copies it
What is the improved behavior? Functions are inherited from a common script and called.
What does it bring? Easier to make changes and more maintainable.