Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 771324 - kernel-build.eclass: use SYSROOT for configs
Summary: kernel-build.eclass: use SYSROOT for configs
Status: CONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Eclasses (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Distribution Kernel Project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-02-18 18:23 UTC by David Michael
Modified: 2021-03-01 11:33 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description David Michael 2021-02-18 18:23:55 UTC
The eclass takes config fragments from BROOT:

https://github.com/gentoo/gentoo/blob/master/eclass/kernel-build.eclass#L220

This uses the same config files for the native system and cross-compiled kernels.  I think it should search SYSROOT for these build-time files, which allows for different configs for different targets.

I'm not sure the best way to express the path, maybe it has to do something like this to account for empty SYSROOT but nonempty EPREFIX:

test -n "${SYSROOT}" &&
local user_configs=( "${ESYSROOT}"/etc/kernel/config.d/*.config ) ||
local user_configs=( "${BROOT}"/etc/kernel/config.d/*.config )