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

Add option to replace internal libraries with external sources #819

Open
craciunoiuc opened this issue Sep 15, 2023 · 1 comment
Open

Add option to replace internal libraries with external sources #819

craciunoiuc opened this issue Sep 15, 2023 · 1 comment
Assignees
Labels
kind/enhancement New feature or request priority/medium Issue which is important, but KraftKit is usable without it also.

Comments

@craciunoiuc
Copy link
Member

Feature request summary

This feature depends on functionality in the core, but can be discussed in the meantime

Thanks @skuenzer for describing this:

Use case: We have a pre-compiled & binary version of ramfs ukcpio and ukvmem. These libs are also in-tree but we want to replace them with the binary versions.
Because potentially the libname in the path could be the same, we should handover the whole paths
So basically, for the build system the idea is the following (example, we replace ramfs):
make L=$( readlink -f ../path/to/replacing/ramfs ) H=${UK_ROOT}/lib/ramfs
H= (for Hide) works like L=, a colon-separated list

specification: '0.5'
name: example
unikraft:
  version: cloud
  kconfig:
    - CONFIG_LIBPOSIX_SYSINFO=y
    - CONFIG_LIBUKSIGNAL=y
targets:
  - name: kraftcloud-x86_64
    architecture: x86_64
    platform: firecracker
libraries:
  ramfs: # <-- a matching name automatically replaces it?
    source: https://github.com/unikraft-io/lib-superhero-version-of-ramfs-bin
    version: stable
    replaces: ramfs # <-- or should we add another attribute in case the name does not match? could this even happen? background: a lib that replaces something internally in unikraft has to match the name and API?
  ukp-bin:
    source: https://github.com/unikraft-io/lib-ukp-bin
    version: stable

Describe alternatives

No response

Related architectures

None

Related platforms

None

Additional context

No response

@craciunoiuc craciunoiuc added the kind/enhancement New feature or request label Sep 15, 2023
@nderjung
Copy link
Member

GitHub-Depends-On: #757

@craciunoiuc craciunoiuc self-assigned this Sep 21, 2023
@craciunoiuc craciunoiuc added the priority/medium Issue which is important, but KraftKit is usable without it also. label Feb 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/enhancement New feature or request priority/medium Issue which is important, but KraftKit is usable without it also.
Projects
Status: Ready
Status: 🧊 Icebox
Development

No branches or pull requests

2 participants