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

tdx-signed.bbclass: fix issue when including IMX HAB config file #16

Merged
merged 1 commit into from
Mar 28, 2024

Commits on Mar 27, 2024

  1. tdx-signed.bbclass: fix issue when including IMX HAB config file

    'imx-generic-bsp' is not populated in 'OVERRIDES' when parsing this
    class, so the 'OVERRIDES' variable cannot be used in this context.
    
    The reason for this is that NXP BSP adds several machine overrides to a
    custom variable called 'MACHINEOVERRIDES_EXTENDER', and this variable is
    parsed by a class in 'meta-freescale' called
    'machine-overrides-extender.bbclass'.
    
    This class registers a function called 'machine_overrides_extender_handler'
    that will add 'MACHINEOVERRIDES_EXTENDER' to 'MACHINEOVERRIDES', that goes
    later to 'OVERRIDES'.
    
    But this function is registered to run only AFTER the parsing is done.
    So that means there are a few overrides from NXP that will only be
    populated into 'OVERRIDES' in the end of the parsing.
    
    Fix this by using 'MACHINEOVERRIDES_EXTENDER' instead of 'OVERRIDES'.
    
    Fixes toradex#15
    
    Signed-off-by: Sergio Prado <sergio.prado@e-labworks.com>
    sergioprado committed Mar 27, 2024
    Configuration menu
    Copy the full SHA
    c62b3cd View commit details
    Browse the repository at this point in the history