Skip to content
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

Improve EDK2 build process script for simplicity and reliability #2669

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

tsvenbla
Copy link

@tsvenbla tsvenbla commented Dec 7, 2023

  • Update script to remove the existing EDK2 directory and unzip the new one, ensuring a clean start for the build process.
  • Add a check to exit the script if changing to the EDK2 directory fails, enhancing the robustness of the script.
  • Introduce a function build_edk2 to streamline the building of EDK2 for different architectures (i386-efi, arm64-efi, and x86_64-efi). This function takes the architecture as an argument and executes the corresponding build command.
  • Replace repetitive build commands with calls to build_edk2 function, reducing redundancy and improving the readability of the script.

Note:
I did not test this refactored code. Merge only after testing.

- Update script to remove the existing EDK2 directory and unzip the new one, ensuring a clean start for the build process.
- Add a check to exit the script if changing to the EDK2 directory fails, enhancing the robustness of the script.
- Introduce a function `build_edk2` to streamline the building of EDK2 for different architectures (i386-efi, arm64-efi, and x86_64-efi). This function takes the architecture as an argument and executes the corresponding build command.
- Replace repetitive build commands with calls to `build_edk2` function, reducing redundancy and improving the readability of the script.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant