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

bpf2go: export core functionality #1494

Merged
merged 3 commits into from
Jun 24, 2024
Merged

bpf2go: export core functionality #1494

merged 3 commits into from
Jun 24, 2024

Commits on Jun 24, 2024

  1. bpf2go: export binding generator

    Moves the code to generate go bindings to its own dedicated package
    and export the necessary functions to use it in bpf2go.
    
    This change will make it possible to reuse this code in other tools,
    without having to compile the C programs.
    
    The behaviour of bpf2go is unchanged.
    
    [ Lorenz: move code and backed out changes around module and identifier.
      These can come later, with tests. ]
    
    Co-authored-by: Lorenz Bauer <[email protected]>
    Signed-off-by: Wouter Dullaert <[email protected]>
    wdullaer and lmb committed Jun 24, 2024
    Configuration menu
    Copy the full SHA
    2816886 View commit details
    Browse the repository at this point in the history
  2. bpf2go: export compilation

    Move the code necessary to compile a C to an ELF. The behaviour of
    bpf2go is unchanged.
    
    The code to fix up make-style depfiles remains in bpf2go since it
    has little tests, and is probably used only seldomly.
    
    Signed-off-by: Lorenz Bauer <[email protected]>
    lmb committed Jun 24, 2024
    Configuration menu
    Copy the full SHA
    cded449 View commit details
    Browse the repository at this point in the history
  3. bpf2go: export targets

    Move target and force users to use one of the predefined targets.
    Also export logic to generate build contraints from goarches.
    
    Signed-off-by: Lorenz Bauer <[email protected]>
    lmb committed Jun 24, 2024
    Configuration menu
    Copy the full SHA
    69dbf32 View commit details
    Browse the repository at this point in the history