Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Add libbpf-bootstrap-android to directly support amd64 cross-compile to Android aarch64 #1

Merged
merged 18 commits into from
Sep 14, 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.

@LinkinPF LinkinPF merged commit 4a8ab9e into linuxkerneltravel:main Sep 14, 2023
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants