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

Support Hook Functions (RDT-625) #100

Open
hfudev opened this issue Dec 21, 2023 · 0 comments
Open

Support Hook Functions (RDT-625) #100

hfudev opened this issue Dec 21, 2023 · 0 comments
Labels
enhancement New feature or request

Comments

@hfudev
Copy link
Member

hfudev commented Dec 21, 2023

Support hook functions in idf-build-apps

A few ideas with the hook functions:

  • pre_build
    • prepare_sdkconfig_files (check config_rules_str, check override_sdkconfig options, etc)
    • some checks
  • build
  • post_build
    • parse_build_warnings_and_errors
    • some extra file system operations, like rename, move, remove some files, keep only bin files, etc)

To increase the flexibility, we may use the hook system that pytest uses: https://github.com/pytest-dev/pluggy

Or a more conservative choice, provide more decoupled functions, then users may use the method overriding way to achieve the same goal.

@hfudev hfudev added the enhancement New feature or request label Dec 21, 2023
@github-actions github-actions bot changed the title Support Hook Functions Support Hook Functions (RDT-625) Dec 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant