Based on comments from the previous PR, I've created a new PR to address those changes.
The change are more clear when viewed by commit.
In short,
Every script calls the same 6 functions to setup the project. These have now been replaced with a setup project function
rebuild/common/rebuild_common.sh is a copy paste of common.sh with project setup code removed. I've removed the duplicate code from common.sh and instead source rebuild_common.sh
All the rebuild scripts are a copy paste of the make scripts except they call verify_environment instead of setup_project and they don't call package_bsp. Where these used to be copied to the project folder during the project setup, they are now copied over from the make script and sed is used to change those 2 lines
Rather than set 3 environment variables and call configure_boot_method before calling build_bsp, I've updated build_bsp to take the 3 variables, set them and configure the boot method
The make_all script was out of date and the script names didn't match file names. I've updated the script to get the make script names by listing the directory
Based on comments from the previous PR, I've created a new PR to address those changes.
The change are more clear when viewed by commit.
In short,