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

llext: convert "modules" tests to sample #74060

Merged
merged 3 commits into from
Jun 14, 2024

Commits on Jun 13, 2024

  1. llext: disable LL_EXTENSION_SYMBOL when not building an llext

    The LL_EXTENSION_SYMBOL macro is used to export a symbol to the base
    image. When CONFIG_LLEXT is not defined, or the file is being compiled
    outside of an llext, the macro is not useful and would leave orphan
    sections in the final image instead.
    
    This patch adds the LL_EXTENSION_BUILD definition to the llext build
    process, and uses it to stub out the symbol-defining macro when not
    building an llext.
    
    Signed-off-by: Luca Burelli <l.burelli@arduino.cc>
    pillo79 committed Jun 13, 2024
    Configuration menu
    Copy the full SHA
    f3e5d9d View commit details
    Browse the repository at this point in the history
  2. llext: add a "modules" Kconfig tristate example

    This adds a new sample to demonstrate the use of tristate symbols
    in Kconfig to build a function as an llext module or as a built-in
    part of Zephyr.
    
    Signed-off-by: Luca Burelli <l.burelli@arduino.cc>
    pillo79 committed Jun 13, 2024
    Configuration menu
    Copy the full SHA
    59931ec View commit details
    Browse the repository at this point in the history
  3. llext: remove the "modules_enabled" tests

    These tests are simple copies of the existing tests with the addition of
    the CONFIG_MODULES=y option. This different Kconfig setting has no
    practical effect on the code, and the tests are therefore redundant.
    
    Remove them to halve the number of tests.
    
    Signed-off-by: Luca Burelli <l.burelli@arduino.cc>
    pillo79 committed Jun 13, 2024
    Configuration menu
    Copy the full SHA
    9eb02d1 View commit details
    Browse the repository at this point in the history