Skip to content

Conversation

@omatiusha
Copy link
Contributor

This PR upstreams two patches already present in OpenEmbedded source tree: https://git.openembedded.org/meta-openembedded/tree/meta-oe/recipes-kernel/kpatch/kpatch, ported to the latest version of kpatch. They allow livepatches to be compiled for target that differs from the host.

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.

This patch also adds a new --distro option which
introduces ability to override distro name, for
example, during cross-compilation build when
livepatch modules will be ran on the target
which differs from host.

Also removed quotes in exec lines, so it is
possible to pass multi-component strings like
"ccache x86_64-xelinux-linux-" as cross-compiler

Signed-off-by: Ruslan Bilovol <rbilovol@cisco.com>
Signed-off-by: Oleh Matiusha <oleh.matiusha@globallogic.com>
@sm00th
Copy link
Contributor

sm00th commented Sep 27, 2021

Hi, this has been discussed previously in #811 and there were some adjustments original author agreed to come back with.

@sm00th sm00th closed this Sep 29, 2021
@omatiusha
Copy link
Contributor Author

Well, I studied #811 and had a conversation with @rbilovol on this, and I came back with changes, how can I submit them if I am not allowed to reopen this PR?

joe-lawrence added a commit that referenced this pull request Feb 14, 2022
kpatch-build: add cross-compilation support (#1224 fix)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants