Skip to content

Conversation

@vkraleti
Copy link
Contributor

Added prune.config to KBUILD_CONFIG_EXTRA for aarch64 builds to
disable non-target architectures configurations, thus significantly reducing kernel size.

…figs

Currently, CONFIG_LIST lists both in-tree kernel config fragments as well as
external *.cfg files provided via SRC_URI. Mixing these makes it harder to
control which fragments are applied internally versus externally.

Introduce a new variable, KBUILD_CONFIG_EXTRA, aligned with Kbuild naming
conventions to handle internal kernel configuration fragments such as
hardening.config. External fragments remain controlled through SRC_URI,
so no separate list is needed for those.

The do_configure step now merges:
  - Base defconfig from arch/${ARCH}/configs
  - External fragments from find_cfgs(d)
  - In-tree fragments from KBUILD_CONFIG_EXTRA

Signed-off-by: Viswanath Kraleti <[email protected]>
Added prune.config to KBUILD_CONFIG_EXTRA for aarch64 builds. This
disables configurations for non-target architectures, significantly
reducing kernel size:

Image size: 39.5 MB → 25.7 MB
vmlinux size: 150 MB → 106 MB

Signed-off-by: Viswanath Kraleti <[email protected]>
@vkraleti vkraleti force-pushed the qcom-kernel-next-rc branch from e591eee to d1e9628 Compare November 25, 2025 09:46
@lumag lumag enabled auto-merge November 25, 2025 10:23
@github-actions
Copy link

Test run workflow

Test jobs for commit d1e9628

@lumag lumag merged commit 9dc89cb into qualcomm-linux:master Nov 25, 2025
41 checks passed
@test-reporting-app
Copy link

Test Results

 14 files  ±0   28 suites  ±0   40m 37s ⏱️ +21s
 50 tests ±0   50 ✅ ±0  0 💤 ±0  0 ❌ ±0 
304 runs  ±0  304 ✅ ±0  0 💤 ±0  0 ❌ ±0 

Results for commit d1e9628. ± Comparison against base commit 3ac7db4.

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.

5 participants