Avnet / petalinux

Repository used to support automated builds under PetaLinux tools that use Yocto.
59 stars 20 forks source link

Wp clean scripts 2021.1 #45

Closed wpatterson-witekio closed 2 years ago

wpatterson-witekio commented 3 years ago

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,

  1. Every script calls the same 6 functions to setup the project. These have now been replaced with a setup project function
  2. 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
  3. 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
  4. 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
  5. 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