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 libbpf-bootstrap-android to directly support amd64 cross-compile to Android aarch64 #517

Merged
merged 2 commits into from
Sep 16, 2023

Conversation

JiaHuann
Copy link
Contributor

Goal

Recognizing the challenges outlined in #144 on the libbpf-bootstrap repository, where significant effort is required to cross-compile AMD64 eBPF programs to AArch64, especially in the context of user programs for the Android platform (which lacks GCC support after Android 8), I've taken the initiative to develop libbpf-bootstrap-android to simplify this cross-compilation process.

Additional Features

In cases where vendors don't expose the "CONFIG_BTF_DEBUG_INFO" configuration option to user phones, I've implemented certain modifications to support the use of external BTF (BPF Type Format) files. This enhancement substantially enhances efficiency. Now, it's possible to build a generic Android kernel with this configuration. Subsequently, the resulting vmlinux and BTF files can be deployed to the device. Although a direct push of these files to the phone isn't the recommended approach, an alternative option is provided through BTFhubForAndroid.

I would greatly appreciate your feedback on these changes and enhancements.

.gitmodules Show resolved Hide resolved
@JiaHuann
Copy link
Contributor Author

JiaHuann commented Sep 14, 2023 via email

@LinkinPF LinkinPF merged commit 0f443aa into linuxkerneltravel:develop Sep 16, 2023
1 of 2 checks passed
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.

4 participants