mirror of
https://github.com/QiuSimons/vmlinux-btf.git
synced 2026-12-06 08:06:57 +00:00
Replace the full shadow kernel build with a lightweight stub compilation approach against the target's already-prepared kernel headers: - Add multi-tier C stub units (shadow_btf_core.c, shadow_btf_modules.c, shadow_btf_private.c) that include key kernel headers to capture struct layouts with exact fidelity, without modifying or rebuilding the host kernel - Use pahole on the resulting stub object to produce a detached BTF blob - Simplify Makefile: drop PKG_SOURCE/PKG_HASH, remove shadow kernel patches and kernel download steps; build is now fast, deterministic, and SDK-native - Add multi-arch GitHub Actions CI workflow building against OpenWrt 24 and 25 SDKs across aarch64_generic, cortex-a53/a72/a76, and x86_64 - Add pahole binary detection with multi-path fallback and version verification - Add fallback objcopy path for older pahole versions lacking --btf_encode_detached