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

Refactor build script for enhanced readability and efficiency #2667

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

Conversation

tsvenbla
Copy link

@tsvenbla tsvenbla commented Dec 7, 2023

  • Modularize script using functions for downloading files and building modules.
  • Introduce configurable variables for FTP details, kernel source directory, and build directory at the top of the script for easy modification.
  • Utilize an array to list and manage multiple files, streamlining the download process.
  • Improve directory management by creating and cleaning up build directories within functions, ensuring a cleaner build environment.
  • Enhance error handling by adding exit conditions on failure in download and upload processes.
  • Implement best practices for script readability and maintainability.

Note that I have not tested this commit, I suggest doing so before any merge.

- Modularize script using functions for downloading files and building modules.
- Introduce configurable variables for FTP details, kernel source directory, and build directory at the top of the script for easy modification.
- Utilize an array to list and manage multiple files, streamlining the download process.
- Improve directory management by creating and cleaning up build directories within functions, ensuring a cleaner build environment.
- Enhance error handling by adding exit conditions on failure in download and upload processes.
- Implement best practices for script readability and maintainability.
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