-
Notifications
You must be signed in to change notification settings - Fork 334
Cross compilation fixes #811
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
Conversation
This patch introduces new option for kpatch-build script "--cross-compile" which can be used for specifying cross-complier prefix. It allows to build live patches not only on target system, but also on hosts for a target other than the one on which the compiler is running Also removed quotes in exec lines, so it is possible to pass multy-component strings like "ccache x86_64-xelinux-linux-" as cross-compiler Signed-off-by: Ruslan Bilovol <rbilovol@cisco.com>
It is sometimes useful to have ability to override distro name, for example during cross-compilation build when livepatch modules will be ran on the target which differs from host. This patch adds a new --distro option which implements all needed functionality Signed-off-by: Ruslan Bilovol <rbilovol@cisco.com>
|
What is your usecase for the |
|
Currently I use --distro option just to disable existing (and future) distro-specific hacks/tunings when build LivePatches for another distro. In the future, though, we may have OpenEmbedded/Yocto-specific tunings which we want to specify. |
|
Hi @rbilovol , are you currently cross compiling kpatches and if so, from which arch to which arch? I see where this is PR is coming from by adding the prefix to invoke the other compiler, but I'm not sure if this is enough: What about the BTW, this would be a really nice feature to have as I have an s390 cross compiler installed on my machine and it would be handy to test a few builds once we have s390 kpatch support. |
|
Hi @rbilovol. In addition to @joe-lawrence 's questions... For I also don't see the point of |
|
@rbilovol ping? |
|
Hi guys, sorry for late reply From user perspective, I don't compile kpatch.ko, I always use livepatch from Linux Kernel So I'll update the patches addressing current comments, at least for CROSS_COMPILE |
These two patches allow cross-compiled LivePatch generation.
They fix two cross-compile scenarios:
This has been tested on OpenEmbedded build system.