-
Notifications
You must be signed in to change notification settings - Fork 604
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 basic Kconfig support for lima-guestagent #1790
Changes from all commits
7955f4b
cbd3038
a99965d
d41e74d
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
_output/ | ||
_artifacts/ | ||
lima.REJECTED.yaml | ||
.config |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
|
||
mainmenu "Lima" | ||
|
||
config GUESTAGENT_OS_LINUX | ||
bool "guestagent OS: Linux" | ||
help | ||
Build lima-guestagent for "Linux" OS | ||
default y | ||
|
||
config GUESTAGENT_ARCH_X8664 | ||
bool "guestagent Arch: x86_64" | ||
help | ||
Build lima-guestagent for "x86_64" Arch | ||
default y | ||
|
||
config GUESTAGENT_ARCH_AARCH64 | ||
bool "guestagent Arch: aarch64" | ||
help | ||
Build lima-guestagent for "aarch64" Arch | ||
default y | ||
|
||
config GUESTAGENT_ARCH_ARMV7L | ||
bool "guestagent Arch: armv7l" | ||
help | ||
Build lima-guestagent for "armv7l" Arch | ||
default y | ||
|
||
config GUESTAGENT_ARCH_RISCV64 | ||
bool "guestagent Arch: riscv64" | ||
help | ||
Build lima-guestagent for "riscv64" Arch | ||
default y |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
CONFIG_GUESTAGENT_OS_LINUX=y | ||
CONFIG_GUESTAGENT_ARCH_X8664=y | ||
CONFIG_GUESTAGENT_ARCH_AARCH64=y | ||
CONFIG_GUESTAGENT_ARCH_ARMV7L=y | ||
CONFIG_GUESTAGENT_ARCH_RISCV64=y |
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
|
@@ -56,5 +56,18 @@ cd lima | |||||
make | ||||||
make install | ||||||
``` | ||||||
|
||||||
To change the build configuration, run `make config` or `make menuconfig`. | ||||||
|
||||||
This requires kconfig tools installed, it is also possible to edit `.config`. | ||||||
The default configuration can be found in the file `config.mk` (make syntax). | ||||||
|
||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This paragraphs should be inside There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It was for the user that doesn't have any tools, but edits the config as text |
||||||
## Kconfig tools | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
|
||||||
The tools are available as either "kconfig-frontends" or "kbuild-standalone". | ||||||
There is one `conf` for the text, and one `mconf` for the menu interface. | ||||||
|
||||||
A python implementation is available at <https://pypi.org/project/kconfiglib>. | ||||||
It can be installed with `pip install --user kconfiglib`, including `guiconfig`. | ||||||
{{% /tab %}} | ||||||
{{< /tabpane >}} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
make minimal
should now generate a new.config
and runmake binary
?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not everything is configurable, and there is no mechanism for "host arch"