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

libfdt: overlay: Refactor overlay_fixup_phandle and update test case #132

Closed
wants to merge 2 commits into from

Commits on Apr 28, 2024

  1. libfdt: overlay: Refactor overlay_fixup_phandle

    Refactored overlay_fixup_phandle to optimize efficiency by moving the
    phandle lookup logic based on label outside the overlay_fixup_one_phandle call.
    This avoids redundant phandle lookups when a single label is associated with multiple modifications.
    
    Signed-off-by: Zheng Guangyuan <[email protected]>
    Drupping committed Apr 28, 2024
    Configuration menu
    Copy the full SHA
    f5d2361 View commit details
    Browse the repository at this point in the history
  2. libfdt: tests: Update test case for overlay_bad_fixup

    Changed the target DTS from overlay_base_no_symbols.test.dtb to overlay_base_manual_symbols.test.dtb.
    This ensures that the test case doesn't exit prematurely due to the absence of label-linked phandle in the symbols node.
    The update guarantees that the test case appropriately checks the validity of the fixup string linked to the label, as intended.
    
    Signed-off-by: Zheng Guangyuan <[email protected]>
    Drupping committed Apr 28, 2024
    Configuration menu
    Copy the full SHA
    bef8338 View commit details
    Browse the repository at this point in the history