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 … #508

Closed
wants to merge 0 commits into from

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
Copy link
Member

佳欢这个提交目录应该要再确定下,稍等我消息

@JiaHuann
Copy link
Contributor Author

佳欢这个提交目录应该要再确定下,稍等我消息

好的

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