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

Add and start using generic functions fw_reldir() and fw_relfilepath() #1224

Merged
merged 5 commits into from
Jul 25, 2024

Commits on Jul 22, 2024

  1. case-lib/lib.sh: minor fixes + rename get_firmware_path()

    Minor fixes to prepare support for /sys/kernel/debug/sof/fw_profile/
    
    - Move emptiness test and error message from caller to function.
    - Give a much more specific name
    - Call journalctl directly, no need for the journalctl_cmd() indirection
      here.
    
    Signed-off-by: Marc Herbert <[email protected]>
    marc-hb committed Jul 22, 2024
    Configuration menu
    Copy the full SHA
    916099a View commit details
    Browse the repository at this point in the history

Commits on Jul 23, 2024

  1. case-lib/lib.sh: add new function fw_reldir()

    Unifies all 3 possible ways to find the relative firmware directory. To
    be used in find_ldc_file() and is_firmware_file_zephyr().
    
    Signed-off-by: Marc Herbert <[email protected]>
    marc-hb committed Jul 23, 2024
    Configuration menu
    Copy the full SHA
    3243ec9 View commit details
    Browse the repository at this point in the history
  2. case-lib:lib.sh: switch get_ldc_subdir() to fw_reldir()

    Simplify get_ldc_subdir() but using the new, universal fw_reldir().
    
    Signed-off-by: Marc Herbert <[email protected]>
    marc-hb committed Jul 23, 2024
    Configuration menu
    Copy the full SHA
    a6f5a5a View commit details
    Browse the repository at this point in the history
  3. case-lib/lib.sh: add new fw_relfilepath()

    Add new, "universal" fw_relfilepath() function modelled after
    fw_reldir(). To be used in `is_firmware_file_zephyr()` and others.
    
    Signed-off-by: Marc Herbert <[email protected]>
    marc-hb committed Jul 23, 2024
    Configuration menu
    Copy the full SHA
    11dc84e View commit details
    Browse the repository at this point in the history
  4. case-lib/lib.sh: switch is_firmware_file_zephyr() to fw_relfilepath()

    Faster and more flexible.
    
    Signed-off-by: Marc Herbert <[email protected]>
    marc-hb committed Jul 23, 2024
    Configuration menu
    Copy the full SHA
    42bb4cc View commit details
    Browse the repository at this point in the history