This change enhances the assembly and signing of images with scripting.
Macros that are needed for these processes are now extracted from the flash_layout.h files with python scripts.
The built images are not modified.
This change builds on the work of T347 - "imgtool.py and assemble.py should not only support the hardcode MACRO values".