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-edk: rework, add Python export and more optional information #78727

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Commits on Sep 20, 2024

  1. llext-edk: refact: move file generation into functions

    This commit refactors the code that generates the Makefile and CMake
    EDK files into functions that accept the file type as an argument.
    
    No functional changes are introduced in this commit.
    
    Signed-off-by: Luca Burelli <l.burelli@arduino.cc>
    pillo79 committed Sep 20, 2024
    Configuration menu
    Copy the full SHA
    6a2928c View commit details
    Browse the repository at this point in the history
  2. llext-edk: refact: merge target-specific file generation

    This commit removes all CMake- or Makefile-specific variables from the
    code and instead uses a single list for each type of flag. Where a
    difference is needed between the two, a special marker is used.
    These markers are replaced later in the target-specific area of the
    write functions.
    
    Escaping of problematic characters is also added to the write functions,
    to ensure that quotes and backslashes in the flags are properly handled.
    
    Signed-off-by: Luca Burelli <l.burelli@arduino.cc>
    pillo79 committed Sep 20, 2024
    Configuration menu
    Copy the full SHA
    9850e3e View commit details
    Browse the repository at this point in the history
  3. llext-edk: export additional Zephyr internal state

    This patch adds several variables related to the Zephyr build to the
    files generated by the EDK.
    
    The exported information is intended to provide additional context to
    the external projects that use the EDK; however since they are Zephyr
    internals, there is no guarantee of stability for these variables
    or their contents.
    
    Signed-off-by: Luca Burelli <l.burelli@arduino.cc>
    pillo79 committed Sep 20, 2024
    Configuration menu
    Copy the full SHA
    cfc0b60 View commit details
    Browse the repository at this point in the history
  4. llext-edk: add Python export target

    This commit adds a new export target for Python code. The exported
    variables are formatted as lists of f-strings so the embedded paths
    is implicitly expanded at definition time.
    
    Signed-off-by: Luca Burelli <l.burelli@arduino.cc>
    pillo79 committed Sep 20, 2024
    Configuration menu
    Copy the full SHA
    4454437 View commit details
    Browse the repository at this point in the history
  5. doc: extend llext-edk documentation

    Extend the documentation for the LLEXT EDK to include information about
    the target and toolchain information that is now exported by the EDK and
    the new output format.
    
    Signed-off-by: Luca Burelli <l.burelli@arduino.cc>
    pillo79 committed Sep 20, 2024
    Configuration menu
    Copy the full SHA
    8111bad View commit details
    Browse the repository at this point in the history