mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-24 04:59:14 -07:00
Merge updates from master
This commit is contained in:
@@ -551,6 +551,7 @@ distutils_enable_tests() {
|
||||
case ${1} in
|
||||
import-check)
|
||||
test_pkgs+=' dev-python/pytest-import-check[${PYTHON_USEDEP}]'
|
||||
EPYTEST_PLUGINS+=( pytest-import-check )
|
||||
;&
|
||||
pytest)
|
||||
test_pkgs+=' >=dev-python/pytest-7.4.4[${PYTHON_USEDEP}]'
|
||||
@@ -1287,7 +1288,7 @@ distutils-r1_python_compile() {
|
||||
# from the oldest to the newest implementation,
|
||||
# and the wheels are forward-compatible.
|
||||
if [[
|
||||
( ! ${DISTUTILS_EXT} && ${whl} == *py3-none-any* ) ||
|
||||
( ! ${DISTUTILS_EXT} && ${whl} == *py3-none* ) ||
|
||||
(
|
||||
${EPYTHON} == python* &&
|
||||
# freethreading does not support stable ABI
|
||||
|
||||
@@ -298,9 +298,9 @@ _pypi_provenance_url() {
|
||||
# @DESCRIPTION:
|
||||
# Output the URL to PyPI provenance for the specified artifact.
|
||||
pypi_provenance_url() {
|
||||
local _PYPI_PROVENANCE_URL
|
||||
local _PYPI_ATTESTATION_URL
|
||||
_pypi_provenance_url "${@}"
|
||||
echo "${_PYPI_PROVENANCE_URL}"
|
||||
echo "${_PYPI_ATTESTATION_URL}"
|
||||
}
|
||||
|
||||
# @FUNCTION: pypi_verify_provenance
|
||||
|
||||
@@ -1538,9 +1538,17 @@ epytest() {
|
||||
)
|
||||
fi
|
||||
|
||||
args+=(
|
||||
"--reruns=${EPYTEST_RERUNS}"
|
||||
)
|
||||
if has_version ">=dev-python/pytest-rerunfailures-16.1"; then
|
||||
args+=(
|
||||
# --reruns only adds N reruns for tests not marked for reruns
|
||||
# --force-reruns overrides the rerun count for all tests
|
||||
"--force-reruns=${EPYTEST_RERUNS}"
|
||||
)
|
||||
else
|
||||
args+=(
|
||||
"--reruns=${EPYTEST_RERUNS}"
|
||||
)
|
||||
fi
|
||||
fi
|
||||
|
||||
if [[ -n ${EPYTEST_TIMEOUT} ]]; then
|
||||
|
||||
@@ -380,6 +380,7 @@ _gpg_verify_signed_checksums() {
|
||||
|
||||
verify-sig_verify_unsigned_checksums - "${algo}" "${files}" < <(
|
||||
verify-sig_verify_message "${checksum_file}" - "${key}"
|
||||
echo
|
||||
)
|
||||
}
|
||||
|
||||
|
||||
@@ -1,7 +1,3 @@
|
||||
DIST gentoo-kernel-5.10.240-1.amd64.gpkg.tar 63754240 BLAKE2B 518bd8c90ba15f186699bf668c7add1fa5c90d20448b7a721dfd6e0e91a90d2dca2a67b55d27a29ffb3e5c8733ae9461aec9835f9340f53b619cb4dc4e892bbd SHA512 049c345b9726c95302277f9c4fa868d0b10e870e13305e8f4fd71e60828e091fdcee17949cffd67077744cbfe7d5ac6bb25f3d5f658d9a4ddae685bd68532d5c
|
||||
DIST gentoo-kernel-5.10.240-1.arm64.gpkg.tar 56872960 BLAKE2B d91e833e9ae4171595db8d306820a3b2c0b8c1b10f7d960f4c4e7c9fcd8f0ce91bae9eeda2478e49e7da3dbf33fbe945a0ece91d167e2f84f22b5d585827a2ff SHA512 14202be0b48f4880dc83404f5e2ec8cb7db97c87d2957a084ca0bee6d6a19b2dfc0b0a1cb85a95b78e3bee5666add3ef6632b20e85a17422f97551453e8bb4b3
|
||||
DIST gentoo-kernel-5.10.240-1.ppc64le.gpkg.tar 52858880 BLAKE2B 33dadbc07513aed4ce7141dacf0715ba249b31a4682f634bf9f75e939d7f8e906186a37263a45a1e5a0502af89e4aacb2181784cd23eb80e34ef2a0f64336924 SHA512 5470e96261d9b8ea99e47454c71514af8abe4f6de9b989c3c796f428db0ddb42095fb0fb53d9b4b7a8f15b233de070b12b788c47268e1b1880649a19671969e4
|
||||
DIST gentoo-kernel-5.10.240-1.x86.gpkg.tar 53872640 BLAKE2B 8553132f401e0702c11704d55454869919b5a3b1531f9b1604b82db39b42589280067dfaf79c7432553f1dfa69010817c40ae7ea3560059538f7945f2c7912c0 SHA512 fe19a25c75d2c98e7eacaf3722966a50cd576f961a6b7ffca886f4035fc1e8942f50b67d9a0e0018cae25909ffb6c74b1621af1f9cf7db1b9090c39cbcb559e3
|
||||
DIST gentoo-kernel-5.10.244-1.amd64.gpkg.tar 65873920 BLAKE2B 72ce1fe99d9e5cd05eec779b5bf7fea132c4c0e1a94b6420c2df7de9e7ebc9c3eda69d5f7d643369f929145d88ffe6e24371b096787fc1d7b8fbdc6288dfc266 SHA512 ad97cc1dc30f02939649f547e3cbc7af553e6f1b1e23b6ba548e14e0723b615efd80c098f3da17acb228c8ea91420f0dd325491ac899bfc352a72116a9fcabff
|
||||
DIST gentoo-kernel-5.10.244-1.arm64.gpkg.tar 59197440 BLAKE2B 4f07cc6618fa7aced72e8a6f27f06755e8b225b8154401d129349dcfc2654366266eeeee433711b80d5f585ae61568dd0bc05f03fc6e82372ff63d1e9ea43986 SHA512 6d8be50caf13c290e4d670a5af5d97a3d5a2a682b77593c8c3d1969e6f75dca8ec2b1150a6ccce988e43c668863397e7e5651469b7b4830dba4554048f018bc2
|
||||
DIST gentoo-kernel-5.10.244-1.ppc64le.gpkg.tar 54599680 BLAKE2B bc51b35b5ac338987c6165b38c9011cfe65d61a8bbd0d1737c7e06b161ceee60a7f015f0165f86f2a12be8e9bb7e32661bd5be7dfe190a99173852fa85f226c2 SHA512 75aa83d0cae36add49e4a3b10f6eabaef8bb4eddc035b0c1fe64b2e77dce3e68b05314ef3eb0504dc621b52cbb2731f1ebf337af7088704827ae55449364714c
|
||||
@@ -10,250 +6,87 @@ DIST gentoo-kernel-5.10.245-1.amd64.gpkg.tar 65904640 BLAKE2B c994407d25f3c6aefb
|
||||
DIST gentoo-kernel-5.10.245-1.arm64.gpkg.tar 59197440 BLAKE2B a008fa6c05bef294243291c8da038df2e08275079f53745bf50fb1e48f786207c4cdf969aa37999b04c686489c597fa76d73eaf1b8014a057ff07d10c5d586ac SHA512 af11b5d04b6602d7586a89d9b7eafcc21400b0e97c75dd864b73b0387b9c64ddb1e5bc2c8df6b510cef00a3331f2a343e0c34650a4bf005fa60a39d3ed0ac4ce
|
||||
DIST gentoo-kernel-5.10.245-1.ppc64le.gpkg.tar 54599680 BLAKE2B 7cd4129ecf84f41dc906b9761df7b784f78a48b03253412d7a8a5edaf7669587bef007fb4c1afb3d1281ed0040f4df367639666f4114f856897a7132759a78cb SHA512 3a911d6f49919f3ecbc878f5e8acc919f5b7b8378f43fcad0e28d14ab02683c2ff7dacf84757517f15c01d6b5455e14412ef9c33b2dfa7ad35b7c6c4e850b80b
|
||||
DIST gentoo-kernel-5.10.245-1.x86.gpkg.tar 56012800 BLAKE2B 37201446cec584138c0078ae18a25e602c455ffe85e13183d977c49da5acef01d66e7c73d2ea50700fb111d814b706861cdab373ec6b50c8ad363b0e03b04cc1 SHA512 c9aca133e60a1d20580d72ae028439226b2fbdb27b9a778884eaed763ca14240f1555b04f5d89d1597a03dd4a2920cea1535f0593211f1be0082e4e1bceb9de0
|
||||
DIST gentoo-kernel-5.15.189-1.amd64.gpkg.tar 68925440 BLAKE2B 92ba857567f87af33b9aa783900009b224e38d956bc096567424c242ad7879ed70079f50f15630657b143c9c03b5bfda2e5d78b1647409e5af5048fe3d57d99b SHA512 d97df9dc997dca8cedd05b9b91a470ccadc8252badfafd2a573e42805746dd4626accd4b1f3155ec78158eac8db755057c420346608a13228466e40dd18a1149
|
||||
DIST gentoo-kernel-5.15.189-1.arm64.gpkg.tar 62576640 BLAKE2B d692631661483c4eef9bdc88946641c04cd68ae66da4cac07fea7976e0a694960993f5b6d4f73a153017375c8ba1a7a46c223c752d96229dcdf4e5bdca27488a SHA512 25a580790e5665061a9b3c2449b229822723945207dd9f3ec167833cdaf7c9c2d5a1ec648a54f5993a01cf14efd36dd7b74eb6a40a8f018e45f61648c40104af
|
||||
DIST gentoo-kernel-5.15.189-1.ppc64le.gpkg.tar 56852480 BLAKE2B e2b1caeed4c40b91f70b58f1cb362b0d1565a0d214d8631f721bb249ddf6437e2b399cbf13fced7b0191c230460c2c7455b6b2cfe7474858b4aa0b512211f267 SHA512 01af6a74aed1649a32ae9a5552fb3625fb924a9aa88647da5de9fa2196e419ba87df23c9fd54c332eed8f26fa8e561c423256a503e315b4767e663ab677bba96
|
||||
DIST gentoo-kernel-5.15.189-1.x86.gpkg.tar 58869760 BLAKE2B 290b68e8042786c0870f692ecadd3d8b5d3fef7bb86af7195065c00c4b3c0dac908928f5ee95461421259a9e90667edb839c51fa3f775c413025372d043ee3a9 SHA512 4bd9fc2c95f30a8382818db7d27f9bc4162d1e8953869f380de0599bfacd2579183bc711c439776ec9b8ff4a1a6a0463dc35ef42ad92d4807ef4c411d952cde4
|
||||
DIST gentoo-kernel-5.15.193-1.amd64.gpkg.tar 71137280 BLAKE2B 6877355a870abe51b62ffb3e0aaa69d39f5666e11e261b76782d09ceb82ff2c8cb5885ccbb8d3c33a1a63f45dfa8fe3cedc7f5ec741087476b4bf32d7a140a46 SHA512 6f05c8980ebe11d812a92108aee20d984f64f36fdb3d13d8ada31b2850d7c9f87dad3bac480930bfc8da8621fdaec1874da061748b7e9140add8ece567600149
|
||||
DIST gentoo-kernel-5.15.193-1.arm64.gpkg.tar 65054720 BLAKE2B d75ef9394c44af5216df03dce3d6ee8ead0827962d62e7263ddba8eeadb369091a697ddeee5d2d751d4cef96117df99220afdbd82c98340908b408b23aba099b SHA512 7512f546bb797a0fac3f0eb32eb1560bb9ae8b5029a05a5ed669bf70790d4a0fb5e7cf95d4e5b3fe785e02856e3c6254ac2a3694c96df75af1ff0a89571e4cef
|
||||
DIST gentoo-kernel-5.15.193-1.ppc64le.gpkg.tar 58624000 BLAKE2B 54df327eb436793cd866e94e11262526634f67f33d2d59235105cf8242316437b8925b3f7c006cac46d308fddf31a740965243ceb3662f885e4671c4e4f6343e SHA512 da4ba00a69fbb296582118050eedfecc611076d27b46b380b9d0097da277e26a7bca7232d66bb003881bdda2d3791c61780cf3835c9cdd82741e34bff860fcc0
|
||||
DIST gentoo-kernel-5.15.193-1.x86.gpkg.tar 61091840 BLAKE2B 0e4b0e3485bff26c271108b92d3832767c2d19725f99d3bfbc41fa81990b2adc1bcd7665b34abd441489378c873d6d083a4c367c0de84e3ffa67b34442612b18 SHA512 9bef27cdb4e26a826ac434b5a12d3e361857a0c16a677b867e16241987e4f46ccbabb531d4ec3a813922b0fbef0fd883040bd5e7f3030643446837b8e7531b70
|
||||
DIST gentoo-kernel-5.15.194-1.amd64.gpkg.tar 71147520 BLAKE2B 80f0a01e76b71f19d9c1d3da2bcb2e8974f61f8b56254d3cfe3006779e4fdae52026310352b9b293b1f9317d47d20b49d06b2174437c4a1087abd189f65df148 SHA512 3cc574f11a0d396dd7aa74fccffe89fa4b19c19783418450bdd66a60802263f11dd71906b50ddb63281b0b6a418efaa21f2a6009976253f35d6ad0f0d9620c8f
|
||||
DIST gentoo-kernel-5.15.194-1.arm64.gpkg.tar 65064960 BLAKE2B 95a7cf03eb0a4655b0e4cbebc3244785034965872a00b6b3ca43519a60ab1d46c7b76fd5b4712282dc8e57e4b4336d90e523d946b336248b9bd1eb73f5a2e428 SHA512 5ec7a375fc9dc62772a0ff8bd1f3cf28afe5917e42e74fa89dbf720da0ebba08770eb854145934d8c7c46811c884643efa4604a09a59ec742ac56dd3609f8238
|
||||
DIST gentoo-kernel-5.15.194-1.ppc64le.gpkg.tar 58613760 BLAKE2B 529234ccddd9b88dc90b6ef01d39486c98e12c1a428729058bf7f5b45fabd7be89b9885c57cccee624fc8b3de8858eacbd723833a772b09fbb5d1405fe96628b SHA512 2e8abed592a90327849cae4de988de23285d7692ae95239d85b7674731ee97c0f2244faafc675ea7e2e06cb55d3d60a011a813c20f08b4fdda218d94b4a7440b
|
||||
DIST gentoo-kernel-5.15.194-1.x86.gpkg.tar 61102080 BLAKE2B 837dbaf3d10a9adace7f4508b0d3aeb720dea362284d2f1320d207f900a33b80ef614c4dc249e3bc4626de0b4deb55f34bee17e847c5ac328e38c3477493bcb2 SHA512 025ca2df56ca814c74c9787e99bc105c9808f14d089049840841d65888e71ebb965144e562e6faab6ce6c5cadcdcbe7eb6b7dcaef3d4cf2b7ecb17e98c3be245
|
||||
DIST gentoo-kernel-5.15.195-1.amd64.gpkg.tar 71168000 BLAKE2B 1ba9efadf64369a908e17957ea059814297547f9689fe59e34f915eb2133afa664c3878c0088f7d6da64a3c6a88e6154c1111cacb107d15bc0fd520c6df9e85a SHA512 597fc39b01e163ff5aed2c788b1899aa1d1ccd5f7960f4e7cbe17341aee32de2dc9847f25b2f09fe250324443a936c51377e8aae573fe38d0f305fb0747857ee
|
||||
DIST gentoo-kernel-5.15.195-1.arm64.gpkg.tar 65075200 BLAKE2B 1d3735fb7fd0566baf7bb268bc70a275b81dc970f0996ac272fc60199410d6f5075c02742f5c17a1b6587027fbbec7aa1ca21a67849d9ee9a8c0c6e111d71d2d SHA512 854583da44b9aaaf9857e74dbd158c3da6de6ab3e20b4c73804e1fc55b568e93945968edafb53cd40c76c68b4cd642a3fdd2b908dbbefa712c7f867a3db8853b
|
||||
DIST gentoo-kernel-5.15.195-1.ppc64le.gpkg.tar 58624000 BLAKE2B bd1d4e1870b7c0f9509d85555391dd38e630f2215afbcb017d027bbee039814e2709dcf736199e9de0275dac9ffd3bdcdb408550f33a2bec5a1bc036ee9e4bee SHA512 9fcf70d190f6e7936eda47250ee2988b607b57521c3ab57224b4637e7d4e683bd78e56b9200fc3cd979441290374b3f82b41e487519d53fcbcbf1f3c97998462
|
||||
DIST gentoo-kernel-5.15.195-1.x86.gpkg.tar 61102080 BLAKE2B c1b1a6b8db06058f4ac8f015de7f5820fb57d47b83998396ad4d105f61c3dd6b8e2b9a8e6135c626356c89a169eec70129bde03e121bf3382a910096033a01d0 SHA512 a026d6e9e717bc48f52fad6a1e7c918acdefbd30f671bb7424fa01d044c667a5c451b761b95f1ac66e500b8635932c9c20f602dd50f74d1579712a5860ab6424
|
||||
DIST gentoo-kernel-6.1.147-1.amd64.gpkg.tar 73144320 BLAKE2B 435074e5d6d14d7e0ca3da5c81e128e731034cff557f4e324041c9f5b849174e5163064923a976b6d71b6caa24a716a92dd4e37edade4b659f76160fea27789b SHA512 b8d7da9c861201f2bd297ba9ca8707823c774d98deff618a3e7d8ade166c545a26149ef0d91dfd851cb790aa52f089290500d9628789d6fcd786f4e095b0dcb2
|
||||
DIST gentoo-kernel-6.1.147-1.arm64.gpkg.tar 65751040 BLAKE2B 2d9fce201b048d0f635cf8d6cc75b674ddd32547dba28610dbeec3ebcd5369d497c8c3aa7d6fd87e6b3d8ff5fad76f39a4fe52d31916abf42d3168c1fea3fa67 SHA512 6e7530fc990274ec833087cb601ddff48a8fe52d9d68273b1c61f2ba16516bbc5e098efcd9aef8749dbef03af707f773de9c87fc21b077c5abbc64fdd1c75567
|
||||
DIST gentoo-kernel-6.1.147-1.ppc64le.gpkg.tar 59955200 BLAKE2B c465996bebbcd06f163de10a766cced71911f9e37826908a6ea109f3512f6d3a2e101c6d02dae4ea12b7649ccc1f83fe618e597b84aa68af4401f1753421a67a SHA512 2fa3be30ebcc05646ddebafd94e46aa32843478d73b21cb4fb1c37d93eee763b6c1d7c48c2803d40b7f543a0112cb115b212bfe8990d3e4bff9eebfea68b5b4b
|
||||
DIST gentoo-kernel-6.1.147-1.x86.gpkg.tar 62464000 BLAKE2B b612362a5bf112742b99bfc83454f76832b846a7a5cdded89bbca548888a08d1452a6712316bf7d461b305fb07a268761f8b1a3b6eabfbfb4a7340757255b01c SHA512 55fd92233a55475b10ace266c0d9f145ba23f6767228381393e2d8a2713eec4720770c54a805883cf058fb00d9f873c6dcbd37d43ef9d7642cab848be04b19b4
|
||||
DIST gentoo-kernel-6.1.152-1.amd64.gpkg.tar 75489280 BLAKE2B 2a7ceffeb91cf8e24095fa1cfb4cb67b5ec3bdeae21a74abcbdb259c3f2d94efbc5df4448c2600490aa010eb0488949d0648d7d7dfe17d4ee43c159c6a2d18f8 SHA512 55b37338723daaa8cf9804dcfe259a2a1e6ca7afbc95c71c74d51d8d2c7feeae80e1b64d6fd4deaf12c4eabb124d31868ac7e1fc314078368c6ffbfb926b6c66
|
||||
DIST gentoo-kernel-6.1.152-1.arm64.gpkg.tar 68403200 BLAKE2B 8cdc368892e2ed97b218f398374bbafe102630120ab909725e9ad8d51504a1fd8ad90c14641d1d9d76a0557e572c0342fed97454192e416455abb92bd7553229 SHA512 426cc4fe5a3db1b146f0ff9429620da7f16e054758754f4ac776f043bd78518a695543cd8d2df20ffde3c8deb63e0c469cedbb96887367171f6591a2cba39595
|
||||
DIST gentoo-kernel-6.1.152-1.ppc64le.gpkg.tar 61808640 BLAKE2B 5766636a0823053bd36054c167a143fbfa42e15e44980e280498c846b7d5805f71f2185d8257252872f5d045dd48eecac12b921c81d7f2f8f1bba69011814db3 SHA512 634ae962417881f3adc91f2ce162330cf7763ec7a3bec43cef1fea24795c58bcfa04bc22f077ae1c82d048656c1478e62d4ef1b67a831ef1fe1289878d7f85dc
|
||||
DIST gentoo-kernel-6.1.152-1.x86.gpkg.tar 64839680 BLAKE2B 650da9b498bf6d5dbf3083a0d80abab4d1c47e98e8c152ae43fa36966e5e0025b9a1b97cb0134b18ec9f39b62348476c63cae59308c71b0baecb6a488b3cc128 SHA512 067ac0559abe52d50a06531340654b816e9ab40d774f2c9b4971970068e419f66088a7c89cf9f4e691d93fa2db1c63bdd95f2f8249b826d65332b1d99e2d663d
|
||||
DIST gentoo-kernel-6.1.153-1.amd64.gpkg.tar 75499520 BLAKE2B 57deccf47fee3a87ddb8bc462e8fca21ac90065aa392c7c49e544dfc9d956d4d50df8cb09951acb5893d36827bf42dd4f2f9f1edc6546949b67076fc46fcca18 SHA512 afa309caa87062a5b35b47ed3c7e1feab884ba6a847f35165174ad9b16ad17e703dfb913ff86fb2b0a979da3f646b0580658950db5ef90c118f8fdc97488c095
|
||||
DIST gentoo-kernel-6.1.153-1.arm64.gpkg.tar 68413440 BLAKE2B 71f93134b58a6a6aa6ee2c4a617f423920b378a9dfb8161dbf3e74930fdcb34ce3a4f7fde66d7c57c4e83f61a2b4653c311d8200c95f2e7e77390075a4a270d3 SHA512 3864894b608e14d40b35e91d41fe335574d9430b0020ff094317f4fbfd484a3db2eae51af892d8e4c13cbaf28b022e4246345f346b00e39a77abe66429917728
|
||||
DIST gentoo-kernel-6.1.153-1.ppc64le.gpkg.tar 61808640 BLAKE2B 19a9c15f88f3682d8815ee330a98c4ef427cee39b891dcdd1082a4dc4b2f57a5b372a458cad2b141bd35a3f9005c301cfe3e96f4a8637fb3415c250311b1ac77 SHA512 22f3665b69e5df49e20147f0f21110b1698b181ff4ac5bec2da627f40a4bde4472eb2405fec64ad6e26b347f6a5aab7ffb2c04ca82beabf6d6af205df770e79b
|
||||
DIST gentoo-kernel-6.1.153-1.x86.gpkg.tar 64849920 BLAKE2B 942a6dda678c3c01f9b428a0391fa025f6837bf284ecd06813c327409d3f35bc9eb9823cdb982ffc6f366ea571954275590985ba130ee9fbddd12eccfe09cea0 SHA512 0873481de0fdc9daa2fe1ebc2754ecb799dcb123563895dc36757bc08cb35dd057fa820d668d23e731b54dcc75c1c03136edb737bd218c644c881fab38b56585
|
||||
DIST gentoo-kernel-6.1.154-1.amd64.gpkg.tar 75509760 BLAKE2B 6af381138fc3ff188ff01c268e42c097502601395616258c7bbf823e47ba2ba1831d1e2ac7dee6cd75284a12cf33a205136c1fb9f901f9eac9cd4cd8af84c37c SHA512 2c4c426380791855038bd0b28ae78ca17aa2889418456eff27245a6e0ab354e4c08eab3c858921d0974f8fd9ead93d947645fe939e387dad8fdc8e0b56bd3dd8
|
||||
DIST gentoo-kernel-6.1.154-1.arm64.gpkg.tar 68413440 BLAKE2B 9179d94573b057a2e290925cfab747554e39459bcde98e8abf812814bbf6f9ca6f58869595d657f4e77f066f63cf78cff78f884efc85791f4d1c470c04114372 SHA512 666ebd31ff0db3876771a1e813f18667e8fcf3307acfdd7e8c25e6f53970d27b561ac24975a3d04b0cd35c081b180708dae64c8c3a8bb80e6efcda370f3351ab
|
||||
DIST gentoo-kernel-6.1.154-1.ppc64le.gpkg.tar 61788160 BLAKE2B ed574b864a3e199e31468136a01d1d4d007ea1ebe6af9aff1eb20812c0f94e013743c9b4ca315bfbf5d700af491978936911714f53cd7a04bfe7be2321246cbc SHA512 43286188c6766f3d963192a71394d3c4d567978bd23fb39e185ecf6613adfbb292b34a7b0f3a2a3383330e17c2bdda1aacf3ab1c38446d4286cc396b97e3068a
|
||||
DIST gentoo-kernel-6.1.154-1.x86.gpkg.tar 64829440 BLAKE2B 65f155fe80354d6cf8b31c8112564ff2c36a8dace1e9ef68e2b1fab226c60d5718439fd40bdbd83767f7156b7c435f84a7146e8629abb296351e92b039239af8 SHA512 3e155aad2ff26a218ff93bc640b60541a71097599f220f25d4dca5b09e4175e5a7cc13876c8c8a1827ef6279c77d071acf94adfbd6db4a264845c605a746f083
|
||||
DIST gentoo-kernel-6.1.155-1.amd64.gpkg.tar 75499520 BLAKE2B 5da0eda3d46120b4f2a0337b94ad69142f94e0ccdb8530588c0d04606440b41773d0ee57e97526fed4291f5531420bb7d5905bf80ae92bd41fc46177bdbeba86 SHA512 b83bb50d99ee7ac405e36dd8f77394f33bed076b64b439816805f4efca575f27d48b06561ff2d964771728714b202fbde008a4ca999ea35019c68638e075c0a8
|
||||
DIST gentoo-kernel-6.1.155-1.arm64.gpkg.tar 68403200 BLAKE2B b98d6d38031ed05d7b67d758bb25d9ad2b5eb60a42df76f94e8a059b00af9e2ff0df6bd1367b3efd6ac3081dc0b65eff5b93adf173d8c67f6647cf8a16c33481 SHA512 347db5d984194433ad0f6275e852873d50aa81b2e8b3ffd68fe0223afb9617a042bec5dc09061a02afcbf7a367bd3be7103ae5fa5ecce8a9388e2b6e3ac8ba04
|
||||
DIST gentoo-kernel-6.1.155-1.ppc64le.gpkg.tar 61808640 BLAKE2B ae11f2ccc3b97bb7fa6e109913d0191dfa1f452bdaaef91cf70838570dc66ddf75b77a198bed0a8b2c5103a37f0195f99317c9624c69c3269021d89944352837 SHA512 de89757c65a307f1b09c06427f639a6c5328067fc8750d23c0b83c15c8dc7c0e25bd82dd292847e77faea55dcfd17df4d5d63140f4dfdbd6c824c14ec31d6208
|
||||
DIST gentoo-kernel-6.1.155-1.x86.gpkg.tar 64829440 BLAKE2B b7a24875ddd5a737900d4cdfb9993f01306ddb757aaf7e078dd4ca386e78c0b87baae598983ecf17d40251a50df0794df7be4b0464386ce1c26c27a9b8827af3 SHA512 7ff37a98ff7874fe8573699c033165dac952e87c3b245d2fc24d544da608eedd65592089934f14d0cdb808bc3f432bf3232dcd9f6437cdc723a150beb6471d5e
|
||||
DIST gentoo-kernel-6.1.156-1.amd64.gpkg.tar 75520000 BLAKE2B 040064ceb49705d5168de933db8628e18abab88cb26c66002eca98d5a96fe2c62fd4c390e12e2ed6aaf72e3da2d573daeb81e5edd626308fc68c21d7fc55b991 SHA512 924ff570dfbaeca211b4477aa77c01a5944f28cc2edabaad44c2b165befd9ef8da356a8c82fa80b86493eb25a6d2a73a1714bd5a2c1df4fdd1bb6c8ce85696ea
|
||||
DIST gentoo-kernel-6.1.156-1.arm64.gpkg.tar 68423680 BLAKE2B b245b1aa7cc369b38cdfcc89e140090cbb07618bbf2d1fcb3ad8926e711bf288cf59d5846409613552dd79f2e4559f7b33744dc690e7a4ef203db3165a00d3a1 SHA512 1e784cbdebd689ff16e60b8b373934dea374f7ca90ab484d9ecaca63a9291a4a0e0cb0d70406093b19e61e95807d1f859cbd7cebe192e206329cf9d13abb3403
|
||||
DIST gentoo-kernel-6.1.156-1.ppc64le.gpkg.tar 61798400 BLAKE2B 7f3e4e23207adc6748085a5f468f7eb321e82eaeccb03a7a4f6d3f026c14293e6592a19aa3a2527ac9a40b13dc6e6c8ca1c7e1ffea90ea06b78ba9f9b0a0aaa3 SHA512 4f8ef42cb45aac5dc9e1fb45bd257dc744e3beea6665f2abd98e3c0cb8e39859ffe8ac84767df1c8fa96b18e09f9df3642b836870137980ca8dc2cb648d347f7
|
||||
DIST gentoo-kernel-6.1.156-1.x86.gpkg.tar 64839680 BLAKE2B c0a7cab6b3cca0c34fb5040854ac36a6e8323d1e223de8dcf4ec576c0709f8581757b2d8c691f0e6487be3e854afdf0ff8b4909550efe224f75aa7da8f0bef48 SHA512 c955397169be204129bf5358190f162b671e6bd328968b0730264eb59b082607a494601c8ac1fba01f8b7550e6dd33e709f2c3d77a3dbb8aaa4449269993cfee
|
||||
DIST gentoo-kernel-6.1.157-1.amd64.gpkg.tar 75499520 BLAKE2B 7f17d87afbac59e339caeb18462cb96dff6bfbed07ae0e5c6b2f19ae1fe93da9915f288fb87b8839c88fcb236ad950bc154e4759b4282a5f26cfe0edad9a9e5f SHA512 0b3b4f83595bc236f178502257691c67b820eeeabfd3a877543a6f0fe2a42c639c4e5a7910fc0a4196c324123a953ca67de10c2aa1e78cafb1ca80d89207821b
|
||||
DIST gentoo-kernel-6.1.157-1.arm64.gpkg.tar 68423680 BLAKE2B 864808b69cf3826b2af89e74dc2d9ddfd4ba72ebee8590b566dc7d5e77dfa8ced705a3d5a08ec67a5029afe7ed4d914647396f4ff28166954ef8adb488e5bd06 SHA512 c7a9d535e29df589878ff467d727668a79c56e134871b847dd3a8a766900fa34d62a2c5a6f3319daf858ae49503442f03f4e3a89dcecc00274d7bf69c58c1c2a
|
||||
DIST gentoo-kernel-6.1.157-1.ppc64le.gpkg.tar 61798400 BLAKE2B b87c5658d27255428f8d359d4eb77021da1d43b8e353b3d0cf04e73b1da9c4039d51695488013e29f08139624f5434386554e12559f93ee40e5c6e0735071b4d SHA512 35ae6fed8768940ad7d3f38b71c0d5b9e57285768ace7b58fce3e9bc12a9909d71815b8b933271dbf467e8c147a5d9d0c340aac3440f732290c916058a5b48f6
|
||||
DIST gentoo-kernel-6.1.157-1.x86.gpkg.tar 64839680 BLAKE2B 8905fccddfb980bdfd49fa7fd6f6c0c44df93c2eb6323249322b35a2a0b7e31cbffb8ee0354814956305924eaf2d0bfd0434ad43032a9228700b8a5018a7f3c1 SHA512 8aaa60d70ca6faaf8d9ae3f24ccf17dac35d66b8a330b8849eb6da9ded4d3c99d631d2cf6785ccf27876afb385ec9f5dd5e02ff2ff851fde8a0925c8102ffa81
|
||||
DIST gentoo-kernel-6.12.41-1.amd64.gpkg.tar 305725440 BLAKE2B f13fe3dc3cc254e5b66c22fb6a2fbd40dedb500d240fe9bd6d69ac8386180a80bd97fb5f5ac86d22010eb5c1cfab8c3631eb4cc0c0ede759a8ab9e371d62edec SHA512 8cee06c0993c69ad2e551882022cdbbc083cc6a39a1e3be89b7ef14fffd861e9d5e6cfa5db963da377a664fa175d0dc6ffc4da1d91eac90467c2127b2a6bd14d
|
||||
DIST gentoo-kernel-6.12.41-1.arm64.gpkg.tar 279449600 BLAKE2B 46660c67f31a7ac9fb3c11bd5a092cb84bd290d11c19251c78636fcf09c1b86ec35fe5169448d1b7ca7d3855299c8b39f2e7def97eb687d434743f121b9f2496 SHA512 795a21c29b537348ef02d017ca04ec0b0d08f02ba3d485221ccc1791df6d5655a2ad12e854b005eeeb2feb5a2ad6f06439fed49c62365d82cb1f0f1d7b9de339
|
||||
DIST gentoo-kernel-6.12.41-1.ppc64le.gpkg.tar 73318400 BLAKE2B 322bdc40b8691cbf853e8296445aebaa67c6e964cbe60eeea6d15f73f055be4c8b703cb6f288aadea3e2a68cbd9194623ca27544bef26af59736990454890f0c SHA512 72b146dcc31c77634e81b3b898aea3f2c39d0098653f8d858c2f430fdc7198314b18682d729ff40f8ebadf8ababd4b917bca3136ab028b8305d06d6e311d9b3e
|
||||
DIST gentoo-kernel-6.12.41-1.x86.gpkg.tar 77660160 BLAKE2B f67bb6ae8d4469056c43173f4f4fc67ee765a199ea015b32246ac92b0d89c3315cfc0cd85941355dbae700b5d3e34ca1b091cc0d018352a39b6a46a76213b80c SHA512 19133fa20950aa8c1ccdb0dc640903ba263d732507296d37570b081fdff78dbcad848b875f3a3fcfb0568829003527dc01eaf48985446d0233996687cba3f0c0
|
||||
DIST gentoo-kernel-6.12.47-1.amd64.gpkg.tar 306790400 BLAKE2B 0e30fd2faf1d826ce1a728ec2e002ef10a8749704f91dd3bae4495e28d25ab61a520a9a78b98d92d9011a482cb0615982c926b42164ef04f13d4e1d392193ab5 SHA512 b989cba75939c1f56f3b434c3fa004ede924d52ad9f33d617de3610c562537507807a07a4f70cbd49c357d3c0beda78a313572ae93e80126d00ab492547eb4db
|
||||
DIST gentoo-kernel-6.12.47-1.arm64.gpkg.tar 280064000 BLAKE2B 988628a2a88d0da877a8aef172fb165706d759232648860df835d3891841e3dc1fe4d414b5ccbea94c43c44302e224021c3a970dcd466c11a278976bc99484c9 SHA512 8562863cc2a84e3ef014004d06f4df62066f9a568c84d362ec2434a3202842cd11b3c92aeb4258379567a17bd9746e2d01172453ab568654f9b22832c97c33e1
|
||||
DIST gentoo-kernel-6.12.47-1.ppc64le.gpkg.tar 72509440 BLAKE2B dc42b1a113d725d360c94a578ef2e0ec382071a40b067b744b285c0e943576b6b717cf5010201df964bd119f8cdfd9f4909f460c6025f30aefbf653f82990b08 SHA512 82e783a0b94b6acb041a7533967cc50ebe1e9acb5cde775438516f926fa33d63fe7a0526ce6027aaad6a1b89b3bfdf08b851ff84db80523c39956e633fe11e37
|
||||
DIST gentoo-kernel-6.12.47-1.x86.gpkg.tar 77701120 BLAKE2B e87ed271b7fd338478ca00f9d9efa2601994023bd9f20267253829680ad1b27b969f1c88ea1dd5ee668754956fa3fd1c4d9996ec7676d4e0255016839695e44c SHA512 3e31616380d5cdb9d526b621761b511bb195058cfc518eac589c3da418286ff7c1c1e6ce863956288c2e9bfa47d9ece109f3e610e861c503eac379d6f08e5af7
|
||||
DIST gentoo-kernel-6.12.48-1.amd64.gpkg.tar 307230720 BLAKE2B eb2fbdd2a627f91e8c6f71e9c242049d49166f376e48f78c3ceed5547113b7d702ad4270e73158457b064c2b138c8d5f7ec3c75116372d74889a92bc0e7a5901 SHA512 22afe498e5eefeda7e18ea1f225abab7de542f9474ae754533034026488f37af1810056f028fd993cfcd656f636664ffcfb30fca2cf282c035be63cfde481007
|
||||
DIST gentoo-kernel-6.12.48-1.arm64.gpkg.tar 280412160 BLAKE2B e3fc4d19979b15612c3949f8b1de2a99233172a6b5c5c0a9ff97dd3401a1f4c7be7f960b689a578ca62364421ee5bd27218684eaf4c4814e483374b248cb0888 SHA512 e4963de0ea5fbaa7f3cafe3a784a54ae29ce9fc02f0e7243afae75f1fa7ea5d872ca7931da8c0a4adff8396b6dd90eb3c5ce305e51c25f9e6b24658f2bdac607
|
||||
DIST gentoo-kernel-6.12.48-1.ppc64le.gpkg.tar 72519680 BLAKE2B c0895465884301067c56433bfe5bdd6b767ac6cc87f75579999f430c6d90a51ebe226387c1631128c2dad8180088a8bf54f4a419b1294335153b503fb865c801 SHA512 7242fc8fbc2ed3c7a03793d2081b042e95ef03103d9e83d632d57b94d0badedc68c5bef3fa8288ae903cd9d240620eadefaebd5b6b7046c9d017b4ea40960a41
|
||||
DIST gentoo-kernel-6.12.48-1.x86.gpkg.tar 77690880 BLAKE2B 4de3c4be7859f1fc9bd45a550d8ae0cd06bebb933a02b783ca794f6e6ae5dd0b126bfc20af73390d7f7473ae5abc84abc205e1eb15993f516ea93598b815a7ae SHA512 70de9ec566ebf88969e35ec6b682a9b4371e617b8984547ef4d2c9999c68e0b5066868338fba0357bb65f3963eff26750395003e4a731862c53703d1d3f3f795
|
||||
DIST gentoo-kernel-6.12.49-1.amd64.gpkg.tar 307220480 BLAKE2B 73ecba785173b46a15270f4fc3b06a6d3f86cab42dae2373ffed387b48eb3f55f4ca2162d82d773d70b4ea0410db381d32fc3a279cc1bc892a7b3ac8d8a066e9 SHA512 acb59e77675704ebcb9d13616481126129f8f4899e303fbf51aa94fcd6795c3de7ea888c7056808ad234a0855bab1ac57338bcb34a4a503e7e3a74c3921864ab
|
||||
DIST gentoo-kernel-6.12.49-1.arm64.gpkg.tar 280412160 BLAKE2B eaeb5bbc255fec095c3c3336bd282c82b0dde8754dbb4c2ecc5fcaebb31408de8f87cbb9caacf3e14d52b609f321c5bcfa3d635e6ba5221c83d9deaec6d40407 SHA512 80715128aa35b93131ddb8c9f7996073e1109e65061627504ce3240459a5342a7a3df86f989a49bdf550438fcd99219245c9aa489a213d658092b6ecbc18847f
|
||||
DIST gentoo-kernel-6.12.49-1.ppc64le.gpkg.tar 72509440 BLAKE2B 5a259b67e380a1dfc3074904f7daf91dd334ff381defa964f62f20f71e31a2792eb70d1b509a5e30e6f676c278b5baa3988a2a21874b14281466f8743d3bd587 SHA512 82255678dceb38f7a4cb5325f1abed4f90bde2ddd2b1766823bdd500392fd2fb0b8cac88eeb5296177c9c8c601a43b1c9b5b442ac109c04d14f83c485c9e973b
|
||||
DIST gentoo-kernel-6.12.49-1.x86.gpkg.tar 77680640 BLAKE2B 24e03423faddc9b397bcb49268fd61777856266444febc8b8b781b4fe191b38de943a6621b17246c259170fa293fb70397eb83042412a0f40c01d1cedb98db4f SHA512 9b3cee48bebbd9f391b3a663a87d081b138fb660833d30553f15134b57db753debed37b5e3b5fa51a35bcf436dd21b29fe9b971044c1ee5e17aec1692bc91928
|
||||
DIST gentoo-kernel-6.12.50-1.amd64.gpkg.tar 307343360 BLAKE2B 0a4b0c80c7012f27a395ba29fbb84ca2246485b75ffce682b8a5c09b843e06c713f54e36582f3e69264b64a3caf70ac49cffd9d8a2470578c621bad71c73f60d SHA512 6d1b019294b21ce6a2fc5fb7c424e6c9409d92c5da8242a5ceb31f0b20589b4dce4b2ad12cc5ae8744a87bfa6a3a15874d9a0e1b74e49b50b4f702b01ad5e8da
|
||||
DIST gentoo-kernel-6.12.50-1.arm64.gpkg.tar 280565760 BLAKE2B 180e50b3c48684991708f615d44f2337c1c34b01615ca49016869a278edf40ebbd45380429b0d8ddd5337b9b097e419dd688951b68830b0eac4de95ea1031565 SHA512 57fec29c2ce4e732f0ea1dde8b1d02b1f5f10fd6b8b00b2ce37ed1dee0a1d7b40ce39abaa67199da36798ae543e6de67d35bb5faefd0896e1fca32f26043f510
|
||||
DIST gentoo-kernel-6.12.50-1.ppc64le.gpkg.tar 72519680 BLAKE2B e4490e3fffdc7fad9f68ccf14f08aec4faeb6879d941e8d2d66e18378485526da665765c33152929ba28bfac0e43259280bd998c93f28063a3223068d1dea31f SHA512 c5bf4e230cb2034db379a65c6987432f58aee12fef1568ef3ff3d42184628598dbecd298ba07d96a0dcdb8a34d51103b5366c8a25564a9d7967988d92f7e5189
|
||||
DIST gentoo-kernel-6.12.50-1.x86.gpkg.tar 77711360 BLAKE2B 852a46510b9a02ba3fff36d6960f8b554f59869323b0898922abeb856a7916382a8f53e611918298dc99d90d84a2ad464e580410891c9e0db69bbad46756f2ed SHA512 4f9bee826feff098fdf50770b93777dca84d2e4bef8edb8ce243e32b2ccb915cabc149220bc4d6da75f0f26d53f1889f9c1ff2ac54322ff4dd1afac35a730355
|
||||
DIST gentoo-kernel-6.12.51-1.amd64.gpkg.tar 307343360 BLAKE2B ceb100309440770f1d23e834ec9c8f86b99dd0eb8646f75132d6a5c95134d609ab8bc19e75babfed302bb4a0abd7dca8b71c91c1ae5915e90b7d91b5f571b5cc SHA512 56ebf046526654ca3a5ba1e4398d9ca4bf8d3ce3b34d02002ac26f19a72bcae01c560de7f30265ce31f72eff5f9641d4aaace7b0b7380d7d061d6c0d3868b80e
|
||||
DIST gentoo-kernel-6.12.51-1.arm64.gpkg.tar 280545280 BLAKE2B 299b4bbfe9ded71dab48892ca359ab7cf47021e4ec4b5b5ae3d1f870769daea74200e932d407f0146c48ce2d53b72848236d03a3535f5e2ae6ff396835d1a3e5 SHA512 0c53780fd4acf6317ece323c2cee3d3b67aeaadb39fc525ec1e941bae300bf3e1e9c164a0687a955d012ad8e533f2a8f1b03ec16b929a22525bdc360f9d2c21e
|
||||
DIST gentoo-kernel-6.12.51-1.ppc64le.gpkg.tar 72509440 BLAKE2B 0fd28bfa212c960e31718f1ed82a3cf8d1f4652d35384c75dfc2b24ec7cce42df34014e87aae0b9efb8cb8c9fd6c429a7d0456d7db6bd05b962fe3cc6452b114 SHA512 5a8745fc6af3f20a4ab965fc2a4d4f11a794fc6fe2c6ea54ea5c8f46e47bcbb86265746b828249e083bdaaf4ccc497f5aca8f6a048a742331be63de2015afe9d
|
||||
DIST gentoo-kernel-6.12.51-1.x86.gpkg.tar 77690880 BLAKE2B 3ece6ef3521967236001a750ccf0e0e224840d21bb2b9643e846c8bd057a5e9fe677c719ba2c3625db54a5cad562241f2a2b76e3027e9221cd6d13f08cdc9ea5 SHA512 67806f07c934962601e52da8e8b274f3886d5f9f59098446b62007f828c28ddc65d38831ab2864173ffe91e908c8f63a2dc6d0e8849e117c5b21bf255c9d1512
|
||||
DIST gentoo-kernel-6.12.52-1.amd64.gpkg.tar 307425280 BLAKE2B b4abce5c8354410162680109eaaf948502c52971ff3a36468f36fffd75ce226d122af62bcbf4385d60ec20ab304384fa99cebd328a00791ea9d2497ef1b9a240 SHA512 628b6d45c2f01a0f3d3f4fafe1a747d12377d84601973d5aec3a7ce9dbc8cd2cd285b48d977eb4ebb77a34f8da94419959d9c958bbd8d68b4e54025bf712360e
|
||||
DIST gentoo-kernel-6.12.52-1.arm64.gpkg.tar 280555520 BLAKE2B d5ad239cddfdcf5c236b8b09d2e548a2ead002f3e4fa228d9b3d39a6fc18923dcddcfa16891e8c814b5959aca45456d0a341a843262ec20d33879b47e5ebda0b SHA512 799bf4324f4e98fed3fce7ad9beff924f68c6c83d3b047e6a90193734dc7b60fa387ad46790f087773230976559d93fc9950314626543ceb241928058964d8bb
|
||||
DIST gentoo-kernel-6.12.52-1.ppc64le.gpkg.tar 72529920 BLAKE2B 35c4dad300fe13156c600d3ce513cd0f6f989a7e631955c7e1989ab189c04335a88562106266efac27fb755bb2d760ff98c15b8071e8a0cb92565aa65f2223cc SHA512 1c1077377d73f528fb318a634ab99a85eed36e2ef8f2ec4efbc9fc6dff5067c30542d8aa6c9b441b5323f97e43f319859ca2e3463a0c16f7e805873ead53b30a
|
||||
DIST gentoo-kernel-6.12.52-1.x86.gpkg.tar 77701120 BLAKE2B 8c309e51cf47679edc83e2847f0097e153e9cf0141fc1fcbeab84ab7b6e549b4ceb010a1ba35add43cbb318a33cadb7ff6861ee97b68b4c786862b3dde3a2322 SHA512 7c0e80936d1d2d7ef3e966f6826ca502343af9a1e5bf8fea6f55a0fc8c31d3753925d47890557827fefa087a4b8b91600cb1feb0feedacec1cf1c60160feeedd
|
||||
DIST gentoo-kernel-6.12.53-1.amd64.gpkg.tar 307343360 BLAKE2B 18dfb5fea91c07030a1ef492629264dcef7ebc7458c4545547231423f48217c20814675d730603a23f75d3ad938c1bb5bc086f520c35f198417fe15bf92721c1 SHA512 5268ceb6da2f63de5436e0a265e70fc519a505d28776ef643ffb5995a8c220f94687a9563b0859b458143afb02377477be609fcd1f1989998447b08f64b71741
|
||||
DIST gentoo-kernel-6.12.53-1.arm64.gpkg.tar 280576000 BLAKE2B ab66d5716ed0a6d6fa8b7112b4db41b2ba810ee1403c0584c4a8d8d210e139da833f665a22c65c1d469580cab9d780a7fcb271179f728aa4e0b760cab7f6f736 SHA512 7de014c924574391088f2c0660d2164b8f51eb11f46d7ede6502de857b4816ee960b73f2682262ddc316143ee627659231c3653a7bd680b1bb49f3e0ac49372b
|
||||
DIST gentoo-kernel-6.12.53-1.ppc64le.gpkg.tar 72519680 BLAKE2B 10635e4be1b791241c990d2eb1d011375a4b1cda78e94e43bc422dbe2aad4aa905bd0bdfa3f92bddb7de320b64382a6f6bd6a6f481d9978bb2b133e9346c6121 SHA512 d7b7f25ef346fc755f90773db65c61215ec48f223a6714d347786cbc5130ff00dd45afe804e4d8c5e27a52081d1558f91a1a6dfab3f1e9f6b5d98ca55d913c5d
|
||||
DIST gentoo-kernel-6.12.53-1.x86.gpkg.tar 77701120 BLAKE2B 537f4bdb408861e214b2bfaacf9f1b57aeab3e7b473df5cc0f0eba3162534102d70a166b4ec89bbc9ae8a4d2f116ae526308c289d8d6d4033e989b84c14e2e22 SHA512 e058141d33e5e6dabb079a06297cabc5dfce08ca3d8e24361bbc2bb9f6a9dd06c67378275332ab3d3d27a9eb105bffd29f15a4a70fda7997010a77e1b4ca6201
|
||||
DIST gentoo-kernel-6.12.54-1.amd64.gpkg.tar 307435520 BLAKE2B 0046f8e7507b7efdb6b139ff7efd474cce41e0d9064bb1df172cae77b0bf8007e4bc92738ee21936dcb094634c85f15b4268bfb53eb00cd55da523ff4f4562f1 SHA512 ce8254d119637b69392e8f58b011b50d091e367643ed7daf809c90e4d78257367e14f762c2e589777ba97696909fc1a5e9b078d5c6a518a04f9adb8f6c8fb812
|
||||
DIST gentoo-kernel-6.12.54-1.arm64.gpkg.tar 280381440 BLAKE2B 7135bc6af32a12b8a5e598b23e06737b68d05e57604c6c2d394ca1cdcb093ec4b5e0aec98f90a587b4e4ef5bc8e2f4146560b4391de8a8f93b0fe6157f8a52f7 SHA512 c18775d91822deb530a33f14bf86518b32628be2a571ef199372cad20fd22d081c8f932b8444626f25c467d8f76f4730c4220615550d81cc44e924481e3afb15
|
||||
DIST gentoo-kernel-6.12.54-1.ppc64le.gpkg.tar 72529920 BLAKE2B 453289f015d305f4c2838923176d82a4efec997b4c2314b219e48b225f704c075410787a94e1335f8edb6e745f8af047bbeb9ea5808dad9c869999cc286c75d3 SHA512 5b57d8a30721884bcc2987e737dbe3055d9dec40652355b0cfc987a0e8ccb75874d27eaa6f2c438b53ea0b5fa40395ae4f2b00f856a433618176d5c839739c9e
|
||||
DIST gentoo-kernel-6.12.54-1.x86.gpkg.tar 77701120 BLAKE2B 8d997d92cb399e9b063809584bef3d33cdcccbbd8adc4663f0456cce005f7065ed17e25d4f853d5dd8f3a213590daa9936095b2002a4ca53a30dd5653a2e3db7 SHA512 d35aadcc3c5457e32673efd23ddf120eed687705aa26eec996ad741ddc96ce0134c09cedb63e75a41a6926d17f1595f43eedc3c1f270ea608bb32ea67bafb0ed
|
||||
DIST gentoo-kernel-6.16.10-1.amd64.gpkg.tar 329789440 BLAKE2B 5930008f0259614a8ed7bb584d2699dc99fef63f6016650d58dcb005992dc687df42aa4bc0dba895f1381e0f26b0ffd7a5135b25cbc18dc6d65bb4a89d0ed009 SHA512 656d39cf124ef10c171410566001eca9fc3c2835d465afa12723d2dc950d77ef88313d191e90bccfb114e3cf789f3bda8a7ea247e351ac83c74f2ce18e9310a3
|
||||
DIST gentoo-kernel-6.16.10-1.arm64.gpkg.tar 293253120 BLAKE2B 0591b2849b70d03484e04c6be0b7b35cf922bd1160183e4544dc5b99445728569495386059995099f21b5814e06cca422dc9c925a7f0d35acf7f49c869bdc3b4 SHA512 b4b678d25f4a56dcff9fb3225110ca996434272989f8dda7b7042c838e193fc74f7bbc3a1ad5880b190005b2bcf4f78b853add51f4c9f59ca0224e4471839e12
|
||||
DIST gentoo-kernel-6.16.10-1.ppc64le.gpkg.tar 75110400 BLAKE2B b9afc6272632d40c3ba02d78ae644e183a00600ad6dacb79c460b80ec6783349676c399a15bb04e7da94f107c0b8ec7e76f941f73d264a771b4ab6b9937fe7cb SHA512 949f7930f34f8aa4f84346e406e57e32c1c4454a36105d97f2a1322066d2b225ce2f2affe4057b606c67854e0753d6e031e42913e01f60cc708408bb8e1c7600
|
||||
DIST gentoo-kernel-6.16.10-1.x86.gpkg.tar 82749440 BLAKE2B 8343fe42939a23f02d0f747919b21d14681d76b5a86ecd52a6f561a79b2c3f40120b525b9be4debc48edcd87fb75287febc732f70d32d9d58038dca00a9d8558 SHA512 09de71f2f12f62c8047e5739dd130d6f45f383df312fa78b058bb58e3a347e8d921f40cade3a527b0f07233204c3a33e7a1dd63deb068bd7fd046aff970b5805
|
||||
DIST gentoo-kernel-6.16.11-1.amd64.gpkg.tar 329768960 BLAKE2B c038e32a67f09c1af6061e9d35a85a75d82f76eb64501fb480f85b8b478f021016a207ff4f2ae64c23ced13b8f2127128194198e4396c1e8afcd8f8887d042cc SHA512 49752d3d0f5ee6ce8c4ca73a0a59bbaea1c5a1e7418e9a6e675ceb256522af105beba96264faa60cbd7330217b8c631255feef0bf07e6f4f293a7e963dd6a466
|
||||
DIST gentoo-kernel-6.16.11-1.arm64.gpkg.tar 293263360 BLAKE2B 3fac30b85dd8e6df6a3bb769b7efa690a268cc6638896992ddbd0b72441f504b8609f97fa028c1cc4db2dd5a582ac2daf66f25a351bc4f70183ae360f431db95 SHA512 b9395ab13c4473aa5986c246c1688afe59b0f0073fefb965218b4930f16b6d356883c6eb99d0f4cfbda75879f98af097c0c3249ed973a61f8d9cd0ac3f57a788
|
||||
DIST gentoo-kernel-6.16.11-1.ppc64le.gpkg.tar 75130880 BLAKE2B 7fceef5ea51102fabe65d25003d601a7017e1e1bfbfb654d508cea639fe100ca8e9c1714cad5b067d2e375ced49d6bc505762d0dadaed89cec2416dd171f5e6f SHA512 d2a642a0a61f54cb3612b4599e5df68be052a4b238c1f0847d8542cf7cfde4fdb6142a27c8e8b37913d7a8d37445590228b57a9c0d60aee3bb831bd28fd573d4
|
||||
DIST gentoo-kernel-6.16.11-1.x86.gpkg.tar 82749440 BLAKE2B 9aef77d2881d016e6c964baf5cf3303c10cd255f73f653549e58758128750cdb477e2989729f29870998c317cdba356f727948d1b57470e3143143534f551294 SHA512 0c2da623ec887cfd5104792fd4235e7dff906a6d3fd3cd225ce0a8c85328bf69b475543ac039cc0b7b4982a3fd9678471e9e5377a91f8474a96c11886aadc09f
|
||||
DIST gentoo-kernel-6.16.12-1.amd64.gpkg.tar 329820160 BLAKE2B 8597839728b362280ba8372e4ea2730a554e06ce70958a52a2561806478702044b6157ee3bd7ac4d7387a904fe2d77afe80ce24d8a6440114728a1cba24e6961 SHA512 cc030c6fcb1e847de47842ddfbaa502b61dbd9fd7b81dd9f57d236bfa3968ffe66631114c4ededd23f41c72046ee7be945d8c877a28d0bfa923f727b87a4de68
|
||||
DIST gentoo-kernel-6.16.12-1.arm64.gpkg.tar 293294080 BLAKE2B 85c8e58181740fe2528dbf22308d6d25a8534ddc0a2fbcab95051c38d774fd25e6b97b2e9449f480ca5e270d54dce9651f9a4589720432c214372cacc16907cc SHA512 fa2b6f69884a017abb4874712a2fdda996c19134de7962ac08141a260c33306391523a66727dec8ec2c4408a348fce3e3493bf4605a9f1d96915625fbccf95e3
|
||||
DIST gentoo-kernel-6.16.12-1.ppc64le.gpkg.tar 75110400 BLAKE2B e996cb2b850afb16720b6c7fcea1bd52e1a85f5e2f86c682c4de506de0a4ac400c338cae9aaaf1123d2fbdfc6665f182609840a869bde747aeac9a3c4f804ad5 SHA512 de3f507c585828baf3cb026bb78f243d3c632fecdfddc57ebcae2bfefbf488de66e9cea151497995c8fd013a3e8f283f9266e4fe579f178522c4dcbb495989d2
|
||||
DIST gentoo-kernel-6.16.12-1.x86.gpkg.tar 82749440 BLAKE2B ee66d9b4da8d4b8f9b8c543b187969a395a3a4f17d435439a8732eab0af15f25b1f163fd0614e6d75f13ce9a3f4ce61054ac5483d95c24bf7a217cd24918dede SHA512 94138a69cd0e2c2a26a53367e7ee62f59aa241ad8fa86ea8403b9d3363d5db1a2e7466ae34fa7845c0e9611c28aa6423f9d217d333dc4ac302aec9de741ab0b2
|
||||
DIST gentoo-kernel-6.16.7-1.amd64.gpkg.tar 329390080 BLAKE2B b8b706619d594b59e5929e5d95375c7b952ed93b5d4bbec2b901a2c449f456feaef3c78ba5a2475e4e887b67b0d2ec9e654a8d707e40bfc8a5df31e2aec44c73 SHA512 4c131b3fe95b89c3895f2e72660a4f3fef7653de150052026c34418bffc5ff2d9678e078a381cd3a8340a48da3ace5001b398ba3eb7543a49ff4f61445ff3666
|
||||
DIST gentoo-kernel-6.16.7-1.arm64.gpkg.tar 293079040 BLAKE2B 768a5a1a0fa68fe5a9271dcbfc8c62a7bf28bd3ff0f137650dde80cabf45467789b9c64c4a42cb259ac86c93e44afeb229f3feb65e2014f8938b2b4c6a6a947d SHA512 2f2c01981bef4a70a33c0576abd7553bffbbcba8795b21fcb4759d3f8e6cc6d83e8ae83775eefcd95646a5c35069af2eda2b876b61ea5924ba12903f759e6537
|
||||
DIST gentoo-kernel-6.16.7-1.ppc64le.gpkg.tar 75110400 BLAKE2B 7a8bb0e1eba032e195c43fd1a9aa7c001d9ac4c1dc2f3454bef6e45250efd4f52059f596043f1dfbe1b15787a99b22deedc74a68021ca31ee414b0712e608ef5 SHA512 c218fb9effe529fa9003d5c531af2e7c404ac3898bd9813b359d2e15582c7f5ad0519ee23d18960656c2521647e1c4705e09c3e03f4054035cf4917d78e36a06
|
||||
DIST gentoo-kernel-6.16.7-1.x86.gpkg.tar 82728960 BLAKE2B d708ed231b4b47f6fdc2f03f63a5f904ef51b2673ec090a70b73b1bd9b6b7a0168a42dfd099e541d180935fe6e31bd05e47a84f6590ab3986ed41899146ca34e SHA512 257b185b5a8a391080f798fbae1c19daffe87e7e0f28b0ff5569020a92511db4ab8cdcd68540ff04583ec4bbae8b91c39c6577c1ef747dd892c630a133fbaafb
|
||||
DIST gentoo-kernel-6.16.8-1.amd64.gpkg.tar 329646080 BLAKE2B b272361b88d5cfa03f9d0be6541175d55ab115255c3ea5989d303d05353bd4b2f8b7f09a15e1371e87ac840946583c9f5ad205b77560847cc206c2c9b972ff5e SHA512 1ddad5d7285cc173357f9f76ac9385a6b224145d76eef22599af7f2555d583ae969419020affdea301ee5258d83d6bcd9a9e77d63a501fb9d2e62679b210e879
|
||||
DIST gentoo-kernel-6.16.8-1.arm64.gpkg.tar 293079040 BLAKE2B fc67be7d6e75f3c18ef0d5c2298f114a3cb60ded4a2ba0f8de508a0ee496ab675226ea6128411e549885ae7b6cce4270b026ea2bfa6c5436a1f50d835d0729c7 SHA512 0152bc74b235593fe03a3fc450d6f52a282ddcc6faf629b866c2c7b79e361d77b323695db65389cf1fa1fe08b61bc7057da1fe98f3516f88d373ea93453b7a4a
|
||||
DIST gentoo-kernel-6.16.8-1.ppc64le.gpkg.tar 75100160 BLAKE2B 978d3a66d083116c8c1a01ccae8411431af0778607bd91ef2c215bf85e09f7d2919495a5310a527e9dd67f0b1958625ef774d9d9dae7709d5ee091b28978fb40 SHA512 0e395c744d4afac242375d5097a416de1b7b74e9afd05857c50058137cdfd217206a42bb47c2a5fd3d5900f45f3fbd4e788f117a2f1ef99a71e12f1c4938f6c1
|
||||
DIST gentoo-kernel-6.16.8-1.x86.gpkg.tar 82749440 BLAKE2B b4e632e5a9736f5fd7b813c3aec009e8816ae9770d97fb91df6d22197cdce81abae9aa52d31edfa695c4598a1876b2e3a826a2a23731cd56b5a7beab12f30785 SHA512 d31a65f090a8db2a613b8851f699881087eb02de7dfa937f75e099cf730f9d4ebb75ba8ac31dcd1bc491d11aa6f80ad4e02dd49b96e70e1c9655072f12f29adc
|
||||
DIST gentoo-kernel-6.16.9-1.amd64.gpkg.tar 329584640 BLAKE2B b58f197a3f91f0be7377407e340000d7f1d28df817799dd2ab154bcbe78d0141d59009823abe10f335902aa71732216656f27e7bd717580d00e1458ff74a9ae6 SHA512 79d93ec3e83a58fd0b328a2a977799b0986c848f6b6ef390dbdee5df580a4e040685fbe37c7bfeb314659313a13c8d861d7348fc9bcf637dd3b949f7d0cc42f3
|
||||
DIST gentoo-kernel-6.16.9-1.arm64.gpkg.tar 293099520 BLAKE2B 98e63426d72c21fd3461d5f8cbe016fb18bc2d31142ac82772ae7772a7bfb9a5691bd02926f07b605a50a3798f41ed7d02bb87fe8276335e68ddce0fcddbd697 SHA512 ac68d7a09b2e99b138a060705ca0780b65f80b0cc1cfccd013fe3bc83748b9b496887f5cf5ce587005f9f69ff4b8f92b6cf0f1b6bc59425bcc1d473997e763ad
|
||||
DIST gentoo-kernel-6.16.9-1.ppc64le.gpkg.tar 75120640 BLAKE2B c278bfe434f81d05fba75c044eaed5aa78554b0bd42d72e0ffa3e00e2197f6b53a7475a4f8d49d25ae7babe30b808d3041ff8b72a7a79882d328ebd7a8cf6bfa SHA512 9d5a494f9ae18281370b64fa11b6b3f236f8f9d6f83ad1fde05818566f471545b9c147b5d82d3377e25700b299d01a1a362402d1fbd514d313b7e517e9807764
|
||||
DIST gentoo-kernel-6.16.9-1.x86.gpkg.tar 82718720 BLAKE2B 1849bbb06b2aae70bc5e281d42cf20f8e509a99eb447b0f8f606eb40722d395e3036d3ddb1a4f9f6b43c7bf5bad17cd8bb24d79a87a3387a712f64ab1468d99a SHA512 b3720604dccc516ca081c399818e43516865882995d8daf43385622cf7638bf2e355234dcda415616b1c711fd5db61401dec4d735e68ec72bc444bfbd002fbf4
|
||||
DIST gentoo-kernel-6.16.9_p1-1.amd64.gpkg.tar 329615360 BLAKE2B 97cf910ada3164af8b6a7282c889c440313826043e2a17246be9ceb1c88eb8bca4f963bdf341034554332021d38866b2acdf7859ac4e7be1d46a4828132a1434 SHA512 c4a8d24ebe8593f7a5b5f8fa51bdac7f880dd98c047f5e37f65e141bd1a64dc2229d1734c2d583d75d99d29073c3f58e3cf335a36ef7f8f56effd94644d77c0b
|
||||
DIST gentoo-kernel-6.16.9_p1-1.arm64.gpkg.tar 293120000 BLAKE2B 05fd6b26f620d2b2372f96774a09a4bee83c718149f15f16993ad2d0694f98a6ffea5351d7ce728077ba51163f22db416ff7e2f5bb93cf25582fe09fe827f787 SHA512 e1a6a0a39c2cf4de0d5eacad559e1f7f89d34769d9a787a5a5bc448bc3a05465cccf049864c1a0e983d73ac5541f0618014073204c44d00567d59f6dae2e3f0d
|
||||
DIST gentoo-kernel-6.16.9_p1-1.ppc64le.gpkg.tar 75089920 BLAKE2B a76a67793301b9ef67e1d106506a244f8866bc6863c12ec660ae7f85b8422e03ef78ea100c7c949dda3ab7ca5bd1e819f4a9384459db2610750b2d463c8906d8 SHA512 0193c380396cad744c3fe1a3262ff13030eba652ad0f04bc9286703f6e8a36caeb256d876690bdb094b533cf55b75d11a5a646ef3e52a2e391d3d9a5877cc1b9
|
||||
DIST gentoo-kernel-6.16.9_p1-1.x86.gpkg.tar 82759680 BLAKE2B 111d0cd5f67dc042cfaeed6fbdaed0ad7fd58789b229a8bf9f4468217cb3e15df006c7233d3067926702f7a23b8e3b35e0d6558144f2a1df8e906562008b878f SHA512 35924c72e1506e55db0323b36a0d0762604d6200ceaf928c1b47d02b138e345e984a62eb8a2aa3cc7f172c34158caf416501a0f93947f6df5644d433635efa5b
|
||||
DIST gentoo-kernel-6.17.1-1.amd64.gpkg.tar 333445120 BLAKE2B ccc34cc282325c5cce1ac0bf1be75e56d15c73f4a9e7e32ccd254e423a812afd45995785c9b6437a4a2073c0613deb903bb8acd03eee12b9f03aee50195b6d56 SHA512 6c36b1e47dfebcbf0c690b91ca792639c03bfdbc50e3a9b31fe56d000cb3955fcee5d8f6278f8188abaa4a0d78cda4a10631c045a1563f428f218da987ab1e2c
|
||||
DIST gentoo-kernel-6.17.1-1.arm64.gpkg.tar 297492480 BLAKE2B 133bc9acc7f063fc8e72df3e01812fd6b5bd59a9a40cf7fe194c0e90e00f87c669ab5df84af8eb69cd3334af8d3482f42cab1e6365d54f9c35b79c1feaacdf07 SHA512 50c0a061c27bd11b1a56e2f3e81506afadf1d2a957b39a779f7fad94ca8da413262ca99a7e028b029787a53c51033e1608e9b93d0cfd8d477e35d44d7c081cb3
|
||||
DIST gentoo-kernel-6.17.1-1.ppc64le.gpkg.tar 75540480 BLAKE2B 7059d0c7032e4ccd6ae58459e37bf86d720719a7836d66162d6faf60ec9d9d52f46ecff6ec90a98ab3dce48ddc259b84e20bf1c3a7d2dfb34428a1001265fbd6 SHA512 34123e0210bb4880253e6cde50436e756afb8c2024d97e4a3b9b632b98ee218e81b32c33b8eabaf74d4fbba68690b8ef10df2b232bc1f76e99165a56ef84eee0
|
||||
DIST gentoo-kernel-6.17.1-1.x86.gpkg.tar 83404800 BLAKE2B 663728d9c6c954bc6b53a491e4061459df0cf0a921cb90a501624d3cd36054afc3fb54aaa1c74ed4d7b630b85cf4e7bf97a804ed7fb4ac983089dd8cd348bb2a SHA512 1660fdfd86ac06757f7c3d48c4086e632ae33ecd9555c758b91d352889094198384aac7fc6ef2b5c1fb70e9662df6082c79d99f680b671cbf98e22498ebb7da3
|
||||
DIST gentoo-kernel-6.17.2-1.amd64.gpkg.tar 333424640 BLAKE2B 4f3b6b9ef16a0ad09594cb78dcfdbc52d043df61abeafa6f87954a6d9d1430e1ecac10f2d4e8541ab8d4759912a12d2f115fb5bb9776fb6780c733b1471c5307 SHA512 17f21a01ae81f48a3b37d3f68b8e981655fc1e45dc5a58124f316bcb9cf80abadb4772ddd272e4e91f9fc3e1ee1ab51b14db992ed314ec3488169e7d68b001e7
|
||||
DIST gentoo-kernel-6.17.2-1.arm64.gpkg.tar 297502720 BLAKE2B 9c98ccac5a694d8d890eeb99ed7a2f48100564915806588779b3cdbe9aa7de2eb8480dfbf7ab183f07adb7b7b1f7625b2c5f94fda5b6dec3b6a96628e9317cf0 SHA512 fc94e5cd047f80213c471d2553c893e4dd634ae2274043f9e2afb20092fc9675916acb4536cfada006d97f43ecb9823e0f851ce1da4099667e241e080d40a735
|
||||
DIST gentoo-kernel-6.17.2-1.ppc64le.gpkg.tar 75560960 BLAKE2B 0cd9b4e6fc45a87fe091fdfcee568308de08511305f105defe0df6b64f1930bb5b2549e42758da2141ebd41f467fc6bcca6017c57f9d0cdc59fe539ae7511da4 SHA512 b7cfbeba822f2404f9e2a2eb0e90dbd60c833df3cfd3f9861c15864932083e41c760a5788be915049120b1a21450877a02a0c44bb8c2fdd031eb68214e344505
|
||||
DIST gentoo-kernel-6.17.2-1.x86.gpkg.tar 83415040 BLAKE2B 3a3756ea40d72ecd1bd1ff8b02e7990969f36c617c8c2341f7706f5758ded485f5acaa9a5f82b666ab8d98571faf13bcd1fc7c6ca5e4e8f2dd24813a24160d3e SHA512 52095cee6f4a33d94d5e65f23be170441a233915babbda3fc1172db8f5367c229967a8c4057a1934e3d8271eda281fc275cf9934bffc34fe30604e326d0f61ed
|
||||
DIST gentoo-kernel-6.17.3-1.amd64.gpkg.tar 333445120 BLAKE2B 33f623bc707b374037593b6701904cecb9725626f13b2021a7fb587ac0a516ef0c70458c1bc22ae7e98667ee965547c4dc56bdfb306f37c1c80c6fc8e0983902 SHA512 e156398b4ac571d95ca65fe9b1c8960b0c80c0cc8a84f3d9d2fd7565ea6d610704347c0e78c56b9a13e38f08e3c624eae372437ab6d48671fd3e4e1b4e20787d
|
||||
DIST gentoo-kernel-6.17.3-1.arm64.gpkg.tar 297533440 BLAKE2B 53206699f78dcbe7d7ecad59d84f802be86740ef58ebde2a4623314d6261b452a1557c125b3dcee38263233f659a0c37df6c59ef9fb80fbb8e3cc5c7429bf327 SHA512 904ed02359486ca4be0e96024a14f9b6107452ce374bb666b0622fde9b8f2954e5a6adf7b8f7cda3e36879603a4bce9b468aa7fea257bd9e00cb16ebdbfe2967
|
||||
DIST gentoo-kernel-6.17.3-1.ppc64le.gpkg.tar 75560960 BLAKE2B 10f2ae49bd260f3e6f3950bdda180cce66d1e9cdc829e5b2b9e71797728031ae26e68283831821ab8e7bda7749c6cbe16b3ebf397884f3a6b6f9055e1f5b1192 SHA512 8374ad84dd1ed84d5adb83862ff7355d011578c3946a3b379a67795411888fd8837534280cc1057e6a05a5da152d5cad11f7007d63c57131242c31726a233432
|
||||
DIST gentoo-kernel-6.17.3-1.x86.gpkg.tar 83476480 BLAKE2B 5c374de9a5358e8d707058c2e4cbc002fdf3875bc9df458267a44fc05c04c8c3668e73ac0cf89ff2c2122479ed8f5168c43f63897e2e16b8f5c40407ce5a1e04 SHA512 065f6a2dea7405b136b4e6fbe788e9649e289272d01b81ea28f1727af9679484bf5076c700270d6ca2e078b5e5fc7a1d9b63257c4caff3b366ed8ef9f9a1bab8
|
||||
DIST gentoo-kernel-6.12.55-1.amd64.gpkg.tar 307353600 BLAKE2B 2439241b845dd064521a25c4781c70f5ac2708fe72b6d7e3f63cdb87b756235fea9621d713058255c67e08e37ebcd24a109ee91de158386e0b4e74d65eb33164 SHA512 b43e35d591f87d9e7aeb20a77b57e05a065ba31bacb6b0bc55e322afc98d4e75dfe153a4b670c6438e669b808f9201f08d9b56fbafe686e384cc32689c5abce9
|
||||
DIST gentoo-kernel-6.12.55-1.arm64.gpkg.tar 280412160 BLAKE2B 0cad5d15094c3b852bcc97212625c0d79c03959fe574eb30732a6cd236728947725eeb69cc826e9c702c0bf3a6d3c62fc2381f29a8c162df4e5a9522869c6b37 SHA512 a7c290ed600964b80506079fda94eff4b225ce3a91ffec2a992362a69310ff9b8b11d389aeaca24ced9734f912dae1939cee64e1372289b757db621b753d4224
|
||||
DIST gentoo-kernel-6.12.55-1.ppc64le.gpkg.tar 72540160 BLAKE2B a42c712245c1d9710d3b809d176b67986c41be889b46984fa42f188e8b37250f4d5a18d8a49d23b9629167ae23209225a5809783617b89d1b96312d9598c4fd5 SHA512 409c4764df6774ab19d9493ab4cc62c2913260baab8b9aa08261ad32e0cedcec404b1348f26f8d16fdd580ae2b772402e60a96c363f090577f4678ea62ebf388
|
||||
DIST gentoo-kernel-6.12.55-1.x86.gpkg.tar 77701120 BLAKE2B c184aeab41d48c201c37feec2e1b08f75b2dda5c34e4ba185d29b68ca2b0ac6be4e8db3c427835cfed6e7ac018270e60cbce023abf5210e3fb607d6ddeae35b4 SHA512 17b60c2b3a2316c2388cdc21e7b531176966358625f96fc777d6a11a6169c28c85a367fea8af169d4da4170ca2eee6c36ef403d846ae8eadb7c325f0cc589d42
|
||||
DIST gentoo-kernel-6.17.4-1.amd64.gpkg.tar 333434880 BLAKE2B 0289e6e6fffe5e9447092a0ecfd56daa6b6a7bc7fc7a5d466fb9cb0b7448c1887f944870fe9a55dd884225cfa80123a0ba5b8b2a4d73b1c42f8a67388db43f5b SHA512 0b57e94c1f42228c9dd5a07b63599cfe12f02017b7db79ede8d56510866e13784131433e88c9b61d25d8e63d024e67e87b38e1c300bdf1bb54b457f812d26168
|
||||
DIST gentoo-kernel-6.17.4-1.arm64.gpkg.tar 297431040 BLAKE2B ee3b8ace08b67075f082f95c840d778dd5e7ee974f945a8789d5ad5ad7e6c9a6c4fc7a52881fd8dc05fd5f8de37a3e86c0eee79c89e630ed6239861292115b6b SHA512 b908377ddebd52df17cf718136fbe3cfda6dc3795f22ecaa51cfeab940995dd22650ef34d8640a613bf086eca2dd8f420160ffa9d1eb5649816572da9ef6de3b
|
||||
DIST gentoo-kernel-6.17.4-1.ppc64le.gpkg.tar 75550720 BLAKE2B edb5d49b310fb311840bb62407cfb0e36663bf8dc2830b2cbfe84e905007ba64800f68095d7c599198cdd9558046268b8a4abd77e99ae1c2cf62946a6cfb733e SHA512 6a8e4a69716fe6706b3865b1cb0c774eddc37b80b1d39122adc70aec1745e54487a828da66015f36923c607b61309a81da99d3a79166891270ffd2ee59fdb045
|
||||
DIST gentoo-kernel-6.17.4-1.x86.gpkg.tar 83445760 BLAKE2B 391fc9ad88014f8190ec38ebcd0fb58899e83ed8883803c77ffbdf3c5dc8aa865b639591fa8b2eb1b1af2653b4d273c4208ae0c3786a7d8dd7d4c2c7d0adba01 SHA512 f9124fc4c20d7a2dd8d5e31ceded813d280b9d5c3553ba9dec355856dfa659f11657d1bfbb1319638adbf669222937aaada4f80fe2ba1d7400087ac3c05f9dec
|
||||
DIST gentoo-kernel-6.6.101-1.amd64.gpkg.tar 273172480 BLAKE2B b1da6a7d2b4d33c3749f346567de2bba79f3dca4dc41ccab10f3dd774b9f922bbef89b72b6c38d3b0b6cce78c5a881946ea2b5ad5275bd13f7db505c8bdcd25a SHA512 a0acff8292b01ae82a7fa7dfb77dd7d6b5cfb7b40f2caa990d3c5e02e4bfcf7adfedc4a4684805d86fcd8a31cd76083d586876b60f54b0b42ce9f89795614e9f
|
||||
DIST gentoo-kernel-6.6.101-1.arm64.gpkg.tar 246476800 BLAKE2B 5637dd5fc471f46b3b418603db313f4d4c986affb4b0692a5bea2bf95067dc24a9bb379ea04298435723fc852cb1d1354833c5e4a98d44c9d14be0cd83d0ee49 SHA512 575f81218c8e91ca9296ef8d8fa318c0427a779e90800d080db5b65edb0bce32cb675fef37786e526a0848d3cd8bf329b7df874612db7285972a1324e2880367
|
||||
DIST gentoo-kernel-6.6.101-1.ppc64le.gpkg.tar 64481280 BLAKE2B d6396e594d7610f07e4db1e6061d0e58fab52be5684585a8286d09499f8782c98a86d9736da2760730e464de528448973c2f56969ee43d1db90e2e85a26fcc43 SHA512 e74d256f61042c157bbae7e345e1bdaafb7f4d81e8a931b665bb3528a0371e5edcb5092dcd70981c9860fca0771b7b35a884f5912529531fb3ce571b1531942a
|
||||
DIST gentoo-kernel-6.6.101-1.x86.gpkg.tar 68679680 BLAKE2B dd67b6c52f953202e108548aebd5089bd37605e44318deab3a01564a6dea982647936ae0be7d06c8ca2a7eb953f4003bca2189fa9fffa87e9c01a06d2c117d80 SHA512 c341e28e7530d7106327c089b6a0cba065014c0116fb58691ab8f3dfc92f4b50986e294da01de919dc24f672df8e75916a87472b1f31ed68de3cab43d674a5ff
|
||||
DIST gentoo-kernel-6.17.5-1.amd64.gpkg.tar 333486080 BLAKE2B bfde85de1bdc88db03e7b4fbc9c7d27008e45ab3fd0ec914908726eb56667cc2b74b1b72fa9c91979c5b6c327306bdcbc22c7b582fd584397abe121583a99d2c SHA512 8fda2dce7fee455cde20f491058216a9c854504d901df5a0e74d57b0008275e70bfc6bf19ead7b90bb403b458bb510ebeddd1b0f086e00baa6a7690118190d1e
|
||||
DIST gentoo-kernel-6.17.5-1.arm64.gpkg.tar 297287680 BLAKE2B 3a60b3f233f75440439d42e531ed38100b535464a8b49566d2ee25db2cc798232320e18976bd22cd220d107cf6cab24d394b03402e9f2fba09f65b887c747186 SHA512 a5133d23731e500d5bd1012caca2e8dec2eb46085dc7dd79722ab6b26af264c3039e4f309c97bf21793ed517e11e6db664fac638d091a965e041c7432bf42df6
|
||||
DIST gentoo-kernel-6.17.5-1.ppc64le.gpkg.tar 75550720 BLAKE2B 6c0ddefcdc7efd2e86d34d9127ce2708dd870b3f5e2a6903fcee4cd7d6e12907085af9e1b9c053508900e1974e27a77eabf448c3c7fa7509c713765975f5ea43 SHA512 134897419a40e6704b3de691df563cc1d8ddd4f12f3afe51e97dbbf5198629912eea5287d26b2c1102b918517b4b5da1f69aa895669977fa59625cfb7e318cfc
|
||||
DIST gentoo-kernel-6.17.5-1.x86.gpkg.tar 83404800 BLAKE2B ab889f27569a2758c29a2face5f08385b6a120fbb1f4f1795593546f27da6aa1230d720e8b88aa167f8dc0549442d40c66b65b20e7681b7d33f1b3be78dd514b SHA512 b9048b63f5f00a53591425c3e6c3f7c93f927b5dd98a4758d2fdfb1f68cb5a49ecc29cad587269290313a28f66a0586010b5108a78179d0698afe660a73247a0
|
||||
DIST gentoo-kernel-6.6.106-1.amd64.gpkg.tar 274186240 BLAKE2B 05486cd1758f0b513fb30d2896e444c6c3f5e8573503de541c1b9104092318a74afab4fc57fc039e9fd27502b03484ff52708967de2ab0651cbe167850677b6a SHA512 f202fa9d352b774c4e46ec32266985056555a4c3f3f1bf2e0e0bef162a180d8aea8ec452e779ae2bfb75686fb948a99f5b743752c299eac9f6bdfcb71be3cf7a
|
||||
DIST gentoo-kernel-6.6.106-1.arm64.gpkg.tar 247060480 BLAKE2B a4c4785e593e31b0705358a636aa368f1298fa1e64a3b758254eedf9f11263f8d189bd154b5200a949da9c39a91437ea480a0916e2e0b45da00e9c8c33455a32 SHA512 5b7face37f729e08159cb36f644ef491beca325ee96948cdc23bfe3c506861027439b20da53a50ec6c84e1e2159000edb219bdd94a262cecd5bf13473ad4ce63
|
||||
DIST gentoo-kernel-6.6.106-1.ppc64le.gpkg.tar 64440320 BLAKE2B acf1cb12c3aaddb7968be139ee03b2759b6963f42091da4bddfab48f9128326ae3e797309d685096d17594dd4124eba84fa674dd77d12bf9d1a7b05eeb292a42 SHA512 524abd19947ce7e0972ce27188e870299622da7142f25957a8c1ee33cb1e5cd6953b98413b009e9c8a394933588d52a3d8cc3d9dca0aaa852598d5a20a9fc9f9
|
||||
DIST gentoo-kernel-6.6.106-1.x86.gpkg.tar 68689920 BLAKE2B 06c01d6e25aa06181591d4c24bd409b1667e0e526bd920301b6d0af39bfb6988dee89df358c4efe6330eab8e9af61375f0343083bf6959b97612f8f11a8cee2a SHA512 7d34f1e3a819d4dde5b810c5de5840189c51f5317a9fcde12b07e0145e88899b8502439e5162373a4772c49839925943335c29809bbf020d36c50dd5e4d32485
|
||||
DIST gentoo-kernel-6.6.107-1.amd64.gpkg.tar 274513920 BLAKE2B 14e7c93471d990244c162f6708b30ef026e2a62208457f3cfa3b6337644c5ff677c03c445896c0c93d6eff0243d79d8890845e7dad79a13fb13ea6d0369662e6 SHA512 6477778250e600651c434ccfc1ec15191a7aaa064e36fa3eda0393623b5a69dac9a3b808dc473d62fc8d71a35f1cbf84cd29c3456771fa340cc56834f3da521b
|
||||
DIST gentoo-kernel-6.6.107-1.arm64.gpkg.tar 247429120 BLAKE2B 5b9c6c0487e69f4e9146a49ea7c57ab190be43fff2056709ea3122521560ff50c4cd0f18cd71031871a5750d54e9819ae1f72278acc3d2d19c8349a7962c75c7 SHA512 740da107886478c858eb25c6d1e9741e95299025402a8dd5f0df24c1055d5f35baa0d76b0176548f81ab9f37d0d2f00e46771edd208709fbef8d27d59333dd69
|
||||
DIST gentoo-kernel-6.6.107-1.ppc64le.gpkg.tar 64440320 BLAKE2B 352ab84032cb36285b4c7ba639370ac37ccbfe28ae93f4ce68c52eb0f396ecf7ec22ac631d506b0626a59adabc4e2ed5d4f64c127193e66eb26073ff8ddeb321 SHA512 a7ebba2fc853eae8f1b52d40194e632486742c82a9b94de680f56a3dc9a646bed24071a4810052d221322a8d0203666a1458163a5b3583edc212b65d4d389bba
|
||||
DIST gentoo-kernel-6.6.107-1.x86.gpkg.tar 68679680 BLAKE2B ab260398ecc22f4746bf5a3728f32f3606a45b08ea9975574746fcb080e5ce8dd66ecf65e099e1686e339de203df5158fffc186486a735383c9341b318a539b3 SHA512 09b3ec864734d62080b4cfb077839d2abb21b80f28b54a836389f219177727195f3f540b064a5239521126d3c82742e77b2053ae4c261ad062f613032449aa97
|
||||
DIST gentoo-kernel-6.6.108-1.amd64.gpkg.tar 274493440 BLAKE2B be7230240e5b4337329c8791dd187abf9ddf27c3da6ff3195398ccf1afa330e21b169ee8cc4aba3e1b5243fbf1fde5d5995a77a531d4f5e34245df3fd594733f SHA512 79885b19bd4f28843c2b8716ed8c41b2cef022b338867714679bc59349d2aedc812cc59355ed73a5115817e17861f5780807e38fe15d3607a07cee564c73b25e
|
||||
DIST gentoo-kernel-6.6.108-1.arm64.gpkg.tar 247388160 BLAKE2B 337077a2c515f12f37947c7da20d35f543d8cc90448cb61ebc3527a7da3fce61f5742079b2e4c345837de9548194bef2a4e027b042cea4ae5b3cb226942fbfef SHA512 3da3e63923cd4c54b808c3853991d7c8740eff0a9ec4a9bc3ae5f8deed6cbe458f1c8250b2ffbc517336c1e8b9f11e793ec26aaf7458d891f034cd8fa0684bee
|
||||
DIST gentoo-kernel-6.6.108-1.ppc64le.gpkg.tar 64471040 BLAKE2B 3be32ea299b4089a623fc9bc1b539fe8ac1e28a7ac8840a958d733d9ea3ec437e98dd0f031c5271eaa68d053eeaf6fe96c5f5d5c639d3cb547b0080bebfbae7f SHA512 c4ce2595110fe4f345b62ada94413e39f16043323ff61535ed3358c7dad78ee51956145ad405a64b38cd8bf536b61cb66f6666d623facf2c79e12d9c223d01f8
|
||||
DIST gentoo-kernel-6.6.108-1.x86.gpkg.tar 68720640 BLAKE2B 526e55dccb44c293f9352c65f217d0467f2c48d9ba20b434341f23011656bc61d87ca8dd926d2a25bd0848b94f8c4debe0bef4a3db5d9267d7be652e87e360fb SHA512 0374b748de402b98cf2be016e44b110bf4644361c5f00822b58656fdde09654bef8ac538dfaea101acc019a0e47cb41b232b6dd2840dcfc6bf4e3ac5f6cecf99
|
||||
DIST gentoo-kernel-6.6.109-1.amd64.gpkg.tar 274708480 BLAKE2B bec77256b0fce8e340606bfc56c42d2d0d7496b3cff63a323fdc05cdc2266b0a8487318a80232fb143a7743f62adee5b44ec1c5935fb501e38066e3c085ba670 SHA512 c8dc7bf956f16efb030eb789f39825c198d7f1e187c4f5ef749ba39e6a91c64446e0bce217b5df6556beafc7b091c6bfdbb7d4039eee063ae1e995bf06972450
|
||||
DIST gentoo-kernel-6.6.109-1.arm64.gpkg.tar 247623680 BLAKE2B 72d6541f6676e50169c8a909a67e7b5d6668cfbb35159ecc1d413df3139e78402512021bcd0aa5c93a5c6595218900ab5fcd6d2a3d037a54009959188e73cd10 SHA512 730d05e0abf82cb917d18c6a4e402f91d558c751db6a066b0b4c195c38a22bd4f7095baa2b9abfb48507ea18cad6b961d94d89c5d1fe6b49ecb9895329796940
|
||||
DIST gentoo-kernel-6.6.109-1.ppc64le.gpkg.tar 64471040 BLAKE2B bffec7401535107c7c124dc46d9a25e7f5871950e0d18a8377c20af8917b27eb100fc00a447033f802294f4afc0a5dca08a712db03b2990c555bca9c93f3279b SHA512 7775d9469625d4ee6e11188847b41d7ddce84ff5e4c625915c9cb693c15e06b879e5c96fa059c2151576e0464f3f790a5152b4d1e7d6e835842ee7d76a5fe5c2
|
||||
DIST gentoo-kernel-6.6.109-1.x86.gpkg.tar 68700160 BLAKE2B 3bf02bdc6c0ca2ee6776bcb07c27056e87958c827151cff23000185a005a1d8d25e23e8d3733a18f7fd6897e23513b2a2d6619c4c80a42d2e0c675645e793844 SHA512 81d514b00f05e2b2429f5ecd8d0523fa5a6c641b15ad18a4ba76b4c7bf863bb408ec9fb522abf38dd210b47de3513375c460139e7701eca203eaf115a744ca7e
|
||||
DIST gentoo-kernel-6.6.110-1.amd64.gpkg.tar 274698240 BLAKE2B 282ea32bf23dd917288107d58cd466a5dc8dad24b112caee2e167029ffbe2f6570710a4cc2ed60df154a935cf21b89471a4cc95e49ee6c0240aa6835361c0b18 SHA512 67f9e17ff383c809078910d73b2aea8e53035ed09b2e8a47babd6a161b18b4349c0985a7b4ac378cc5e1a1ef3eeaea6c674585dcb93f6689afcdd96a93a2c87f
|
||||
DIST gentoo-kernel-6.6.110-1.arm64.gpkg.tar 247623680 BLAKE2B 3c783753c07af9d7c4b59a8ceebe2876bcbf7a2d9f3fc348f928875211d8c85c79901813b731b99d36b9d14b5747a1f473fa57761f5ff53fc617e50d607489e8 SHA512 df6bb3db7e095efb9e5b41d0a2c5d7a3a395a7e167d3dcfd7780771cc4a9fa0fa9f9a506aefb5629c33c3f32e8ce8701631946311d86f85cf1e9f76f3e096fcd
|
||||
DIST gentoo-kernel-6.6.110-1.ppc64le.gpkg.tar 64460800 BLAKE2B 0670d2f3fdf482be286a2623941c27ff2b7449f0742285eeabfd064e97a8859a18837bc8870e2138a2c1ee35dde891bd61e249b8e3686bcd203fd8764e176c92 SHA512 8451ce0f426e1e421cf8b0093aa71d9331404096bea0d5077ea9d22843e9070c5d19f3335515e4757c616cc9e82dec6866a936938457a5df7ad5ca7f800b330b
|
||||
DIST gentoo-kernel-6.6.110-1.x86.gpkg.tar 68710400 BLAKE2B d85b9c2724926dad17c0bdeef1fa62351ca91cb6a4b84ba037ce54c77e6c80c05465d651b23d36e632fe60892e8dce0ea8999ef599f7fafe40572c6d3b513bd3 SHA512 9fe6457589017a5f23ac04107d2aa4ff353172dc65581ac7dcda70858ce013656136d8eb27203950e5d6f5f58a96c145750360476a0c4a20f7cb8839fe6e5547
|
||||
DIST gentoo-kernel-6.6.111-1.amd64.gpkg.tar 274708480 BLAKE2B 5a3d3abc36f4f50e6dea76d5c42a40fe2c0239173bd75829403751607993ab33cdb760d6fc9b78c0736f1618608d835b2c88942504e0425d8753a6311c9de901 SHA512 18ec79ab6522e11df454005ed1f3da96e092ae0efc4da1d875b20ff6525c5caabbf5977e55fefb1085dfdc74dd282db38a6210863fcf602e310b9d307ace9568
|
||||
DIST gentoo-kernel-6.6.111-1.arm64.gpkg.tar 247623680 BLAKE2B 2c97c90ba69279f025365d23ffc219e16ddf66fd5070aaa9e684e0c6dea2d799f0ca76d2f10a5561247f7b2fd3e055e92f2b260faf697b4321c2e9305b288328 SHA512 82dcabbd0644c8d705a51d74734a06927afeb477d9dd108a559d0c75512033aaaa54f2b5f0b1cb81ae3a67a593f1dca2b237d377f5a3e4a79ba2475ede4dd8bf
|
||||
DIST gentoo-kernel-6.6.111-1.ppc64le.gpkg.tar 64481280 BLAKE2B 5d0e0f0f9ac177c2b9ef04c0326228054b12e2411457e3d99ad818ad31ff3c19410b9836e15bb16a7754bb81ebdda26d74c45febbdf7f7d8f35e5ff37fac5d9c SHA512 8b9c5e02c84d6db172ef0912b9a33ae83e82cdc2e6ce15d2bd8e71ac6aaed76f81d1866925f898c0f60d3c58bf5686dd2a19342417db29427bb1ecc277ee7372
|
||||
DIST gentoo-kernel-6.6.111-1.x86.gpkg.tar 68710400 BLAKE2B 3a6c730428d12464ee52632bc7a2271021b313c94a32cad780b1fba0d4cc09fbcaf9e4acdfdd932d13e896e7d046cd7bc9fc2c888c40b78ad8f7644a340960e5 SHA512 2537e75d148f133bdb2479394a9293fdb4ff252d7d328b45f85a0b136b0733ae76ddb0aaacdbf971c8eb35a95c06202f4500ba2c0fdc6a90e65c2dcd367e71d5
|
||||
DIST gentoo-kernel-6.6.112-1.amd64.gpkg.tar 274749440 BLAKE2B d2a877b13f05fb03daecc36ad8aeefcb8a04994dc377036209bfd5c00e4297979db6ecb81dd63c0d17e3fcd1cb7a20f435959c6437877aadb90bd28b8d8affe1 SHA512 893dbee7321f1945a8446f74d09f0afad6e8ed8cf3ed7c7e33e78659afe10773e7e982a0c26074dd479aeabbfa3e37ac35c1441823ee82ef8890c56c057ebdb5
|
||||
DIST gentoo-kernel-6.6.112-1.arm64.gpkg.tar 247633920 BLAKE2B 0dc7966dc5f4758d0e5531c82c8a49ba91b99c61bc727a6f9507e16cf7b64a4affcba16d1bdea24a817db31063e7dd2fc462499c83ad34878f0f8845ba5912d2 SHA512 2145bc6fe4d169bb279e601227246ab61d57498199885915bf8737ff2183db7d0fec33bb846f9ff31063b206c2999f5c5c3267b688f404ec7242b4cb367dcda9
|
||||
DIST gentoo-kernel-6.6.112-1.ppc64le.gpkg.tar 64460800 BLAKE2B 9f90865a38cfc7d220d0b55042a0b694740c15f549c5c0aa939ea93ccab1b9fec9df2b8f079e88d3d7e7ebce5cba506aff6b214389a1adeff6fa65a08b7ebde2 SHA512 31e3c53f2b4b225b49bfcc249d18b242073ebe8cfb7024426e4acf1c833c0db10510cf39ed0adf0509bddea4e6b025033fbc7b4870cbc4fa88fe1304aa4f605b
|
||||
DIST gentoo-kernel-6.6.112-1.x86.gpkg.tar 68700160 BLAKE2B 65b8ed955b62fbfc2fff5fa396826dd981b499f55f3c4c2bf2e6820eaaadb69dce40f5d1c9d24f78a763aef00a52a6fd81c383772816b7dc7bf58682971db234 SHA512 de110af58ebab6bd69b99a2b2383d47bc6a61302bc2d0eb6a8df40d489eeb052441b2fb18d4ee0bd66206250a8fd9f85a9a1fabefee42b61a46091bf01e78bd5
|
||||
DIST gentoo-kernel-6.6.113-1.amd64.gpkg.tar 274739200 BLAKE2B 77b3537228b8df1ba59a3eb840457acc745a9a8b6bf9c38e0a1fea079ced550c352c8ec88aabd3472719363f048a0307631995fd7728fa5a99bb9a7523819869 SHA512 8e0a6240e8a295faa4ab964927c993de1fface82a1a57dc2307a530cfca5523b2646f13ac4e203729679632cf5864b866b0f4472b7174cbdb6135ac7b2d553b3
|
||||
DIST gentoo-kernel-6.6.113-1.arm64.gpkg.tar 247490560 BLAKE2B b541fad421f0e3e11d60846e38ba8442a5a4ae75a02288f2d111dec73f406b0a6d1f025e25f8c5097efab809deab28d624541441d549411ed69c90116ece8053 SHA512 742307c75c4d149b870d763048b1ef7c5dab26095c7472f5a682ab34c8383c810a8199585f8998853e15a0b2dc1e84810fe2cf9ca3225df01cf613ac97885ebb
|
||||
DIST gentoo-kernel-6.6.113-1.ppc64le.gpkg.tar 64460800 BLAKE2B d879481a1d93a9587ee51347c47f21d0b9a32dc896f3650a684032bfd24b31793e0d044d2cd963b3e81b5aa998f1d88d18d7cd6ed965020ad5630d3bc3f0f62e SHA512 648b5ec791186750af120dd1400f49fa234bbe2c9eb97a5e2dc3ed114c1f727920323ab479b6c674de4ce7671ab5745fddb4b34c1433d8d3f109daa68ac4debe
|
||||
DIST gentoo-kernel-6.6.113-1.x86.gpkg.tar 68710400 BLAKE2B 5b537a0c570722beea6738dc7a4d27ee6b221c2d0db3855a8db8c5173cf3e739452aa9b59ad1b7a33e6ce0992b37f770a7af0e2ce77f56f242c38590851e37a8 SHA512 7b3784021aa0df3b923f7d4bf3487cc89198ffefb6337d228e8f89c1f501dfeff47bb3c10d6578b11769e26de4a007b815c06a095bb3cdacfbe3c7e851601137
|
||||
DIST gentoo-kernel-6.6.114-1.amd64.gpkg.tar 274688000 BLAKE2B 2cf2db100262d08044c286b6d2ac684c2cd9eda91a69c2fcf5ca12acad01be0e94fd6cf9557aad464389101df3f033ac6abc24b953b5b8f0a217571751aad16e SHA512 80e96ecd0c368de9f3a59ae0e7ed63e2e4d05c5a10ddc862b83e7a82a8c18c0f8bfbd0f252fe4d3ea4a542078b557d0231c1ed2b97378fb6ede540b9856ca0cc
|
||||
DIST gentoo-kernel-6.6.114-1.arm64.gpkg.tar 247459840 BLAKE2B b53f6c59f6d53a4f6e43d724e1de3953cc5330ef2f5bb17007795d84de6be51cbf111e4f471824f0e831c62c50f3c98356a2724673203ef1329a12f415c0c854 SHA512 bf8f78fb0d9d4f749ddee04ea344b0db7aecc76253e3275bfa7a06d87a8e298cc590de49531c3651d7eec318a035a8f8bfe7da40fb108e093c6d41249ec9d8e3
|
||||
DIST gentoo-kernel-6.6.114-1.ppc64le.gpkg.tar 64471040 BLAKE2B d49a74d036fee3fd5f946f08396dc30232df1304641e67acd4a5d6f7c7bdc4413421047b61a50c4ebdfe5067a736c3d550724171a09c202ea13e46b8fea0f09b SHA512 38e37a0d03e74b0074dd87469d81155f813ca13fcc33ff6b719c33a3aa7b268fd72ce59ad96a017e767777443654892bbc8c9ab42a64d00028f59001fdd0863b
|
||||
DIST gentoo-kernel-6.6.114-1.x86.gpkg.tar 68710400 BLAKE2B 40f1a4226e04ea66df59512991d7dde1d4a8eb2cf005820cc3fd6cddaa5d00823f8d9036fca70e78ec0ad9eef440bdc21255d23d708189aba02df47e49777953 SHA512 800f5446a9b5e6c00d517f10bdc04638d5da868bf120fafdfeff99ce034559fe514f56a1457ddfb1362ea345d3ee9074114762ae715c568019abc5db3da6343a
|
||||
DIST linux-5.10.tar.xz 116606704 BLAKE2B b923d7b66309224f42f35f8a5fa219421b0a9362d2adacdadd8d96251f61f7230878ea297a269a7f3b3c56830f0b177e068691e1d7f88501a05653b0a13274d1 SHA512 95bc137d0cf9148da6a9d1f1a878698dc27b40f68e22c597544010a6c591ce1b256f083489d3ff45ff77753289b535135590194d88ef9f007d0ddab3d74de70e
|
||||
DIST linux-5.15.tar.xz 121913744 BLAKE2B 3921274b23f7938abdf3ed9334534b4581e13d7484303d3a5280eddb038999aaa8b836666a487472d9c4a219af0f06b9fecccaf348fb5510ab8762f4ef4b7e83 SHA512 d25ad40b5bcd6a4c6042fd0fd84e196e7a58024734c3e9a484fd0d5d54a0c1d87db8a3c784eff55e43b6f021709dc685eb0efa18d2aec327e4f88a79f405705a
|
||||
DIST linux-5.x-sha256sums-20250717.asc 364595 BLAKE2B 75abc4c666dede398ee54a7323380496f75cecb9439261305a60200169430544eaec7bc9e6ee3d4b1beb667d51cb6c858ebe109e3a9446667e9b1793298aef08 SHA512 1d52b1dfc0da4d287f4d1d02bb05a38c24f5505002c567bedc48b4bfd523a2135bdaa8e103c75e7bf521d356b66e7b36009054a792d8eaf3034ae1ef09fe3ff2
|
||||
DIST linux-5.x-sha256sums-20250911.asc 368378 BLAKE2B 068e10fc2176a4e8c7bf19ce19c48f3fa1551af2a250267f0d177ff0a277d16506444c5bad5dca08fcbc2badfd22021a9a05cdad5e256ce84d5866d5fcc8fea0 SHA512 9e8ee63833ea184f54741ee7e04284ab4c181e5384dc0af12e51518269d0bbc57f4d20911b2888beedbbeffa6a9649fab29cd8a355277e26e55cd45c4875337b
|
||||
DIST linux-5.x-sha256sums-20251002.asc 369409 BLAKE2B 62c1f9ac1772cd3890d9afef5a2f7da95fb34441396db435c4969e7a268e01bc72b82dba8f5fdd77d9f895dc8d6ff62d236bc6960db41156ca68a15aa3f66ecc SHA512 3a2f452d03ef1c2bfb60ba12021bed5942d9d8d96944e38eff905724e1dd2aeceeda133fe2c4e4d77d5caebae1b8e8d06dab0c8f18d44ed10659306c43cb9ef4
|
||||
DIST linux-5.x-sha256sums-20251019.asc 369754 BLAKE2B 43d79e2fa32a32f489bf4022f455012dbb1f60b6a961f75da96266b29ca552cc6d9480b0cbc3edd2460287431722c959b2e65c8e1e201414475f9df98fd97476 SHA512 1f39d7a6cc109cedb9d593c8db6f21513a3337650e993f39a2f44c9286cf49a076fefb2fd793b094196cef804062d54434b15bd30f1d6e69e18040e01277e171
|
||||
DIST linux-6.1.tar.xz 134728520 BLAKE2B ae60257860b2bd1bd708d183f0443afc60ebbd2b3d535c45e44c2e541bd0928530a3b62de6385dd4e4726ebbedcc0a871d4f3ffb4105b9f1f6d8ed7467f5688e SHA512 6ed2a73c2699d0810e54753715635736fc370288ad5ce95c594f2379959b0e418665cd71bc512a0273fe226fe90074d8b10d14c209080a6466498417a4fdda68
|
||||
DIST linux-6.12.tar.xz 147906904 BLAKE2B b2ec2fc69218cacabbbe49f78384a5d259ca581b717617c12b000b16f4a4c59ee348ea886b37147f5f70fb9a7a01c1e2c8f19021078f6b23f5bc62d1c48d5e5e SHA512 a37b1823df7b4f72542f689b65882634740ba0401a42fdcf6601d9efd2e132e5a7650e70450ba76f6cd1f13ca31180f2ccee9d54fe4df89bc0000ade4380a548
|
||||
DIST linux-6.16.tar.xz 152620004 BLAKE2B 87bc4da7e89cc8265aebffea7ec6c09f711be24fee87cb1c03a264c03fd5a538d66aa806640835aa5103926e612cdfbc52d7c861d7f7065f1a8bb11d893b0921 SHA512 55a00f89ad6db6db2e26ff5dc5cfc96bbf6654e5bd5d17d2a3b944a47640367e54139716d230923187bebc6cb7756edc9511a620fb8abc6f32c50a658a734784
|
||||
DIST linux-6.17.tar.xz 153382068 BLAKE2B 0edb2324be5638aa75984128aafdba3e50824187d2fcdff8794eab99d85c10c3a17d1e840053c2c83df5ee11fdf69f1c9452c57ecc9dae01c4af38180fe7821a SHA512 063999d7b819970657f6b7713fdb4173da2065ffdeed7cae197026dbb1edfd7f1d50374f073a1e19ef9686539594824ff6ecb8a930d97c4f272cb12f1c6d8355
|
||||
DIST linux-6.6.tar.xz 140064536 BLAKE2B 5f02fd8696d42f7ec8c5fbadec8e7270bdcfcb1f9844a6c4db3e1fd461c93ce1ccda650ca72dceb4890ebcbbf768ba8fba0bce91efc49fbd2c307b04e95665f2 SHA512 458b2c34d46206f9b4ccbac54cc57aeca1eaecaf831bc441e59701bac6eadffc17f6ce24af6eadd0454964e843186539ac0d63295ad2cc32d112b60360c39a35
|
||||
DIST linux-6.x-sha256sums-20250724.asc 159789 BLAKE2B 9a85b54a784ea9f026ccc7d63d961239f09c0e656a67eac035fac6d7f3eb8bbebd67097a1a38b6d06ab232e79411e6d0ea2cce30eb7972df4cac65fc5f63c664 SHA512 dd79403876b28843987b7685962a9f79f9dae3ae680ff1dd915ec78218c235df4177d1197f8ff9e2a05cb11a3464808dda4c15441626e0fc5b91bbbc217537d0
|
||||
DIST linux-6.x-sha256sums-20250801.asc 161137 BLAKE2B b2bf0bde731b85404a19a7da414530d7d5c5df672e79d49eb8d55ba57e51d86d53d2cd5e69c7413908c06e4ec7f2a743eb022d6011e81e51faf0b33c2c8086af SHA512 927477c663091ba0003f743d8c82e3116eb95f5f7c10b0443e058fd43d3d7c1746c866e02e11f3ffcf9ccc0dcf7c6958a6ac7c869ee998e1c592893728e2b1e7
|
||||
DIST linux-6.x-sha256sums-20250911.asc 169634 BLAKE2B da96d04ed279153edd39a0e9936a49e6ed688ea1d660eba3f6543a27167bcaa5884ab5f802f7290cd33f703e99244ff0a0de94af9793e923f14ca762563faee9 SHA512 bbb722cbf511b748979d9e2ee8c216e6901473234fc2e620fb320eaf5f5da0bf19b56798011021a829edb10a33cd75f12c898f17077efeaacdeb38cfa186c73f
|
||||
DIST linux-6.x-sha256sums-20250919.asc 170994 BLAKE2B a1082e77bf0a127dc8a256f722fab9087681d1be2b6f0a787171fb3eaaf899ce48f1f4647287e3b5f5f302131561588b0e6ee0a0d172b045034115e0620a88fc SHA512 e66b3334582ed3df4a6c79e252fdf803e208d8995b11b857d5ab80fc4f9c3260db546408a85d962e788f19be40c5bd4a513988983ea08ab3c247beea7adc3bb3
|
||||
DIST linux-6.x-sha256sums-20250925.asc 172354 BLAKE2B d47d7b4ca3ff08154c84ba895476362bad0fa216691e29d3375be55fd0ea60ab8829e50d3086fc045d04369b6e81fdec78e556806ee56e357b0c625a703da9eb SHA512 931979d856ec768bb59d54c3403e19d7a4afd59d9f79ea320b4a986431d286ce817a0a7bc2538552af89fb3257dad79e03f7c445f3252bc1a8b06c2d8413ee97
|
||||
DIST linux-6.x-sha256sums-20251002.asc 174047 BLAKE2B 472be6fbe67c21d21178f648aab6f34bdfecdaa17e2acbb6a54341ba8792a71eb5ea8172bb1a95ec4fcaeaf140f50db5cf0e4ebd0ef5ba898871fd4d213241c0 SHA512 b36add7db9f0fde5ee77025f454a9acb94b463c4c04c2ccbc8dc21d51d16b945274f4844fa47d32e3dc48135a1e35eb4cdea973203366f7ca1c243d422fb5e78
|
||||
DIST linux-6.x-sha256sums-20251006.asc 175407 BLAKE2B 369d5935711756f4a9b6dec658e15817160ced94da8787fa19316707a3599cfe450947a4e69544f2182a7f4f5fc062ad05aa41126847c88ca409a3d14cf4ecc7 SHA512 2a108737b88f4dade9ca6c104a2c20698b3b0ba219417edf56622ea630c1d3ec1d630472d58ce2bf859255f018d4fa423db4e043ffed3fb618068a65669f9a14
|
||||
DIST linux-6.x-sha256sums-20251012.asc 176767 BLAKE2B f7e4acdfcedb9c5dde535210cf6f65acf4ebec917db08fc10a2ae5fac47b6f6389d93671ce3e0a32bb1011814a627dfe688de09200be706c76e38b8c2707301b SHA512 6994d816e509fe72393b107cca386c09398ad8bf7f4813ed2479b78b9c01eddd3b6bceabea262793dcc2b64c89c674ac84b61e1548a39216203b31ebe2ff8b5b
|
||||
DIST linux-6.x-sha256sums-20251015.asc 178127 BLAKE2B 726dd0bec1aac697e998ba37cbf75d008ff1ac46d344f82e7e8feea9e60e2d30a0ce403b68854d8ff1c0106c2a2986f84cd861a3895248b25aa131e6da16d9c9 SHA512 a59379fec232b4d831e1a2e2778274f5e9ba874eda4710eb52ebb4268c74d6e41997d65fdb3bbb50226f103f61f06c4a0b62d2a09e9ac2731085c8fc4e1df950
|
||||
DIST linux-6.x-sha256sums-20251019.asc 179487 BLAKE2B 51ef5573677dadd88d0e221035b98234a09fe70fef44d4827264c73d91f64fded9cc288fa07c2cc0cd1abcf41adb2a99f2f2291130418299ca2649654cb9db8e SHA512 8dba06afc30f76c6ac896271c5092c263a30b10a2aeee890659f26cca64f178e12514c55d105cbdb797846c9adb9c9aea91bd28ba97960d2a44701e1b1dbd4af
|
||||
DIST linux-gentoo-patches-5.10.240.tar.xz 19396 BLAKE2B f61ba4218c2fb65f3e67b7c3480936fdf00edf8e278554d5aae81ce7ac71c8f8c83f7b71dbbd679ac2305004c847b0a11670b59b137fb11cf77c4d0849ddfcf8 SHA512 3368213c927b3d672490d0af3653dcc8d8784ea165d70a6eaf3fdacb936637a67a07de4b3a06a06eeb42109a083bbf82c3a5a03b1f98a2d240039de6ff704d7c
|
||||
DIST linux-6.x-sha256sums-20251023.asc 180506 BLAKE2B 740c8af4ce2c9b6e9363df1dbb3ffdeb6a5c6900965ddcc9d144a6ce412e9ad5c0d669cd5446e91b2b5310c25e3226cf3c18c3bff8c57b461773e9d531d46967 SHA512 2ad1d2c1dda538d0dee77d38acb3ce277d7f44d61e681a02de163ca9bc7fe0ce8902c5f29331bdef3ae681738503667b7e298c068f4c66d3e45305c7778fdb16
|
||||
DIST linux-gentoo-patches-5.10.241.tar.xz 21004 BLAKE2B 80efb313e1581e8a086bb20d1f30f59ea7982dc0fc3140974182a3802a49a00fae266222c08d3cb34eda7e315ef429bed25f145959c084843c58fdddfa68a2e9 SHA512 3a1b24d2fe5f3130e88abda428638d31adf6617332fe3baa7dfe6425d146e7607e5f8b571f406f0370acaf779cdd45f57af964bd955a3b5d5622d792527a5de0
|
||||
DIST linux-gentoo-patches-5.15.187.tar.xz 8636 BLAKE2B 64db6ded446586a589fc36753258ec166cc1260b95fa43e7612f0e5f3f831668dd81c5ec6339bf3bf2dca6228c624cf114ae9380290eddb4acec949f84de3ca9 SHA512 b18fd19031ad2f8078ad37cd654a6dffccbe53cec1e0c008ff56c5088a32c7c87895cc00be64d79f5252e842ba757a4e6681a09e5d0ef2f986c9d67666eee81e
|
||||
DIST linux-gentoo-patches-5.15.190.tar.xz 10240 BLAKE2B 41c7a6f78b3ab7b442cb067dec112e8b38d7024f5af10a69839563109e705a52c1d61d7025cdb62d2ea2c99c1c64a8a05ae909795642aa667689d42a9e6c9288 SHA512 dcf79bec5c424bf9f81ae1c1e2a122f4ffed52e6e2d3123ccfd7885c43bebb627e2b34c058ea2e3f0aaeda0e0114a69eb03f83d10c0c1c5d8b6ec7a89f087286
|
||||
DIST linux-gentoo-patches-5.15.195.tar.xz 12876 BLAKE2B d675d4150c8292c4f4b9846a26c53099910905e04e3015cfb3cb60e53dea99028b2e6fcbc345255246103699910aecf916054a09598e931d110b31db59a0b517 SHA512 e86691215cdab56a1a4fbe9aa3de44bda93db5659c39b04bfce53ed6ad8ed6923853431abb9444471b227421619c40e8841dab582b8007216e3c22e2b348a549
|
||||
DIST linux-gentoo-patches-6.1.147.tar.xz 29060 BLAKE2B ba49c42dad2186d320b37a2ed456ff0388de619bee4bda26336939567b2575be1cdf7adf853e28b7b5b1636a9638238337ff0e4f8001504c4e90287af017b367 SHA512 1e376dc5ba8f6d76fdeeb611802248b045059a4a2a7e174c31a73216d78f462366d88439d9cec2a60f493ba6258d5824d752f0f95b263349a0d12b3f196cbe32
|
||||
DIST linux-gentoo-patches-6.1.151.tar.xz 29532 BLAKE2B fb668de25f6bb9086d4fa1c76768c5790b44dfde9dca155a87b06486359cc8e7f56b6f9f032cf48739a14b47cf45d128c51be704ad4a3c0fe602d0c32c8adad1 SHA512 8df05c50f5c634172f517ba2df7856752b433f3316649b1955f1dd2784adae29558c1e368421f15ab91899228e1f77891f215d65e71e8966fd5d982de33da6b6
|
||||
DIST linux-gentoo-patches-6.1.153.tar.xz 29056 BLAKE2B 4a00d70119f3444d4e3fdbffbd82da7ee00c74522624c3cabe161cc30bf2bb8b2df02bedc1e09599ca3dfed972647a833705e2373b1f4eb8cd479b622c3d10a3 SHA512 9fb87b498e2aeda131b3ac367802c41e273dd69676f1ec96de4462abb4a6822bd1768bc68cb75fa08b389211a7edd59cdfc8ad34ad0f74b2d0c5d39748a2ac7a
|
||||
DIST linux-gentoo-patches-6.1.156.tar.xz 31604 BLAKE2B 09ede2987691e372c41567d975070451d243662b9f86dcd35489b63b732583e34431e1ad93ade3f9ea77dddae06e71e5752c0d12b3b6d0765106e19fe30876a4 SHA512 2f4a7960956c3aa7bbb46b20d14051ad58f07f45f8c4a6115100aaf6a46ddeaf414e1247d6034e4f71bdd7fd9479cb1b1bffab5e480a0422ad9af3b23e2bf95c
|
||||
DIST linux-gentoo-patches-6.12.40.tar.xz 19240 BLAKE2B 2e5bdafcbe44cab520c86d7ab37c48c5b032693cee5674d1625432e4ac6285137a3df2aec24abe4cf795247f76226ff236f09f7e748ba3bd7db81cc76af03526 SHA512 dfb551b87530b0509293e87cd70d2d91f1c669c62adc6c7f34395ffdd5fbfc19bbfe943f84c188653a71bd627bea95f5f9391f4edbf0e269a8da98e191477fe2
|
||||
DIST linux-gentoo-patches-6.12.46.tar.xz 19724 BLAKE2B edf0bc009a30dcf5d22c517bdfbab4ab7e4df3510e2102071fd24788d5cfc610434da2e92092ca5424e12e1676149b510f2de7e937be1ed96d0db4e2260ad42f SHA512 dd9d7c48767f3db0a8a6a33e8ffa9ecad4345044586d76de65d42e8985ef794bf7ab547852a1653bc1d66dbf4accdfc06cd5e35265cd2d2cccb0aafde21d8950
|
||||
DIST linux-gentoo-patches-6.12.48.tar.xz 19224 BLAKE2B 9265bc0cc7be0ac7bc51677f750bfa642dbc7530979ad5a743f6e29ca4514b79dc0a906fcc324482a26f53111d7a7f660071857aab875b25ca3e1dd9086a6407 SHA512 63c4b64e5ca1857ab71e92633ca32941f9e4c2ca37f53897d5f257effb9452721be5606770cafaae6ce238cc9cf3a5054c56a519111713c0d462b79549aea669
|
||||
DIST linux-gentoo-patches-6.12.52.tar.xz 21836 BLAKE2B 7b39c3a97fdcfe76e12f2e481ae1c9d6c339ffe133cac956ba485bb82d8766d26d88295c8672eac07162c2968c42cfa12d7705b37dbb8f2f6b09c499ce2b4ac2 SHA512 8005072e872b78e364b15e1f32c8b6bfc0d1f96c8c051b01d4ae60e33250e842cc7ddef602a1caeba2e3914100fe3f319f3e8b171c2079967565efd169d8c558
|
||||
DIST linux-gentoo-patches-6.16.10.tar.xz 86452 BLAKE2B c38938afd6493812dfe89b9212fe8aaf8617397468406ec97b7604848847b0cc9ede75ec55d1072d92d811a80edba8dd3aac796013ae981cb459ea50f5f57074 SHA512 092b77273757bbc713471834d076e0aeab489e34b371cf708ad978cc2f9d1a3eb8470d8d8b2d2276240ddf54f518aa0a20f2cca55ed5e209761ac87d0a446404
|
||||
DIST linux-gentoo-patches-6.16.12.tar.xz 88116 BLAKE2B df60dd2678e852f25d7c1f5c2f75351b2100c1034095f20c1895e56f81a7fe155c6ef35103e7074c34900c48677972e93a4fca862e91a8022c7023af240fb96c SHA512 40fda7e21d467c06ddcc4e9010d7bdfbe44bf64d6086571e2c61e27ecb2b3968ba3be520c73600eec95fd602b5009d7beb6681d8abf1e10dbbee1cd1b5819329
|
||||
DIST linux-gentoo-patches-6.16.6.tar.xz 86164 BLAKE2B a8d0590281c9e10008558979d3018fa5582ce052b8fbeda56b11115ae38ad3a8b3e5059513da86e89b2e8c1b4ac7525b3ce0260e3a25fbd0ac825b80edf697fa SHA512 799014df1f30fb9ccffcb6620611e6e11a94d9917d9ae7905e3647b0f1cb6699276c29d37efcf258465ca05819c3a457f334ef339761a2543c494f148b50eca0
|
||||
DIST linux-gentoo-patches-6.16.8.tar.xz 85692 BLAKE2B 21676e3d6e11913705c5aec2f6c23db0dca875487323c7b72ff9d367e9c52daca4b9676b91f44a3f51b45f2f110dad6902c3b99d500f54ba5a3266d839af2a4f SHA512 daa71cabd4d36bbc8cbdcb880ed4d76c6c995239d2a0c9c86749d86766ae362f896fb4e7da263b53dc3d81043eae8cc3351476cba62dea73b1529e4d661a9269
|
||||
DIST linux-gentoo-patches-6.16.9_p1.tar.xz 87740 BLAKE2B 1c4461ee590ac5a918be8141a9941cd372cd24580fbf9daddd9e58e6fa355d6d2b5b98bf3670cf036f4ee574b4ce5573fb0544461655e1389e648a1a84828baf SHA512 cd7c454247562610974249c199ca7650990bffb51a31a298e34e921741c7aed4427257fecbe97acb2dd7ec0ab273bd41edabee420c00cad1ed7d8a9f5f5cfea8
|
||||
DIST linux-gentoo-patches-6.17.1.tar.xz 96764 BLAKE2B 07abb414942e2268691ac701b4f37f47013690a5914d9837b261761524a7756547a540826cef2df7e1a80f708c1931238c6eea7d69304ad0df7c984059077776 SHA512 63cb20a8be8f205aaa54963ba646f5f077554175312829fd3a03d147712cbb1d1d2163368ef7c5fb46e6975c4fa3d6e864a3eb438591a3f83fdedcb137732a7a
|
||||
DIST linux-gentoo-patches-6.17.2.tar.xz 99184 BLAKE2B 867bbf3a8cce987dba3381a874985e614187649e5341bc8c43f97e0b501ed4cfc4bce2ee7d8114ce54d75605151c7dbfdea51e9e5da7af3a834b169bb6998eb1 SHA512 149946fd38c22ef5a8b198011f4a044d3c00a93635f85b3c0d0f1f4d74faead20355acf3ff0ee55df89361fd48e8270219f52feeae0688b92d090a1c59a20ba8
|
||||
DIST linux-gentoo-patches-6.6.100.tar.xz 42828 BLAKE2B e9d17c21e5355919e30e1a93178d3977d6ca1bf964ba18b601518616f31e098d65cb5008003fb6c8e1a8a5cc3ed803eaef3e1c9af5f1a895d230f172412b1283 SHA512 95c2790a5ebcca9f2b9e1ff098be0bcb9ef60f134a0f955995f27c020cff0d6831fc1af7c159b0bb918d3e3eba351f9428458d6e6964e9e751bd85afd47f7a2b
|
||||
DIST linux-gentoo-patches-6.6.105.tar.xz 43320 BLAKE2B 0d292ea8ab4d5e46821ea3d9cbfaa2151527eb1b020652ab3703a34c6466697b7265e8737c15cb4f73ef289f658cb394d841e275478a555143ed1fda3c1ff137 SHA512 0658fd70e2ed54dd762ff4faf080326f114204bab54c4a95302ff8aa3ec5c37a0fbaa7aa68549f0ca589fd26e6031811da52348347681e84a4a82e87c8bc8a3c
|
||||
DIST linux-gentoo-patches-6.6.107.tar.xz 42824 BLAKE2B 610fe8edc678a6a41f925a9703dc94920a72912f69793be460ebce6421cc016a1edf3023be05cfb715f8c3657be5e8ca4ae9cd89d982f8d55b22dbc53e150c9e SHA512 0fa6d34ac91c79b59dab60e00865e430aa39f9121728c9557f5345d2e9c0820ccdd3984505d3a6d4a777e917cb29289c807530d0533bf40a3e8bda4a711a98e6
|
||||
DIST linux-gentoo-patches-6.6.111.tar.xz 45328 BLAKE2B d940d418295c07fcf55614fe415b8124bb9e6abdd2cdb992f9b06ceb3f752503bf17df4224f781cef85170928a76013227340235d50b514899d3893d2f94efcf SHA512 4555fad79908133b0fd0ac0ec03ef4f5b6345974e4243b35255e1ee24182f1091366bb39f8d0cf40f67dde04eb688e95e2902c048b8a3b7aebae64fcc7c2847e
|
||||
DIST patch-5.10.240.xz 6786568 BLAKE2B 1cb287b2c99bb403585cad3500a2de0819db40ea62a72d276c2b53d8637915cfc0350051bfdfc99cbb56a4e839331b7e11cbb2abdf6768a683d44e798ee5862d SHA512 91f059de27701a33e5c4d40f2d3e982dc60d9dc14fa8cb6a0bbd49e4452195715f0093a563e3a1db1efa37b3a1e09e74b0a6d53f77357757ffd29374abcead19
|
||||
DIST patch-5.10.244.xz 6886012 BLAKE2B 4472ca1171fa697c4e9de7835b82e670b22e2b8f12c3f8b2b4197321ae468d333691fda1c36ee480d2781a62229ce8adc394fbea53d1420cd823c9383739149a SHA512 64d02ae7401effc89e906a1d0e54293af14ad7895d55b39424d67ab98b79cdc12d197b01b95dcb6fd6d4010ae13d8e123e2dc725914dd010335fcf43a8724be9
|
||||
DIST patch-5.10.245.xz 6907208 BLAKE2B 1015edea300289cab5c8e4017920419035c74bb5e589747fe1711aa82e9cacfda38e2bce2f14b02aee8ecb66e876066be8bb8db4c186aadaf72ea92da8dc0c20 SHA512 c29d28bb920d73153b5f6ce88d7e9c4f6888fad9ec04bd196bde33778d3a0bebb41f1c2f396780e1b2b2972144102cf4ac7c4479ad25b1182cab330518560033
|
||||
DIST patch-5.15.189.xz 6955776 BLAKE2B bd2bf4ad70014395ffac8874434b2caae7823b1b9999231738552d9f23a53547533c248fdb7fc4b4bdd60dc05e8898a910e3e94e6f5edae7ae96a66937f387a2 SHA512 8ace7d82af676b101ed37c382c9833193ab487cbb15b8444b92ccf8239e2c62bfb70ef7342ef6f694d71e8ac72b7db445d544e4ad285d9bd977365350bf155d3
|
||||
DIST patch-5.15.193.xz 7083524 BLAKE2B ceb5cafae883916d5b0786e2aaf178aa841642aa4829c903d5d0697b53344400b9654642ef2c888a7ba41b23b51c4345a5748b552d36b4ce50673f9e6890dd74 SHA512 92048ebe709dec716391615dcc4135dd6ab764b4d36f2bd550b4e248c860e6f7a6b3451477ac66bade53e1af7edfd24179d48e832d3c6eebd9f1ff8d5722c747
|
||||
DIST patch-5.15.194.xz 7107504 BLAKE2B cf8fa36126451deb0376db6145351c5089bd15abe2054206195d624f2d9d744e633c4428023ca584727d904e1c9014108f0bf22bed963639a3fe85479e78624e SHA512 ae23a0aebd42d8a0f9a498fbe58f019493cd9dfa9091e240c50236d53aa19fa77d293069d39c8a6adfd58dbb65db6141e816b825464fa0b060650bb6c722f9c5
|
||||
DIST patch-5.15.195.xz 7158088 BLAKE2B 63a662a495ea38091a522671ce876c976a7b4405f2d333f1edbc7522443d2783a363e03a09edfb33d044efe82e8547f824a6ea322908cd00b6e35305b3e54b7f SHA512 564924cd372abac65ef87ec797be82310cd224fb74c976415adc3e40b73cc102c78498be309a0c670509f45664897c897bccf3a920634a0315da158348adc23a
|
||||
DIST patch-6.1.147.xz 6320180 BLAKE2B d109214e0682653ead5f62f5699d0bad2764bae1765789720d780e74afefadc39faf8e833df1ee4cc1436e4db5facbfc7f4ba8c3b657fc48aabda3ab84a4b540 SHA512 2cfd04771f982da4b65caf53cb944bf9ae2888a32005428adce383c408c35c72bec5d88e49670deb87011f0d6bc329e0a53adcad065aaa716ad5c8baffb2fddf
|
||||
DIST patch-6.1.152.xz 6486524 BLAKE2B f9b532c867b2b5a15d28c08f89f9a30252b4b9d55dae069afbabc1f34eef570be6a39a6199e135c0cca18ede52accefa546dfa65342c8f6429a5b00280d1a56b SHA512 14fd84fc1f80125331940de767510a94735fce70f70cf71ef5868a46481ec146a2a6983af26935014547c90b84ff524a0e4a7341e8511fa18b92ae33fcd25a1d
|
||||
DIST patch-6.1.153.xz 6497932 BLAKE2B 67a540a290ccb6db0b4f83916102323a53907adb1d56874c11a11c91fa402d0a80f2151d9d1bb6c1dfb59522e239be788c0e4d5718b8039cf2016c7debd26a4a SHA512 d988204e844c17c18fa6d39d5712afc5a326374e82eb049be7c80d625be16400ea57accd81f7c550c69f8f803d01f48ecd4b497145a825817dca1b450f7bb5e5
|
||||
DIST patch-6.1.154.xz 6507340 BLAKE2B 5333097c2375c59b2bd73acf4b02cf60bf8aedb085031075dfb6c1df88995330e62163fda59e98e756b1456ebc3995b699102932b50e5e15ba59a1f92eb6c877 SHA512 268c89cef61d4fa0c83eed99f7056ca5483f855b6e78004c384c963cff3a21b68313683ced3b211d4b3eacc9481d3ca7e71dd8aa98912444ea1e10b5ed40cd33
|
||||
DIST patch-6.1.155.xz 6523120 BLAKE2B d7fded35eb0b20ced762bbaf0caadc53bae23243f3fe3a2ce25a3461c5cfce131541826aacc8764803edb6eb6abbf8253a324659f65186ce683909382ddd43b3 SHA512 4ec98b90483f80fce40dcfb134b7ebeb4b3fc9d257b0a2a6ef6b23f77e786e8a13c7812fdcd8928b40ebfab28b247a1e8d917b5429bbac538a2af441c4f53b77
|
||||
DIST patch-6.1.156.xz 6549524 BLAKE2B 3dd6e04f40fe58351f4a832550ff3058d840fa0e71768f72cf9b0930772a67f5bf60b0719460ec0a9e33185c13240f26946979bdf9d1982e48e69f35e7642b0e SHA512 abbea02001a8caf931baadb38fc30346fe69786fa26d6494689fb4fb77fe83a5716714363d0f7d5d47f3c13c43fd09ecee3862a6c5b926064ca64aee7b3d8184
|
||||
DIST patch-6.1.157.xz 6579568 BLAKE2B 57556c1ebd47576a12155d3b00a5c238d3667a18f9d16f260ca3c2638239f5ec983d77df1ad8e7d161977c7197d3f7e0df54d6d4f695a60052975b3cc11f93c8 SHA512 0b4b7d14a47cae3f62812ee17b9de7224d0b678249148729639fa2f3563208237ec047f6a52f7c904f49f0442f630dd7e5a09f1c445dd8912d98df7f10c2d409
|
||||
DIST patch-6.12.41.xz 2584360 BLAKE2B 8cb7d77a45e79b186e24bc59be15d74f4e9ea4b7c7f7b5c81b82eaa9b1a8b88a7aabff6768471d905e24539366bdb85593304365726307e19bcfa41937764bf0 SHA512 b9307fafe443eb61b0edc624b2c9ab7a0206765eb614683e0f01d7f7fab04a729a91d92d67b8ace03208d6b63088ff235203e8fdfad27adc97cdbf7df872b3c2
|
||||
DIST patch-6.12.47.xz 2896968 BLAKE2B 4064af2ae029d13d63a0a6cfb9e4121266ab33622c03e088ad3544a0f5bf443d75a2ff2f7c35b58d7cc8669acb0eac93165cd3bfe5d8567f332516850bc9f7a4 SHA512 19bb9e9e235fa408e3b37dd6fe475f1dc7690bd09274dcdcb722ccc9733da9169dbaa97dffb15e0b32da6a62cd89b2da8cad32b4d2f16f2fbbd9d023b5ebae9b
|
||||
DIST patch-6.12.48.xz 2931416 BLAKE2B 888711e5a4b9578bdd09379aac0b385b901e9784e1307b2c36a700f996e6deb9c2e6531ea2a4fd4daec6bd2cb44c8a7767d00e59922c2311e448592605929e00 SHA512 f7a4999b1f2d2019fcaf691a2c0f1797be73858404fd4825962ec32945733fe98f625d8451d9bc264a1c14500b4596be6b73ea947da35e7b27f044f08642f2ab
|
||||
DIST patch-6.12.49.xz 2955076 BLAKE2B 8f333d832ea1fe060000b3b14fb2e91ee2302df73f3e84a49a4813f59a254f56b51e7d7b8ad0a1f6c83655f34eaad41f97d70111c12ecd781d62b273a91c1af1 SHA512 38d48f5d76489936562b1ea0b62482ecfea1b2e1ccde07742f93950ce5f059897904b2c4342b6e91d2b647c283485c6f69d56719a9a3ed41a9e35f282b5e1dd1
|
||||
DIST patch-6.12.50.xz 2972204 BLAKE2B 589b11a26af4f14181e12f156a4d34e884e7b8310802c22a63d3494b9a4507d275e3a437aaef7c7c5e2736ddbf71fc91ee4a9ab11acb252c89a16697c8964ed0 SHA512 3ec4639bec29bfe04765efa90abbda5ec5384ce616114b926e0c4bc7601a43ddf45c71634d8e846e1b5189460210099ccf4a4c0f20278a2e564cc25767543a7b
|
||||
DIST patch-6.12.51.xz 2974844 BLAKE2B cfb7242811febee3e506aa8775189f90cb1501341ca7aea7153aca28553cb5e953902f1c7bc23b2872f3f4617ee76641888c0cc0ae7a4611399a892030832b58 SHA512 5e04752b3432809212315b24c8fc18764b367e9e3282325d3d52b75190b4e0eeca48a10dc3baf09abfde3a633a7b14e03b4224251ae4e0b6206085683cce5dd2
|
||||
DIST patch-6.12.52.xz 2981340 BLAKE2B c3317e774812d88811d8e2aaac2f0ac076e819a012a28966a7f7ab0efe8aa5bd0b96fad848333121c681df5d9867740d8f4f61b39359a88a007b66481970b4a0 SHA512 a26009f2fe4a9c0d64685ffc7567ec2a817dc649093b8f50a20742e4f7db49a0752def2a8d4c2261df111160dbc97278357bc8f66685a87f5bf55eb9fd626baf
|
||||
DIST patch-6.12.53.xz 3031480 BLAKE2B ba00b2dc89efd299aa9c581c0d075c350ab8634f04bdbd41eb9d4aa9c3a8eaf359cacf5f0e776f8f234d2c9b2705eb0cb17cff258b1da3f0f12e94b8d27c1fd6 SHA512 34d6aab0f26e6b66ed96f1a7e978abb88c355aab89e9a05759956ea3bafb3d5d19d3106896dda4f6a76d45b84164ac66aa20c0cdb9cfb74f8c17f49e5597908c
|
||||
DIST patch-6.12.54.xz 3096864 BLAKE2B f5bff8166a5a45535092614ef9ed1d9e39064fd2762f0d71e852a87437326892c9d25a095ad51eb3b7fdfe266ba5f16d271303b98c4c1c6ed1716cfa09b669bb SHA512 744143218b5258a67f4b00126c72d7630b6e563dd0cc0a9cf685bc38cb48dc217d717053117e72a52fba061b2171a99ef64d992288f75500f069c617d1663b5b
|
||||
DIST patch-6.16.10.xz 796140 BLAKE2B fb1868512d250eded50e32cbe9233e8a89e63d9004d0ca6cb1c5f156c128358bc294da6e0e7fe011cfbcac1358b1ef6b860d82628e34e15ac141a45465109c53 SHA512 0a2c34c2f64cd87f7079388295d120c81ad6bf3797873bac5bdaf4baeb0ae419f1beccb4f5415ed4a6b14f583f671073f7db2b7de92930ccf5bf59169a714e8f
|
||||
DIST patch-6.16.11.xz 799032 BLAKE2B 5e0a522494c81839a9a0c06825ebdbdce4c7a802ce62c337dd819cfe04012ecfed7bab3d93574aa6a3e66477971d687d0ef1971dff409ff49d0d18e09d68df21 SHA512 46423abc9bd8aaf0611f285947726dba54c24c73966cbfd03203314a6c235e98b110681335c2a1d0528c43abd13f285edec73a43f4df872c0cc7221677fd318c
|
||||
DIST patch-6.16.12.xz 808544 BLAKE2B 0fbd9b63869a73e5f4f1ba4dab26167faaeb9c178ef7ab0b0b9e158f493929eba9b70ca8681e05cb4b2d8e8983ee8ffa4b1845ad90cbef93671868fc9fa4c989 SHA512 64079698b0ad170b99f59db0ed119eb9920e2df7887c1738434583128cec578901e31f7f6002a7f397670d4d51ff2c2ac3f414c9896de9c7ba4f55e694364c11
|
||||
DIST patch-6.16.7.xz 650544 BLAKE2B 5ceb5a463cf7c9df15a894103913e7f872af9b879a6a8751b2cd4208c687e477654a2b23f468a44d6af66a987f55e76da55c0080de5025dcc286ddf1d1be9e4b SHA512 9351c2d01a914854831cd5db71aec3ebf9887161871ba7a00fdd234849121764b0af9ce4b08c5f275d9278268fc960e4aa4232edec15220e75113fc9610ca59e
|
||||
DIST patch-6.16.8.xz 719144 BLAKE2B bc4342eda12987323d7b5cb04307fc5454940e71d9c153e5e74876375798f95af6084c23245cfdc9551f6dbe478884d1fcbdea8e1a2d9bc27ab95a2cb30db280 SHA512 ce466430fae6ff8501cca3798d1c3e72b3defc997175f7f1ea78c774c207b97579c1dac5f5eee8b56e3569ca23fabaeaba9186125b5fdce617414a9abd6dda82
|
||||
DIST patch-6.16.9.xz 759708 BLAKE2B 740b6400b05631c7a0a5ff3ddeb812a5e570d2c834a194c848ad5cf87049b9d45666b0a8b3c83d386eb382a84b4f34290f16766df32b3002ea3172165aa2beae SHA512 58f3e476392a081648471fc5d8222981c7ebfa7896b6adfb267d93c2fe5227096a4e850ca3ba0914d243078ab1f6a3248bb1ff26fde1eef354e6fc579e419f52
|
||||
DIST patch-6.17.1.xz 6492 BLAKE2B a0c0ceae36a46f63fb02c0eaaca8a4c2613f6c3cb42d786626ae12e21f4b827e268eb95246a220411836414b46199aa705cb5a7974a072fbbc819f6e4e7efc97 SHA512 7a69dcd30b39c297332bfaeec104400768e185fdccc1603768cc05d2a7e9f37107df0da7b05e1dbea7d9464e5a63e02d867ea225b9989c57b6ec62391826d80b
|
||||
DIST patch-6.17.2.xz 16496 BLAKE2B ef9f5023aa506e252e108b653066ceb90b2f8cc7d2064603d0d4fa860d7a8ebdf281dd615729acbba006c79539202dc57e19169aa09380fdb59856cf69cc30b6 SHA512 90cdf063da741ec0628dc089f15089b074cfd7ce3382d32e5c8a330f13200be09faffd1b2dfa2fe57c3a16dcc9a01c166f4f0733bc0ee70e68bd6f05d879cc3e
|
||||
DIST patch-6.17.3.xz 205828 BLAKE2B 4b6b11f7a723c57bb532f066f66cf6bcd087ca7768be71e79d6a424b9f973414fb44af320411f18aa161d0b2ced6d43bfa8c96b9ff1ceedba16b710f14bc8802 SHA512 23fe4c195ca71fe0aa524f6d80d1ec4ba7ff6fe4352410c27fd93a86cecf23a0bd4cf61ee097fb2413da85b10aa76cac2a4e7da53ec493c2d7d1eddaccf71286
|
||||
DIST patch-6.12.55.xz 3132512 BLAKE2B b78f35653171cb91d00f115cfb7a9d5e1b1eb43e77f342b06e7eed3425e620975addcc35608b64eee11d08f0b0599850520ce92fc8170dad3742fd65a2d529b4 SHA512 c81f4e2afc3bb1e5c279147c26ad91bbc045b34bb557f0f2ccaa05d59991320e936a7fd71237ea177e246062280496d72e3e6a006b87e8d67aaaa6c8dfce4608
|
||||
DIST patch-6.17.4.xz 315840 BLAKE2B 4121f8cc485a71878335d1b186c39271b83bca4e176566ee63e60a26eedd74e68e5d238492c7bb462c4139fade13bff105c46a1d12411cb4fa0972c9eb9cb3d9 SHA512 c81d328581330b10d1b6b99e3bc1386a20c0661905d953a294bf0e68e8f7ccec698ba2286e2c868c8c0ed4e2f42fb8432a988080cc3cdeb57de36630b576400f
|
||||
DIST patch-6.6.101.xz 4660596 BLAKE2B 3b02a5a37a67113ec35d647bb13f729fa0b883fa59b004e7b19b401bed374b700ef806f27285c0951c2dc8cd3e0af16ae7d9fc3268b4f5020eafb1d0361aaab8 SHA512 bcb5671c660a84f34556210dd525c6b38f3a9cf6c78bbc6b7d936f8efeb3170b27bfbf4a343b0ac94659cc63a35c479e1e158ca35043d5937eebbaf4fd8cadb6
|
||||
DIST patch-6.17.5.xz 374980 BLAKE2B d1a8f1ab63801a8ca421981cce57aae2b5da5864336821fe8bbb5131a40b16c100d4fa3d3dd2d5c4ce28bb6e3dd9c6b4b5a642d81f2303dbe12739ce4b7f3c68 SHA512 decf5a01bb3ea68e62257233225e3648d140690ac471cbac9048386aa0ebe7f7362c34cfce1d8fb615c2b37368893d33346da6ea0376feab8b7f3d3187288c83
|
||||
DIST patch-6.6.106.xz 4880660 BLAKE2B 3205119e8c10be006eb9f5c455a6fd2cec6b98f351e5e9983c6303f11b5f8822f73ede0dbc95c390736ddbd90bd2ca6383e3737618d108ffe3637d38dafad762 SHA512 e4a2bbd7c0f6a5a875fe4bdb1fbc82ff54a7d8a37f0c8cf04e6222a2be3d4579458bcbd87736b9fc95058f79a5181a381d40dc4d5b69761378eae29dc30349bc
|
||||
DIST patch-6.6.107.xz 4898532 BLAKE2B 5be64e27df6d78bd192913d6196a75530fc21fd9863426e08fc09e968679921eb706703bc159ddf57bc4c6aa4240a77b9b4eb626569c84c7a97ab834df76ada4 SHA512 84c59a8d255e91f0ba1356ea16e16e9a29e078ecdd7ef368fcd501679e2edb17e8b41ef42feb7f28a32b7b02fc63427d7f96594ca22e0ee0306d02054e173fcb
|
||||
DIST patch-6.6.108.xz 4910552 BLAKE2B 6d482fe76be8b11fc931087537872b2a5b2ef862c8654be312d8531cc6bb4508a85fbd3a91c67f17190a42f0c6e0a540f27391aec3b4b81308c2ead7c43e2ab7 SHA512 fa31c0f6c378d80723c8acecf2e7dcd49028136d21be0596679d4797efcdc257a0c8994b91ab428934678626d14a01a27648aba48e643ad179cf2ac0b4220335
|
||||
DIST patch-6.6.109.xz 4925652 BLAKE2B 1eea77c0d6966963fa61546aa5a2e4deff3145a61e0b3ddc2a179222aa736f7f65d8581ce4e549bf2d0a76b679dda6c0a2970e49036b8a6be8c9104a390d9fd6 SHA512 a3c9fadf8d6c55c569fc388c3585ef571a958eee3736cddc900beaec14c3b59e78ad3e38493177d35322f3f840f6f372c231bdf5272243e6d831590499d8c6bc
|
||||
DIST patch-6.6.110.xz 4926864 BLAKE2B 062eded9bbb18836209b7b07bd5803602212f4bd1d0c9d87252eddbe9cbbce216f78618d3b797c8d3768ec4a1b71081c3aaf1ebf7cdbe4c59ddfcd77595bb658 SHA512 927f002bf2ec227c19d115589337e4189c8320aa30d54325923078e87f74e2b7ffa5f6dd9cec515c3266dcff3d74ddab2cae6cdfd63c120fa34923ed7d455ec3
|
||||
DIST patch-6.6.111.xz 4931684 BLAKE2B a832e787516bb20de7e4841b1f5adb45683c900bb4df9b7856878c150a0b5e27d8b83c951eb68cdbf8ff0cd42e4a12c65792c032854b140efd7759eb9b1c39be SHA512 583fbec82cf16b75e1e447a51c858dfde9b1599f4970e927043d6f2e7f4cd0afc619432b001d3cb89d33c02414eb217b811717973b163d646676c3ca86f48b3c
|
||||
DIST patch-6.6.112.xz 4963076 BLAKE2B 4e4798a85173a15fd73cd126d9444b0726701bc9c4d7f94a5fce44401787f6e8c2550190e9243426b8216e866663aa9a554552b1199e55b54138d60a4c9f22be SHA512 6a622dac83d2a7f737799403d41695582ed7f7cd008096af55fc930cc387c498dcffd826ed51cf9fa5011bd7a53549f8ab95418c010e9ed9a0e16aba91cbbde2
|
||||
DIST patch-6.6.113.xz 5000480 BLAKE2B 6f9b360db1f92e80a5faae98ab399aba43f307df6fbc37d106b768aff02b0abea69dd4d20cb3db82ecb7b778ecf769bd49998c0b3a0e00f7e81af4fff49a39c5 SHA512 37622c883ae85ada9ec01852b1b8b40ab8e6533ee1f59b6dc080599cf03eddc77901043ef25dcd3872698fa59029297727c31f83e1891332896c2b597fa2fcb9
|
||||
DIST patch-6.6.114.xz 5029636 BLAKE2B f41f9ce02f210d7506bfc1e646b9ac22cac7cadbbc89e0262f8a545372bb71a388c97279b8ff5c18d411029a48c05a19410dd4c36720b3511a2be843b1e39844 SHA512 92d061b9cd67fb293736b0e2989acab66399650d4fc6e83f220b39bf83dc179a40813fa58ddb16ffab6b562938e66512df140b6d55039c58ec51873ece10e378
|
||||
|
||||
@@ -1,177 +0,0 @@
|
||||
# Copyright 2020-2025 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
inherit kernel-install toolchain-funcs unpacker verify-sig
|
||||
|
||||
MY_P=linux-${PV%.*}
|
||||
PATCHSET=linux-gentoo-patches-5.10.240
|
||||
BINPKG=${PF/-bin}-1
|
||||
SHA256SUM_DATE=20250717
|
||||
|
||||
DESCRIPTION="Pre-built Linux kernel with Gentoo patches"
|
||||
HOMEPAGE="
|
||||
https://wiki.gentoo.org/wiki/Project:Distribution_Kernel
|
||||
https://www.kernel.org/
|
||||
"
|
||||
SRC_URI+="
|
||||
https://cdn.kernel.org/pub/linux/kernel/v$(ver_cut 1).x/${MY_P}.tar.xz
|
||||
https://cdn.kernel.org/pub/linux/kernel/v$(ver_cut 1).x/patch-${PV}.xz
|
||||
https://dev.gentoo.org/~mgorny/dist/linux/${PATCHSET}.tar.xz
|
||||
verify-sig? (
|
||||
https://cdn.kernel.org/pub/linux/kernel/v$(ver_cut 1).x/sha256sums.asc
|
||||
-> linux-$(ver_cut 1).x-sha256sums-${SHA256SUM_DATE}.asc
|
||||
)
|
||||
amd64? (
|
||||
https://dev.gentoo.org/~mgorny/binpkg/amd64/kernel/sys-kernel/gentoo-kernel/${BINPKG}.gpkg.tar
|
||||
-> ${BINPKG}.amd64.gpkg.tar
|
||||
)
|
||||
arm64? (
|
||||
https://dev.gentoo.org/~mgorny/binpkg/arm64/kernel/sys-kernel/gentoo-kernel/${BINPKG}.gpkg.tar
|
||||
-> ${BINPKG}.arm64.gpkg.tar
|
||||
)
|
||||
ppc64? (
|
||||
https://dev.gentoo.org/~mgorny/binpkg/ppc64le/kernel/sys-kernel/gentoo-kernel/${BINPKG}.gpkg.tar
|
||||
-> ${BINPKG}.ppc64le.gpkg.tar
|
||||
)
|
||||
x86? (
|
||||
https://dev.gentoo.org/~mgorny/binpkg/x86/kernel/sys-kernel/gentoo-kernel/${BINPKG}.gpkg.tar
|
||||
-> ${BINPKG}.x86.gpkg.tar
|
||||
)
|
||||
"
|
||||
S=${WORKDIR}
|
||||
|
||||
KEYWORDS="amd64 arm64 ppc64 x86"
|
||||
|
||||
RDEPEND="
|
||||
!sys-kernel/gentoo-kernel:${SLOT}
|
||||
"
|
||||
PDEPEND="
|
||||
>=virtual/dist-kernel-${PV}
|
||||
"
|
||||
BDEPEND="
|
||||
app-alternatives/bc
|
||||
app-alternatives/lex
|
||||
virtual/libelf
|
||||
app-alternatives/yacc
|
||||
verify-sig? ( >=sec-keys/openpgp-keys-kernel-20250702 )
|
||||
"
|
||||
|
||||
KV_LOCALVERSION='-gentoo-dist'
|
||||
KPV=${PV}${KV_LOCALVERSION}
|
||||
|
||||
QA_PREBUILT='*'
|
||||
|
||||
VERIFY_SIG_OPENPGP_KEY_PATH=/usr/share/openpgp-keys/kernel.org.asc
|
||||
|
||||
src_unpack() {
|
||||
if use verify-sig; then
|
||||
cd "${DISTDIR}" || die
|
||||
verify-sig_verify_signed_checksums \
|
||||
"linux-$(ver_cut 1).x-sha256sums-${SHA256SUM_DATE}.asc" \
|
||||
sha256 "${MY_P}.tar.xz patch-${PV}.xz"
|
||||
cd "${WORKDIR}" || die
|
||||
fi
|
||||
|
||||
unpacker
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
local patch
|
||||
cd "${MY_P}" || die
|
||||
eapply "${WORKDIR}/patch-${PV}"
|
||||
for patch in "${WORKDIR}/${PATCHSET}"/*.patch; do
|
||||
eapply "${patch}"
|
||||
# non-experimental patches always finish with Gentoo Kconfig
|
||||
# we built -bins without them
|
||||
if [[ ${patch} == *Add-Gentoo-Linux-support-config-settings* ]]
|
||||
then
|
||||
break
|
||||
fi
|
||||
done
|
||||
|
||||
default
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
# force ld.bfd if we can find it easily
|
||||
local HOSTLD="$(tc-getBUILD_LD)"
|
||||
if type -P "${HOSTLD}.bfd" &>/dev/null; then
|
||||
HOSTLD+=.bfd
|
||||
fi
|
||||
local LD="$(tc-getLD)"
|
||||
if type -P "${LD}.bfd" &>/dev/null; then
|
||||
LD+=.bfd
|
||||
fi
|
||||
tc-export_build_env
|
||||
local makeargs=(
|
||||
V=1
|
||||
WERROR=0
|
||||
|
||||
HOSTCC="$(tc-getBUILD_CC)"
|
||||
HOSTCXX="$(tc-getBUILD_CXX)"
|
||||
HOSTLD="${HOSTLD}"
|
||||
HOSTAR="$(tc-getBUILD_AR)"
|
||||
HOSTCFLAGS="${BUILD_CFLAGS}"
|
||||
HOSTLDFLAGS="${BUILD_LDFLAGS}"
|
||||
|
||||
CROSS_COMPILE=${CHOST}-
|
||||
AS="$(tc-getAS)"
|
||||
CC="$(tc-getCC)"
|
||||
LD="${LD}"
|
||||
AR="$(tc-getAR)"
|
||||
NM="$(tc-getNM)"
|
||||
STRIP="$(tc-getSTRIP)"
|
||||
OBJCOPY="$(tc-getOBJCOPY)"
|
||||
OBJDUMP="$(tc-getOBJDUMP)"
|
||||
READELF="$(tc-getREADELF)"
|
||||
|
||||
# we need to pass it to override colliding Gentoo envvar
|
||||
ARCH="$(tc-arch-kernel)"
|
||||
|
||||
O="${WORKDIR}"/modprep
|
||||
)
|
||||
|
||||
local kernel_dir="${BINPKG}/image/usr/src/linux-${KPV}"
|
||||
|
||||
# If this is set it will have an effect on the name of the output
|
||||
# image. Set this variable to track this setting.
|
||||
if grep -q "CONFIG_EFI_ZBOOT=y" "${kernel_dir}/.config"; then
|
||||
KERNEL_EFI_ZBOOT=1
|
||||
fi
|
||||
|
||||
mkdir modprep || die
|
||||
cp "${BINPKG}/image/usr/src/linux-${KPV}/.config" modprep/ || die
|
||||
emake -C "${MY_P}" "${makeargs[@]}" modules_prepare
|
||||
}
|
||||
|
||||
src_test() {
|
||||
kernel-install_test "${KPV}" \
|
||||
"${WORKDIR}/${BINPKG}/image/usr/src/linux-${KPV}/$(dist-kernel_get_image_path)" \
|
||||
"${BINPKG}/image/lib/modules/${KPV}"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
local kernel_dir="${BINPKG}/image/usr/src/linux-${KPV}"
|
||||
|
||||
# Overwrite the identifier in the prebuilt package
|
||||
echo "${CATEGORY}/${PF}:${SLOT}" > "${kernel_dir}/dist-kernel" || die
|
||||
|
||||
mv "${BINPKG}"/image/{lib,usr} "${ED}"/ || die
|
||||
|
||||
# FIXME: requires proper mount-boot
|
||||
if [[ -d ${BINPKG}/image/boot/dtbs ]]; then
|
||||
mv "${BINPKG}"/image/boot "${ED}"/ || die
|
||||
fi
|
||||
|
||||
# strip out-of-source build stuffs from modprep
|
||||
# and then copy built files
|
||||
find modprep -type f '(' \
|
||||
-name Makefile -o \
|
||||
-name '*.[ao]' -o \
|
||||
'(' -name '.*' -a -not -name '.config' ')' \
|
||||
')' -delete || die
|
||||
rm modprep/source || die
|
||||
cp -p -R modprep/. "${ED}/usr/src/linux-${KPV}"/ || die
|
||||
}
|
||||
@@ -1,177 +0,0 @@
|
||||
# Copyright 2020-2025 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
inherit kernel-install toolchain-funcs unpacker verify-sig
|
||||
|
||||
MY_P=linux-${PV%.*}
|
||||
PATCHSET=linux-gentoo-patches-5.15.187
|
||||
BINPKG=${PF/-bin}-1
|
||||
SHA256SUM_DATE=20250717
|
||||
|
||||
DESCRIPTION="Pre-built Linux kernel with Gentoo patches"
|
||||
HOMEPAGE="
|
||||
https://wiki.gentoo.org/wiki/Project:Distribution_Kernel
|
||||
https://www.kernel.org/
|
||||
"
|
||||
SRC_URI+="
|
||||
https://cdn.kernel.org/pub/linux/kernel/v$(ver_cut 1).x/${MY_P}.tar.xz
|
||||
https://cdn.kernel.org/pub/linux/kernel/v$(ver_cut 1).x/patch-${PV}.xz
|
||||
https://dev.gentoo.org/~mgorny/dist/linux/${PATCHSET}.tar.xz
|
||||
verify-sig? (
|
||||
https://cdn.kernel.org/pub/linux/kernel/v$(ver_cut 1).x/sha256sums.asc
|
||||
-> linux-$(ver_cut 1).x-sha256sums-${SHA256SUM_DATE}.asc
|
||||
)
|
||||
amd64? (
|
||||
https://dev.gentoo.org/~mgorny/binpkg/amd64/kernel/sys-kernel/gentoo-kernel/${BINPKG}.gpkg.tar
|
||||
-> ${BINPKG}.amd64.gpkg.tar
|
||||
)
|
||||
arm64? (
|
||||
https://dev.gentoo.org/~mgorny/binpkg/arm64/kernel/sys-kernel/gentoo-kernel/${BINPKG}.gpkg.tar
|
||||
-> ${BINPKG}.arm64.gpkg.tar
|
||||
)
|
||||
ppc64? (
|
||||
https://dev.gentoo.org/~mgorny/binpkg/ppc64le/kernel/sys-kernel/gentoo-kernel/${BINPKG}.gpkg.tar
|
||||
-> ${BINPKG}.ppc64le.gpkg.tar
|
||||
)
|
||||
x86? (
|
||||
https://dev.gentoo.org/~mgorny/binpkg/x86/kernel/sys-kernel/gentoo-kernel/${BINPKG}.gpkg.tar
|
||||
-> ${BINPKG}.x86.gpkg.tar
|
||||
)
|
||||
"
|
||||
S=${WORKDIR}
|
||||
|
||||
KEYWORDS="amd64 arm64 ppc64 x86"
|
||||
|
||||
RDEPEND="
|
||||
!sys-kernel/gentoo-kernel:${SLOT}
|
||||
"
|
||||
PDEPEND="
|
||||
>=virtual/dist-kernel-${PV}
|
||||
"
|
||||
BDEPEND="
|
||||
app-alternatives/bc
|
||||
app-alternatives/lex
|
||||
virtual/libelf
|
||||
app-alternatives/yacc
|
||||
verify-sig? ( >=sec-keys/openpgp-keys-kernel-20250702 )
|
||||
"
|
||||
|
||||
KV_LOCALVERSION='-gentoo-dist'
|
||||
KPV=${PV}${KV_LOCALVERSION}
|
||||
|
||||
QA_PREBUILT='*'
|
||||
|
||||
VERIFY_SIG_OPENPGP_KEY_PATH=/usr/share/openpgp-keys/kernel.org.asc
|
||||
|
||||
src_unpack() {
|
||||
if use verify-sig; then
|
||||
cd "${DISTDIR}" || die
|
||||
verify-sig_verify_signed_checksums \
|
||||
"linux-$(ver_cut 1).x-sha256sums-${SHA256SUM_DATE}.asc" \
|
||||
sha256 "${MY_P}.tar.xz patch-${PV}.xz"
|
||||
cd "${WORKDIR}" || die
|
||||
fi
|
||||
|
||||
unpacker
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
local patch
|
||||
cd "${MY_P}" || die
|
||||
eapply "${WORKDIR}/patch-${PV}"
|
||||
for patch in "${WORKDIR}/${PATCHSET}"/*.patch; do
|
||||
eapply "${patch}"
|
||||
# non-experimental patches always finish with Gentoo Kconfig
|
||||
# we built -bins without them
|
||||
if [[ ${patch} == *Add-Gentoo-Linux-support-config-settings* ]]
|
||||
then
|
||||
break
|
||||
fi
|
||||
done
|
||||
|
||||
default
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
# force ld.bfd if we can find it easily
|
||||
local HOSTLD="$(tc-getBUILD_LD)"
|
||||
if type -P "${HOSTLD}.bfd" &>/dev/null; then
|
||||
HOSTLD+=.bfd
|
||||
fi
|
||||
local LD="$(tc-getLD)"
|
||||
if type -P "${LD}.bfd" &>/dev/null; then
|
||||
LD+=.bfd
|
||||
fi
|
||||
tc-export_build_env
|
||||
local makeargs=(
|
||||
V=1
|
||||
WERROR=0
|
||||
|
||||
HOSTCC="$(tc-getBUILD_CC)"
|
||||
HOSTCXX="$(tc-getBUILD_CXX)"
|
||||
HOSTLD="${HOSTLD}"
|
||||
HOSTAR="$(tc-getBUILD_AR)"
|
||||
HOSTCFLAGS="${BUILD_CFLAGS}"
|
||||
HOSTLDFLAGS="${BUILD_LDFLAGS}"
|
||||
|
||||
CROSS_COMPILE=${CHOST}-
|
||||
AS="$(tc-getAS)"
|
||||
CC="$(tc-getCC)"
|
||||
LD="${LD}"
|
||||
AR="$(tc-getAR)"
|
||||
NM="$(tc-getNM)"
|
||||
STRIP="$(tc-getSTRIP)"
|
||||
OBJCOPY="$(tc-getOBJCOPY)"
|
||||
OBJDUMP="$(tc-getOBJDUMP)"
|
||||
READELF="$(tc-getREADELF)"
|
||||
|
||||
# we need to pass it to override colliding Gentoo envvar
|
||||
ARCH="$(tc-arch-kernel)"
|
||||
|
||||
O="${WORKDIR}"/modprep
|
||||
)
|
||||
|
||||
local kernel_dir="${BINPKG}/image/usr/src/linux-${KPV}"
|
||||
|
||||
# If this is set it will have an effect on the name of the output
|
||||
# image. Set this variable to track this setting.
|
||||
if grep -q "CONFIG_EFI_ZBOOT=y" "${kernel_dir}/.config"; then
|
||||
KERNEL_EFI_ZBOOT=1
|
||||
fi
|
||||
|
||||
mkdir modprep || die
|
||||
cp "${BINPKG}/image/usr/src/linux-${KPV}/.config" modprep/ || die
|
||||
emake -C "${MY_P}" "${makeargs[@]}" modules_prepare
|
||||
}
|
||||
|
||||
src_test() {
|
||||
kernel-install_test "${KPV}" \
|
||||
"${WORKDIR}/${BINPKG}/image/usr/src/linux-${KPV}/$(dist-kernel_get_image_path)" \
|
||||
"${BINPKG}/image/lib/modules/${KPV}"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
local kernel_dir="${BINPKG}/image/usr/src/linux-${KPV}"
|
||||
|
||||
# Overwrite the identifier in the prebuilt package
|
||||
echo "${CATEGORY}/${PF}:${SLOT}" > "${kernel_dir}/dist-kernel" || die
|
||||
|
||||
mv "${BINPKG}"/image/{lib,usr} "${ED}"/ || die
|
||||
|
||||
# FIXME: requires proper mount-boot
|
||||
if [[ -d ${BINPKG}/image/boot/dtbs ]]; then
|
||||
mv "${BINPKG}"/image/boot "${ED}"/ || die
|
||||
fi
|
||||
|
||||
# strip out-of-source build stuffs from modprep
|
||||
# and then copy built files
|
||||
find modprep -type f '(' \
|
||||
-name Makefile -o \
|
||||
-name '*.[ao]' -o \
|
||||
'(' -name '.*' -a -not -name '.config' ')' \
|
||||
')' -delete || die
|
||||
rm modprep/source || die
|
||||
cp -p -R modprep/. "${ED}/usr/src/linux-${KPV}"/ || die
|
||||
}
|
||||
@@ -1,184 +0,0 @@
|
||||
# Copyright 2020-2025 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
KERNEL_IUSE_MODULES_SIGN=1
|
||||
|
||||
inherit kernel-install toolchain-funcs unpacker verify-sig
|
||||
|
||||
BASE_P=linux-${PV%.*}
|
||||
PATCH_PV=${PV%_p*}
|
||||
PATCHSET=linux-gentoo-patches-5.15.190
|
||||
BINPKG=${P/-bin}-1
|
||||
SHA256SUM_DATE=20251002
|
||||
|
||||
DESCRIPTION="Pre-built Linux kernel with Gentoo patches"
|
||||
HOMEPAGE="
|
||||
https://wiki.gentoo.org/wiki/Project:Distribution_Kernel
|
||||
https://www.kernel.org/
|
||||
"
|
||||
SRC_URI+="
|
||||
https://cdn.kernel.org/pub/linux/kernel/v$(ver_cut 1).x/${BASE_P}.tar.xz
|
||||
https://cdn.kernel.org/pub/linux/kernel/v$(ver_cut 1).x/patch-${PATCH_PV}.xz
|
||||
https://dev.gentoo.org/~mgorny/dist/linux/${PATCHSET}.tar.xz
|
||||
verify-sig? (
|
||||
https://cdn.kernel.org/pub/linux/kernel/v$(ver_cut 1).x/sha256sums.asc
|
||||
-> linux-$(ver_cut 1).x-sha256sums-${SHA256SUM_DATE}.asc
|
||||
)
|
||||
amd64? (
|
||||
https://dev.gentoo.org/~mgorny/binpkg/amd64/kernel/sys-kernel/gentoo-kernel/${BINPKG}.gpkg.tar
|
||||
-> ${BINPKG}.amd64.gpkg.tar
|
||||
)
|
||||
arm64? (
|
||||
https://dev.gentoo.org/~mgorny/binpkg/arm64/kernel/sys-kernel/gentoo-kernel/${BINPKG}.gpkg.tar
|
||||
-> ${BINPKG}.arm64.gpkg.tar
|
||||
)
|
||||
ppc64? (
|
||||
https://dev.gentoo.org/~mgorny/binpkg/ppc64le/kernel/sys-kernel/gentoo-kernel/${BINPKG}.gpkg.tar
|
||||
-> ${BINPKG}.ppc64le.gpkg.tar
|
||||
)
|
||||
x86? (
|
||||
https://dev.gentoo.org/~mgorny/binpkg/x86/kernel/sys-kernel/gentoo-kernel/${BINPKG}.gpkg.tar
|
||||
-> ${BINPKG}.x86.gpkg.tar
|
||||
)
|
||||
"
|
||||
S=${WORKDIR}
|
||||
|
||||
KEYWORDS="~amd64 ~arm64 ~ppc64 ~x86"
|
||||
|
||||
RDEPEND="
|
||||
!sys-kernel/gentoo-kernel:${SLOT}
|
||||
"
|
||||
PDEPEND="
|
||||
>=virtual/dist-kernel-${PV}
|
||||
"
|
||||
BDEPEND="
|
||||
app-alternatives/bc
|
||||
app-alternatives/lex
|
||||
virtual/libelf
|
||||
app-alternatives/yacc
|
||||
verify-sig? ( >=sec-keys/openpgp-keys-kernel-20250702 )
|
||||
"
|
||||
|
||||
KV_LOCALVERSION='-gentoo-dist'
|
||||
KV_FULL=${PV/_p/-p}${KV_LOCALVERSION}
|
||||
|
||||
QA_PREBUILT='*'
|
||||
|
||||
VERIFY_SIG_OPENPGP_KEY_PATH=/usr/share/openpgp-keys/kernel.org.asc
|
||||
|
||||
src_unpack() {
|
||||
if use verify-sig; then
|
||||
cd "${DISTDIR}" || die
|
||||
verify-sig_verify_signed_checksums \
|
||||
"linux-$(ver_cut 1).x-sha256sums-${SHA256SUM_DATE}.asc" \
|
||||
sha256 "${BASE_P}.tar.xz patch-${PATCH_PV}.xz"
|
||||
cd "${WORKDIR}" || die
|
||||
fi
|
||||
|
||||
unpacker
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
local patch
|
||||
cd "${BASE_P}" || die
|
||||
eapply "${WORKDIR}/patch-${PATCH_PV}"
|
||||
for patch in "${WORKDIR}/${PATCHSET}"/*.patch; do
|
||||
eapply "${patch}"
|
||||
# non-experimental patches always finish with Gentoo Kconfig
|
||||
# we built -bins without them
|
||||
if [[ ${patch} == *Add-Gentoo-Linux-support-config-settings* ]]
|
||||
then
|
||||
break
|
||||
fi
|
||||
done
|
||||
|
||||
default
|
||||
|
||||
# add Gentoo patchset version
|
||||
local extraversion=${PV#${PATCH_PV}}
|
||||
sed -i -e "s:^\(EXTRAVERSION =\).*:\1 ${extraversion/_/-}:" Makefile || die
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
# force ld.bfd if we can find it easily
|
||||
local HOSTLD="$(tc-getBUILD_LD)"
|
||||
if type -P "${HOSTLD}.bfd" &>/dev/null; then
|
||||
HOSTLD+=.bfd
|
||||
fi
|
||||
local LD="$(tc-getLD)"
|
||||
if type -P "${LD}.bfd" &>/dev/null; then
|
||||
LD+=.bfd
|
||||
fi
|
||||
tc-export_build_env
|
||||
local makeargs=(
|
||||
V=1
|
||||
WERROR=0
|
||||
|
||||
HOSTCC="$(tc-getBUILD_CC)"
|
||||
HOSTCXX="$(tc-getBUILD_CXX)"
|
||||
HOSTLD="${HOSTLD}"
|
||||
HOSTAR="$(tc-getBUILD_AR)"
|
||||
HOSTCFLAGS="${BUILD_CFLAGS}"
|
||||
HOSTLDFLAGS="${BUILD_LDFLAGS}"
|
||||
|
||||
CROSS_COMPILE=${CHOST}-
|
||||
AS="$(tc-getAS)"
|
||||
CC="$(tc-getCC)"
|
||||
LD="${LD}"
|
||||
AR="$(tc-getAR)"
|
||||
NM="$(tc-getNM)"
|
||||
STRIP="$(tc-getSTRIP)"
|
||||
OBJCOPY="$(tc-getOBJCOPY)"
|
||||
OBJDUMP="$(tc-getOBJDUMP)"
|
||||
READELF="$(tc-getREADELF)"
|
||||
|
||||
# we need to pass it to override colliding Gentoo envvar
|
||||
ARCH="$(tc-arch-kernel)"
|
||||
|
||||
O="${WORKDIR}"/modprep
|
||||
)
|
||||
|
||||
local kernel_dir="${BINPKG}/image/usr/src/linux-${KV_FULL}"
|
||||
|
||||
# If this is set it will have an effect on the name of the output
|
||||
# image. Set this variable to track this setting.
|
||||
if grep -q "CONFIG_EFI_ZBOOT=y" "${kernel_dir}/.config"; then
|
||||
KERNEL_EFI_ZBOOT=1
|
||||
fi
|
||||
|
||||
mkdir modprep || die
|
||||
cp "${BINPKG}/image/usr/src/linux-${KV_FULL}/.config" modprep/ || die
|
||||
emake -C "${BASE_P}" "${makeargs[@]}" modules_prepare
|
||||
}
|
||||
|
||||
src_test() {
|
||||
kernel-install_test "${KV_FULL}" \
|
||||
"${WORKDIR}/${BINPKG}/image/usr/src/linux-${KV_FULL}/$(dist-kernel_get_image_path)" \
|
||||
"${BINPKG}/image/lib/modules/${KV_FULL}"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
local kernel_dir="${BINPKG}/image/usr/src/linux-${KV_FULL}"
|
||||
|
||||
# Overwrite the identifier in the prebuilt package
|
||||
echo "${CATEGORY}/${PF}:${SLOT}" > "${kernel_dir}/dist-kernel" || die
|
||||
|
||||
mv "${BINPKG}"/image/{lib,usr} "${ED}"/ || die
|
||||
|
||||
# FIXME: requires proper mount-boot
|
||||
if [[ -d ${BINPKG}/image/boot/dtbs ]]; then
|
||||
mv "${BINPKG}"/image/boot "${ED}"/ || die
|
||||
fi
|
||||
|
||||
# strip out-of-source build stuffs from modprep
|
||||
# and then copy built files
|
||||
find modprep -type f '(' \
|
||||
-name Makefile -o \
|
||||
-name '*.[ao]' -o \
|
||||
'(' -name '.*' -a -not -name '.config' ')' \
|
||||
')' -delete || die
|
||||
rm modprep/source || die
|
||||
cp -p -R modprep/. "${ED}/usr/src/linux-${KV_FULL}"/ || die
|
||||
}
|
||||
@@ -1,177 +0,0 @@
|
||||
# Copyright 2020-2025 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
inherit kernel-install toolchain-funcs unpacker verify-sig
|
||||
|
||||
MY_P=linux-${PV%.*}
|
||||
PATCHSET=linux-gentoo-patches-6.1.147
|
||||
BINPKG=${PF/-bin}-1
|
||||
SHA256SUM_DATE=20250724
|
||||
|
||||
DESCRIPTION="Pre-built Linux kernel with Gentoo patches"
|
||||
HOMEPAGE="
|
||||
https://wiki.gentoo.org/wiki/Project:Distribution_Kernel
|
||||
https://www.kernel.org/
|
||||
"
|
||||
SRC_URI+="
|
||||
https://cdn.kernel.org/pub/linux/kernel/v$(ver_cut 1).x/${MY_P}.tar.xz
|
||||
https://cdn.kernel.org/pub/linux/kernel/v$(ver_cut 1).x/patch-${PV}.xz
|
||||
https://dev.gentoo.org/~mgorny/dist/linux/${PATCHSET}.tar.xz
|
||||
verify-sig? (
|
||||
https://cdn.kernel.org/pub/linux/kernel/v$(ver_cut 1).x/sha256sums.asc
|
||||
-> linux-$(ver_cut 1).x-sha256sums-${SHA256SUM_DATE}.asc
|
||||
)
|
||||
amd64? (
|
||||
https://dev.gentoo.org/~mgorny/binpkg/amd64/kernel/sys-kernel/gentoo-kernel/${BINPKG}.gpkg.tar
|
||||
-> ${BINPKG}.amd64.gpkg.tar
|
||||
)
|
||||
arm64? (
|
||||
https://dev.gentoo.org/~mgorny/binpkg/arm64/kernel/sys-kernel/gentoo-kernel/${BINPKG}.gpkg.tar
|
||||
-> ${BINPKG}.arm64.gpkg.tar
|
||||
)
|
||||
ppc64? (
|
||||
https://dev.gentoo.org/~mgorny/binpkg/ppc64le/kernel/sys-kernel/gentoo-kernel/${BINPKG}.gpkg.tar
|
||||
-> ${BINPKG}.ppc64le.gpkg.tar
|
||||
)
|
||||
x86? (
|
||||
https://dev.gentoo.org/~mgorny/binpkg/x86/kernel/sys-kernel/gentoo-kernel/${BINPKG}.gpkg.tar
|
||||
-> ${BINPKG}.x86.gpkg.tar
|
||||
)
|
||||
"
|
||||
S=${WORKDIR}
|
||||
|
||||
KEYWORDS="amd64 arm64 ppc64 x86"
|
||||
|
||||
RDEPEND="
|
||||
!sys-kernel/gentoo-kernel:${SLOT}
|
||||
"
|
||||
PDEPEND="
|
||||
>=virtual/dist-kernel-${PV}
|
||||
"
|
||||
BDEPEND="
|
||||
app-alternatives/bc
|
||||
app-alternatives/lex
|
||||
virtual/libelf
|
||||
app-alternatives/yacc
|
||||
verify-sig? ( >=sec-keys/openpgp-keys-kernel-20250702 )
|
||||
"
|
||||
|
||||
KV_LOCALVERSION='-gentoo-dist'
|
||||
KPV=${PV}${KV_LOCALVERSION}
|
||||
|
||||
QA_PREBUILT='*'
|
||||
|
||||
VERIFY_SIG_OPENPGP_KEY_PATH=/usr/share/openpgp-keys/kernel.org.asc
|
||||
|
||||
src_unpack() {
|
||||
if use verify-sig; then
|
||||
cd "${DISTDIR}" || die
|
||||
verify-sig_verify_signed_checksums \
|
||||
"linux-$(ver_cut 1).x-sha256sums-${SHA256SUM_DATE}.asc" \
|
||||
sha256 "${MY_P}.tar.xz patch-${PV}.xz"
|
||||
cd "${WORKDIR}" || die
|
||||
fi
|
||||
|
||||
unpacker
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
local patch
|
||||
cd "${MY_P}" || die
|
||||
eapply "${WORKDIR}/patch-${PV}"
|
||||
for patch in "${WORKDIR}/${PATCHSET}"/*.patch; do
|
||||
eapply "${patch}"
|
||||
# non-experimental patches always finish with Gentoo Kconfig
|
||||
# we built -bins without them
|
||||
if [[ ${patch} == *Add-Gentoo-Linux-support-config-settings* ]]
|
||||
then
|
||||
break
|
||||
fi
|
||||
done
|
||||
|
||||
default
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
# force ld.bfd if we can find it easily
|
||||
local HOSTLD="$(tc-getBUILD_LD)"
|
||||
if type -P "${HOSTLD}.bfd" &>/dev/null; then
|
||||
HOSTLD+=.bfd
|
||||
fi
|
||||
local LD="$(tc-getLD)"
|
||||
if type -P "${LD}.bfd" &>/dev/null; then
|
||||
LD+=.bfd
|
||||
fi
|
||||
tc-export_build_env
|
||||
local makeargs=(
|
||||
V=1
|
||||
WERROR=0
|
||||
|
||||
HOSTCC="$(tc-getBUILD_CC)"
|
||||
HOSTCXX="$(tc-getBUILD_CXX)"
|
||||
HOSTLD="${HOSTLD}"
|
||||
HOSTAR="$(tc-getBUILD_AR)"
|
||||
HOSTCFLAGS="${BUILD_CFLAGS}"
|
||||
HOSTLDFLAGS="${BUILD_LDFLAGS}"
|
||||
|
||||
CROSS_COMPILE=${CHOST}-
|
||||
AS="$(tc-getAS)"
|
||||
CC="$(tc-getCC)"
|
||||
LD="${LD}"
|
||||
AR="$(tc-getAR)"
|
||||
NM="$(tc-getNM)"
|
||||
STRIP="$(tc-getSTRIP)"
|
||||
OBJCOPY="$(tc-getOBJCOPY)"
|
||||
OBJDUMP="$(tc-getOBJDUMP)"
|
||||
READELF="$(tc-getREADELF)"
|
||||
|
||||
# we need to pass it to override colliding Gentoo envvar
|
||||
ARCH="$(tc-arch-kernel)"
|
||||
|
||||
O="${WORKDIR}"/modprep
|
||||
)
|
||||
|
||||
local kernel_dir="${BINPKG}/image/usr/src/linux-${KPV}"
|
||||
|
||||
# If this is set it will have an effect on the name of the output
|
||||
# image. Set this variable to track this setting.
|
||||
if grep -q "CONFIG_EFI_ZBOOT=y" "${kernel_dir}/.config"; then
|
||||
KERNEL_EFI_ZBOOT=1
|
||||
fi
|
||||
|
||||
mkdir modprep || die
|
||||
cp "${BINPKG}/image/usr/src/linux-${KPV}/.config" modprep/ || die
|
||||
emake -C "${MY_P}" "${makeargs[@]}" modules_prepare
|
||||
}
|
||||
|
||||
src_test() {
|
||||
kernel-install_test "${KPV}" \
|
||||
"${WORKDIR}/${BINPKG}/image/usr/src/linux-${KPV}/$(dist-kernel_get_image_path)" \
|
||||
"${BINPKG}/image/lib/modules/${KPV}"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
local kernel_dir="${BINPKG}/image/usr/src/linux-${KPV}"
|
||||
|
||||
# Overwrite the identifier in the prebuilt package
|
||||
echo "${CATEGORY}/${PF}:${SLOT}" > "${kernel_dir}/dist-kernel" || die
|
||||
|
||||
mv "${BINPKG}"/image/{lib,usr} "${ED}"/ || die
|
||||
|
||||
# FIXME: requires proper mount-boot
|
||||
if [[ -d ${BINPKG}/image/boot/dtbs ]]; then
|
||||
mv "${BINPKG}"/image/boot "${ED}"/ || die
|
||||
fi
|
||||
|
||||
# strip out-of-source build stuffs from modprep
|
||||
# and then copy built files
|
||||
find modprep -type f '(' \
|
||||
-name Makefile -o \
|
||||
-name '*.[ao]' -o \
|
||||
'(' -name '.*' -a -not -name '.config' ')' \
|
||||
')' -delete || die
|
||||
rm modprep/source || die
|
||||
cp -p -R modprep/. "${ED}/usr/src/linux-${KPV}"/ || die
|
||||
}
|
||||
@@ -1,184 +0,0 @@
|
||||
# Copyright 2020-2025 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
KERNEL_IUSE_MODULES_SIGN=1
|
||||
|
||||
inherit kernel-install toolchain-funcs unpacker verify-sig
|
||||
|
||||
BASE_P=linux-${PV%.*}
|
||||
PATCH_PV=${PV%_p*}
|
||||
PATCHSET=linux-gentoo-patches-6.1.153
|
||||
BINPKG=${P/-bin}-1
|
||||
SHA256SUM_DATE=20250919
|
||||
|
||||
DESCRIPTION="Pre-built Linux kernel with Gentoo patches"
|
||||
HOMEPAGE="
|
||||
https://wiki.gentoo.org/wiki/Project:Distribution_Kernel
|
||||
https://www.kernel.org/
|
||||
"
|
||||
SRC_URI+="
|
||||
https://cdn.kernel.org/pub/linux/kernel/v$(ver_cut 1).x/${BASE_P}.tar.xz
|
||||
https://cdn.kernel.org/pub/linux/kernel/v$(ver_cut 1).x/patch-${PATCH_PV}.xz
|
||||
https://dev.gentoo.org/~mgorny/dist/linux/${PATCHSET}.tar.xz
|
||||
verify-sig? (
|
||||
https://cdn.kernel.org/pub/linux/kernel/v$(ver_cut 1).x/sha256sums.asc
|
||||
-> linux-$(ver_cut 1).x-sha256sums-${SHA256SUM_DATE}.asc
|
||||
)
|
||||
amd64? (
|
||||
https://dev.gentoo.org/~mgorny/binpkg/amd64/kernel/sys-kernel/gentoo-kernel/${BINPKG}.gpkg.tar
|
||||
-> ${BINPKG}.amd64.gpkg.tar
|
||||
)
|
||||
arm64? (
|
||||
https://dev.gentoo.org/~mgorny/binpkg/arm64/kernel/sys-kernel/gentoo-kernel/${BINPKG}.gpkg.tar
|
||||
-> ${BINPKG}.arm64.gpkg.tar
|
||||
)
|
||||
ppc64? (
|
||||
https://dev.gentoo.org/~mgorny/binpkg/ppc64le/kernel/sys-kernel/gentoo-kernel/${BINPKG}.gpkg.tar
|
||||
-> ${BINPKG}.ppc64le.gpkg.tar
|
||||
)
|
||||
x86? (
|
||||
https://dev.gentoo.org/~mgorny/binpkg/x86/kernel/sys-kernel/gentoo-kernel/${BINPKG}.gpkg.tar
|
||||
-> ${BINPKG}.x86.gpkg.tar
|
||||
)
|
||||
"
|
||||
S=${WORKDIR}
|
||||
|
||||
KEYWORDS="~amd64 ~arm64 ~ppc64 ~x86"
|
||||
|
||||
RDEPEND="
|
||||
!sys-kernel/gentoo-kernel:${SLOT}
|
||||
"
|
||||
PDEPEND="
|
||||
>=virtual/dist-kernel-${PATCH_PV}
|
||||
"
|
||||
BDEPEND="
|
||||
app-alternatives/bc
|
||||
app-alternatives/lex
|
||||
virtual/libelf
|
||||
app-alternatives/yacc
|
||||
verify-sig? ( >=sec-keys/openpgp-keys-kernel-20250702 )
|
||||
"
|
||||
|
||||
KV_LOCALVERSION='-gentoo-dist'
|
||||
KV_FULL=${PV/_p/-p}${KV_LOCALVERSION}
|
||||
|
||||
QA_PREBUILT='*'
|
||||
|
||||
VERIFY_SIG_OPENPGP_KEY_PATH=/usr/share/openpgp-keys/kernel.org.asc
|
||||
|
||||
src_unpack() {
|
||||
if use verify-sig; then
|
||||
cd "${DISTDIR}" || die
|
||||
verify-sig_verify_signed_checksums \
|
||||
"linux-$(ver_cut 1).x-sha256sums-${SHA256SUM_DATE}.asc" \
|
||||
sha256 "${BASE_P}.tar.xz patch-${PATCH_PV}.xz"
|
||||
cd "${WORKDIR}" || die
|
||||
fi
|
||||
|
||||
unpacker
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
local patch
|
||||
cd "${BASE_P}" || die
|
||||
eapply "${WORKDIR}/patch-${PATCH_PV}"
|
||||
for patch in "${WORKDIR}/${PATCHSET}"/*.patch; do
|
||||
eapply "${patch}"
|
||||
# non-experimental patches always finish with Gentoo Kconfig
|
||||
# we built -bins without them
|
||||
if [[ ${patch} == *Add-Gentoo-Linux-support-config-settings* ]]
|
||||
then
|
||||
break
|
||||
fi
|
||||
done
|
||||
|
||||
default
|
||||
|
||||
# add Gentoo patchset version
|
||||
local extraversion=${PV#${PATCH_PV}}
|
||||
sed -i -e "s:^\(EXTRAVERSION =\).*:\1 ${extraversion/_/-}:" Makefile || die
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
# force ld.bfd if we can find it easily
|
||||
local HOSTLD="$(tc-getBUILD_LD)"
|
||||
if type -P "${HOSTLD}.bfd" &>/dev/null; then
|
||||
HOSTLD+=.bfd
|
||||
fi
|
||||
local LD="$(tc-getLD)"
|
||||
if type -P "${LD}.bfd" &>/dev/null; then
|
||||
LD+=.bfd
|
||||
fi
|
||||
tc-export_build_env
|
||||
local makeargs=(
|
||||
V=1
|
||||
WERROR=0
|
||||
|
||||
HOSTCC="$(tc-getBUILD_CC)"
|
||||
HOSTCXX="$(tc-getBUILD_CXX)"
|
||||
HOSTLD="${HOSTLD}"
|
||||
HOSTAR="$(tc-getBUILD_AR)"
|
||||
HOSTCFLAGS="${BUILD_CFLAGS}"
|
||||
HOSTLDFLAGS="${BUILD_LDFLAGS}"
|
||||
|
||||
CROSS_COMPILE=${CHOST}-
|
||||
AS="$(tc-getAS)"
|
||||
CC="$(tc-getCC)"
|
||||
LD="${LD}"
|
||||
AR="$(tc-getAR)"
|
||||
NM="$(tc-getNM)"
|
||||
STRIP="$(tc-getSTRIP)"
|
||||
OBJCOPY="$(tc-getOBJCOPY)"
|
||||
OBJDUMP="$(tc-getOBJDUMP)"
|
||||
READELF="$(tc-getREADELF)"
|
||||
|
||||
# we need to pass it to override colliding Gentoo envvar
|
||||
ARCH="$(tc-arch-kernel)"
|
||||
|
||||
O="${WORKDIR}"/modprep
|
||||
)
|
||||
|
||||
local kernel_dir="${BINPKG}/image/usr/src/linux-${KV_FULL}"
|
||||
|
||||
# If this is set it will have an effect on the name of the output
|
||||
# image. Set this variable to track this setting.
|
||||
if grep -q "CONFIG_EFI_ZBOOT=y" "${kernel_dir}/.config"; then
|
||||
KERNEL_EFI_ZBOOT=1
|
||||
fi
|
||||
|
||||
mkdir modprep || die
|
||||
cp "${BINPKG}/image/usr/src/linux-${KV_FULL}/.config" modprep/ || die
|
||||
emake -C "${BASE_P}" "${makeargs[@]}" modules_prepare
|
||||
}
|
||||
|
||||
src_test() {
|
||||
kernel-install_test "${KV_FULL}" \
|
||||
"${WORKDIR}/${BINPKG}/image/usr/src/linux-${KV_FULL}/$(dist-kernel_get_image_path)" \
|
||||
"${BINPKG}/image/lib/modules/${KV_FULL}"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
local kernel_dir="${BINPKG}/image/usr/src/linux-${KV_FULL}"
|
||||
|
||||
# Overwrite the identifier in the prebuilt package
|
||||
echo "${CATEGORY}/${PF}:${SLOT}" > "${kernel_dir}/dist-kernel" || die
|
||||
|
||||
mv "${BINPKG}"/image/{lib,usr} "${ED}"/ || die
|
||||
|
||||
# FIXME: requires proper mount-boot
|
||||
if [[ -d ${BINPKG}/image/boot/dtbs ]]; then
|
||||
mv "${BINPKG}"/image/boot "${ED}"/ || die
|
||||
fi
|
||||
|
||||
# strip out-of-source build stuffs from modprep
|
||||
# and then copy built files
|
||||
find modprep -type f '(' \
|
||||
-name Makefile -o \
|
||||
-name '*.[ao]' -o \
|
||||
'(' -name '.*' -a -not -name '.config' ')' \
|
||||
')' -delete || die
|
||||
rm modprep/source || die
|
||||
cp -p -R modprep/. "${ED}/usr/src/linux-${KV_FULL}"/ || die
|
||||
}
|
||||
@@ -1,184 +0,0 @@
|
||||
# Copyright 2020-2025 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
KERNEL_IUSE_MODULES_SIGN=1
|
||||
|
||||
inherit kernel-install toolchain-funcs unpacker verify-sig
|
||||
|
||||
BASE_P=linux-${PV%.*}
|
||||
PATCH_PV=${PV%_p*}
|
||||
PATCHSET=linux-gentoo-patches-6.1.153
|
||||
BINPKG=${P/-bin}-1
|
||||
SHA256SUM_DATE=20250925
|
||||
|
||||
DESCRIPTION="Pre-built Linux kernel with Gentoo patches"
|
||||
HOMEPAGE="
|
||||
https://wiki.gentoo.org/wiki/Project:Distribution_Kernel
|
||||
https://www.kernel.org/
|
||||
"
|
||||
SRC_URI+="
|
||||
https://cdn.kernel.org/pub/linux/kernel/v$(ver_cut 1).x/${BASE_P}.tar.xz
|
||||
https://cdn.kernel.org/pub/linux/kernel/v$(ver_cut 1).x/patch-${PATCH_PV}.xz
|
||||
https://dev.gentoo.org/~mgorny/dist/linux/${PATCHSET}.tar.xz
|
||||
verify-sig? (
|
||||
https://cdn.kernel.org/pub/linux/kernel/v$(ver_cut 1).x/sha256sums.asc
|
||||
-> linux-$(ver_cut 1).x-sha256sums-${SHA256SUM_DATE}.asc
|
||||
)
|
||||
amd64? (
|
||||
https://dev.gentoo.org/~mgorny/binpkg/amd64/kernel/sys-kernel/gentoo-kernel/${BINPKG}.gpkg.tar
|
||||
-> ${BINPKG}.amd64.gpkg.tar
|
||||
)
|
||||
arm64? (
|
||||
https://dev.gentoo.org/~mgorny/binpkg/arm64/kernel/sys-kernel/gentoo-kernel/${BINPKG}.gpkg.tar
|
||||
-> ${BINPKG}.arm64.gpkg.tar
|
||||
)
|
||||
ppc64? (
|
||||
https://dev.gentoo.org/~mgorny/binpkg/ppc64le/kernel/sys-kernel/gentoo-kernel/${BINPKG}.gpkg.tar
|
||||
-> ${BINPKG}.ppc64le.gpkg.tar
|
||||
)
|
||||
x86? (
|
||||
https://dev.gentoo.org/~mgorny/binpkg/x86/kernel/sys-kernel/gentoo-kernel/${BINPKG}.gpkg.tar
|
||||
-> ${BINPKG}.x86.gpkg.tar
|
||||
)
|
||||
"
|
||||
S=${WORKDIR}
|
||||
|
||||
KEYWORDS="~amd64 ~arm64 ~ppc64 ~x86"
|
||||
|
||||
RDEPEND="
|
||||
!sys-kernel/gentoo-kernel:${SLOT}
|
||||
"
|
||||
PDEPEND="
|
||||
>=virtual/dist-kernel-${PV}
|
||||
"
|
||||
BDEPEND="
|
||||
app-alternatives/bc
|
||||
app-alternatives/lex
|
||||
virtual/libelf
|
||||
app-alternatives/yacc
|
||||
verify-sig? ( >=sec-keys/openpgp-keys-kernel-20250702 )
|
||||
"
|
||||
|
||||
KV_LOCALVERSION='-gentoo-dist'
|
||||
KV_FULL=${PV/_p/-p}${KV_LOCALVERSION}
|
||||
|
||||
QA_PREBUILT='*'
|
||||
|
||||
VERIFY_SIG_OPENPGP_KEY_PATH=/usr/share/openpgp-keys/kernel.org.asc
|
||||
|
||||
src_unpack() {
|
||||
if use verify-sig; then
|
||||
cd "${DISTDIR}" || die
|
||||
verify-sig_verify_signed_checksums \
|
||||
"linux-$(ver_cut 1).x-sha256sums-${SHA256SUM_DATE}.asc" \
|
||||
sha256 "${BASE_P}.tar.xz patch-${PATCH_PV}.xz"
|
||||
cd "${WORKDIR}" || die
|
||||
fi
|
||||
|
||||
unpacker
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
local patch
|
||||
cd "${BASE_P}" || die
|
||||
eapply "${WORKDIR}/patch-${PATCH_PV}"
|
||||
for patch in "${WORKDIR}/${PATCHSET}"/*.patch; do
|
||||
eapply "${patch}"
|
||||
# non-experimental patches always finish with Gentoo Kconfig
|
||||
# we built -bins without them
|
||||
if [[ ${patch} == *Add-Gentoo-Linux-support-config-settings* ]]
|
||||
then
|
||||
break
|
||||
fi
|
||||
done
|
||||
|
||||
default
|
||||
|
||||
# add Gentoo patchset version
|
||||
local extraversion=${PV#${PATCH_PV}}
|
||||
sed -i -e "s:^\(EXTRAVERSION =\).*:\1 ${extraversion/_/-}:" Makefile || die
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
# force ld.bfd if we can find it easily
|
||||
local HOSTLD="$(tc-getBUILD_LD)"
|
||||
if type -P "${HOSTLD}.bfd" &>/dev/null; then
|
||||
HOSTLD+=.bfd
|
||||
fi
|
||||
local LD="$(tc-getLD)"
|
||||
if type -P "${LD}.bfd" &>/dev/null; then
|
||||
LD+=.bfd
|
||||
fi
|
||||
tc-export_build_env
|
||||
local makeargs=(
|
||||
V=1
|
||||
WERROR=0
|
||||
|
||||
HOSTCC="$(tc-getBUILD_CC)"
|
||||
HOSTCXX="$(tc-getBUILD_CXX)"
|
||||
HOSTLD="${HOSTLD}"
|
||||
HOSTAR="$(tc-getBUILD_AR)"
|
||||
HOSTCFLAGS="${BUILD_CFLAGS}"
|
||||
HOSTLDFLAGS="${BUILD_LDFLAGS}"
|
||||
|
||||
CROSS_COMPILE=${CHOST}-
|
||||
AS="$(tc-getAS)"
|
||||
CC="$(tc-getCC)"
|
||||
LD="${LD}"
|
||||
AR="$(tc-getAR)"
|
||||
NM="$(tc-getNM)"
|
||||
STRIP="$(tc-getSTRIP)"
|
||||
OBJCOPY="$(tc-getOBJCOPY)"
|
||||
OBJDUMP="$(tc-getOBJDUMP)"
|
||||
READELF="$(tc-getREADELF)"
|
||||
|
||||
# we need to pass it to override colliding Gentoo envvar
|
||||
ARCH="$(tc-arch-kernel)"
|
||||
|
||||
O="${WORKDIR}"/modprep
|
||||
)
|
||||
|
||||
local kernel_dir="${BINPKG}/image/usr/src/linux-${KV_FULL}"
|
||||
|
||||
# If this is set it will have an effect on the name of the output
|
||||
# image. Set this variable to track this setting.
|
||||
if grep -q "CONFIG_EFI_ZBOOT=y" "${kernel_dir}/.config"; then
|
||||
KERNEL_EFI_ZBOOT=1
|
||||
fi
|
||||
|
||||
mkdir modprep || die
|
||||
cp "${BINPKG}/image/usr/src/linux-${KV_FULL}/.config" modprep/ || die
|
||||
emake -C "${BASE_P}" "${makeargs[@]}" modules_prepare
|
||||
}
|
||||
|
||||
src_test() {
|
||||
kernel-install_test "${KV_FULL}" \
|
||||
"${WORKDIR}/${BINPKG}/image/usr/src/linux-${KV_FULL}/$(dist-kernel_get_image_path)" \
|
||||
"${BINPKG}/image/lib/modules/${KV_FULL}"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
local kernel_dir="${BINPKG}/image/usr/src/linux-${KV_FULL}"
|
||||
|
||||
# Overwrite the identifier in the prebuilt package
|
||||
echo "${CATEGORY}/${PF}:${SLOT}" > "${kernel_dir}/dist-kernel" || die
|
||||
|
||||
mv "${BINPKG}"/image/{lib,usr} "${ED}"/ || die
|
||||
|
||||
# FIXME: requires proper mount-boot
|
||||
if [[ -d ${BINPKG}/image/boot/dtbs ]]; then
|
||||
mv "${BINPKG}"/image/boot "${ED}"/ || die
|
||||
fi
|
||||
|
||||
# strip out-of-source build stuffs from modprep
|
||||
# and then copy built files
|
||||
find modprep -type f '(' \
|
||||
-name Makefile -o \
|
||||
-name '*.[ao]' -o \
|
||||
'(' -name '.*' -a -not -name '.config' ')' \
|
||||
')' -delete || die
|
||||
rm modprep/source || die
|
||||
cp -p -R modprep/. "${ED}/usr/src/linux-${KV_FULL}"/ || die
|
||||
}
|
||||
@@ -1,184 +0,0 @@
|
||||
# Copyright 2020-2025 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
KERNEL_IUSE_MODULES_SIGN=1
|
||||
|
||||
inherit kernel-install toolchain-funcs unpacker verify-sig
|
||||
|
||||
BASE_P=linux-${PV%.*}
|
||||
PATCH_PV=${PV%_p*}
|
||||
PATCHSET=linux-gentoo-patches-6.1.153
|
||||
BINPKG=${P/-bin}-1
|
||||
SHA256SUM_DATE=20251002
|
||||
|
||||
DESCRIPTION="Pre-built Linux kernel with Gentoo patches"
|
||||
HOMEPAGE="
|
||||
https://wiki.gentoo.org/wiki/Project:Distribution_Kernel
|
||||
https://www.kernel.org/
|
||||
"
|
||||
SRC_URI+="
|
||||
https://cdn.kernel.org/pub/linux/kernel/v$(ver_cut 1).x/${BASE_P}.tar.xz
|
||||
https://cdn.kernel.org/pub/linux/kernel/v$(ver_cut 1).x/patch-${PATCH_PV}.xz
|
||||
https://dev.gentoo.org/~mgorny/dist/linux/${PATCHSET}.tar.xz
|
||||
verify-sig? (
|
||||
https://cdn.kernel.org/pub/linux/kernel/v$(ver_cut 1).x/sha256sums.asc
|
||||
-> linux-$(ver_cut 1).x-sha256sums-${SHA256SUM_DATE}.asc
|
||||
)
|
||||
amd64? (
|
||||
https://dev.gentoo.org/~mgorny/binpkg/amd64/kernel/sys-kernel/gentoo-kernel/${BINPKG}.gpkg.tar
|
||||
-> ${BINPKG}.amd64.gpkg.tar
|
||||
)
|
||||
arm64? (
|
||||
https://dev.gentoo.org/~mgorny/binpkg/arm64/kernel/sys-kernel/gentoo-kernel/${BINPKG}.gpkg.tar
|
||||
-> ${BINPKG}.arm64.gpkg.tar
|
||||
)
|
||||
ppc64? (
|
||||
https://dev.gentoo.org/~mgorny/binpkg/ppc64le/kernel/sys-kernel/gentoo-kernel/${BINPKG}.gpkg.tar
|
||||
-> ${BINPKG}.ppc64le.gpkg.tar
|
||||
)
|
||||
x86? (
|
||||
https://dev.gentoo.org/~mgorny/binpkg/x86/kernel/sys-kernel/gentoo-kernel/${BINPKG}.gpkg.tar
|
||||
-> ${BINPKG}.x86.gpkg.tar
|
||||
)
|
||||
"
|
||||
S=${WORKDIR}
|
||||
|
||||
KEYWORDS="~amd64 ~arm64 ~ppc64 ~x86"
|
||||
|
||||
RDEPEND="
|
||||
!sys-kernel/gentoo-kernel:${SLOT}
|
||||
"
|
||||
PDEPEND="
|
||||
>=virtual/dist-kernel-${PV}
|
||||
"
|
||||
BDEPEND="
|
||||
app-alternatives/bc
|
||||
app-alternatives/lex
|
||||
virtual/libelf
|
||||
app-alternatives/yacc
|
||||
verify-sig? ( >=sec-keys/openpgp-keys-kernel-20250702 )
|
||||
"
|
||||
|
||||
KV_LOCALVERSION='-gentoo-dist'
|
||||
KV_FULL=${PV/_p/-p}${KV_LOCALVERSION}
|
||||
|
||||
QA_PREBUILT='*'
|
||||
|
||||
VERIFY_SIG_OPENPGP_KEY_PATH=/usr/share/openpgp-keys/kernel.org.asc
|
||||
|
||||
src_unpack() {
|
||||
if use verify-sig; then
|
||||
cd "${DISTDIR}" || die
|
||||
verify-sig_verify_signed_checksums \
|
||||
"linux-$(ver_cut 1).x-sha256sums-${SHA256SUM_DATE}.asc" \
|
||||
sha256 "${BASE_P}.tar.xz patch-${PATCH_PV}.xz"
|
||||
cd "${WORKDIR}" || die
|
||||
fi
|
||||
|
||||
unpacker
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
local patch
|
||||
cd "${BASE_P}" || die
|
||||
eapply "${WORKDIR}/patch-${PATCH_PV}"
|
||||
for patch in "${WORKDIR}/${PATCHSET}"/*.patch; do
|
||||
eapply "${patch}"
|
||||
# non-experimental patches always finish with Gentoo Kconfig
|
||||
# we built -bins without them
|
||||
if [[ ${patch} == *Add-Gentoo-Linux-support-config-settings* ]]
|
||||
then
|
||||
break
|
||||
fi
|
||||
done
|
||||
|
||||
default
|
||||
|
||||
# add Gentoo patchset version
|
||||
local extraversion=${PV#${PATCH_PV}}
|
||||
sed -i -e "s:^\(EXTRAVERSION =\).*:\1 ${extraversion/_/-}:" Makefile || die
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
# force ld.bfd if we can find it easily
|
||||
local HOSTLD="$(tc-getBUILD_LD)"
|
||||
if type -P "${HOSTLD}.bfd" &>/dev/null; then
|
||||
HOSTLD+=.bfd
|
||||
fi
|
||||
local LD="$(tc-getLD)"
|
||||
if type -P "${LD}.bfd" &>/dev/null; then
|
||||
LD+=.bfd
|
||||
fi
|
||||
tc-export_build_env
|
||||
local makeargs=(
|
||||
V=1
|
||||
WERROR=0
|
||||
|
||||
HOSTCC="$(tc-getBUILD_CC)"
|
||||
HOSTCXX="$(tc-getBUILD_CXX)"
|
||||
HOSTLD="${HOSTLD}"
|
||||
HOSTAR="$(tc-getBUILD_AR)"
|
||||
HOSTCFLAGS="${BUILD_CFLAGS}"
|
||||
HOSTLDFLAGS="${BUILD_LDFLAGS}"
|
||||
|
||||
CROSS_COMPILE=${CHOST}-
|
||||
AS="$(tc-getAS)"
|
||||
CC="$(tc-getCC)"
|
||||
LD="${LD}"
|
||||
AR="$(tc-getAR)"
|
||||
NM="$(tc-getNM)"
|
||||
STRIP="$(tc-getSTRIP)"
|
||||
OBJCOPY="$(tc-getOBJCOPY)"
|
||||
OBJDUMP="$(tc-getOBJDUMP)"
|
||||
READELF="$(tc-getREADELF)"
|
||||
|
||||
# we need to pass it to override colliding Gentoo envvar
|
||||
ARCH="$(tc-arch-kernel)"
|
||||
|
||||
O="${WORKDIR}"/modprep
|
||||
)
|
||||
|
||||
local kernel_dir="${BINPKG}/image/usr/src/linux-${KV_FULL}"
|
||||
|
||||
# If this is set it will have an effect on the name of the output
|
||||
# image. Set this variable to track this setting.
|
||||
if grep -q "CONFIG_EFI_ZBOOT=y" "${kernel_dir}/.config"; then
|
||||
KERNEL_EFI_ZBOOT=1
|
||||
fi
|
||||
|
||||
mkdir modprep || die
|
||||
cp "${BINPKG}/image/usr/src/linux-${KV_FULL}/.config" modprep/ || die
|
||||
emake -C "${BASE_P}" "${makeargs[@]}" modules_prepare
|
||||
}
|
||||
|
||||
src_test() {
|
||||
kernel-install_test "${KV_FULL}" \
|
||||
"${WORKDIR}/${BINPKG}/image/usr/src/linux-${KV_FULL}/$(dist-kernel_get_image_path)" \
|
||||
"${BINPKG}/image/lib/modules/${KV_FULL}"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
local kernel_dir="${BINPKG}/image/usr/src/linux-${KV_FULL}"
|
||||
|
||||
# Overwrite the identifier in the prebuilt package
|
||||
echo "${CATEGORY}/${PF}:${SLOT}" > "${kernel_dir}/dist-kernel" || die
|
||||
|
||||
mv "${BINPKG}"/image/{lib,usr} "${ED}"/ || die
|
||||
|
||||
# FIXME: requires proper mount-boot
|
||||
if [[ -d ${BINPKG}/image/boot/dtbs ]]; then
|
||||
mv "${BINPKG}"/image/boot "${ED}"/ || die
|
||||
fi
|
||||
|
||||
# strip out-of-source build stuffs from modprep
|
||||
# and then copy built files
|
||||
find modprep -type f '(' \
|
||||
-name Makefile -o \
|
||||
-name '*.[ao]' -o \
|
||||
'(' -name '.*' -a -not -name '.config' ')' \
|
||||
')' -delete || die
|
||||
rm modprep/source || die
|
||||
cp -p -R modprep/. "${ED}/usr/src/linux-${KV_FULL}"/ || die
|
||||
}
|
||||
@@ -1,184 +0,0 @@
|
||||
# Copyright 2020-2025 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
KERNEL_IUSE_MODULES_SIGN=1
|
||||
|
||||
inherit kernel-install toolchain-funcs unpacker verify-sig
|
||||
|
||||
BASE_P=linux-${PV%.*}
|
||||
PATCH_PV=${PV%_p*}
|
||||
PATCHSET=linux-gentoo-patches-6.1.156
|
||||
BINPKG=${P/-bin}-1
|
||||
SHA256SUM_DATE=20251015
|
||||
|
||||
DESCRIPTION="Pre-built Linux kernel with Gentoo patches"
|
||||
HOMEPAGE="
|
||||
https://wiki.gentoo.org/wiki/Project:Distribution_Kernel
|
||||
https://www.kernel.org/
|
||||
"
|
||||
SRC_URI+="
|
||||
https://cdn.kernel.org/pub/linux/kernel/v$(ver_cut 1).x/${BASE_P}.tar.xz
|
||||
https://cdn.kernel.org/pub/linux/kernel/v$(ver_cut 1).x/patch-${PATCH_PV}.xz
|
||||
https://dev.gentoo.org/~mgorny/dist/linux/${PATCHSET}.tar.xz
|
||||
verify-sig? (
|
||||
https://cdn.kernel.org/pub/linux/kernel/v$(ver_cut 1).x/sha256sums.asc
|
||||
-> linux-$(ver_cut 1).x-sha256sums-${SHA256SUM_DATE}.asc
|
||||
)
|
||||
amd64? (
|
||||
https://dev.gentoo.org/~mgorny/binpkg/amd64/kernel/sys-kernel/gentoo-kernel/${BINPKG}.gpkg.tar
|
||||
-> ${BINPKG}.amd64.gpkg.tar
|
||||
)
|
||||
arm64? (
|
||||
https://dev.gentoo.org/~mgorny/binpkg/arm64/kernel/sys-kernel/gentoo-kernel/${BINPKG}.gpkg.tar
|
||||
-> ${BINPKG}.arm64.gpkg.tar
|
||||
)
|
||||
ppc64? (
|
||||
https://dev.gentoo.org/~mgorny/binpkg/ppc64le/kernel/sys-kernel/gentoo-kernel/${BINPKG}.gpkg.tar
|
||||
-> ${BINPKG}.ppc64le.gpkg.tar
|
||||
)
|
||||
x86? (
|
||||
https://dev.gentoo.org/~mgorny/binpkg/x86/kernel/sys-kernel/gentoo-kernel/${BINPKG}.gpkg.tar
|
||||
-> ${BINPKG}.x86.gpkg.tar
|
||||
)
|
||||
"
|
||||
S=${WORKDIR}
|
||||
|
||||
KEYWORDS="~amd64 ~arm64 ~ppc64 ~x86"
|
||||
|
||||
RDEPEND="
|
||||
!sys-kernel/gentoo-kernel:${SLOT}
|
||||
"
|
||||
PDEPEND="
|
||||
>=virtual/dist-kernel-${PV}
|
||||
"
|
||||
BDEPEND="
|
||||
app-alternatives/bc
|
||||
app-alternatives/lex
|
||||
virtual/libelf
|
||||
app-alternatives/yacc
|
||||
verify-sig? ( >=sec-keys/openpgp-keys-kernel-20250702 )
|
||||
"
|
||||
|
||||
KV_LOCALVERSION='-gentoo-dist'
|
||||
KV_FULL=${PV/_p/-p}${KV_LOCALVERSION}
|
||||
|
||||
QA_PREBUILT='*'
|
||||
|
||||
VERIFY_SIG_OPENPGP_KEY_PATH=/usr/share/openpgp-keys/kernel.org.asc
|
||||
|
||||
src_unpack() {
|
||||
if use verify-sig; then
|
||||
cd "${DISTDIR}" || die
|
||||
verify-sig_verify_signed_checksums \
|
||||
"linux-$(ver_cut 1).x-sha256sums-${SHA256SUM_DATE}.asc" \
|
||||
sha256 "${BASE_P}.tar.xz patch-${PATCH_PV}.xz"
|
||||
cd "${WORKDIR}" || die
|
||||
fi
|
||||
|
||||
unpacker
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
local patch
|
||||
cd "${BASE_P}" || die
|
||||
eapply "${WORKDIR}/patch-${PATCH_PV}"
|
||||
for patch in "${WORKDIR}/${PATCHSET}"/*.patch; do
|
||||
eapply "${patch}"
|
||||
# non-experimental patches always finish with Gentoo Kconfig
|
||||
# we built -bins without them
|
||||
if [[ ${patch} == *Add-Gentoo-Linux-support-config-settings* ]]
|
||||
then
|
||||
break
|
||||
fi
|
||||
done
|
||||
|
||||
default
|
||||
|
||||
# add Gentoo patchset version
|
||||
local extraversion=${PV#${PATCH_PV}}
|
||||
sed -i -e "s:^\(EXTRAVERSION =\).*:\1 ${extraversion/_/-}:" Makefile || die
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
# force ld.bfd if we can find it easily
|
||||
local HOSTLD="$(tc-getBUILD_LD)"
|
||||
if type -P "${HOSTLD}.bfd" &>/dev/null; then
|
||||
HOSTLD+=.bfd
|
||||
fi
|
||||
local LD="$(tc-getLD)"
|
||||
if type -P "${LD}.bfd" &>/dev/null; then
|
||||
LD+=.bfd
|
||||
fi
|
||||
tc-export_build_env
|
||||
local makeargs=(
|
||||
V=1
|
||||
WERROR=0
|
||||
|
||||
HOSTCC="$(tc-getBUILD_CC)"
|
||||
HOSTCXX="$(tc-getBUILD_CXX)"
|
||||
HOSTLD="${HOSTLD}"
|
||||
HOSTAR="$(tc-getBUILD_AR)"
|
||||
HOSTCFLAGS="${BUILD_CFLAGS}"
|
||||
HOSTLDFLAGS="${BUILD_LDFLAGS}"
|
||||
|
||||
CROSS_COMPILE=${CHOST}-
|
||||
AS="$(tc-getAS)"
|
||||
CC="$(tc-getCC)"
|
||||
LD="${LD}"
|
||||
AR="$(tc-getAR)"
|
||||
NM="$(tc-getNM)"
|
||||
STRIP="$(tc-getSTRIP)"
|
||||
OBJCOPY="$(tc-getOBJCOPY)"
|
||||
OBJDUMP="$(tc-getOBJDUMP)"
|
||||
READELF="$(tc-getREADELF)"
|
||||
|
||||
# we need to pass it to override colliding Gentoo envvar
|
||||
ARCH="$(tc-arch-kernel)"
|
||||
|
||||
O="${WORKDIR}"/modprep
|
||||
)
|
||||
|
||||
local kernel_dir="${BINPKG}/image/usr/src/linux-${KV_FULL}"
|
||||
|
||||
# If this is set it will have an effect on the name of the output
|
||||
# image. Set this variable to track this setting.
|
||||
if grep -q "CONFIG_EFI_ZBOOT=y" "${kernel_dir}/.config"; then
|
||||
KERNEL_EFI_ZBOOT=1
|
||||
fi
|
||||
|
||||
mkdir modprep || die
|
||||
cp "${BINPKG}/image/usr/src/linux-${KV_FULL}/.config" modprep/ || die
|
||||
emake -C "${BASE_P}" "${makeargs[@]}" modules_prepare
|
||||
}
|
||||
|
||||
src_test() {
|
||||
kernel-install_test "${KV_FULL}" \
|
||||
"${WORKDIR}/${BINPKG}/image/usr/src/linux-${KV_FULL}/$(dist-kernel_get_image_path)" \
|
||||
"${BINPKG}/image/lib/modules/${KV_FULL}"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
local kernel_dir="${BINPKG}/image/usr/src/linux-${KV_FULL}"
|
||||
|
||||
# Overwrite the identifier in the prebuilt package
|
||||
echo "${CATEGORY}/${PF}:${SLOT}" > "${kernel_dir}/dist-kernel" || die
|
||||
|
||||
mv "${BINPKG}"/image/{lib,usr} "${ED}"/ || die
|
||||
|
||||
# FIXME: requires proper mount-boot
|
||||
if [[ -d ${BINPKG}/image/boot/dtbs ]]; then
|
||||
mv "${BINPKG}"/image/boot "${ED}"/ || die
|
||||
fi
|
||||
|
||||
# strip out-of-source build stuffs from modprep
|
||||
# and then copy built files
|
||||
find modprep -type f '(' \
|
||||
-name Makefile -o \
|
||||
-name '*.[ao]' -o \
|
||||
'(' -name '.*' -a -not -name '.config' ')' \
|
||||
')' -delete || die
|
||||
rm modprep/source || die
|
||||
cp -p -R modprep/. "${ED}/usr/src/linux-${KV_FULL}"/ || die
|
||||
}
|
||||
@@ -1,232 +0,0 @@
|
||||
# Copyright 2020-2025 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
KERNEL_IUSE_GENERIC_UKI=1
|
||||
KERNEL_IUSE_MODULES_SIGN=1
|
||||
|
||||
inherit kernel-install toolchain-funcs unpacker verify-sig
|
||||
|
||||
MY_P=linux-${PV%.*}
|
||||
PATCHSET=linux-gentoo-patches-6.12.40
|
||||
BINPKG=${PF/-bin}-1
|
||||
SHA256SUM_DATE=20250801
|
||||
|
||||
DESCRIPTION="Pre-built Linux kernel with Gentoo patches"
|
||||
HOMEPAGE="
|
||||
https://wiki.gentoo.org/wiki/Project:Distribution_Kernel
|
||||
https://www.kernel.org/
|
||||
"
|
||||
SRC_URI+="
|
||||
https://cdn.kernel.org/pub/linux/kernel/v$(ver_cut 1).x/${MY_P}.tar.xz
|
||||
https://cdn.kernel.org/pub/linux/kernel/v$(ver_cut 1).x/patch-${PV}.xz
|
||||
https://dev.gentoo.org/~mgorny/dist/linux/${PATCHSET}.tar.xz
|
||||
verify-sig? (
|
||||
https://cdn.kernel.org/pub/linux/kernel/v$(ver_cut 1).x/sha256sums.asc
|
||||
-> linux-$(ver_cut 1).x-sha256sums-${SHA256SUM_DATE}.asc
|
||||
)
|
||||
amd64? (
|
||||
https://dev.gentoo.org/~mgorny/binpkg/amd64/kernel/sys-kernel/gentoo-kernel/${BINPKG}.gpkg.tar
|
||||
-> ${BINPKG}.amd64.gpkg.tar
|
||||
)
|
||||
arm64? (
|
||||
https://dev.gentoo.org/~mgorny/binpkg/arm64/kernel/sys-kernel/gentoo-kernel/${BINPKG}.gpkg.tar
|
||||
-> ${BINPKG}.arm64.gpkg.tar
|
||||
)
|
||||
ppc64? (
|
||||
https://dev.gentoo.org/~mgorny/binpkg/ppc64le/kernel/sys-kernel/gentoo-kernel/${BINPKG}.gpkg.tar
|
||||
-> ${BINPKG}.ppc64le.gpkg.tar
|
||||
)
|
||||
x86? (
|
||||
https://dev.gentoo.org/~mgorny/binpkg/x86/kernel/sys-kernel/gentoo-kernel/${BINPKG}.gpkg.tar
|
||||
-> ${BINPKG}.x86.gpkg.tar
|
||||
)
|
||||
"
|
||||
S=${WORKDIR}
|
||||
|
||||
KEYWORDS="amd64 arm64 ppc64 x86"
|
||||
IUSE="debug"
|
||||
|
||||
RDEPEND="
|
||||
!sys-kernel/gentoo-kernel:${SLOT}
|
||||
"
|
||||
PDEPEND="
|
||||
>=virtual/dist-kernel-${PV}
|
||||
"
|
||||
BDEPEND="
|
||||
app-alternatives/bc
|
||||
app-alternatives/lex
|
||||
dev-util/pahole
|
||||
virtual/libelf
|
||||
app-alternatives/yacc
|
||||
amd64? ( app-crypt/sbsigntools )
|
||||
arm64? ( app-crypt/sbsigntools )
|
||||
verify-sig? ( >=sec-keys/openpgp-keys-kernel-20250702 )
|
||||
"
|
||||
|
||||
KV_LOCALVERSION='-gentoo-dist'
|
||||
KPV=${PV}${KV_LOCALVERSION}
|
||||
|
||||
QA_PREBUILT='*'
|
||||
|
||||
VERIFY_SIG_OPENPGP_KEY_PATH=/usr/share/openpgp-keys/kernel.org.asc
|
||||
|
||||
src_unpack() {
|
||||
if use verify-sig; then
|
||||
cd "${DISTDIR}" || die
|
||||
verify-sig_verify_signed_checksums \
|
||||
"linux-$(ver_cut 1).x-sha256sums-${SHA256SUM_DATE}.asc" \
|
||||
sha256 "${MY_P}.tar.xz patch-${PV}.xz"
|
||||
cd "${WORKDIR}" || die
|
||||
fi
|
||||
|
||||
unpacker
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
local patch
|
||||
cd "${MY_P}" || die
|
||||
eapply "${WORKDIR}/patch-${PV}"
|
||||
for patch in "${WORKDIR}/${PATCHSET}"/*.patch; do
|
||||
eapply "${patch}"
|
||||
# non-experimental patches always finish with Gentoo Kconfig
|
||||
# we built -bins without them
|
||||
if [[ ${patch} == *Add-Gentoo-Linux-support-config-settings* ]]
|
||||
then
|
||||
break
|
||||
fi
|
||||
done
|
||||
|
||||
default
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
# force ld.bfd if we can find it easily
|
||||
local HOSTLD="$(tc-getBUILD_LD)"
|
||||
if type -P "${HOSTLD}.bfd" &>/dev/null; then
|
||||
HOSTLD+=.bfd
|
||||
fi
|
||||
local LD="$(tc-getLD)"
|
||||
if type -P "${LD}.bfd" &>/dev/null; then
|
||||
LD+=.bfd
|
||||
fi
|
||||
tc-export_build_env
|
||||
local makeargs=(
|
||||
V=1
|
||||
WERROR=0
|
||||
|
||||
HOSTCC="$(tc-getBUILD_CC)"
|
||||
HOSTCXX="$(tc-getBUILD_CXX)"
|
||||
HOSTLD="${HOSTLD}"
|
||||
HOSTAR="$(tc-getBUILD_AR)"
|
||||
HOSTCFLAGS="${BUILD_CFLAGS}"
|
||||
HOSTLDFLAGS="${BUILD_LDFLAGS}"
|
||||
|
||||
CROSS_COMPILE=${CHOST}-
|
||||
AS="$(tc-getAS)"
|
||||
CC="$(tc-getCC)"
|
||||
LD="${LD}"
|
||||
AR="$(tc-getAR)"
|
||||
NM="$(tc-getNM)"
|
||||
STRIP="$(tc-getSTRIP)"
|
||||
OBJCOPY="$(tc-getOBJCOPY)"
|
||||
OBJDUMP="$(tc-getOBJDUMP)"
|
||||
READELF="$(tc-getREADELF)"
|
||||
|
||||
# we need to pass it to override colliding Gentoo envvar
|
||||
ARCH="$(tc-arch-kernel)"
|
||||
|
||||
O="${WORKDIR}"/modprep
|
||||
)
|
||||
|
||||
local kernel_dir="${BINPKG}/image/usr/src/linux-${KPV}"
|
||||
|
||||
# If this is set it will have an effect on the name of the output
|
||||
# image. Set this variable to track this setting.
|
||||
if grep -q "CONFIG_EFI_ZBOOT=y" "${kernel_dir}/.config"; then
|
||||
KERNEL_EFI_ZBOOT=1
|
||||
elif use arm64 && use generic-uki; then
|
||||
die "USE=generic-uki requires a CONFIG_EFI_ZBOOT enabled build"
|
||||
fi
|
||||
|
||||
local image="${kernel_dir}/$(dist-kernel_get_image_path)"
|
||||
local uki="${image%/*}/uki.efi"
|
||||
|
||||
# Override user variable with the cert used during build
|
||||
openssl x509 \
|
||||
-inform DER -in "${kernel_dir}/certs/signing_key.x509" \
|
||||
-outform PEM -out "${T}/cert.pem" ||
|
||||
die "Failed to convert pcrpkey to PEM format"
|
||||
export SECUREBOOT_SIGN_CERT=${T}/cert.pem
|
||||
|
||||
if [[ -s ${uki} ]]; then
|
||||
# We need to extract the plain image for the test phase
|
||||
# and USE=-generic-uki.
|
||||
kernel-install_extract_from_uki linux "${uki}" "${image}"
|
||||
fi
|
||||
|
||||
mkdir modprep || die
|
||||
cp "${kernel_dir}/.config" modprep/ || die
|
||||
emake -C "${MY_P}" "${makeargs[@]}" modules_prepare
|
||||
}
|
||||
|
||||
src_test() {
|
||||
local kernel_dir="${BINPKG}/image/usr/src/linux-${KPV}"
|
||||
kernel-install_test "${KPV}" \
|
||||
"${WORKDIR}/${kernel_dir}/$(dist-kernel_get_image_path)" \
|
||||
"${BINPKG}/image/lib/modules/${KPV}"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
local rel_kernel_dir=/usr/src/linux-${KPV}
|
||||
local kernel_dir="${BINPKG}/image${rel_kernel_dir}"
|
||||
local image="${kernel_dir}/$(dist-kernel_get_image_path)"
|
||||
local uki="${image%/*}/uki.efi"
|
||||
if [[ -s ${uki} ]]; then
|
||||
# Keep the kernel image type we don't want out of install tree
|
||||
# Replace back with placeholder
|
||||
if use generic-uki; then
|
||||
> "${image}" || die
|
||||
else
|
||||
> "${uki}" || die
|
||||
fi
|
||||
fi
|
||||
|
||||
# Overwrite the identifier in the prebuilt package
|
||||
echo "${CATEGORY}/${PF}:${SLOT}" > "${kernel_dir}/dist-kernel" || die
|
||||
|
||||
mv "${BINPKG}"/image/{lib,usr} "${ED}"/ || die
|
||||
|
||||
# FIXME: requires proper mount-boot
|
||||
if [[ -d ${BINPKG}/image/boot/dtbs ]]; then
|
||||
mv "${BINPKG}"/image/boot "${ED}"/ || die
|
||||
fi
|
||||
|
||||
# strip out-of-source build stuffs from modprep
|
||||
# and then copy built files
|
||||
find modprep -type f '(' \
|
||||
-name Makefile -o \
|
||||
-name '*.[ao]' -o \
|
||||
'(' -name '.*' -a -not -name '.config' ')' \
|
||||
')' -delete || die
|
||||
rm modprep/source || die
|
||||
cp -p -R modprep/. "${ED}${rel_kernel_dir}"/ || die
|
||||
|
||||
# Update timestamps on all modules to ensure cleanup works correctly
|
||||
# when switching USE=modules-compress.
|
||||
find "${ED}/lib" -name '*.ko' -exec touch {} + || die
|
||||
|
||||
# Modules were already stripped before signing
|
||||
dostrip -x /lib/modules
|
||||
kernel-install_compress_modules
|
||||
|
||||
# Mirror the logic from kernel-build_src_install, for architectures
|
||||
# where USE=debug is used.
|
||||
if use ppc64; then
|
||||
dostrip -x "${rel_kernel_dir}/$(dist-kernel_get_image_path)"
|
||||
elif use debug && { use amd64 || use arm64; }; then
|
||||
dostrip -x "${rel_kernel_dir}/vmlinux"
|
||||
dostrip -x "${rel_kernel_dir}/vmlinux.ctfa"
|
||||
fi
|
||||
}
|
||||
@@ -1,237 +0,0 @@
|
||||
# Copyright 2020-2025 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
KERNEL_IUSE_GENERIC_UKI=1
|
||||
KERNEL_IUSE_MODULES_SIGN=1
|
||||
|
||||
inherit kernel-install toolchain-funcs unpacker verify-sig
|
||||
|
||||
BASE_P=linux-${PV%.*}
|
||||
PATCH_PV=${PV%_p*}
|
||||
PATCHSET=linux-gentoo-patches-6.12.48
|
||||
BINPKG=${P/-bin}-1
|
||||
SHA256SUM_DATE=20250919
|
||||
|
||||
DESCRIPTION="Pre-built Linux kernel with Gentoo patches"
|
||||
HOMEPAGE="
|
||||
https://wiki.gentoo.org/wiki/Project:Distribution_Kernel
|
||||
https://www.kernel.org/
|
||||
"
|
||||
SRC_URI+="
|
||||
https://cdn.kernel.org/pub/linux/kernel/v$(ver_cut 1).x/${BASE_P}.tar.xz
|
||||
https://cdn.kernel.org/pub/linux/kernel/v$(ver_cut 1).x/patch-${PATCH_PV}.xz
|
||||
https://dev.gentoo.org/~mgorny/dist/linux/${PATCHSET}.tar.xz
|
||||
verify-sig? (
|
||||
https://cdn.kernel.org/pub/linux/kernel/v$(ver_cut 1).x/sha256sums.asc
|
||||
-> linux-$(ver_cut 1).x-sha256sums-${SHA256SUM_DATE}.asc
|
||||
)
|
||||
amd64? (
|
||||
https://dev.gentoo.org/~mgorny/binpkg/amd64/kernel/sys-kernel/gentoo-kernel/${BINPKG}.gpkg.tar
|
||||
-> ${BINPKG}.amd64.gpkg.tar
|
||||
)
|
||||
arm64? (
|
||||
https://dev.gentoo.org/~mgorny/binpkg/arm64/kernel/sys-kernel/gentoo-kernel/${BINPKG}.gpkg.tar
|
||||
-> ${BINPKG}.arm64.gpkg.tar
|
||||
)
|
||||
ppc64? (
|
||||
https://dev.gentoo.org/~mgorny/binpkg/ppc64le/kernel/sys-kernel/gentoo-kernel/${BINPKG}.gpkg.tar
|
||||
-> ${BINPKG}.ppc64le.gpkg.tar
|
||||
)
|
||||
x86? (
|
||||
https://dev.gentoo.org/~mgorny/binpkg/x86/kernel/sys-kernel/gentoo-kernel/${BINPKG}.gpkg.tar
|
||||
-> ${BINPKG}.x86.gpkg.tar
|
||||
)
|
||||
"
|
||||
S=${WORKDIR}
|
||||
|
||||
KEYWORDS="~amd64 ~arm64 ~ppc64 ~x86"
|
||||
IUSE="debug"
|
||||
|
||||
RDEPEND="
|
||||
!sys-kernel/gentoo-kernel:${SLOT}
|
||||
"
|
||||
PDEPEND="
|
||||
>=virtual/dist-kernel-${PATCH_PV}
|
||||
"
|
||||
BDEPEND="
|
||||
app-alternatives/bc
|
||||
app-alternatives/lex
|
||||
dev-util/pahole
|
||||
virtual/libelf
|
||||
app-alternatives/yacc
|
||||
amd64? ( app-crypt/sbsigntools )
|
||||
arm64? ( app-crypt/sbsigntools )
|
||||
verify-sig? ( >=sec-keys/openpgp-keys-kernel-20250702 )
|
||||
"
|
||||
|
||||
KV_LOCALVERSION='-gentoo-dist'
|
||||
KV_FULL=${PV/_p/-p}${KV_LOCALVERSION}
|
||||
|
||||
QA_PREBUILT='*'
|
||||
|
||||
VERIFY_SIG_OPENPGP_KEY_PATH=/usr/share/openpgp-keys/kernel.org.asc
|
||||
|
||||
src_unpack() {
|
||||
if use verify-sig; then
|
||||
cd "${DISTDIR}" || die
|
||||
verify-sig_verify_signed_checksums \
|
||||
"linux-$(ver_cut 1).x-sha256sums-${SHA256SUM_DATE}.asc" \
|
||||
sha256 "${BASE_P}.tar.xz patch-${PATCH_PV}.xz"
|
||||
cd "${WORKDIR}" || die
|
||||
fi
|
||||
|
||||
unpacker
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
local patch
|
||||
cd "${BASE_P}" || die
|
||||
eapply "${WORKDIR}/patch-${PATCH_PV}"
|
||||
for patch in "${WORKDIR}/${PATCHSET}"/*.patch; do
|
||||
eapply "${patch}"
|
||||
# non-experimental patches always finish with Gentoo Kconfig
|
||||
# we built -bins without them
|
||||
if [[ ${patch} == *Add-Gentoo-Linux-support-config-settings* ]]
|
||||
then
|
||||
break
|
||||
fi
|
||||
done
|
||||
|
||||
default
|
||||
|
||||
# add Gentoo patchset version
|
||||
local extraversion=${PV#${PATCH_PV}}
|
||||
sed -i -e "s:^\(EXTRAVERSION =\).*:\1 ${extraversion/_/-}:" Makefile || die
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
# force ld.bfd if we can find it easily
|
||||
local HOSTLD="$(tc-getBUILD_LD)"
|
||||
if type -P "${HOSTLD}.bfd" &>/dev/null; then
|
||||
HOSTLD+=.bfd
|
||||
fi
|
||||
local LD="$(tc-getLD)"
|
||||
if type -P "${LD}.bfd" &>/dev/null; then
|
||||
LD+=.bfd
|
||||
fi
|
||||
tc-export_build_env
|
||||
local makeargs=(
|
||||
V=1
|
||||
WERROR=0
|
||||
|
||||
HOSTCC="$(tc-getBUILD_CC)"
|
||||
HOSTCXX="$(tc-getBUILD_CXX)"
|
||||
HOSTLD="${HOSTLD}"
|
||||
HOSTAR="$(tc-getBUILD_AR)"
|
||||
HOSTCFLAGS="${BUILD_CFLAGS}"
|
||||
HOSTLDFLAGS="${BUILD_LDFLAGS}"
|
||||
|
||||
CROSS_COMPILE=${CHOST}-
|
||||
AS="$(tc-getAS)"
|
||||
CC="$(tc-getCC)"
|
||||
LD="${LD}"
|
||||
AR="$(tc-getAR)"
|
||||
NM="$(tc-getNM)"
|
||||
STRIP="$(tc-getSTRIP)"
|
||||
OBJCOPY="$(tc-getOBJCOPY)"
|
||||
OBJDUMP="$(tc-getOBJDUMP)"
|
||||
READELF="$(tc-getREADELF)"
|
||||
|
||||
# we need to pass it to override colliding Gentoo envvar
|
||||
ARCH="$(tc-arch-kernel)"
|
||||
|
||||
O="${WORKDIR}"/modprep
|
||||
)
|
||||
|
||||
local kernel_dir="${BINPKG}/image/usr/src/linux-${KV_FULL}"
|
||||
|
||||
# If this is set it will have an effect on the name of the output
|
||||
# image. Set this variable to track this setting.
|
||||
if grep -q "CONFIG_EFI_ZBOOT=y" "${kernel_dir}/.config"; then
|
||||
KERNEL_EFI_ZBOOT=1
|
||||
elif use arm64 && use generic-uki; then
|
||||
die "USE=generic-uki requires a CONFIG_EFI_ZBOOT enabled build"
|
||||
fi
|
||||
|
||||
local image="${kernel_dir}/$(dist-kernel_get_image_path)"
|
||||
local uki="${image%/*}/uki.efi"
|
||||
|
||||
# Override user variable with the cert used during build
|
||||
openssl x509 \
|
||||
-inform DER -in "${kernel_dir}/certs/signing_key.x509" \
|
||||
-outform PEM -out "${T}/cert.pem" ||
|
||||
die "Failed to convert pcrpkey to PEM format"
|
||||
export SECUREBOOT_SIGN_CERT=${T}/cert.pem
|
||||
|
||||
if [[ -s ${uki} ]]; then
|
||||
# We need to extract the plain image for the test phase
|
||||
# and USE=-generic-uki.
|
||||
kernel-install_extract_from_uki linux "${uki}" "${image}"
|
||||
fi
|
||||
|
||||
mkdir modprep || die
|
||||
cp "${kernel_dir}/.config" modprep/ || die
|
||||
emake -C "${BASE_P}" "${makeargs[@]}" modules_prepare
|
||||
}
|
||||
|
||||
src_test() {
|
||||
local kernel_dir="${BINPKG}/image/usr/src/linux-${KV_FULL}"
|
||||
kernel-install_test "${KV_FULL}" \
|
||||
"${WORKDIR}/${kernel_dir}/$(dist-kernel_get_image_path)" \
|
||||
"${BINPKG}/image/lib/modules/${KV_FULL}"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
local rel_kernel_dir=/usr/src/linux-${KV_FULL}
|
||||
local kernel_dir="${BINPKG}/image${rel_kernel_dir}"
|
||||
local image="${kernel_dir}/$(dist-kernel_get_image_path)"
|
||||
local uki="${image%/*}/uki.efi"
|
||||
if [[ -s ${uki} ]]; then
|
||||
# Keep the kernel image type we don't want out of install tree
|
||||
# Replace back with placeholder
|
||||
if use generic-uki; then
|
||||
> "${image}" || die
|
||||
else
|
||||
> "${uki}" || die
|
||||
fi
|
||||
fi
|
||||
|
||||
# Overwrite the identifier in the prebuilt package
|
||||
echo "${CATEGORY}/${PF}:${SLOT}" > "${kernel_dir}/dist-kernel" || die
|
||||
|
||||
mv "${BINPKG}"/image/{lib,usr} "${ED}"/ || die
|
||||
|
||||
# FIXME: requires proper mount-boot
|
||||
if [[ -d ${BINPKG}/image/boot/dtbs ]]; then
|
||||
mv "${BINPKG}"/image/boot "${ED}"/ || die
|
||||
fi
|
||||
|
||||
# strip out-of-source build stuffs from modprep
|
||||
# and then copy built files
|
||||
find modprep -type f '(' \
|
||||
-name Makefile -o \
|
||||
-name '*.[ao]' -o \
|
||||
'(' -name '.*' -a -not -name '.config' ')' \
|
||||
')' -delete || die
|
||||
rm modprep/source || die
|
||||
cp -p -R modprep/. "${ED}${rel_kernel_dir}"/ || die
|
||||
|
||||
# Update timestamps on all modules to ensure cleanup works correctly
|
||||
# when switching USE=modules-compress.
|
||||
find "${ED}/lib" -name '*.ko' -exec touch {} + || die
|
||||
|
||||
# Modules were already stripped before signing
|
||||
dostrip -x /lib/modules
|
||||
kernel-install_compress_modules
|
||||
|
||||
# Mirror the logic from kernel-build_src_install, for architectures
|
||||
# where USE=debug is used.
|
||||
if use ppc64; then
|
||||
dostrip -x "${rel_kernel_dir}/$(dist-kernel_get_image_path)"
|
||||
elif use debug && { use amd64 || use arm64; }; then
|
||||
dostrip -x "${rel_kernel_dir}/vmlinux"
|
||||
dostrip -x "${rel_kernel_dir}/vmlinux.ctfa"
|
||||
fi
|
||||
}
|
||||
@@ -1,237 +0,0 @@
|
||||
# Copyright 2020-2025 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
KERNEL_IUSE_GENERIC_UKI=1
|
||||
KERNEL_IUSE_MODULES_SIGN=1
|
||||
|
||||
inherit kernel-install toolchain-funcs unpacker verify-sig
|
||||
|
||||
BASE_P=linux-${PV%.*}
|
||||
PATCH_PV=${PV%_p*}
|
||||
PATCHSET=linux-gentoo-patches-6.12.48
|
||||
BINPKG=${P/-bin}-1
|
||||
SHA256SUM_DATE=20250925
|
||||
|
||||
DESCRIPTION="Pre-built Linux kernel with Gentoo patches"
|
||||
HOMEPAGE="
|
||||
https://wiki.gentoo.org/wiki/Project:Distribution_Kernel
|
||||
https://www.kernel.org/
|
||||
"
|
||||
SRC_URI+="
|
||||
https://cdn.kernel.org/pub/linux/kernel/v$(ver_cut 1).x/${BASE_P}.tar.xz
|
||||
https://cdn.kernel.org/pub/linux/kernel/v$(ver_cut 1).x/patch-${PATCH_PV}.xz
|
||||
https://dev.gentoo.org/~mgorny/dist/linux/${PATCHSET}.tar.xz
|
||||
verify-sig? (
|
||||
https://cdn.kernel.org/pub/linux/kernel/v$(ver_cut 1).x/sha256sums.asc
|
||||
-> linux-$(ver_cut 1).x-sha256sums-${SHA256SUM_DATE}.asc
|
||||
)
|
||||
amd64? (
|
||||
https://dev.gentoo.org/~mgorny/binpkg/amd64/kernel/sys-kernel/gentoo-kernel/${BINPKG}.gpkg.tar
|
||||
-> ${BINPKG}.amd64.gpkg.tar
|
||||
)
|
||||
arm64? (
|
||||
https://dev.gentoo.org/~mgorny/binpkg/arm64/kernel/sys-kernel/gentoo-kernel/${BINPKG}.gpkg.tar
|
||||
-> ${BINPKG}.arm64.gpkg.tar
|
||||
)
|
||||
ppc64? (
|
||||
https://dev.gentoo.org/~mgorny/binpkg/ppc64le/kernel/sys-kernel/gentoo-kernel/${BINPKG}.gpkg.tar
|
||||
-> ${BINPKG}.ppc64le.gpkg.tar
|
||||
)
|
||||
x86? (
|
||||
https://dev.gentoo.org/~mgorny/binpkg/x86/kernel/sys-kernel/gentoo-kernel/${BINPKG}.gpkg.tar
|
||||
-> ${BINPKG}.x86.gpkg.tar
|
||||
)
|
||||
"
|
||||
S=${WORKDIR}
|
||||
|
||||
KEYWORDS="~amd64 ~arm64 ~ppc64 ~x86"
|
||||
IUSE="debug"
|
||||
|
||||
RDEPEND="
|
||||
!sys-kernel/gentoo-kernel:${SLOT}
|
||||
"
|
||||
PDEPEND="
|
||||
>=virtual/dist-kernel-${PV}
|
||||
"
|
||||
BDEPEND="
|
||||
app-alternatives/bc
|
||||
app-alternatives/lex
|
||||
dev-util/pahole
|
||||
virtual/libelf
|
||||
app-alternatives/yacc
|
||||
amd64? ( app-crypt/sbsigntools )
|
||||
arm64? ( app-crypt/sbsigntools )
|
||||
verify-sig? ( >=sec-keys/openpgp-keys-kernel-20250702 )
|
||||
"
|
||||
|
||||
KV_LOCALVERSION='-gentoo-dist'
|
||||
KV_FULL=${PV/_p/-p}${KV_LOCALVERSION}
|
||||
|
||||
QA_PREBUILT='*'
|
||||
|
||||
VERIFY_SIG_OPENPGP_KEY_PATH=/usr/share/openpgp-keys/kernel.org.asc
|
||||
|
||||
src_unpack() {
|
||||
if use verify-sig; then
|
||||
cd "${DISTDIR}" || die
|
||||
verify-sig_verify_signed_checksums \
|
||||
"linux-$(ver_cut 1).x-sha256sums-${SHA256SUM_DATE}.asc" \
|
||||
sha256 "${BASE_P}.tar.xz patch-${PATCH_PV}.xz"
|
||||
cd "${WORKDIR}" || die
|
||||
fi
|
||||
|
||||
unpacker
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
local patch
|
||||
cd "${BASE_P}" || die
|
||||
eapply "${WORKDIR}/patch-${PATCH_PV}"
|
||||
for patch in "${WORKDIR}/${PATCHSET}"/*.patch; do
|
||||
eapply "${patch}"
|
||||
# non-experimental patches always finish with Gentoo Kconfig
|
||||
# we built -bins without them
|
||||
if [[ ${patch} == *Add-Gentoo-Linux-support-config-settings* ]]
|
||||
then
|
||||
break
|
||||
fi
|
||||
done
|
||||
|
||||
default
|
||||
|
||||
# add Gentoo patchset version
|
||||
local extraversion=${PV#${PATCH_PV}}
|
||||
sed -i -e "s:^\(EXTRAVERSION =\).*:\1 ${extraversion/_/-}:" Makefile || die
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
# force ld.bfd if we can find it easily
|
||||
local HOSTLD="$(tc-getBUILD_LD)"
|
||||
if type -P "${HOSTLD}.bfd" &>/dev/null; then
|
||||
HOSTLD+=.bfd
|
||||
fi
|
||||
local LD="$(tc-getLD)"
|
||||
if type -P "${LD}.bfd" &>/dev/null; then
|
||||
LD+=.bfd
|
||||
fi
|
||||
tc-export_build_env
|
||||
local makeargs=(
|
||||
V=1
|
||||
WERROR=0
|
||||
|
||||
HOSTCC="$(tc-getBUILD_CC)"
|
||||
HOSTCXX="$(tc-getBUILD_CXX)"
|
||||
HOSTLD="${HOSTLD}"
|
||||
HOSTAR="$(tc-getBUILD_AR)"
|
||||
HOSTCFLAGS="${BUILD_CFLAGS}"
|
||||
HOSTLDFLAGS="${BUILD_LDFLAGS}"
|
||||
|
||||
CROSS_COMPILE=${CHOST}-
|
||||
AS="$(tc-getAS)"
|
||||
CC="$(tc-getCC)"
|
||||
LD="${LD}"
|
||||
AR="$(tc-getAR)"
|
||||
NM="$(tc-getNM)"
|
||||
STRIP="$(tc-getSTRIP)"
|
||||
OBJCOPY="$(tc-getOBJCOPY)"
|
||||
OBJDUMP="$(tc-getOBJDUMP)"
|
||||
READELF="$(tc-getREADELF)"
|
||||
|
||||
# we need to pass it to override colliding Gentoo envvar
|
||||
ARCH="$(tc-arch-kernel)"
|
||||
|
||||
O="${WORKDIR}"/modprep
|
||||
)
|
||||
|
||||
local kernel_dir="${BINPKG}/image/usr/src/linux-${KV_FULL}"
|
||||
|
||||
# If this is set it will have an effect on the name of the output
|
||||
# image. Set this variable to track this setting.
|
||||
if grep -q "CONFIG_EFI_ZBOOT=y" "${kernel_dir}/.config"; then
|
||||
KERNEL_EFI_ZBOOT=1
|
||||
elif use arm64 && use generic-uki; then
|
||||
die "USE=generic-uki requires a CONFIG_EFI_ZBOOT enabled build"
|
||||
fi
|
||||
|
||||
local image="${kernel_dir}/$(dist-kernel_get_image_path)"
|
||||
local uki="${image%/*}/uki.efi"
|
||||
|
||||
# Override user variable with the cert used during build
|
||||
openssl x509 \
|
||||
-inform DER -in "${kernel_dir}/certs/signing_key.x509" \
|
||||
-outform PEM -out "${T}/cert.pem" ||
|
||||
die "Failed to convert pcrpkey to PEM format"
|
||||
export SECUREBOOT_SIGN_CERT=${T}/cert.pem
|
||||
|
||||
if [[ -s ${uki} ]]; then
|
||||
# We need to extract the plain image for the test phase
|
||||
# and USE=-generic-uki.
|
||||
kernel-install_extract_from_uki linux "${uki}" "${image}"
|
||||
fi
|
||||
|
||||
mkdir modprep || die
|
||||
cp "${kernel_dir}/.config" modprep/ || die
|
||||
emake -C "${BASE_P}" "${makeargs[@]}" modules_prepare
|
||||
}
|
||||
|
||||
src_test() {
|
||||
local kernel_dir="${BINPKG}/image/usr/src/linux-${KV_FULL}"
|
||||
kernel-install_test "${KV_FULL}" \
|
||||
"${WORKDIR}/${kernel_dir}/$(dist-kernel_get_image_path)" \
|
||||
"${BINPKG}/image/lib/modules/${KV_FULL}"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
local rel_kernel_dir=/usr/src/linux-${KV_FULL}
|
||||
local kernel_dir="${BINPKG}/image${rel_kernel_dir}"
|
||||
local image="${kernel_dir}/$(dist-kernel_get_image_path)"
|
||||
local uki="${image%/*}/uki.efi"
|
||||
if [[ -s ${uki} ]]; then
|
||||
# Keep the kernel image type we don't want out of install tree
|
||||
# Replace back with placeholder
|
||||
if use generic-uki; then
|
||||
> "${image}" || die
|
||||
else
|
||||
> "${uki}" || die
|
||||
fi
|
||||
fi
|
||||
|
||||
# Overwrite the identifier in the prebuilt package
|
||||
echo "${CATEGORY}/${PF}:${SLOT}" > "${kernel_dir}/dist-kernel" || die
|
||||
|
||||
mv "${BINPKG}"/image/{lib,usr} "${ED}"/ || die
|
||||
|
||||
# FIXME: requires proper mount-boot
|
||||
if [[ -d ${BINPKG}/image/boot/dtbs ]]; then
|
||||
mv "${BINPKG}"/image/boot "${ED}"/ || die
|
||||
fi
|
||||
|
||||
# strip out-of-source build stuffs from modprep
|
||||
# and then copy built files
|
||||
find modprep -type f '(' \
|
||||
-name Makefile -o \
|
||||
-name '*.[ao]' -o \
|
||||
'(' -name '.*' -a -not -name '.config' ')' \
|
||||
')' -delete || die
|
||||
rm modprep/source || die
|
||||
cp -p -R modprep/. "${ED}${rel_kernel_dir}"/ || die
|
||||
|
||||
# Update timestamps on all modules to ensure cleanup works correctly
|
||||
# when switching USE=modules-compress.
|
||||
find "${ED}/lib" -name '*.ko' -exec touch {} + || die
|
||||
|
||||
# Modules were already stripped before signing
|
||||
dostrip -x /lib/modules
|
||||
kernel-install_compress_modules
|
||||
|
||||
# Mirror the logic from kernel-build_src_install, for architectures
|
||||
# where USE=debug is used.
|
||||
if use ppc64; then
|
||||
dostrip -x "${rel_kernel_dir}/$(dist-kernel_get_image_path)"
|
||||
elif use debug && { use amd64 || use arm64; }; then
|
||||
dostrip -x "${rel_kernel_dir}/vmlinux"
|
||||
dostrip -x "${rel_kernel_dir}/vmlinux.ctfa"
|
||||
fi
|
||||
}
|
||||
@@ -1,237 +0,0 @@
|
||||
# Copyright 2020-2025 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
KERNEL_IUSE_GENERIC_UKI=1
|
||||
KERNEL_IUSE_MODULES_SIGN=1
|
||||
|
||||
inherit kernel-install toolchain-funcs unpacker verify-sig
|
||||
|
||||
BASE_P=linux-${PV%.*}
|
||||
PATCH_PV=${PV%_p*}
|
||||
PATCHSET=linux-gentoo-patches-6.12.48
|
||||
BINPKG=${P/-bin}-1
|
||||
SHA256SUM_DATE=20251002
|
||||
|
||||
DESCRIPTION="Pre-built Linux kernel with Gentoo patches"
|
||||
HOMEPAGE="
|
||||
https://wiki.gentoo.org/wiki/Project:Distribution_Kernel
|
||||
https://www.kernel.org/
|
||||
"
|
||||
SRC_URI+="
|
||||
https://cdn.kernel.org/pub/linux/kernel/v$(ver_cut 1).x/${BASE_P}.tar.xz
|
||||
https://cdn.kernel.org/pub/linux/kernel/v$(ver_cut 1).x/patch-${PATCH_PV}.xz
|
||||
https://dev.gentoo.org/~mgorny/dist/linux/${PATCHSET}.tar.xz
|
||||
verify-sig? (
|
||||
https://cdn.kernel.org/pub/linux/kernel/v$(ver_cut 1).x/sha256sums.asc
|
||||
-> linux-$(ver_cut 1).x-sha256sums-${SHA256SUM_DATE}.asc
|
||||
)
|
||||
amd64? (
|
||||
https://dev.gentoo.org/~mgorny/binpkg/amd64/kernel/sys-kernel/gentoo-kernel/${BINPKG}.gpkg.tar
|
||||
-> ${BINPKG}.amd64.gpkg.tar
|
||||
)
|
||||
arm64? (
|
||||
https://dev.gentoo.org/~mgorny/binpkg/arm64/kernel/sys-kernel/gentoo-kernel/${BINPKG}.gpkg.tar
|
||||
-> ${BINPKG}.arm64.gpkg.tar
|
||||
)
|
||||
ppc64? (
|
||||
https://dev.gentoo.org/~mgorny/binpkg/ppc64le/kernel/sys-kernel/gentoo-kernel/${BINPKG}.gpkg.tar
|
||||
-> ${BINPKG}.ppc64le.gpkg.tar
|
||||
)
|
||||
x86? (
|
||||
https://dev.gentoo.org/~mgorny/binpkg/x86/kernel/sys-kernel/gentoo-kernel/${BINPKG}.gpkg.tar
|
||||
-> ${BINPKG}.x86.gpkg.tar
|
||||
)
|
||||
"
|
||||
S=${WORKDIR}
|
||||
|
||||
KEYWORDS="~amd64 ~arm64 ~ppc64 ~x86"
|
||||
IUSE="debug"
|
||||
|
||||
RDEPEND="
|
||||
!sys-kernel/gentoo-kernel:${SLOT}
|
||||
"
|
||||
PDEPEND="
|
||||
>=virtual/dist-kernel-${PV}
|
||||
"
|
||||
BDEPEND="
|
||||
app-alternatives/bc
|
||||
app-alternatives/lex
|
||||
dev-util/pahole
|
||||
virtual/libelf
|
||||
app-alternatives/yacc
|
||||
amd64? ( app-crypt/sbsigntools )
|
||||
arm64? ( app-crypt/sbsigntools )
|
||||
verify-sig? ( >=sec-keys/openpgp-keys-kernel-20250702 )
|
||||
"
|
||||
|
||||
KV_LOCALVERSION='-gentoo-dist'
|
||||
KV_FULL=${PV/_p/-p}${KV_LOCALVERSION}
|
||||
|
||||
QA_PREBUILT='*'
|
||||
|
||||
VERIFY_SIG_OPENPGP_KEY_PATH=/usr/share/openpgp-keys/kernel.org.asc
|
||||
|
||||
src_unpack() {
|
||||
if use verify-sig; then
|
||||
cd "${DISTDIR}" || die
|
||||
verify-sig_verify_signed_checksums \
|
||||
"linux-$(ver_cut 1).x-sha256sums-${SHA256SUM_DATE}.asc" \
|
||||
sha256 "${BASE_P}.tar.xz patch-${PATCH_PV}.xz"
|
||||
cd "${WORKDIR}" || die
|
||||
fi
|
||||
|
||||
unpacker
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
local patch
|
||||
cd "${BASE_P}" || die
|
||||
eapply "${WORKDIR}/patch-${PATCH_PV}"
|
||||
for patch in "${WORKDIR}/${PATCHSET}"/*.patch; do
|
||||
eapply "${patch}"
|
||||
# non-experimental patches always finish with Gentoo Kconfig
|
||||
# we built -bins without them
|
||||
if [[ ${patch} == *Add-Gentoo-Linux-support-config-settings* ]]
|
||||
then
|
||||
break
|
||||
fi
|
||||
done
|
||||
|
||||
default
|
||||
|
||||
# add Gentoo patchset version
|
||||
local extraversion=${PV#${PATCH_PV}}
|
||||
sed -i -e "s:^\(EXTRAVERSION =\).*:\1 ${extraversion/_/-}:" Makefile || die
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
# force ld.bfd if we can find it easily
|
||||
local HOSTLD="$(tc-getBUILD_LD)"
|
||||
if type -P "${HOSTLD}.bfd" &>/dev/null; then
|
||||
HOSTLD+=.bfd
|
||||
fi
|
||||
local LD="$(tc-getLD)"
|
||||
if type -P "${LD}.bfd" &>/dev/null; then
|
||||
LD+=.bfd
|
||||
fi
|
||||
tc-export_build_env
|
||||
local makeargs=(
|
||||
V=1
|
||||
WERROR=0
|
||||
|
||||
HOSTCC="$(tc-getBUILD_CC)"
|
||||
HOSTCXX="$(tc-getBUILD_CXX)"
|
||||
HOSTLD="${HOSTLD}"
|
||||
HOSTAR="$(tc-getBUILD_AR)"
|
||||
HOSTCFLAGS="${BUILD_CFLAGS}"
|
||||
HOSTLDFLAGS="${BUILD_LDFLAGS}"
|
||||
|
||||
CROSS_COMPILE=${CHOST}-
|
||||
AS="$(tc-getAS)"
|
||||
CC="$(tc-getCC)"
|
||||
LD="${LD}"
|
||||
AR="$(tc-getAR)"
|
||||
NM="$(tc-getNM)"
|
||||
STRIP="$(tc-getSTRIP)"
|
||||
OBJCOPY="$(tc-getOBJCOPY)"
|
||||
OBJDUMP="$(tc-getOBJDUMP)"
|
||||
READELF="$(tc-getREADELF)"
|
||||
|
||||
# we need to pass it to override colliding Gentoo envvar
|
||||
ARCH="$(tc-arch-kernel)"
|
||||
|
||||
O="${WORKDIR}"/modprep
|
||||
)
|
||||
|
||||
local kernel_dir="${BINPKG}/image/usr/src/linux-${KV_FULL}"
|
||||
|
||||
# If this is set it will have an effect on the name of the output
|
||||
# image. Set this variable to track this setting.
|
||||
if grep -q "CONFIG_EFI_ZBOOT=y" "${kernel_dir}/.config"; then
|
||||
KERNEL_EFI_ZBOOT=1
|
||||
elif use arm64 && use generic-uki; then
|
||||
die "USE=generic-uki requires a CONFIG_EFI_ZBOOT enabled build"
|
||||
fi
|
||||
|
||||
local image="${kernel_dir}/$(dist-kernel_get_image_path)"
|
||||
local uki="${image%/*}/uki.efi"
|
||||
|
||||
# Override user variable with the cert used during build
|
||||
openssl x509 \
|
||||
-inform DER -in "${kernel_dir}/certs/signing_key.x509" \
|
||||
-outform PEM -out "${T}/cert.pem" ||
|
||||
die "Failed to convert pcrpkey to PEM format"
|
||||
export SECUREBOOT_SIGN_CERT=${T}/cert.pem
|
||||
|
||||
if [[ -s ${uki} ]]; then
|
||||
# We need to extract the plain image for the test phase
|
||||
# and USE=-generic-uki.
|
||||
kernel-install_extract_from_uki linux "${uki}" "${image}"
|
||||
fi
|
||||
|
||||
mkdir modprep || die
|
||||
cp "${kernel_dir}/.config" modprep/ || die
|
||||
emake -C "${BASE_P}" "${makeargs[@]}" modules_prepare
|
||||
}
|
||||
|
||||
src_test() {
|
||||
local kernel_dir="${BINPKG}/image/usr/src/linux-${KV_FULL}"
|
||||
kernel-install_test "${KV_FULL}" \
|
||||
"${WORKDIR}/${kernel_dir}/$(dist-kernel_get_image_path)" \
|
||||
"${BINPKG}/image/lib/modules/${KV_FULL}"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
local rel_kernel_dir=/usr/src/linux-${KV_FULL}
|
||||
local kernel_dir="${BINPKG}/image${rel_kernel_dir}"
|
||||
local image="${kernel_dir}/$(dist-kernel_get_image_path)"
|
||||
local uki="${image%/*}/uki.efi"
|
||||
if [[ -s ${uki} ]]; then
|
||||
# Keep the kernel image type we don't want out of install tree
|
||||
# Replace back with placeholder
|
||||
if use generic-uki; then
|
||||
> "${image}" || die
|
||||
else
|
||||
> "${uki}" || die
|
||||
fi
|
||||
fi
|
||||
|
||||
# Overwrite the identifier in the prebuilt package
|
||||
echo "${CATEGORY}/${PF}:${SLOT}" > "${kernel_dir}/dist-kernel" || die
|
||||
|
||||
mv "${BINPKG}"/image/{lib,usr} "${ED}"/ || die
|
||||
|
||||
# FIXME: requires proper mount-boot
|
||||
if [[ -d ${BINPKG}/image/boot/dtbs ]]; then
|
||||
mv "${BINPKG}"/image/boot "${ED}"/ || die
|
||||
fi
|
||||
|
||||
# strip out-of-source build stuffs from modprep
|
||||
# and then copy built files
|
||||
find modprep -type f '(' \
|
||||
-name Makefile -o \
|
||||
-name '*.[ao]' -o \
|
||||
'(' -name '.*' -a -not -name '.config' ')' \
|
||||
')' -delete || die
|
||||
rm modprep/source || die
|
||||
cp -p -R modprep/. "${ED}${rel_kernel_dir}"/ || die
|
||||
|
||||
# Update timestamps on all modules to ensure cleanup works correctly
|
||||
# when switching USE=modules-compress.
|
||||
find "${ED}/lib" -name '*.ko' -exec touch {} + || die
|
||||
|
||||
# Modules were already stripped before signing
|
||||
dostrip -x /lib/modules
|
||||
kernel-install_compress_modules
|
||||
|
||||
# Mirror the logic from kernel-build_src_install, for architectures
|
||||
# where USE=debug is used.
|
||||
if use ppc64; then
|
||||
dostrip -x "${rel_kernel_dir}/$(dist-kernel_get_image_path)"
|
||||
elif use debug && { use amd64 || use arm64; }; then
|
||||
dostrip -x "${rel_kernel_dir}/vmlinux"
|
||||
dostrip -x "${rel_kernel_dir}/vmlinux.ctfa"
|
||||
fi
|
||||
}
|
||||
@@ -1,237 +0,0 @@
|
||||
# Copyright 2020-2025 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
KERNEL_IUSE_GENERIC_UKI=1
|
||||
KERNEL_IUSE_MODULES_SIGN=1
|
||||
|
||||
inherit kernel-install toolchain-funcs unpacker verify-sig
|
||||
|
||||
BASE_P=linux-${PV%.*}
|
||||
PATCH_PV=${PV%_p*}
|
||||
PATCHSET=linux-gentoo-patches-6.12.48
|
||||
BINPKG=${P/-bin}-1
|
||||
SHA256SUM_DATE=20251006
|
||||
|
||||
DESCRIPTION="Pre-built Linux kernel with Gentoo patches"
|
||||
HOMEPAGE="
|
||||
https://wiki.gentoo.org/wiki/Project:Distribution_Kernel
|
||||
https://www.kernel.org/
|
||||
"
|
||||
SRC_URI+="
|
||||
https://cdn.kernel.org/pub/linux/kernel/v$(ver_cut 1).x/${BASE_P}.tar.xz
|
||||
https://cdn.kernel.org/pub/linux/kernel/v$(ver_cut 1).x/patch-${PATCH_PV}.xz
|
||||
https://dev.gentoo.org/~mgorny/dist/linux/${PATCHSET}.tar.xz
|
||||
verify-sig? (
|
||||
https://cdn.kernel.org/pub/linux/kernel/v$(ver_cut 1).x/sha256sums.asc
|
||||
-> linux-$(ver_cut 1).x-sha256sums-${SHA256SUM_DATE}.asc
|
||||
)
|
||||
amd64? (
|
||||
https://dev.gentoo.org/~mgorny/binpkg/amd64/kernel/sys-kernel/gentoo-kernel/${BINPKG}.gpkg.tar
|
||||
-> ${BINPKG}.amd64.gpkg.tar
|
||||
)
|
||||
arm64? (
|
||||
https://dev.gentoo.org/~mgorny/binpkg/arm64/kernel/sys-kernel/gentoo-kernel/${BINPKG}.gpkg.tar
|
||||
-> ${BINPKG}.arm64.gpkg.tar
|
||||
)
|
||||
ppc64? (
|
||||
https://dev.gentoo.org/~mgorny/binpkg/ppc64le/kernel/sys-kernel/gentoo-kernel/${BINPKG}.gpkg.tar
|
||||
-> ${BINPKG}.ppc64le.gpkg.tar
|
||||
)
|
||||
x86? (
|
||||
https://dev.gentoo.org/~mgorny/binpkg/x86/kernel/sys-kernel/gentoo-kernel/${BINPKG}.gpkg.tar
|
||||
-> ${BINPKG}.x86.gpkg.tar
|
||||
)
|
||||
"
|
||||
S=${WORKDIR}
|
||||
|
||||
KEYWORDS="~amd64 ~arm64 ~ppc64 ~x86"
|
||||
IUSE="debug"
|
||||
|
||||
RDEPEND="
|
||||
!sys-kernel/gentoo-kernel:${SLOT}
|
||||
"
|
||||
PDEPEND="
|
||||
>=virtual/dist-kernel-${PV}
|
||||
"
|
||||
BDEPEND="
|
||||
app-alternatives/bc
|
||||
app-alternatives/lex
|
||||
dev-util/pahole
|
||||
virtual/libelf
|
||||
app-alternatives/yacc
|
||||
amd64? ( app-crypt/sbsigntools )
|
||||
arm64? ( app-crypt/sbsigntools )
|
||||
verify-sig? ( >=sec-keys/openpgp-keys-kernel-20250702 )
|
||||
"
|
||||
|
||||
KV_LOCALVERSION='-gentoo-dist'
|
||||
KV_FULL=${PV/_p/-p}${KV_LOCALVERSION}
|
||||
|
||||
QA_PREBUILT='*'
|
||||
|
||||
VERIFY_SIG_OPENPGP_KEY_PATH=/usr/share/openpgp-keys/kernel.org.asc
|
||||
|
||||
src_unpack() {
|
||||
if use verify-sig; then
|
||||
cd "${DISTDIR}" || die
|
||||
verify-sig_verify_signed_checksums \
|
||||
"linux-$(ver_cut 1).x-sha256sums-${SHA256SUM_DATE}.asc" \
|
||||
sha256 "${BASE_P}.tar.xz patch-${PATCH_PV}.xz"
|
||||
cd "${WORKDIR}" || die
|
||||
fi
|
||||
|
||||
unpacker
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
local patch
|
||||
cd "${BASE_P}" || die
|
||||
eapply "${WORKDIR}/patch-${PATCH_PV}"
|
||||
for patch in "${WORKDIR}/${PATCHSET}"/*.patch; do
|
||||
eapply "${patch}"
|
||||
# non-experimental patches always finish with Gentoo Kconfig
|
||||
# we built -bins without them
|
||||
if [[ ${patch} == *Add-Gentoo-Linux-support-config-settings* ]]
|
||||
then
|
||||
break
|
||||
fi
|
||||
done
|
||||
|
||||
default
|
||||
|
||||
# add Gentoo patchset version
|
||||
local extraversion=${PV#${PATCH_PV}}
|
||||
sed -i -e "s:^\(EXTRAVERSION =\).*:\1 ${extraversion/_/-}:" Makefile || die
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
# force ld.bfd if we can find it easily
|
||||
local HOSTLD="$(tc-getBUILD_LD)"
|
||||
if type -P "${HOSTLD}.bfd" &>/dev/null; then
|
||||
HOSTLD+=.bfd
|
||||
fi
|
||||
local LD="$(tc-getLD)"
|
||||
if type -P "${LD}.bfd" &>/dev/null; then
|
||||
LD+=.bfd
|
||||
fi
|
||||
tc-export_build_env
|
||||
local makeargs=(
|
||||
V=1
|
||||
WERROR=0
|
||||
|
||||
HOSTCC="$(tc-getBUILD_CC)"
|
||||
HOSTCXX="$(tc-getBUILD_CXX)"
|
||||
HOSTLD="${HOSTLD}"
|
||||
HOSTAR="$(tc-getBUILD_AR)"
|
||||
HOSTCFLAGS="${BUILD_CFLAGS}"
|
||||
HOSTLDFLAGS="${BUILD_LDFLAGS}"
|
||||
|
||||
CROSS_COMPILE=${CHOST}-
|
||||
AS="$(tc-getAS)"
|
||||
CC="$(tc-getCC)"
|
||||
LD="${LD}"
|
||||
AR="$(tc-getAR)"
|
||||
NM="$(tc-getNM)"
|
||||
STRIP="$(tc-getSTRIP)"
|
||||
OBJCOPY="$(tc-getOBJCOPY)"
|
||||
OBJDUMP="$(tc-getOBJDUMP)"
|
||||
READELF="$(tc-getREADELF)"
|
||||
|
||||
# we need to pass it to override colliding Gentoo envvar
|
||||
ARCH="$(tc-arch-kernel)"
|
||||
|
||||
O="${WORKDIR}"/modprep
|
||||
)
|
||||
|
||||
local kernel_dir="${BINPKG}/image/usr/src/linux-${KV_FULL}"
|
||||
|
||||
# If this is set it will have an effect on the name of the output
|
||||
# image. Set this variable to track this setting.
|
||||
if grep -q "CONFIG_EFI_ZBOOT=y" "${kernel_dir}/.config"; then
|
||||
KERNEL_EFI_ZBOOT=1
|
||||
elif use arm64 && use generic-uki; then
|
||||
die "USE=generic-uki requires a CONFIG_EFI_ZBOOT enabled build"
|
||||
fi
|
||||
|
||||
local image="${kernel_dir}/$(dist-kernel_get_image_path)"
|
||||
local uki="${image%/*}/uki.efi"
|
||||
|
||||
# Override user variable with the cert used during build
|
||||
openssl x509 \
|
||||
-inform DER -in "${kernel_dir}/certs/signing_key.x509" \
|
||||
-outform PEM -out "${T}/cert.pem" ||
|
||||
die "Failed to convert pcrpkey to PEM format"
|
||||
export SECUREBOOT_SIGN_CERT=${T}/cert.pem
|
||||
|
||||
if [[ -s ${uki} ]]; then
|
||||
# We need to extract the plain image for the test phase
|
||||
# and USE=-generic-uki.
|
||||
kernel-install_extract_from_uki linux "${uki}" "${image}"
|
||||
fi
|
||||
|
||||
mkdir modprep || die
|
||||
cp "${kernel_dir}/.config" modprep/ || die
|
||||
emake -C "${BASE_P}" "${makeargs[@]}" modules_prepare
|
||||
}
|
||||
|
||||
src_test() {
|
||||
local kernel_dir="${BINPKG}/image/usr/src/linux-${KV_FULL}"
|
||||
kernel-install_test "${KV_FULL}" \
|
||||
"${WORKDIR}/${kernel_dir}/$(dist-kernel_get_image_path)" \
|
||||
"${BINPKG}/image/lib/modules/${KV_FULL}"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
local rel_kernel_dir=/usr/src/linux-${KV_FULL}
|
||||
local kernel_dir="${BINPKG}/image${rel_kernel_dir}"
|
||||
local image="${kernel_dir}/$(dist-kernel_get_image_path)"
|
||||
local uki="${image%/*}/uki.efi"
|
||||
if [[ -s ${uki} ]]; then
|
||||
# Keep the kernel image type we don't want out of install tree
|
||||
# Replace back with placeholder
|
||||
if use generic-uki; then
|
||||
> "${image}" || die
|
||||
else
|
||||
> "${uki}" || die
|
||||
fi
|
||||
fi
|
||||
|
||||
# Overwrite the identifier in the prebuilt package
|
||||
echo "${CATEGORY}/${PF}:${SLOT}" > "${kernel_dir}/dist-kernel" || die
|
||||
|
||||
mv "${BINPKG}"/image/{lib,usr} "${ED}"/ || die
|
||||
|
||||
# FIXME: requires proper mount-boot
|
||||
if [[ -d ${BINPKG}/image/boot/dtbs ]]; then
|
||||
mv "${BINPKG}"/image/boot "${ED}"/ || die
|
||||
fi
|
||||
|
||||
# strip out-of-source build stuffs from modprep
|
||||
# and then copy built files
|
||||
find modprep -type f '(' \
|
||||
-name Makefile -o \
|
||||
-name '*.[ao]' -o \
|
||||
'(' -name '.*' -a -not -name '.config' ')' \
|
||||
')' -delete || die
|
||||
rm modprep/source || die
|
||||
cp -p -R modprep/. "${ED}${rel_kernel_dir}"/ || die
|
||||
|
||||
# Update timestamps on all modules to ensure cleanup works correctly
|
||||
# when switching USE=modules-compress.
|
||||
find "${ED}/lib" -name '*.ko' -exec touch {} + || die
|
||||
|
||||
# Modules were already stripped before signing
|
||||
dostrip -x /lib/modules
|
||||
kernel-install_compress_modules
|
||||
|
||||
# Mirror the logic from kernel-build_src_install, for architectures
|
||||
# where USE=debug is used.
|
||||
if use ppc64; then
|
||||
dostrip -x "${rel_kernel_dir}/$(dist-kernel_get_image_path)"
|
||||
elif use debug && { use amd64 || use arm64; }; then
|
||||
dostrip -x "${rel_kernel_dir}/vmlinux"
|
||||
dostrip -x "${rel_kernel_dir}/vmlinux.ctfa"
|
||||
fi
|
||||
}
|
||||
@@ -1,237 +0,0 @@
|
||||
# Copyright 2020-2025 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
KERNEL_IUSE_GENERIC_UKI=1
|
||||
KERNEL_IUSE_MODULES_SIGN=1
|
||||
|
||||
inherit kernel-install toolchain-funcs unpacker verify-sig
|
||||
|
||||
BASE_P=linux-${PV%.*}
|
||||
PATCH_PV=${PV%_p*}
|
||||
PATCHSET=linux-gentoo-patches-6.12.52
|
||||
BINPKG=${P/-bin}-1
|
||||
SHA256SUM_DATE=20251012
|
||||
|
||||
DESCRIPTION="Pre-built Linux kernel with Gentoo patches"
|
||||
HOMEPAGE="
|
||||
https://wiki.gentoo.org/wiki/Project:Distribution_Kernel
|
||||
https://www.kernel.org/
|
||||
"
|
||||
SRC_URI+="
|
||||
https://cdn.kernel.org/pub/linux/kernel/v$(ver_cut 1).x/${BASE_P}.tar.xz
|
||||
https://cdn.kernel.org/pub/linux/kernel/v$(ver_cut 1).x/patch-${PATCH_PV}.xz
|
||||
https://dev.gentoo.org/~mgorny/dist/linux/${PATCHSET}.tar.xz
|
||||
verify-sig? (
|
||||
https://cdn.kernel.org/pub/linux/kernel/v$(ver_cut 1).x/sha256sums.asc
|
||||
-> linux-$(ver_cut 1).x-sha256sums-${SHA256SUM_DATE}.asc
|
||||
)
|
||||
amd64? (
|
||||
https://dev.gentoo.org/~mgorny/binpkg/amd64/kernel/sys-kernel/gentoo-kernel/${BINPKG}.gpkg.tar
|
||||
-> ${BINPKG}.amd64.gpkg.tar
|
||||
)
|
||||
arm64? (
|
||||
https://dev.gentoo.org/~mgorny/binpkg/arm64/kernel/sys-kernel/gentoo-kernel/${BINPKG}.gpkg.tar
|
||||
-> ${BINPKG}.arm64.gpkg.tar
|
||||
)
|
||||
ppc64? (
|
||||
https://dev.gentoo.org/~mgorny/binpkg/ppc64le/kernel/sys-kernel/gentoo-kernel/${BINPKG}.gpkg.tar
|
||||
-> ${BINPKG}.ppc64le.gpkg.tar
|
||||
)
|
||||
x86? (
|
||||
https://dev.gentoo.org/~mgorny/binpkg/x86/kernel/sys-kernel/gentoo-kernel/${BINPKG}.gpkg.tar
|
||||
-> ${BINPKG}.x86.gpkg.tar
|
||||
)
|
||||
"
|
||||
S=${WORKDIR}
|
||||
|
||||
KEYWORDS="~amd64 ~arm64 ~ppc64 ~x86"
|
||||
IUSE="debug"
|
||||
|
||||
RDEPEND="
|
||||
!sys-kernel/gentoo-kernel:${SLOT}
|
||||
"
|
||||
PDEPEND="
|
||||
>=virtual/dist-kernel-${PV}
|
||||
"
|
||||
BDEPEND="
|
||||
app-alternatives/bc
|
||||
app-alternatives/lex
|
||||
dev-util/pahole
|
||||
virtual/libelf
|
||||
app-alternatives/yacc
|
||||
amd64? ( app-crypt/sbsigntools )
|
||||
arm64? ( app-crypt/sbsigntools )
|
||||
verify-sig? ( >=sec-keys/openpgp-keys-kernel-20250702 )
|
||||
"
|
||||
|
||||
KV_LOCALVERSION='-gentoo-dist'
|
||||
KV_FULL=${PV/_p/-p}${KV_LOCALVERSION}
|
||||
|
||||
QA_PREBUILT='*'
|
||||
|
||||
VERIFY_SIG_OPENPGP_KEY_PATH=/usr/share/openpgp-keys/kernel.org.asc
|
||||
|
||||
src_unpack() {
|
||||
if use verify-sig; then
|
||||
cd "${DISTDIR}" || die
|
||||
verify-sig_verify_signed_checksums \
|
||||
"linux-$(ver_cut 1).x-sha256sums-${SHA256SUM_DATE}.asc" \
|
||||
sha256 "${BASE_P}.tar.xz patch-${PATCH_PV}.xz"
|
||||
cd "${WORKDIR}" || die
|
||||
fi
|
||||
|
||||
unpacker
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
local patch
|
||||
cd "${BASE_P}" || die
|
||||
eapply "${WORKDIR}/patch-${PATCH_PV}"
|
||||
for patch in "${WORKDIR}/${PATCHSET}"/*.patch; do
|
||||
eapply "${patch}"
|
||||
# non-experimental patches always finish with Gentoo Kconfig
|
||||
# we built -bins without them
|
||||
if [[ ${patch} == *Add-Gentoo-Linux-support-config-settings* ]]
|
||||
then
|
||||
break
|
||||
fi
|
||||
done
|
||||
|
||||
default
|
||||
|
||||
# add Gentoo patchset version
|
||||
local extraversion=${PV#${PATCH_PV}}
|
||||
sed -i -e "s:^\(EXTRAVERSION =\).*:\1 ${extraversion/_/-}:" Makefile || die
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
# force ld.bfd if we can find it easily
|
||||
local HOSTLD="$(tc-getBUILD_LD)"
|
||||
if type -P "${HOSTLD}.bfd" &>/dev/null; then
|
||||
HOSTLD+=.bfd
|
||||
fi
|
||||
local LD="$(tc-getLD)"
|
||||
if type -P "${LD}.bfd" &>/dev/null; then
|
||||
LD+=.bfd
|
||||
fi
|
||||
tc-export_build_env
|
||||
local makeargs=(
|
||||
V=1
|
||||
WERROR=0
|
||||
|
||||
HOSTCC="$(tc-getBUILD_CC)"
|
||||
HOSTCXX="$(tc-getBUILD_CXX)"
|
||||
HOSTLD="${HOSTLD}"
|
||||
HOSTAR="$(tc-getBUILD_AR)"
|
||||
HOSTCFLAGS="${BUILD_CFLAGS}"
|
||||
HOSTLDFLAGS="${BUILD_LDFLAGS}"
|
||||
|
||||
CROSS_COMPILE=${CHOST}-
|
||||
AS="$(tc-getAS)"
|
||||
CC="$(tc-getCC)"
|
||||
LD="${LD}"
|
||||
AR="$(tc-getAR)"
|
||||
NM="$(tc-getNM)"
|
||||
STRIP="$(tc-getSTRIP)"
|
||||
OBJCOPY="$(tc-getOBJCOPY)"
|
||||
OBJDUMP="$(tc-getOBJDUMP)"
|
||||
READELF="$(tc-getREADELF)"
|
||||
|
||||
# we need to pass it to override colliding Gentoo envvar
|
||||
ARCH="$(tc-arch-kernel)"
|
||||
|
||||
O="${WORKDIR}"/modprep
|
||||
)
|
||||
|
||||
local kernel_dir="${BINPKG}/image/usr/src/linux-${KV_FULL}"
|
||||
|
||||
# If this is set it will have an effect on the name of the output
|
||||
# image. Set this variable to track this setting.
|
||||
if grep -q "CONFIG_EFI_ZBOOT=y" "${kernel_dir}/.config"; then
|
||||
KERNEL_EFI_ZBOOT=1
|
||||
elif use arm64 && use generic-uki; then
|
||||
die "USE=generic-uki requires a CONFIG_EFI_ZBOOT enabled build"
|
||||
fi
|
||||
|
||||
local image="${kernel_dir}/$(dist-kernel_get_image_path)"
|
||||
local uki="${image%/*}/uki.efi"
|
||||
|
||||
# Override user variable with the cert used during build
|
||||
openssl x509 \
|
||||
-inform DER -in "${kernel_dir}/certs/signing_key.x509" \
|
||||
-outform PEM -out "${T}/cert.pem" ||
|
||||
die "Failed to convert pcrpkey to PEM format"
|
||||
export SECUREBOOT_SIGN_CERT=${T}/cert.pem
|
||||
|
||||
if [[ -s ${uki} ]]; then
|
||||
# We need to extract the plain image for the test phase
|
||||
# and USE=-generic-uki.
|
||||
kernel-install_extract_from_uki linux "${uki}" "${image}"
|
||||
fi
|
||||
|
||||
mkdir modprep || die
|
||||
cp "${kernel_dir}/.config" modprep/ || die
|
||||
emake -C "${BASE_P}" "${makeargs[@]}" modules_prepare
|
||||
}
|
||||
|
||||
src_test() {
|
||||
local kernel_dir="${BINPKG}/image/usr/src/linux-${KV_FULL}"
|
||||
kernel-install_test "${KV_FULL}" \
|
||||
"${WORKDIR}/${kernel_dir}/$(dist-kernel_get_image_path)" \
|
||||
"${BINPKG}/image/lib/modules/${KV_FULL}"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
local rel_kernel_dir=/usr/src/linux-${KV_FULL}
|
||||
local kernel_dir="${BINPKG}/image${rel_kernel_dir}"
|
||||
local image="${kernel_dir}/$(dist-kernel_get_image_path)"
|
||||
local uki="${image%/*}/uki.efi"
|
||||
if [[ -s ${uki} ]]; then
|
||||
# Keep the kernel image type we don't want out of install tree
|
||||
# Replace back with placeholder
|
||||
if use generic-uki; then
|
||||
> "${image}" || die
|
||||
else
|
||||
> "${uki}" || die
|
||||
fi
|
||||
fi
|
||||
|
||||
# Overwrite the identifier in the prebuilt package
|
||||
echo "${CATEGORY}/${PF}:${SLOT}" > "${kernel_dir}/dist-kernel" || die
|
||||
|
||||
mv "${BINPKG}"/image/{lib,usr} "${ED}"/ || die
|
||||
|
||||
# FIXME: requires proper mount-boot
|
||||
if [[ -d ${BINPKG}/image/boot/dtbs ]]; then
|
||||
mv "${BINPKG}"/image/boot "${ED}"/ || die
|
||||
fi
|
||||
|
||||
# strip out-of-source build stuffs from modprep
|
||||
# and then copy built files
|
||||
find modprep -type f '(' \
|
||||
-name Makefile -o \
|
||||
-name '*.[ao]' -o \
|
||||
'(' -name '.*' -a -not -name '.config' ')' \
|
||||
')' -delete || die
|
||||
rm modprep/source || die
|
||||
cp -p -R modprep/. "${ED}${rel_kernel_dir}"/ || die
|
||||
|
||||
# Update timestamps on all modules to ensure cleanup works correctly
|
||||
# when switching USE=modules-compress.
|
||||
find "${ED}/lib" -name '*.ko' -exec touch {} + || die
|
||||
|
||||
# Modules were already stripped before signing
|
||||
dostrip -x /lib/modules
|
||||
kernel-install_compress_modules
|
||||
|
||||
# Mirror the logic from kernel-build_src_install, for architectures
|
||||
# where USE=debug is used.
|
||||
if use ppc64; then
|
||||
dostrip -x "${rel_kernel_dir}/$(dist-kernel_get_image_path)"
|
||||
elif use debug && { use amd64 || use arm64; }; then
|
||||
dostrip -x "${rel_kernel_dir}/vmlinux"
|
||||
dostrip -x "${rel_kernel_dir}/vmlinux.ctfa"
|
||||
fi
|
||||
}
|
||||
@@ -12,7 +12,7 @@ BASE_P=linux-${PV%.*}
|
||||
PATCH_PV=${PV%_p*}
|
||||
PATCHSET=linux-gentoo-patches-6.12.52
|
||||
BINPKG=${P/-bin}-1
|
||||
SHA256SUM_DATE=20251015
|
||||
SHA256SUM_DATE=20251023
|
||||
|
||||
DESCRIPTION="Pre-built Linux kernel with Gentoo patches"
|
||||
HOMEPAGE="
|
||||
@@ -1,237 +0,0 @@
|
||||
# Copyright 2020-2025 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
KERNEL_IUSE_GENERIC_UKI=1
|
||||
KERNEL_IUSE_MODULES_SIGN=1
|
||||
|
||||
inherit kernel-install toolchain-funcs unpacker verify-sig
|
||||
|
||||
BASE_P=linux-${PV%.*}
|
||||
PATCH_PV=${PV%_p*}
|
||||
PATCHSET=linux-gentoo-patches-6.16.10
|
||||
BINPKG=${P/-bin}-1
|
||||
SHA256SUM_DATE=20251002
|
||||
|
||||
DESCRIPTION="Pre-built Linux kernel with Gentoo patches"
|
||||
HOMEPAGE="
|
||||
https://wiki.gentoo.org/wiki/Project:Distribution_Kernel
|
||||
https://www.kernel.org/
|
||||
"
|
||||
SRC_URI+="
|
||||
https://cdn.kernel.org/pub/linux/kernel/v$(ver_cut 1).x/${BASE_P}.tar.xz
|
||||
https://cdn.kernel.org/pub/linux/kernel/v$(ver_cut 1).x/patch-${PATCH_PV}.xz
|
||||
https://dev.gentoo.org/~mgorny/dist/linux/${PATCHSET}.tar.xz
|
||||
verify-sig? (
|
||||
https://cdn.kernel.org/pub/linux/kernel/v$(ver_cut 1).x/sha256sums.asc
|
||||
-> linux-$(ver_cut 1).x-sha256sums-${SHA256SUM_DATE}.asc
|
||||
)
|
||||
amd64? (
|
||||
https://dev.gentoo.org/~mgorny/binpkg/amd64/kernel/sys-kernel/gentoo-kernel/${BINPKG}.gpkg.tar
|
||||
-> ${BINPKG}.amd64.gpkg.tar
|
||||
)
|
||||
arm64? (
|
||||
https://dev.gentoo.org/~mgorny/binpkg/arm64/kernel/sys-kernel/gentoo-kernel/${BINPKG}.gpkg.tar
|
||||
-> ${BINPKG}.arm64.gpkg.tar
|
||||
)
|
||||
ppc64? (
|
||||
https://dev.gentoo.org/~mgorny/binpkg/ppc64le/kernel/sys-kernel/gentoo-kernel/${BINPKG}.gpkg.tar
|
||||
-> ${BINPKG}.ppc64le.gpkg.tar
|
||||
)
|
||||
x86? (
|
||||
https://dev.gentoo.org/~mgorny/binpkg/x86/kernel/sys-kernel/gentoo-kernel/${BINPKG}.gpkg.tar
|
||||
-> ${BINPKG}.x86.gpkg.tar
|
||||
)
|
||||
"
|
||||
S=${WORKDIR}
|
||||
|
||||
KEYWORDS="~amd64 ~arm64 ~ppc64 ~x86"
|
||||
IUSE="debug"
|
||||
|
||||
RDEPEND="
|
||||
!sys-kernel/gentoo-kernel:${SLOT}
|
||||
"
|
||||
PDEPEND="
|
||||
>=virtual/dist-kernel-${PATCH_PV}
|
||||
"
|
||||
BDEPEND="
|
||||
app-alternatives/bc
|
||||
app-alternatives/lex
|
||||
dev-util/pahole
|
||||
virtual/libelf
|
||||
app-alternatives/yacc
|
||||
amd64? ( app-crypt/sbsigntools )
|
||||
arm64? ( app-crypt/sbsigntools )
|
||||
verify-sig? ( >=sec-keys/openpgp-keys-kernel-20250702 )
|
||||
"
|
||||
|
||||
KV_LOCALVERSION='-gentoo-dist'
|
||||
KV_FULL=${PV/_p/-p}${KV_LOCALVERSION}
|
||||
|
||||
QA_PREBUILT='*'
|
||||
|
||||
VERIFY_SIG_OPENPGP_KEY_PATH=/usr/share/openpgp-keys/kernel.org.asc
|
||||
|
||||
src_unpack() {
|
||||
if use verify-sig; then
|
||||
cd "${DISTDIR}" || die
|
||||
verify-sig_verify_signed_checksums \
|
||||
"linux-$(ver_cut 1).x-sha256sums-${SHA256SUM_DATE}.asc" \
|
||||
sha256 "${BASE_P}.tar.xz patch-${PATCH_PV}.xz"
|
||||
cd "${WORKDIR}" || die
|
||||
fi
|
||||
|
||||
unpacker
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
local patch
|
||||
cd "${BASE_P}" || die
|
||||
eapply "${WORKDIR}/patch-${PATCH_PV}"
|
||||
for patch in "${WORKDIR}/${PATCHSET}"/*.patch; do
|
||||
eapply "${patch}"
|
||||
# non-experimental patches always finish with Gentoo Kconfig
|
||||
# we built -bins without them
|
||||
if [[ ${patch} == *Add-Gentoo-Linux-support-config-settings* ]]
|
||||
then
|
||||
break
|
||||
fi
|
||||
done
|
||||
|
||||
default
|
||||
|
||||
# add Gentoo patchset version
|
||||
local extraversion=${PV#${PATCH_PV}}
|
||||
sed -i -e "s:^\(EXTRAVERSION =\).*:\1 ${extraversion/_/-}:" Makefile || die
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
# force ld.bfd if we can find it easily
|
||||
local HOSTLD="$(tc-getBUILD_LD)"
|
||||
if type -P "${HOSTLD}.bfd" &>/dev/null; then
|
||||
HOSTLD+=.bfd
|
||||
fi
|
||||
local LD="$(tc-getLD)"
|
||||
if type -P "${LD}.bfd" &>/dev/null; then
|
||||
LD+=.bfd
|
||||
fi
|
||||
tc-export_build_env
|
||||
local makeargs=(
|
||||
V=1
|
||||
WERROR=0
|
||||
|
||||
HOSTCC="$(tc-getBUILD_CC)"
|
||||
HOSTCXX="$(tc-getBUILD_CXX)"
|
||||
HOSTLD="${HOSTLD}"
|
||||
HOSTAR="$(tc-getBUILD_AR)"
|
||||
HOSTCFLAGS="${BUILD_CFLAGS}"
|
||||
HOSTLDFLAGS="${BUILD_LDFLAGS}"
|
||||
|
||||
CROSS_COMPILE=${CHOST}-
|
||||
AS="$(tc-getAS)"
|
||||
CC="$(tc-getCC)"
|
||||
LD="${LD}"
|
||||
AR="$(tc-getAR)"
|
||||
NM="$(tc-getNM)"
|
||||
STRIP="$(tc-getSTRIP)"
|
||||
OBJCOPY="$(tc-getOBJCOPY)"
|
||||
OBJDUMP="$(tc-getOBJDUMP)"
|
||||
READELF="$(tc-getREADELF)"
|
||||
|
||||
# we need to pass it to override colliding Gentoo envvar
|
||||
ARCH="$(tc-arch-kernel)"
|
||||
|
||||
O="${WORKDIR}"/modprep
|
||||
)
|
||||
|
||||
local kernel_dir="${BINPKG}/image/usr/src/linux-${KV_FULL}"
|
||||
|
||||
# If this is set it will have an effect on the name of the output
|
||||
# image. Set this variable to track this setting.
|
||||
if grep -q "CONFIG_EFI_ZBOOT=y" "${kernel_dir}/.config"; then
|
||||
KERNEL_EFI_ZBOOT=1
|
||||
elif use arm64 && use generic-uki; then
|
||||
die "USE=generic-uki requires a CONFIG_EFI_ZBOOT enabled build"
|
||||
fi
|
||||
|
||||
local image="${kernel_dir}/$(dist-kernel_get_image_path)"
|
||||
local uki="${image%/*}/uki.efi"
|
||||
|
||||
# Override user variable with the cert used during build
|
||||
openssl x509 \
|
||||
-inform DER -in "${kernel_dir}/certs/signing_key.x509" \
|
||||
-outform PEM -out "${T}/cert.pem" ||
|
||||
die "Failed to convert pcrpkey to PEM format"
|
||||
export SECUREBOOT_SIGN_CERT=${T}/cert.pem
|
||||
|
||||
if [[ -s ${uki} ]]; then
|
||||
# We need to extract the plain image for the test phase
|
||||
# and USE=-generic-uki.
|
||||
kernel-install_extract_from_uki linux "${uki}" "${image}"
|
||||
fi
|
||||
|
||||
mkdir modprep || die
|
||||
cp "${kernel_dir}/.config" modprep/ || die
|
||||
emake -C "${BASE_P}" "${makeargs[@]}" modules_prepare
|
||||
}
|
||||
|
||||
src_test() {
|
||||
local kernel_dir="${BINPKG}/image/usr/src/linux-${KV_FULL}"
|
||||
kernel-install_test "${KV_FULL}" \
|
||||
"${WORKDIR}/${kernel_dir}/$(dist-kernel_get_image_path)" \
|
||||
"${BINPKG}/image/lib/modules/${KV_FULL}"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
local rel_kernel_dir=/usr/src/linux-${KV_FULL}
|
||||
local kernel_dir="${BINPKG}/image${rel_kernel_dir}"
|
||||
local image="${kernel_dir}/$(dist-kernel_get_image_path)"
|
||||
local uki="${image%/*}/uki.efi"
|
||||
if [[ -s ${uki} ]]; then
|
||||
# Keep the kernel image type we don't want out of install tree
|
||||
# Replace back with placeholder
|
||||
if use generic-uki; then
|
||||
> "${image}" || die
|
||||
else
|
||||
> "${uki}" || die
|
||||
fi
|
||||
fi
|
||||
|
||||
# Overwrite the identifier in the prebuilt package
|
||||
echo "${CATEGORY}/${PF}:${SLOT}" > "${kernel_dir}/dist-kernel" || die
|
||||
|
||||
mv "${BINPKG}"/image/{lib,usr} "${ED}"/ || die
|
||||
|
||||
# FIXME: requires proper mount-boot
|
||||
if [[ -d ${BINPKG}/image/boot/dtbs ]]; then
|
||||
mv "${BINPKG}"/image/boot "${ED}"/ || die
|
||||
fi
|
||||
|
||||
# strip out-of-source build stuffs from modprep
|
||||
# and then copy built files
|
||||
find modprep -type f '(' \
|
||||
-name Makefile -o \
|
||||
-name '*.[ao]' -o \
|
||||
'(' -name '.*' -a -not -name '.config' ')' \
|
||||
')' -delete || die
|
||||
rm modprep/source || die
|
||||
cp -p -R modprep/. "${ED}${rel_kernel_dir}"/ || die
|
||||
|
||||
# Update timestamps on all modules to ensure cleanup works correctly
|
||||
# when switching USE=modules-compress.
|
||||
find "${ED}/lib" -name '*.ko' -exec touch {} + || die
|
||||
|
||||
# Modules were already stripped before signing
|
||||
dostrip -x /lib/modules
|
||||
kernel-install_compress_modules
|
||||
|
||||
# Mirror the logic from kernel-build_src_install, for architectures
|
||||
# where USE=debug is used.
|
||||
if use ppc64; then
|
||||
dostrip -x "${rel_kernel_dir}/$(dist-kernel_get_image_path)"
|
||||
elif use debug && { use amd64 || use arm64; }; then
|
||||
dostrip -x "${rel_kernel_dir}/vmlinux"
|
||||
dostrip -x "${rel_kernel_dir}/vmlinux.ctfa"
|
||||
fi
|
||||
}
|
||||
@@ -1,237 +0,0 @@
|
||||
# Copyright 2020-2025 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
KERNEL_IUSE_GENERIC_UKI=1
|
||||
KERNEL_IUSE_MODULES_SIGN=1
|
||||
|
||||
inherit kernel-install toolchain-funcs unpacker verify-sig
|
||||
|
||||
BASE_P=linux-${PV%.*}
|
||||
PATCH_PV=${PV%_p*}
|
||||
PATCHSET=linux-gentoo-patches-6.16.8
|
||||
BINPKG=${P/-bin}-1
|
||||
SHA256SUM_DATE=20251006
|
||||
|
||||
DESCRIPTION="Pre-built Linux kernel with Gentoo patches"
|
||||
HOMEPAGE="
|
||||
https://wiki.gentoo.org/wiki/Project:Distribution_Kernel
|
||||
https://www.kernel.org/
|
||||
"
|
||||
SRC_URI+="
|
||||
https://cdn.kernel.org/pub/linux/kernel/v$(ver_cut 1).x/${BASE_P}.tar.xz
|
||||
https://cdn.kernel.org/pub/linux/kernel/v$(ver_cut 1).x/patch-${PATCH_PV}.xz
|
||||
https://dev.gentoo.org/~mgorny/dist/linux/${PATCHSET}.tar.xz
|
||||
verify-sig? (
|
||||
https://cdn.kernel.org/pub/linux/kernel/v$(ver_cut 1).x/sha256sums.asc
|
||||
-> linux-$(ver_cut 1).x-sha256sums-${SHA256SUM_DATE}.asc
|
||||
)
|
||||
amd64? (
|
||||
https://dev.gentoo.org/~mgorny/binpkg/amd64/kernel/sys-kernel/gentoo-kernel/${BINPKG}.gpkg.tar
|
||||
-> ${BINPKG}.amd64.gpkg.tar
|
||||
)
|
||||
arm64? (
|
||||
https://dev.gentoo.org/~mgorny/binpkg/arm64/kernel/sys-kernel/gentoo-kernel/${BINPKG}.gpkg.tar
|
||||
-> ${BINPKG}.arm64.gpkg.tar
|
||||
)
|
||||
ppc64? (
|
||||
https://dev.gentoo.org/~mgorny/binpkg/ppc64le/kernel/sys-kernel/gentoo-kernel/${BINPKG}.gpkg.tar
|
||||
-> ${BINPKG}.ppc64le.gpkg.tar
|
||||
)
|
||||
x86? (
|
||||
https://dev.gentoo.org/~mgorny/binpkg/x86/kernel/sys-kernel/gentoo-kernel/${BINPKG}.gpkg.tar
|
||||
-> ${BINPKG}.x86.gpkg.tar
|
||||
)
|
||||
"
|
||||
S=${WORKDIR}
|
||||
|
||||
KEYWORDS="~amd64 ~arm64 ~ppc64 ~x86"
|
||||
IUSE="debug"
|
||||
|
||||
RDEPEND="
|
||||
!sys-kernel/gentoo-kernel:${SLOT}
|
||||
"
|
||||
PDEPEND="
|
||||
>=virtual/dist-kernel-${PATCH_PV}
|
||||
"
|
||||
BDEPEND="
|
||||
app-alternatives/bc
|
||||
app-alternatives/lex
|
||||
dev-util/pahole
|
||||
virtual/libelf
|
||||
app-alternatives/yacc
|
||||
amd64? ( app-crypt/sbsigntools )
|
||||
arm64? ( app-crypt/sbsigntools )
|
||||
verify-sig? ( >=sec-keys/openpgp-keys-kernel-20250702 )
|
||||
"
|
||||
|
||||
KV_LOCALVERSION='-gentoo-dist'
|
||||
KV_FULL=${PV/_p/-p}${KV_LOCALVERSION}
|
||||
|
||||
QA_PREBUILT='*'
|
||||
|
||||
VERIFY_SIG_OPENPGP_KEY_PATH=/usr/share/openpgp-keys/kernel.org.asc
|
||||
|
||||
src_unpack() {
|
||||
if use verify-sig; then
|
||||
cd "${DISTDIR}" || die
|
||||
verify-sig_verify_signed_checksums \
|
||||
"linux-$(ver_cut 1).x-sha256sums-${SHA256SUM_DATE}.asc" \
|
||||
sha256 "${BASE_P}.tar.xz patch-${PATCH_PV}.xz"
|
||||
cd "${WORKDIR}" || die
|
||||
fi
|
||||
|
||||
unpacker
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
local patch
|
||||
cd "${BASE_P}" || die
|
||||
eapply "${WORKDIR}/patch-${PATCH_PV}"
|
||||
for patch in "${WORKDIR}/${PATCHSET}"/*.patch; do
|
||||
eapply "${patch}"
|
||||
# non-experimental patches always finish with Gentoo Kconfig
|
||||
# we built -bins without them
|
||||
if [[ ${patch} == *Add-Gentoo-Linux-support-config-settings* ]]
|
||||
then
|
||||
break
|
||||
fi
|
||||
done
|
||||
|
||||
default
|
||||
|
||||
# add Gentoo patchset version
|
||||
local extraversion=${PV#${PATCH_PV}}
|
||||
sed -i -e "s:^\(EXTRAVERSION =\).*:\1 ${extraversion/_/-}:" Makefile || die
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
# force ld.bfd if we can find it easily
|
||||
local HOSTLD="$(tc-getBUILD_LD)"
|
||||
if type -P "${HOSTLD}.bfd" &>/dev/null; then
|
||||
HOSTLD+=.bfd
|
||||
fi
|
||||
local LD="$(tc-getLD)"
|
||||
if type -P "${LD}.bfd" &>/dev/null; then
|
||||
LD+=.bfd
|
||||
fi
|
||||
tc-export_build_env
|
||||
local makeargs=(
|
||||
V=1
|
||||
WERROR=0
|
||||
|
||||
HOSTCC="$(tc-getBUILD_CC)"
|
||||
HOSTCXX="$(tc-getBUILD_CXX)"
|
||||
HOSTLD="${HOSTLD}"
|
||||
HOSTAR="$(tc-getBUILD_AR)"
|
||||
HOSTCFLAGS="${BUILD_CFLAGS}"
|
||||
HOSTLDFLAGS="${BUILD_LDFLAGS}"
|
||||
|
||||
CROSS_COMPILE=${CHOST}-
|
||||
AS="$(tc-getAS)"
|
||||
CC="$(tc-getCC)"
|
||||
LD="${LD}"
|
||||
AR="$(tc-getAR)"
|
||||
NM="$(tc-getNM)"
|
||||
STRIP="$(tc-getSTRIP)"
|
||||
OBJCOPY="$(tc-getOBJCOPY)"
|
||||
OBJDUMP="$(tc-getOBJDUMP)"
|
||||
READELF="$(tc-getREADELF)"
|
||||
|
||||
# we need to pass it to override colliding Gentoo envvar
|
||||
ARCH="$(tc-arch-kernel)"
|
||||
|
||||
O="${WORKDIR}"/modprep
|
||||
)
|
||||
|
||||
local kernel_dir="${BINPKG}/image/usr/src/linux-${KV_FULL}"
|
||||
|
||||
# If this is set it will have an effect on the name of the output
|
||||
# image. Set this variable to track this setting.
|
||||
if grep -q "CONFIG_EFI_ZBOOT=y" "${kernel_dir}/.config"; then
|
||||
KERNEL_EFI_ZBOOT=1
|
||||
elif use arm64 && use generic-uki; then
|
||||
die "USE=generic-uki requires a CONFIG_EFI_ZBOOT enabled build"
|
||||
fi
|
||||
|
||||
local image="${kernel_dir}/$(dist-kernel_get_image_path)"
|
||||
local uki="${image%/*}/uki.efi"
|
||||
|
||||
# Override user variable with the cert used during build
|
||||
openssl x509 \
|
||||
-inform DER -in "${kernel_dir}/certs/signing_key.x509" \
|
||||
-outform PEM -out "${T}/cert.pem" ||
|
||||
die "Failed to convert pcrpkey to PEM format"
|
||||
export SECUREBOOT_SIGN_CERT=${T}/cert.pem
|
||||
|
||||
if [[ -s ${uki} ]]; then
|
||||
# We need to extract the plain image for the test phase
|
||||
# and USE=-generic-uki.
|
||||
kernel-install_extract_from_uki linux "${uki}" "${image}"
|
||||
fi
|
||||
|
||||
mkdir modprep || die
|
||||
cp "${kernel_dir}/.config" modprep/ || die
|
||||
emake -C "${BASE_P}" "${makeargs[@]}" modules_prepare
|
||||
}
|
||||
|
||||
src_test() {
|
||||
local kernel_dir="${BINPKG}/image/usr/src/linux-${KV_FULL}"
|
||||
kernel-install_test "${KV_FULL}" \
|
||||
"${WORKDIR}/${kernel_dir}/$(dist-kernel_get_image_path)" \
|
||||
"${BINPKG}/image/lib/modules/${KV_FULL}"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
local rel_kernel_dir=/usr/src/linux-${KV_FULL}
|
||||
local kernel_dir="${BINPKG}/image${rel_kernel_dir}"
|
||||
local image="${kernel_dir}/$(dist-kernel_get_image_path)"
|
||||
local uki="${image%/*}/uki.efi"
|
||||
if [[ -s ${uki} ]]; then
|
||||
# Keep the kernel image type we don't want out of install tree
|
||||
# Replace back with placeholder
|
||||
if use generic-uki; then
|
||||
> "${image}" || die
|
||||
else
|
||||
> "${uki}" || die
|
||||
fi
|
||||
fi
|
||||
|
||||
# Overwrite the identifier in the prebuilt package
|
||||
echo "${CATEGORY}/${PF}:${SLOT}" > "${kernel_dir}/dist-kernel" || die
|
||||
|
||||
mv "${BINPKG}"/image/{lib,usr} "${ED}"/ || die
|
||||
|
||||
# FIXME: requires proper mount-boot
|
||||
if [[ -d ${BINPKG}/image/boot/dtbs ]]; then
|
||||
mv "${BINPKG}"/image/boot "${ED}"/ || die
|
||||
fi
|
||||
|
||||
# strip out-of-source build stuffs from modprep
|
||||
# and then copy built files
|
||||
find modprep -type f '(' \
|
||||
-name Makefile -o \
|
||||
-name '*.[ao]' -o \
|
||||
'(' -name '.*' -a -not -name '.config' ')' \
|
||||
')' -delete || die
|
||||
rm modprep/source || die
|
||||
cp -p -R modprep/. "${ED}${rel_kernel_dir}"/ || die
|
||||
|
||||
# Update timestamps on all modules to ensure cleanup works correctly
|
||||
# when switching USE=modules-compress.
|
||||
find "${ED}/lib" -name '*.ko' -exec touch {} + || die
|
||||
|
||||
# Modules were already stripped before signing
|
||||
dostrip -x /lib/modules
|
||||
kernel-install_compress_modules
|
||||
|
||||
# Mirror the logic from kernel-build_src_install, for architectures
|
||||
# where USE=debug is used.
|
||||
if use ppc64; then
|
||||
dostrip -x "${rel_kernel_dir}/$(dist-kernel_get_image_path)"
|
||||
elif use debug && { use amd64 || use arm64; }; then
|
||||
dostrip -x "${rel_kernel_dir}/vmlinux"
|
||||
dostrip -x "${rel_kernel_dir}/vmlinux.ctfa"
|
||||
fi
|
||||
}
|
||||
@@ -1,237 +0,0 @@
|
||||
# Copyright 2020-2025 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
KERNEL_IUSE_GENERIC_UKI=1
|
||||
KERNEL_IUSE_MODULES_SIGN=1
|
||||
|
||||
inherit kernel-install toolchain-funcs unpacker verify-sig
|
||||
|
||||
BASE_P=linux-${PV%.*}
|
||||
PATCH_PV=${PV%_p*}
|
||||
PATCHSET=linux-gentoo-patches-6.16.12
|
||||
BINPKG=${P/-bin}-1
|
||||
SHA256SUM_DATE=20251012
|
||||
|
||||
DESCRIPTION="Pre-built Linux kernel with Gentoo patches"
|
||||
HOMEPAGE="
|
||||
https://wiki.gentoo.org/wiki/Project:Distribution_Kernel
|
||||
https://www.kernel.org/
|
||||
"
|
||||
SRC_URI+="
|
||||
https://cdn.kernel.org/pub/linux/kernel/v$(ver_cut 1).x/${BASE_P}.tar.xz
|
||||
https://cdn.kernel.org/pub/linux/kernel/v$(ver_cut 1).x/patch-${PATCH_PV}.xz
|
||||
https://dev.gentoo.org/~mgorny/dist/linux/${PATCHSET}.tar.xz
|
||||
verify-sig? (
|
||||
https://cdn.kernel.org/pub/linux/kernel/v$(ver_cut 1).x/sha256sums.asc
|
||||
-> linux-$(ver_cut 1).x-sha256sums-${SHA256SUM_DATE}.asc
|
||||
)
|
||||
amd64? (
|
||||
https://dev.gentoo.org/~mgorny/binpkg/amd64/kernel/sys-kernel/gentoo-kernel/${BINPKG}.gpkg.tar
|
||||
-> ${BINPKG}.amd64.gpkg.tar
|
||||
)
|
||||
arm64? (
|
||||
https://dev.gentoo.org/~mgorny/binpkg/arm64/kernel/sys-kernel/gentoo-kernel/${BINPKG}.gpkg.tar
|
||||
-> ${BINPKG}.arm64.gpkg.tar
|
||||
)
|
||||
ppc64? (
|
||||
https://dev.gentoo.org/~mgorny/binpkg/ppc64le/kernel/sys-kernel/gentoo-kernel/${BINPKG}.gpkg.tar
|
||||
-> ${BINPKG}.ppc64le.gpkg.tar
|
||||
)
|
||||
x86? (
|
||||
https://dev.gentoo.org/~mgorny/binpkg/x86/kernel/sys-kernel/gentoo-kernel/${BINPKG}.gpkg.tar
|
||||
-> ${BINPKG}.x86.gpkg.tar
|
||||
)
|
||||
"
|
||||
S=${WORKDIR}
|
||||
|
||||
KEYWORDS="~amd64 ~arm64 ~ppc64 ~x86"
|
||||
IUSE="debug"
|
||||
|
||||
RDEPEND="
|
||||
!sys-kernel/gentoo-kernel:${SLOT}
|
||||
"
|
||||
PDEPEND="
|
||||
>=virtual/dist-kernel-${PATCH_PV}
|
||||
"
|
||||
BDEPEND="
|
||||
app-alternatives/bc
|
||||
app-alternatives/lex
|
||||
dev-util/pahole
|
||||
virtual/libelf
|
||||
app-alternatives/yacc
|
||||
amd64? ( app-crypt/sbsigntools )
|
||||
arm64? ( app-crypt/sbsigntools )
|
||||
verify-sig? ( >=sec-keys/openpgp-keys-kernel-20250702 )
|
||||
"
|
||||
|
||||
KV_LOCALVERSION='-gentoo-dist'
|
||||
KV_FULL=${PV/_p/-p}${KV_LOCALVERSION}
|
||||
|
||||
QA_PREBUILT='*'
|
||||
|
||||
VERIFY_SIG_OPENPGP_KEY_PATH=/usr/share/openpgp-keys/kernel.org.asc
|
||||
|
||||
src_unpack() {
|
||||
if use verify-sig; then
|
||||
cd "${DISTDIR}" || die
|
||||
verify-sig_verify_signed_checksums \
|
||||
"linux-$(ver_cut 1).x-sha256sums-${SHA256SUM_DATE}.asc" \
|
||||
sha256 "${BASE_P}.tar.xz patch-${PATCH_PV}.xz"
|
||||
cd "${WORKDIR}" || die
|
||||
fi
|
||||
|
||||
unpacker
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
local patch
|
||||
cd "${BASE_P}" || die
|
||||
eapply "${WORKDIR}/patch-${PATCH_PV}"
|
||||
for patch in "${WORKDIR}/${PATCHSET}"/*.patch; do
|
||||
eapply "${patch}"
|
||||
# non-experimental patches always finish with Gentoo Kconfig
|
||||
# we built -bins without them
|
||||
if [[ ${patch} == *Add-Gentoo-Linux-support-config-settings* ]]
|
||||
then
|
||||
break
|
||||
fi
|
||||
done
|
||||
|
||||
default
|
||||
|
||||
# add Gentoo patchset version
|
||||
local extraversion=${PV#${PATCH_PV}}
|
||||
sed -i -e "s:^\(EXTRAVERSION =\).*:\1 ${extraversion/_/-}:" Makefile || die
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
# force ld.bfd if we can find it easily
|
||||
local HOSTLD="$(tc-getBUILD_LD)"
|
||||
if type -P "${HOSTLD}.bfd" &>/dev/null; then
|
||||
HOSTLD+=.bfd
|
||||
fi
|
||||
local LD="$(tc-getLD)"
|
||||
if type -P "${LD}.bfd" &>/dev/null; then
|
||||
LD+=.bfd
|
||||
fi
|
||||
tc-export_build_env
|
||||
local makeargs=(
|
||||
V=1
|
||||
WERROR=0
|
||||
|
||||
HOSTCC="$(tc-getBUILD_CC)"
|
||||
HOSTCXX="$(tc-getBUILD_CXX)"
|
||||
HOSTLD="${HOSTLD}"
|
||||
HOSTAR="$(tc-getBUILD_AR)"
|
||||
HOSTCFLAGS="${BUILD_CFLAGS}"
|
||||
HOSTLDFLAGS="${BUILD_LDFLAGS}"
|
||||
|
||||
CROSS_COMPILE=${CHOST}-
|
||||
AS="$(tc-getAS)"
|
||||
CC="$(tc-getCC)"
|
||||
LD="${LD}"
|
||||
AR="$(tc-getAR)"
|
||||
NM="$(tc-getNM)"
|
||||
STRIP="$(tc-getSTRIP)"
|
||||
OBJCOPY="$(tc-getOBJCOPY)"
|
||||
OBJDUMP="$(tc-getOBJDUMP)"
|
||||
READELF="$(tc-getREADELF)"
|
||||
|
||||
# we need to pass it to override colliding Gentoo envvar
|
||||
ARCH="$(tc-arch-kernel)"
|
||||
|
||||
O="${WORKDIR}"/modprep
|
||||
)
|
||||
|
||||
local kernel_dir="${BINPKG}/image/usr/src/linux-${KV_FULL}"
|
||||
|
||||
# If this is set it will have an effect on the name of the output
|
||||
# image. Set this variable to track this setting.
|
||||
if grep -q "CONFIG_EFI_ZBOOT=y" "${kernel_dir}/.config"; then
|
||||
KERNEL_EFI_ZBOOT=1
|
||||
elif use arm64 && use generic-uki; then
|
||||
die "USE=generic-uki requires a CONFIG_EFI_ZBOOT enabled build"
|
||||
fi
|
||||
|
||||
local image="${kernel_dir}/$(dist-kernel_get_image_path)"
|
||||
local uki="${image%/*}/uki.efi"
|
||||
|
||||
# Override user variable with the cert used during build
|
||||
openssl x509 \
|
||||
-inform DER -in "${kernel_dir}/certs/signing_key.x509" \
|
||||
-outform PEM -out "${T}/cert.pem" ||
|
||||
die "Failed to convert pcrpkey to PEM format"
|
||||
export SECUREBOOT_SIGN_CERT=${T}/cert.pem
|
||||
|
||||
if [[ -s ${uki} ]]; then
|
||||
# We need to extract the plain image for the test phase
|
||||
# and USE=-generic-uki.
|
||||
kernel-install_extract_from_uki linux "${uki}" "${image}"
|
||||
fi
|
||||
|
||||
mkdir modprep || die
|
||||
cp "${kernel_dir}/.config" modprep/ || die
|
||||
emake -C "${BASE_P}" "${makeargs[@]}" modules_prepare
|
||||
}
|
||||
|
||||
src_test() {
|
||||
local kernel_dir="${BINPKG}/image/usr/src/linux-${KV_FULL}"
|
||||
kernel-install_test "${KV_FULL}" \
|
||||
"${WORKDIR}/${kernel_dir}/$(dist-kernel_get_image_path)" \
|
||||
"${BINPKG}/image/lib/modules/${KV_FULL}"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
local rel_kernel_dir=/usr/src/linux-${KV_FULL}
|
||||
local kernel_dir="${BINPKG}/image${rel_kernel_dir}"
|
||||
local image="${kernel_dir}/$(dist-kernel_get_image_path)"
|
||||
local uki="${image%/*}/uki.efi"
|
||||
if [[ -s ${uki} ]]; then
|
||||
# Keep the kernel image type we don't want out of install tree
|
||||
# Replace back with placeholder
|
||||
if use generic-uki; then
|
||||
> "${image}" || die
|
||||
else
|
||||
> "${uki}" || die
|
||||
fi
|
||||
fi
|
||||
|
||||
# Overwrite the identifier in the prebuilt package
|
||||
echo "${CATEGORY}/${PF}:${SLOT}" > "${kernel_dir}/dist-kernel" || die
|
||||
|
||||
mv "${BINPKG}"/image/{lib,usr} "${ED}"/ || die
|
||||
|
||||
# FIXME: requires proper mount-boot
|
||||
if [[ -d ${BINPKG}/image/boot/dtbs ]]; then
|
||||
mv "${BINPKG}"/image/boot "${ED}"/ || die
|
||||
fi
|
||||
|
||||
# strip out-of-source build stuffs from modprep
|
||||
# and then copy built files
|
||||
find modprep -type f '(' \
|
||||
-name Makefile -o \
|
||||
-name '*.[ao]' -o \
|
||||
'(' -name '.*' -a -not -name '.config' ')' \
|
||||
')' -delete || die
|
||||
rm modprep/source || die
|
||||
cp -p -R modprep/. "${ED}${rel_kernel_dir}"/ || die
|
||||
|
||||
# Update timestamps on all modules to ensure cleanup works correctly
|
||||
# when switching USE=modules-compress.
|
||||
find "${ED}/lib" -name '*.ko' -exec touch {} + || die
|
||||
|
||||
# Modules were already stripped before signing
|
||||
dostrip -x /lib/modules
|
||||
kernel-install_compress_modules
|
||||
|
||||
# Mirror the logic from kernel-build_src_install, for architectures
|
||||
# where USE=debug is used.
|
||||
if use ppc64; then
|
||||
dostrip -x "${rel_kernel_dir}/$(dist-kernel_get_image_path)"
|
||||
elif use debug && { use amd64 || use arm64; }; then
|
||||
dostrip -x "${rel_kernel_dir}/vmlinux"
|
||||
dostrip -x "${rel_kernel_dir}/vmlinux.ctfa"
|
||||
fi
|
||||
}
|
||||
@@ -1,237 +0,0 @@
|
||||
# Copyright 2020-2025 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
KERNEL_IUSE_GENERIC_UKI=1
|
||||
KERNEL_IUSE_MODULES_SIGN=1
|
||||
|
||||
inherit kernel-install toolchain-funcs unpacker verify-sig
|
||||
|
||||
BASE_P=linux-${PV%.*}
|
||||
PATCH_PV=${PV%_p*}
|
||||
PATCHSET=linux-gentoo-patches-6.16.6
|
||||
BINPKG=${P/-bin}-1
|
||||
SHA256SUM_DATE=20250911
|
||||
|
||||
DESCRIPTION="Pre-built Linux kernel with Gentoo patches"
|
||||
HOMEPAGE="
|
||||
https://wiki.gentoo.org/wiki/Project:Distribution_Kernel
|
||||
https://www.kernel.org/
|
||||
"
|
||||
SRC_URI+="
|
||||
https://cdn.kernel.org/pub/linux/kernel/v$(ver_cut 1).x/${BASE_P}.tar.xz
|
||||
https://cdn.kernel.org/pub/linux/kernel/v$(ver_cut 1).x/patch-${PATCH_PV}.xz
|
||||
https://dev.gentoo.org/~mgorny/dist/linux/${PATCHSET}.tar.xz
|
||||
verify-sig? (
|
||||
https://cdn.kernel.org/pub/linux/kernel/v$(ver_cut 1).x/sha256sums.asc
|
||||
-> linux-$(ver_cut 1).x-sha256sums-${SHA256SUM_DATE}.asc
|
||||
)
|
||||
amd64? (
|
||||
https://dev.gentoo.org/~mgorny/binpkg/amd64/kernel/sys-kernel/gentoo-kernel/${BINPKG}.gpkg.tar
|
||||
-> ${BINPKG}.amd64.gpkg.tar
|
||||
)
|
||||
arm64? (
|
||||
https://dev.gentoo.org/~mgorny/binpkg/arm64/kernel/sys-kernel/gentoo-kernel/${BINPKG}.gpkg.tar
|
||||
-> ${BINPKG}.arm64.gpkg.tar
|
||||
)
|
||||
ppc64? (
|
||||
https://dev.gentoo.org/~mgorny/binpkg/ppc64le/kernel/sys-kernel/gentoo-kernel/${BINPKG}.gpkg.tar
|
||||
-> ${BINPKG}.ppc64le.gpkg.tar
|
||||
)
|
||||
x86? (
|
||||
https://dev.gentoo.org/~mgorny/binpkg/x86/kernel/sys-kernel/gentoo-kernel/${BINPKG}.gpkg.tar
|
||||
-> ${BINPKG}.x86.gpkg.tar
|
||||
)
|
||||
"
|
||||
S=${WORKDIR}
|
||||
|
||||
KEYWORDS="~amd64 ~arm64 ~ppc64 ~x86"
|
||||
IUSE="debug"
|
||||
|
||||
RDEPEND="
|
||||
!sys-kernel/gentoo-kernel:${SLOT}
|
||||
"
|
||||
PDEPEND="
|
||||
>=virtual/dist-kernel-${PATCH_PV}
|
||||
"
|
||||
BDEPEND="
|
||||
app-alternatives/bc
|
||||
app-alternatives/lex
|
||||
dev-util/pahole
|
||||
virtual/libelf
|
||||
app-alternatives/yacc
|
||||
amd64? ( app-crypt/sbsigntools )
|
||||
arm64? ( app-crypt/sbsigntools )
|
||||
verify-sig? ( >=sec-keys/openpgp-keys-kernel-20250702 )
|
||||
"
|
||||
|
||||
KV_LOCALVERSION='-gentoo-dist'
|
||||
KV_FULL=${PV/_p/-p}${KV_LOCALVERSION}
|
||||
|
||||
QA_PREBUILT='*'
|
||||
|
||||
VERIFY_SIG_OPENPGP_KEY_PATH=/usr/share/openpgp-keys/kernel.org.asc
|
||||
|
||||
src_unpack() {
|
||||
if use verify-sig; then
|
||||
cd "${DISTDIR}" || die
|
||||
verify-sig_verify_signed_checksums \
|
||||
"linux-$(ver_cut 1).x-sha256sums-${SHA256SUM_DATE}.asc" \
|
||||
sha256 "${BASE_P}.tar.xz patch-${PATCH_PV}.xz"
|
||||
cd "${WORKDIR}" || die
|
||||
fi
|
||||
|
||||
unpacker
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
local patch
|
||||
cd "${BASE_P}" || die
|
||||
eapply "${WORKDIR}/patch-${PATCH_PV}"
|
||||
for patch in "${WORKDIR}/${PATCHSET}"/*.patch; do
|
||||
eapply "${patch}"
|
||||
# non-experimental patches always finish with Gentoo Kconfig
|
||||
# we built -bins without them
|
||||
if [[ ${patch} == *Add-Gentoo-Linux-support-config-settings* ]]
|
||||
then
|
||||
break
|
||||
fi
|
||||
done
|
||||
|
||||
default
|
||||
|
||||
# add Gentoo patchset version
|
||||
local extraversion=${PV#${PATCH_PV}}
|
||||
sed -i -e "s:^\(EXTRAVERSION =\).*:\1 ${extraversion/_/-}:" Makefile || die
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
# force ld.bfd if we can find it easily
|
||||
local HOSTLD="$(tc-getBUILD_LD)"
|
||||
if type -P "${HOSTLD}.bfd" &>/dev/null; then
|
||||
HOSTLD+=.bfd
|
||||
fi
|
||||
local LD="$(tc-getLD)"
|
||||
if type -P "${LD}.bfd" &>/dev/null; then
|
||||
LD+=.bfd
|
||||
fi
|
||||
tc-export_build_env
|
||||
local makeargs=(
|
||||
V=1
|
||||
WERROR=0
|
||||
|
||||
HOSTCC="$(tc-getBUILD_CC)"
|
||||
HOSTCXX="$(tc-getBUILD_CXX)"
|
||||
HOSTLD="${HOSTLD}"
|
||||
HOSTAR="$(tc-getBUILD_AR)"
|
||||
HOSTCFLAGS="${BUILD_CFLAGS}"
|
||||
HOSTLDFLAGS="${BUILD_LDFLAGS}"
|
||||
|
||||
CROSS_COMPILE=${CHOST}-
|
||||
AS="$(tc-getAS)"
|
||||
CC="$(tc-getCC)"
|
||||
LD="${LD}"
|
||||
AR="$(tc-getAR)"
|
||||
NM="$(tc-getNM)"
|
||||
STRIP="$(tc-getSTRIP)"
|
||||
OBJCOPY="$(tc-getOBJCOPY)"
|
||||
OBJDUMP="$(tc-getOBJDUMP)"
|
||||
READELF="$(tc-getREADELF)"
|
||||
|
||||
# we need to pass it to override colliding Gentoo envvar
|
||||
ARCH="$(tc-arch-kernel)"
|
||||
|
||||
O="${WORKDIR}"/modprep
|
||||
)
|
||||
|
||||
local kernel_dir="${BINPKG}/image/usr/src/linux-${KV_FULL}"
|
||||
|
||||
# If this is set it will have an effect on the name of the output
|
||||
# image. Set this variable to track this setting.
|
||||
if grep -q "CONFIG_EFI_ZBOOT=y" "${kernel_dir}/.config"; then
|
||||
KERNEL_EFI_ZBOOT=1
|
||||
elif use arm64 && use generic-uki; then
|
||||
die "USE=generic-uki requires a CONFIG_EFI_ZBOOT enabled build"
|
||||
fi
|
||||
|
||||
local image="${kernel_dir}/$(dist-kernel_get_image_path)"
|
||||
local uki="${image%/*}/uki.efi"
|
||||
|
||||
# Override user variable with the cert used during build
|
||||
openssl x509 \
|
||||
-inform DER -in "${kernel_dir}/certs/signing_key.x509" \
|
||||
-outform PEM -out "${T}/cert.pem" ||
|
||||
die "Failed to convert pcrpkey to PEM format"
|
||||
export SECUREBOOT_SIGN_CERT=${T}/cert.pem
|
||||
|
||||
if [[ -s ${uki} ]]; then
|
||||
# We need to extract the plain image for the test phase
|
||||
# and USE=-generic-uki.
|
||||
kernel-install_extract_from_uki linux "${uki}" "${image}"
|
||||
fi
|
||||
|
||||
mkdir modprep || die
|
||||
cp "${kernel_dir}/.config" modprep/ || die
|
||||
emake -C "${BASE_P}" "${makeargs[@]}" modules_prepare
|
||||
}
|
||||
|
||||
src_test() {
|
||||
local kernel_dir="${BINPKG}/image/usr/src/linux-${KV_FULL}"
|
||||
kernel-install_test "${KV_FULL}" \
|
||||
"${WORKDIR}/${kernel_dir}/$(dist-kernel_get_image_path)" \
|
||||
"${BINPKG}/image/lib/modules/${KV_FULL}"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
local rel_kernel_dir=/usr/src/linux-${KV_FULL}
|
||||
local kernel_dir="${BINPKG}/image${rel_kernel_dir}"
|
||||
local image="${kernel_dir}/$(dist-kernel_get_image_path)"
|
||||
local uki="${image%/*}/uki.efi"
|
||||
if [[ -s ${uki} ]]; then
|
||||
# Keep the kernel image type we don't want out of install tree
|
||||
# Replace back with placeholder
|
||||
if use generic-uki; then
|
||||
> "${image}" || die
|
||||
else
|
||||
> "${uki}" || die
|
||||
fi
|
||||
fi
|
||||
|
||||
# Overwrite the identifier in the prebuilt package
|
||||
echo "${CATEGORY}/${PF}:${SLOT}" > "${kernel_dir}/dist-kernel" || die
|
||||
|
||||
mv "${BINPKG}"/image/{lib,usr} "${ED}"/ || die
|
||||
|
||||
# FIXME: requires proper mount-boot
|
||||
if [[ -d ${BINPKG}/image/boot/dtbs ]]; then
|
||||
mv "${BINPKG}"/image/boot "${ED}"/ || die
|
||||
fi
|
||||
|
||||
# strip out-of-source build stuffs from modprep
|
||||
# and then copy built files
|
||||
find modprep -type f '(' \
|
||||
-name Makefile -o \
|
||||
-name '*.[ao]' -o \
|
||||
'(' -name '.*' -a -not -name '.config' ')' \
|
||||
')' -delete || die
|
||||
rm modprep/source || die
|
||||
cp -p -R modprep/. "${ED}${rel_kernel_dir}"/ || die
|
||||
|
||||
# Update timestamps on all modules to ensure cleanup works correctly
|
||||
# when switching USE=modules-compress.
|
||||
find "${ED}/lib" -name '*.ko' -exec touch {} + || die
|
||||
|
||||
# Modules were already stripped before signing
|
||||
dostrip -x /lib/modules
|
||||
kernel-install_compress_modules
|
||||
|
||||
# Mirror the logic from kernel-build_src_install, for architectures
|
||||
# where USE=debug is used.
|
||||
if use ppc64; then
|
||||
dostrip -x "${rel_kernel_dir}/$(dist-kernel_get_image_path)"
|
||||
elif use debug && { use amd64 || use arm64; }; then
|
||||
dostrip -x "${rel_kernel_dir}/vmlinux"
|
||||
dostrip -x "${rel_kernel_dir}/vmlinux.ctfa"
|
||||
fi
|
||||
}
|
||||
@@ -1,237 +0,0 @@
|
||||
# Copyright 2020-2025 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
KERNEL_IUSE_GENERIC_UKI=1
|
||||
KERNEL_IUSE_MODULES_SIGN=1
|
||||
|
||||
inherit kernel-install toolchain-funcs unpacker verify-sig
|
||||
|
||||
BASE_P=linux-${PV%.*}
|
||||
PATCH_PV=${PV%_p*}
|
||||
PATCHSET=linux-gentoo-patches-6.16.8
|
||||
BINPKG=${P/-bin}-1
|
||||
SHA256SUM_DATE=20250919
|
||||
|
||||
DESCRIPTION="Pre-built Linux kernel with Gentoo patches"
|
||||
HOMEPAGE="
|
||||
https://wiki.gentoo.org/wiki/Project:Distribution_Kernel
|
||||
https://www.kernel.org/
|
||||
"
|
||||
SRC_URI+="
|
||||
https://cdn.kernel.org/pub/linux/kernel/v$(ver_cut 1).x/${BASE_P}.tar.xz
|
||||
https://cdn.kernel.org/pub/linux/kernel/v$(ver_cut 1).x/patch-${PATCH_PV}.xz
|
||||
https://dev.gentoo.org/~mgorny/dist/linux/${PATCHSET}.tar.xz
|
||||
verify-sig? (
|
||||
https://cdn.kernel.org/pub/linux/kernel/v$(ver_cut 1).x/sha256sums.asc
|
||||
-> linux-$(ver_cut 1).x-sha256sums-${SHA256SUM_DATE}.asc
|
||||
)
|
||||
amd64? (
|
||||
https://dev.gentoo.org/~mgorny/binpkg/amd64/kernel/sys-kernel/gentoo-kernel/${BINPKG}.gpkg.tar
|
||||
-> ${BINPKG}.amd64.gpkg.tar
|
||||
)
|
||||
arm64? (
|
||||
https://dev.gentoo.org/~mgorny/binpkg/arm64/kernel/sys-kernel/gentoo-kernel/${BINPKG}.gpkg.tar
|
||||
-> ${BINPKG}.arm64.gpkg.tar
|
||||
)
|
||||
ppc64? (
|
||||
https://dev.gentoo.org/~mgorny/binpkg/ppc64le/kernel/sys-kernel/gentoo-kernel/${BINPKG}.gpkg.tar
|
||||
-> ${BINPKG}.ppc64le.gpkg.tar
|
||||
)
|
||||
x86? (
|
||||
https://dev.gentoo.org/~mgorny/binpkg/x86/kernel/sys-kernel/gentoo-kernel/${BINPKG}.gpkg.tar
|
||||
-> ${BINPKG}.x86.gpkg.tar
|
||||
)
|
||||
"
|
||||
S=${WORKDIR}
|
||||
|
||||
KEYWORDS="~amd64 ~arm64 ~ppc64 ~x86"
|
||||
IUSE="debug"
|
||||
|
||||
RDEPEND="
|
||||
!sys-kernel/gentoo-kernel:${SLOT}
|
||||
"
|
||||
PDEPEND="
|
||||
>=virtual/dist-kernel-${PATCH_PV}
|
||||
"
|
||||
BDEPEND="
|
||||
app-alternatives/bc
|
||||
app-alternatives/lex
|
||||
dev-util/pahole
|
||||
virtual/libelf
|
||||
app-alternatives/yacc
|
||||
amd64? ( app-crypt/sbsigntools )
|
||||
arm64? ( app-crypt/sbsigntools )
|
||||
verify-sig? ( >=sec-keys/openpgp-keys-kernel-20250702 )
|
||||
"
|
||||
|
||||
KV_LOCALVERSION='-gentoo-dist'
|
||||
KV_FULL=${PV/_p/-p}${KV_LOCALVERSION}
|
||||
|
||||
QA_PREBUILT='*'
|
||||
|
||||
VERIFY_SIG_OPENPGP_KEY_PATH=/usr/share/openpgp-keys/kernel.org.asc
|
||||
|
||||
src_unpack() {
|
||||
if use verify-sig; then
|
||||
cd "${DISTDIR}" || die
|
||||
verify-sig_verify_signed_checksums \
|
||||
"linux-$(ver_cut 1).x-sha256sums-${SHA256SUM_DATE}.asc" \
|
||||
sha256 "${BASE_P}.tar.xz patch-${PATCH_PV}.xz"
|
||||
cd "${WORKDIR}" || die
|
||||
fi
|
||||
|
||||
unpacker
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
local patch
|
||||
cd "${BASE_P}" || die
|
||||
eapply "${WORKDIR}/patch-${PATCH_PV}"
|
||||
for patch in "${WORKDIR}/${PATCHSET}"/*.patch; do
|
||||
eapply "${patch}"
|
||||
# non-experimental patches always finish with Gentoo Kconfig
|
||||
# we built -bins without them
|
||||
if [[ ${patch} == *Add-Gentoo-Linux-support-config-settings* ]]
|
||||
then
|
||||
break
|
||||
fi
|
||||
done
|
||||
|
||||
default
|
||||
|
||||
# add Gentoo patchset version
|
||||
local extraversion=${PV#${PATCH_PV}}
|
||||
sed -i -e "s:^\(EXTRAVERSION =\).*:\1 ${extraversion/_/-}:" Makefile || die
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
# force ld.bfd if we can find it easily
|
||||
local HOSTLD="$(tc-getBUILD_LD)"
|
||||
if type -P "${HOSTLD}.bfd" &>/dev/null; then
|
||||
HOSTLD+=.bfd
|
||||
fi
|
||||
local LD="$(tc-getLD)"
|
||||
if type -P "${LD}.bfd" &>/dev/null; then
|
||||
LD+=.bfd
|
||||
fi
|
||||
tc-export_build_env
|
||||
local makeargs=(
|
||||
V=1
|
||||
WERROR=0
|
||||
|
||||
HOSTCC="$(tc-getBUILD_CC)"
|
||||
HOSTCXX="$(tc-getBUILD_CXX)"
|
||||
HOSTLD="${HOSTLD}"
|
||||
HOSTAR="$(tc-getBUILD_AR)"
|
||||
HOSTCFLAGS="${BUILD_CFLAGS}"
|
||||
HOSTLDFLAGS="${BUILD_LDFLAGS}"
|
||||
|
||||
CROSS_COMPILE=${CHOST}-
|
||||
AS="$(tc-getAS)"
|
||||
CC="$(tc-getCC)"
|
||||
LD="${LD}"
|
||||
AR="$(tc-getAR)"
|
||||
NM="$(tc-getNM)"
|
||||
STRIP="$(tc-getSTRIP)"
|
||||
OBJCOPY="$(tc-getOBJCOPY)"
|
||||
OBJDUMP="$(tc-getOBJDUMP)"
|
||||
READELF="$(tc-getREADELF)"
|
||||
|
||||
# we need to pass it to override colliding Gentoo envvar
|
||||
ARCH="$(tc-arch-kernel)"
|
||||
|
||||
O="${WORKDIR}"/modprep
|
||||
)
|
||||
|
||||
local kernel_dir="${BINPKG}/image/usr/src/linux-${KV_FULL}"
|
||||
|
||||
# If this is set it will have an effect on the name of the output
|
||||
# image. Set this variable to track this setting.
|
||||
if grep -q "CONFIG_EFI_ZBOOT=y" "${kernel_dir}/.config"; then
|
||||
KERNEL_EFI_ZBOOT=1
|
||||
elif use arm64 && use generic-uki; then
|
||||
die "USE=generic-uki requires a CONFIG_EFI_ZBOOT enabled build"
|
||||
fi
|
||||
|
||||
local image="${kernel_dir}/$(dist-kernel_get_image_path)"
|
||||
local uki="${image%/*}/uki.efi"
|
||||
|
||||
# Override user variable with the cert used during build
|
||||
openssl x509 \
|
||||
-inform DER -in "${kernel_dir}/certs/signing_key.x509" \
|
||||
-outform PEM -out "${T}/cert.pem" ||
|
||||
die "Failed to convert pcrpkey to PEM format"
|
||||
export SECUREBOOT_SIGN_CERT=${T}/cert.pem
|
||||
|
||||
if [[ -s ${uki} ]]; then
|
||||
# We need to extract the plain image for the test phase
|
||||
# and USE=-generic-uki.
|
||||
kernel-install_extract_from_uki linux "${uki}" "${image}"
|
||||
fi
|
||||
|
||||
mkdir modprep || die
|
||||
cp "${kernel_dir}/.config" modprep/ || die
|
||||
emake -C "${BASE_P}" "${makeargs[@]}" modules_prepare
|
||||
}
|
||||
|
||||
src_test() {
|
||||
local kernel_dir="${BINPKG}/image/usr/src/linux-${KV_FULL}"
|
||||
kernel-install_test "${KV_FULL}" \
|
||||
"${WORKDIR}/${kernel_dir}/$(dist-kernel_get_image_path)" \
|
||||
"${BINPKG}/image/lib/modules/${KV_FULL}"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
local rel_kernel_dir=/usr/src/linux-${KV_FULL}
|
||||
local kernel_dir="${BINPKG}/image${rel_kernel_dir}"
|
||||
local image="${kernel_dir}/$(dist-kernel_get_image_path)"
|
||||
local uki="${image%/*}/uki.efi"
|
||||
if [[ -s ${uki} ]]; then
|
||||
# Keep the kernel image type we don't want out of install tree
|
||||
# Replace back with placeholder
|
||||
if use generic-uki; then
|
||||
> "${image}" || die
|
||||
else
|
||||
> "${uki}" || die
|
||||
fi
|
||||
fi
|
||||
|
||||
# Overwrite the identifier in the prebuilt package
|
||||
echo "${CATEGORY}/${PF}:${SLOT}" > "${kernel_dir}/dist-kernel" || die
|
||||
|
||||
mv "${BINPKG}"/image/{lib,usr} "${ED}"/ || die
|
||||
|
||||
# FIXME: requires proper mount-boot
|
||||
if [[ -d ${BINPKG}/image/boot/dtbs ]]; then
|
||||
mv "${BINPKG}"/image/boot "${ED}"/ || die
|
||||
fi
|
||||
|
||||
# strip out-of-source build stuffs from modprep
|
||||
# and then copy built files
|
||||
find modprep -type f '(' \
|
||||
-name Makefile -o \
|
||||
-name '*.[ao]' -o \
|
||||
'(' -name '.*' -a -not -name '.config' ')' \
|
||||
')' -delete || die
|
||||
rm modprep/source || die
|
||||
cp -p -R modprep/. "${ED}${rel_kernel_dir}"/ || die
|
||||
|
||||
# Update timestamps on all modules to ensure cleanup works correctly
|
||||
# when switching USE=modules-compress.
|
||||
find "${ED}/lib" -name '*.ko' -exec touch {} + || die
|
||||
|
||||
# Modules were already stripped before signing
|
||||
dostrip -x /lib/modules
|
||||
kernel-install_compress_modules
|
||||
|
||||
# Mirror the logic from kernel-build_src_install, for architectures
|
||||
# where USE=debug is used.
|
||||
if use ppc64; then
|
||||
dostrip -x "${rel_kernel_dir}/$(dist-kernel_get_image_path)"
|
||||
elif use debug && { use amd64 || use arm64; }; then
|
||||
dostrip -x "${rel_kernel_dir}/vmlinux"
|
||||
dostrip -x "${rel_kernel_dir}/vmlinux.ctfa"
|
||||
fi
|
||||
}
|
||||
@@ -1,237 +0,0 @@
|
||||
# Copyright 2020-2025 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
KERNEL_IUSE_GENERIC_UKI=1
|
||||
KERNEL_IUSE_MODULES_SIGN=1
|
||||
|
||||
inherit kernel-install toolchain-funcs unpacker verify-sig
|
||||
|
||||
BASE_P=linux-${PV%.*}
|
||||
PATCH_PV=${PV%_p*}
|
||||
PATCHSET=linux-gentoo-patches-6.16.8
|
||||
BINPKG=${P/-bin}-1
|
||||
SHA256SUM_DATE=20250925
|
||||
|
||||
DESCRIPTION="Pre-built Linux kernel with Gentoo patches"
|
||||
HOMEPAGE="
|
||||
https://wiki.gentoo.org/wiki/Project:Distribution_Kernel
|
||||
https://www.kernel.org/
|
||||
"
|
||||
SRC_URI+="
|
||||
https://cdn.kernel.org/pub/linux/kernel/v$(ver_cut 1).x/${BASE_P}.tar.xz
|
||||
https://cdn.kernel.org/pub/linux/kernel/v$(ver_cut 1).x/patch-${PATCH_PV}.xz
|
||||
https://dev.gentoo.org/~mgorny/dist/linux/${PATCHSET}.tar.xz
|
||||
verify-sig? (
|
||||
https://cdn.kernel.org/pub/linux/kernel/v$(ver_cut 1).x/sha256sums.asc
|
||||
-> linux-$(ver_cut 1).x-sha256sums-${SHA256SUM_DATE}.asc
|
||||
)
|
||||
amd64? (
|
||||
https://dev.gentoo.org/~mgorny/binpkg/amd64/kernel/sys-kernel/gentoo-kernel/${BINPKG}.gpkg.tar
|
||||
-> ${BINPKG}.amd64.gpkg.tar
|
||||
)
|
||||
arm64? (
|
||||
https://dev.gentoo.org/~mgorny/binpkg/arm64/kernel/sys-kernel/gentoo-kernel/${BINPKG}.gpkg.tar
|
||||
-> ${BINPKG}.arm64.gpkg.tar
|
||||
)
|
||||
ppc64? (
|
||||
https://dev.gentoo.org/~mgorny/binpkg/ppc64le/kernel/sys-kernel/gentoo-kernel/${BINPKG}.gpkg.tar
|
||||
-> ${BINPKG}.ppc64le.gpkg.tar
|
||||
)
|
||||
x86? (
|
||||
https://dev.gentoo.org/~mgorny/binpkg/x86/kernel/sys-kernel/gentoo-kernel/${BINPKG}.gpkg.tar
|
||||
-> ${BINPKG}.x86.gpkg.tar
|
||||
)
|
||||
"
|
||||
S=${WORKDIR}
|
||||
|
||||
KEYWORDS="~amd64 ~arm64 ~ppc64 ~x86"
|
||||
IUSE="debug"
|
||||
|
||||
RDEPEND="
|
||||
!sys-kernel/gentoo-kernel:${SLOT}
|
||||
"
|
||||
PDEPEND="
|
||||
>=virtual/dist-kernel-${PATCH_PV}
|
||||
"
|
||||
BDEPEND="
|
||||
app-alternatives/bc
|
||||
app-alternatives/lex
|
||||
dev-util/pahole
|
||||
virtual/libelf
|
||||
app-alternatives/yacc
|
||||
amd64? ( app-crypt/sbsigntools )
|
||||
arm64? ( app-crypt/sbsigntools )
|
||||
verify-sig? ( >=sec-keys/openpgp-keys-kernel-20250702 )
|
||||
"
|
||||
|
||||
KV_LOCALVERSION='-gentoo-dist'
|
||||
KV_FULL=${PV/_p/-p}${KV_LOCALVERSION}
|
||||
|
||||
QA_PREBUILT='*'
|
||||
|
||||
VERIFY_SIG_OPENPGP_KEY_PATH=/usr/share/openpgp-keys/kernel.org.asc
|
||||
|
||||
src_unpack() {
|
||||
if use verify-sig; then
|
||||
cd "${DISTDIR}" || die
|
||||
verify-sig_verify_signed_checksums \
|
||||
"linux-$(ver_cut 1).x-sha256sums-${SHA256SUM_DATE}.asc" \
|
||||
sha256 "${BASE_P}.tar.xz patch-${PATCH_PV}.xz"
|
||||
cd "${WORKDIR}" || die
|
||||
fi
|
||||
|
||||
unpacker
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
local patch
|
||||
cd "${BASE_P}" || die
|
||||
eapply "${WORKDIR}/patch-${PATCH_PV}"
|
||||
for patch in "${WORKDIR}/${PATCHSET}"/*.patch; do
|
||||
eapply "${patch}"
|
||||
# non-experimental patches always finish with Gentoo Kconfig
|
||||
# we built -bins without them
|
||||
if [[ ${patch} == *Add-Gentoo-Linux-support-config-settings* ]]
|
||||
then
|
||||
break
|
||||
fi
|
||||
done
|
||||
|
||||
default
|
||||
|
||||
# add Gentoo patchset version
|
||||
local extraversion=${PV#${PATCH_PV}}
|
||||
sed -i -e "s:^\(EXTRAVERSION =\).*:\1 ${extraversion/_/-}:" Makefile || die
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
# force ld.bfd if we can find it easily
|
||||
local HOSTLD="$(tc-getBUILD_LD)"
|
||||
if type -P "${HOSTLD}.bfd" &>/dev/null; then
|
||||
HOSTLD+=.bfd
|
||||
fi
|
||||
local LD="$(tc-getLD)"
|
||||
if type -P "${LD}.bfd" &>/dev/null; then
|
||||
LD+=.bfd
|
||||
fi
|
||||
tc-export_build_env
|
||||
local makeargs=(
|
||||
V=1
|
||||
WERROR=0
|
||||
|
||||
HOSTCC="$(tc-getBUILD_CC)"
|
||||
HOSTCXX="$(tc-getBUILD_CXX)"
|
||||
HOSTLD="${HOSTLD}"
|
||||
HOSTAR="$(tc-getBUILD_AR)"
|
||||
HOSTCFLAGS="${BUILD_CFLAGS}"
|
||||
HOSTLDFLAGS="${BUILD_LDFLAGS}"
|
||||
|
||||
CROSS_COMPILE=${CHOST}-
|
||||
AS="$(tc-getAS)"
|
||||
CC="$(tc-getCC)"
|
||||
LD="${LD}"
|
||||
AR="$(tc-getAR)"
|
||||
NM="$(tc-getNM)"
|
||||
STRIP="$(tc-getSTRIP)"
|
||||
OBJCOPY="$(tc-getOBJCOPY)"
|
||||
OBJDUMP="$(tc-getOBJDUMP)"
|
||||
READELF="$(tc-getREADELF)"
|
||||
|
||||
# we need to pass it to override colliding Gentoo envvar
|
||||
ARCH="$(tc-arch-kernel)"
|
||||
|
||||
O="${WORKDIR}"/modprep
|
||||
)
|
||||
|
||||
local kernel_dir="${BINPKG}/image/usr/src/linux-${KV_FULL}"
|
||||
|
||||
# If this is set it will have an effect on the name of the output
|
||||
# image. Set this variable to track this setting.
|
||||
if grep -q "CONFIG_EFI_ZBOOT=y" "${kernel_dir}/.config"; then
|
||||
KERNEL_EFI_ZBOOT=1
|
||||
elif use arm64 && use generic-uki; then
|
||||
die "USE=generic-uki requires a CONFIG_EFI_ZBOOT enabled build"
|
||||
fi
|
||||
|
||||
local image="${kernel_dir}/$(dist-kernel_get_image_path)"
|
||||
local uki="${image%/*}/uki.efi"
|
||||
|
||||
# Override user variable with the cert used during build
|
||||
openssl x509 \
|
||||
-inform DER -in "${kernel_dir}/certs/signing_key.x509" \
|
||||
-outform PEM -out "${T}/cert.pem" ||
|
||||
die "Failed to convert pcrpkey to PEM format"
|
||||
export SECUREBOOT_SIGN_CERT=${T}/cert.pem
|
||||
|
||||
if [[ -s ${uki} ]]; then
|
||||
# We need to extract the plain image for the test phase
|
||||
# and USE=-generic-uki.
|
||||
kernel-install_extract_from_uki linux "${uki}" "${image}"
|
||||
fi
|
||||
|
||||
mkdir modprep || die
|
||||
cp "${kernel_dir}/.config" modprep/ || die
|
||||
emake -C "${BASE_P}" "${makeargs[@]}" modules_prepare
|
||||
}
|
||||
|
||||
src_test() {
|
||||
local kernel_dir="${BINPKG}/image/usr/src/linux-${KV_FULL}"
|
||||
kernel-install_test "${KV_FULL}" \
|
||||
"${WORKDIR}/${kernel_dir}/$(dist-kernel_get_image_path)" \
|
||||
"${BINPKG}/image/lib/modules/${KV_FULL}"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
local rel_kernel_dir=/usr/src/linux-${KV_FULL}
|
||||
local kernel_dir="${BINPKG}/image${rel_kernel_dir}"
|
||||
local image="${kernel_dir}/$(dist-kernel_get_image_path)"
|
||||
local uki="${image%/*}/uki.efi"
|
||||
if [[ -s ${uki} ]]; then
|
||||
# Keep the kernel image type we don't want out of install tree
|
||||
# Replace back with placeholder
|
||||
if use generic-uki; then
|
||||
> "${image}" || die
|
||||
else
|
||||
> "${uki}" || die
|
||||
fi
|
||||
fi
|
||||
|
||||
# Overwrite the identifier in the prebuilt package
|
||||
echo "${CATEGORY}/${PF}:${SLOT}" > "${kernel_dir}/dist-kernel" || die
|
||||
|
||||
mv "${BINPKG}"/image/{lib,usr} "${ED}"/ || die
|
||||
|
||||
# FIXME: requires proper mount-boot
|
||||
if [[ -d ${BINPKG}/image/boot/dtbs ]]; then
|
||||
mv "${BINPKG}"/image/boot "${ED}"/ || die
|
||||
fi
|
||||
|
||||
# strip out-of-source build stuffs from modprep
|
||||
# and then copy built files
|
||||
find modprep -type f '(' \
|
||||
-name Makefile -o \
|
||||
-name '*.[ao]' -o \
|
||||
'(' -name '.*' -a -not -name '.config' ')' \
|
||||
')' -delete || die
|
||||
rm modprep/source || die
|
||||
cp -p -R modprep/. "${ED}${rel_kernel_dir}"/ || die
|
||||
|
||||
# Update timestamps on all modules to ensure cleanup works correctly
|
||||
# when switching USE=modules-compress.
|
||||
find "${ED}/lib" -name '*.ko' -exec touch {} + || die
|
||||
|
||||
# Modules were already stripped before signing
|
||||
dostrip -x /lib/modules
|
||||
kernel-install_compress_modules
|
||||
|
||||
# Mirror the logic from kernel-build_src_install, for architectures
|
||||
# where USE=debug is used.
|
||||
if use ppc64; then
|
||||
dostrip -x "${rel_kernel_dir}/$(dist-kernel_get_image_path)"
|
||||
elif use debug && { use amd64 || use arm64; }; then
|
||||
dostrip -x "${rel_kernel_dir}/vmlinux"
|
||||
dostrip -x "${rel_kernel_dir}/vmlinux.ctfa"
|
||||
fi
|
||||
}
|
||||
@@ -1,237 +0,0 @@
|
||||
# Copyright 2020-2025 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
KERNEL_IUSE_GENERIC_UKI=1
|
||||
KERNEL_IUSE_MODULES_SIGN=1
|
||||
|
||||
inherit kernel-install toolchain-funcs unpacker verify-sig
|
||||
|
||||
BASE_P=linux-${PV%.*}
|
||||
PATCH_PV=${PV%_p*}
|
||||
PATCHSET=linux-gentoo-patches-6.16.9_p1
|
||||
BINPKG=${P/-bin}-1
|
||||
SHA256SUM_DATE=20250925
|
||||
|
||||
DESCRIPTION="Pre-built Linux kernel with Gentoo patches"
|
||||
HOMEPAGE="
|
||||
https://wiki.gentoo.org/wiki/Project:Distribution_Kernel
|
||||
https://www.kernel.org/
|
||||
"
|
||||
SRC_URI+="
|
||||
https://cdn.kernel.org/pub/linux/kernel/v$(ver_cut 1).x/${BASE_P}.tar.xz
|
||||
https://cdn.kernel.org/pub/linux/kernel/v$(ver_cut 1).x/patch-${PATCH_PV}.xz
|
||||
https://dev.gentoo.org/~mgorny/dist/linux/${PATCHSET}.tar.xz
|
||||
verify-sig? (
|
||||
https://cdn.kernel.org/pub/linux/kernel/v$(ver_cut 1).x/sha256sums.asc
|
||||
-> linux-$(ver_cut 1).x-sha256sums-${SHA256SUM_DATE}.asc
|
||||
)
|
||||
amd64? (
|
||||
https://dev.gentoo.org/~mgorny/binpkg/amd64/kernel/sys-kernel/gentoo-kernel/${BINPKG}.gpkg.tar
|
||||
-> ${BINPKG}.amd64.gpkg.tar
|
||||
)
|
||||
arm64? (
|
||||
https://dev.gentoo.org/~mgorny/binpkg/arm64/kernel/sys-kernel/gentoo-kernel/${BINPKG}.gpkg.tar
|
||||
-> ${BINPKG}.arm64.gpkg.tar
|
||||
)
|
||||
ppc64? (
|
||||
https://dev.gentoo.org/~mgorny/binpkg/ppc64le/kernel/sys-kernel/gentoo-kernel/${BINPKG}.gpkg.tar
|
||||
-> ${BINPKG}.ppc64le.gpkg.tar
|
||||
)
|
||||
x86? (
|
||||
https://dev.gentoo.org/~mgorny/binpkg/x86/kernel/sys-kernel/gentoo-kernel/${BINPKG}.gpkg.tar
|
||||
-> ${BINPKG}.x86.gpkg.tar
|
||||
)
|
||||
"
|
||||
S=${WORKDIR}
|
||||
|
||||
KEYWORDS="~amd64 ~arm64 ~ppc64 ~x86"
|
||||
IUSE="debug"
|
||||
|
||||
RDEPEND="
|
||||
!sys-kernel/gentoo-kernel:${SLOT}
|
||||
"
|
||||
PDEPEND="
|
||||
>=virtual/dist-kernel-${PV}
|
||||
"
|
||||
BDEPEND="
|
||||
app-alternatives/bc
|
||||
app-alternatives/lex
|
||||
dev-util/pahole
|
||||
virtual/libelf
|
||||
app-alternatives/yacc
|
||||
amd64? ( app-crypt/sbsigntools )
|
||||
arm64? ( app-crypt/sbsigntools )
|
||||
verify-sig? ( >=sec-keys/openpgp-keys-kernel-20250702 )
|
||||
"
|
||||
|
||||
KV_LOCALVERSION='-gentoo-dist'
|
||||
KV_FULL=${PV/_p/-p}${KV_LOCALVERSION}
|
||||
|
||||
QA_PREBUILT='*'
|
||||
|
||||
VERIFY_SIG_OPENPGP_KEY_PATH=/usr/share/openpgp-keys/kernel.org.asc
|
||||
|
||||
src_unpack() {
|
||||
if use verify-sig; then
|
||||
cd "${DISTDIR}" || die
|
||||
verify-sig_verify_signed_checksums \
|
||||
"linux-$(ver_cut 1).x-sha256sums-${SHA256SUM_DATE}.asc" \
|
||||
sha256 "${BASE_P}.tar.xz patch-${PATCH_PV}.xz"
|
||||
cd "${WORKDIR}" || die
|
||||
fi
|
||||
|
||||
unpacker
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
local patch
|
||||
cd "${BASE_P}" || die
|
||||
eapply "${WORKDIR}/patch-${PATCH_PV}"
|
||||
for patch in "${WORKDIR}/${PATCHSET}"/*.patch; do
|
||||
eapply "${patch}"
|
||||
# non-experimental patches always finish with Gentoo Kconfig
|
||||
# we built -bins without them
|
||||
if [[ ${patch} == *Add-Gentoo-Linux-support-config-settings* ]]
|
||||
then
|
||||
break
|
||||
fi
|
||||
done
|
||||
|
||||
default
|
||||
|
||||
# add Gentoo patchset version
|
||||
local extraversion=${PV#${PATCH_PV}}
|
||||
sed -i -e "s:^\(EXTRAVERSION =\).*:\1 ${extraversion/_/-}:" Makefile || die
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
# force ld.bfd if we can find it easily
|
||||
local HOSTLD="$(tc-getBUILD_LD)"
|
||||
if type -P "${HOSTLD}.bfd" &>/dev/null; then
|
||||
HOSTLD+=.bfd
|
||||
fi
|
||||
local LD="$(tc-getLD)"
|
||||
if type -P "${LD}.bfd" &>/dev/null; then
|
||||
LD+=.bfd
|
||||
fi
|
||||
tc-export_build_env
|
||||
local makeargs=(
|
||||
V=1
|
||||
WERROR=0
|
||||
|
||||
HOSTCC="$(tc-getBUILD_CC)"
|
||||
HOSTCXX="$(tc-getBUILD_CXX)"
|
||||
HOSTLD="${HOSTLD}"
|
||||
HOSTAR="$(tc-getBUILD_AR)"
|
||||
HOSTCFLAGS="${BUILD_CFLAGS}"
|
||||
HOSTLDFLAGS="${BUILD_LDFLAGS}"
|
||||
|
||||
CROSS_COMPILE=${CHOST}-
|
||||
AS="$(tc-getAS)"
|
||||
CC="$(tc-getCC)"
|
||||
LD="${LD}"
|
||||
AR="$(tc-getAR)"
|
||||
NM="$(tc-getNM)"
|
||||
STRIP="$(tc-getSTRIP)"
|
||||
OBJCOPY="$(tc-getOBJCOPY)"
|
||||
OBJDUMP="$(tc-getOBJDUMP)"
|
||||
READELF="$(tc-getREADELF)"
|
||||
|
||||
# we need to pass it to override colliding Gentoo envvar
|
||||
ARCH="$(tc-arch-kernel)"
|
||||
|
||||
O="${WORKDIR}"/modprep
|
||||
)
|
||||
|
||||
local kernel_dir="${BINPKG}/image/usr/src/linux-${KV_FULL}"
|
||||
|
||||
# If this is set it will have an effect on the name of the output
|
||||
# image. Set this variable to track this setting.
|
||||
if grep -q "CONFIG_EFI_ZBOOT=y" "${kernel_dir}/.config"; then
|
||||
KERNEL_EFI_ZBOOT=1
|
||||
elif use arm64 && use generic-uki; then
|
||||
die "USE=generic-uki requires a CONFIG_EFI_ZBOOT enabled build"
|
||||
fi
|
||||
|
||||
local image="${kernel_dir}/$(dist-kernel_get_image_path)"
|
||||
local uki="${image%/*}/uki.efi"
|
||||
|
||||
# Override user variable with the cert used during build
|
||||
openssl x509 \
|
||||
-inform DER -in "${kernel_dir}/certs/signing_key.x509" \
|
||||
-outform PEM -out "${T}/cert.pem" ||
|
||||
die "Failed to convert pcrpkey to PEM format"
|
||||
export SECUREBOOT_SIGN_CERT=${T}/cert.pem
|
||||
|
||||
if [[ -s ${uki} ]]; then
|
||||
# We need to extract the plain image for the test phase
|
||||
# and USE=-generic-uki.
|
||||
kernel-install_extract_from_uki linux "${uki}" "${image}"
|
||||
fi
|
||||
|
||||
mkdir modprep || die
|
||||
cp "${kernel_dir}/.config" modprep/ || die
|
||||
emake -C "${BASE_P}" "${makeargs[@]}" modules_prepare
|
||||
}
|
||||
|
||||
src_test() {
|
||||
local kernel_dir="${BINPKG}/image/usr/src/linux-${KV_FULL}"
|
||||
kernel-install_test "${KV_FULL}" \
|
||||
"${WORKDIR}/${kernel_dir}/$(dist-kernel_get_image_path)" \
|
||||
"${BINPKG}/image/lib/modules/${KV_FULL}"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
local rel_kernel_dir=/usr/src/linux-${KV_FULL}
|
||||
local kernel_dir="${BINPKG}/image${rel_kernel_dir}"
|
||||
local image="${kernel_dir}/$(dist-kernel_get_image_path)"
|
||||
local uki="${image%/*}/uki.efi"
|
||||
if [[ -s ${uki} ]]; then
|
||||
# Keep the kernel image type we don't want out of install tree
|
||||
# Replace back with placeholder
|
||||
if use generic-uki; then
|
||||
> "${image}" || die
|
||||
else
|
||||
> "${uki}" || die
|
||||
fi
|
||||
fi
|
||||
|
||||
# Overwrite the identifier in the prebuilt package
|
||||
echo "${CATEGORY}/${PF}:${SLOT}" > "${kernel_dir}/dist-kernel" || die
|
||||
|
||||
mv "${BINPKG}"/image/{lib,usr} "${ED}"/ || die
|
||||
|
||||
# FIXME: requires proper mount-boot
|
||||
if [[ -d ${BINPKG}/image/boot/dtbs ]]; then
|
||||
mv "${BINPKG}"/image/boot "${ED}"/ || die
|
||||
fi
|
||||
|
||||
# strip out-of-source build stuffs from modprep
|
||||
# and then copy built files
|
||||
find modprep -type f '(' \
|
||||
-name Makefile -o \
|
||||
-name '*.[ao]' -o \
|
||||
'(' -name '.*' -a -not -name '.config' ')' \
|
||||
')' -delete || die
|
||||
rm modprep/source || die
|
||||
cp -p -R modprep/. "${ED}${rel_kernel_dir}"/ || die
|
||||
|
||||
# Update timestamps on all modules to ensure cleanup works correctly
|
||||
# when switching USE=modules-compress.
|
||||
find "${ED}/lib" -name '*.ko' -exec touch {} + || die
|
||||
|
||||
# Modules were already stripped before signing
|
||||
dostrip -x /lib/modules
|
||||
kernel-install_compress_modules
|
||||
|
||||
# Mirror the logic from kernel-build_src_install, for architectures
|
||||
# where USE=debug is used.
|
||||
if use ppc64; then
|
||||
dostrip -x "${rel_kernel_dir}/$(dist-kernel_get_image_path)"
|
||||
elif use debug && { use amd64 || use arm64; }; then
|
||||
dostrip -x "${rel_kernel_dir}/vmlinux"
|
||||
dostrip -x "${rel_kernel_dir}/vmlinux.ctfa"
|
||||
fi
|
||||
}
|
||||
@@ -1,237 +0,0 @@
|
||||
# Copyright 2020-2025 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
KERNEL_IUSE_GENERIC_UKI=1
|
||||
KERNEL_IUSE_MODULES_SIGN=1
|
||||
|
||||
inherit kernel-install toolchain-funcs unpacker verify-sig
|
||||
|
||||
BASE_P=linux-${PV%.*}
|
||||
PATCH_PV=${PV%_p*}
|
||||
PATCHSET=linux-gentoo-patches-6.17.1
|
||||
BINPKG=${P/-bin}-1
|
||||
SHA256SUM_DATE=20251006
|
||||
|
||||
DESCRIPTION="Pre-built Linux kernel with Gentoo patches"
|
||||
HOMEPAGE="
|
||||
https://wiki.gentoo.org/wiki/Project:Distribution_Kernel
|
||||
https://www.kernel.org/
|
||||
"
|
||||
SRC_URI+="
|
||||
https://cdn.kernel.org/pub/linux/kernel/v$(ver_cut 1).x/${BASE_P}.tar.xz
|
||||
https://cdn.kernel.org/pub/linux/kernel/v$(ver_cut 1).x/patch-${PATCH_PV}.xz
|
||||
https://dev.gentoo.org/~mgorny/dist/linux/${PATCHSET}.tar.xz
|
||||
verify-sig? (
|
||||
https://cdn.kernel.org/pub/linux/kernel/v$(ver_cut 1).x/sha256sums.asc
|
||||
-> linux-$(ver_cut 1).x-sha256sums-${SHA256SUM_DATE}.asc
|
||||
)
|
||||
amd64? (
|
||||
https://dev.gentoo.org/~mgorny/binpkg/amd64/kernel/sys-kernel/gentoo-kernel/${BINPKG}.gpkg.tar
|
||||
-> ${BINPKG}.amd64.gpkg.tar
|
||||
)
|
||||
arm64? (
|
||||
https://dev.gentoo.org/~mgorny/binpkg/arm64/kernel/sys-kernel/gentoo-kernel/${BINPKG}.gpkg.tar
|
||||
-> ${BINPKG}.arm64.gpkg.tar
|
||||
)
|
||||
ppc64? (
|
||||
https://dev.gentoo.org/~mgorny/binpkg/ppc64le/kernel/sys-kernel/gentoo-kernel/${BINPKG}.gpkg.tar
|
||||
-> ${BINPKG}.ppc64le.gpkg.tar
|
||||
)
|
||||
x86? (
|
||||
https://dev.gentoo.org/~mgorny/binpkg/x86/kernel/sys-kernel/gentoo-kernel/${BINPKG}.gpkg.tar
|
||||
-> ${BINPKG}.x86.gpkg.tar
|
||||
)
|
||||
"
|
||||
S=${WORKDIR}
|
||||
|
||||
KEYWORDS="~amd64 ~arm64 ~ppc64 ~x86"
|
||||
IUSE="debug"
|
||||
|
||||
RDEPEND="
|
||||
!sys-kernel/gentoo-kernel:${SLOT}
|
||||
"
|
||||
PDEPEND="
|
||||
>=virtual/dist-kernel-${PATCH_PV}
|
||||
"
|
||||
BDEPEND="
|
||||
app-alternatives/bc
|
||||
app-alternatives/lex
|
||||
dev-util/pahole
|
||||
virtual/libelf
|
||||
app-alternatives/yacc
|
||||
amd64? ( app-crypt/sbsigntools )
|
||||
arm64? ( app-crypt/sbsigntools )
|
||||
verify-sig? ( >=sec-keys/openpgp-keys-kernel-20250702 )
|
||||
"
|
||||
|
||||
KV_LOCALVERSION='-gentoo-dist'
|
||||
KV_FULL=${PV/_p/-p}${KV_LOCALVERSION}
|
||||
|
||||
QA_PREBUILT='*'
|
||||
|
||||
VERIFY_SIG_OPENPGP_KEY_PATH=/usr/share/openpgp-keys/kernel.org.asc
|
||||
|
||||
src_unpack() {
|
||||
if use verify-sig; then
|
||||
cd "${DISTDIR}" || die
|
||||
verify-sig_verify_signed_checksums \
|
||||
"linux-$(ver_cut 1).x-sha256sums-${SHA256SUM_DATE}.asc" \
|
||||
sha256 "${BASE_P}.tar.xz patch-${PATCH_PV}.xz"
|
||||
cd "${WORKDIR}" || die
|
||||
fi
|
||||
|
||||
unpacker
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
local patch
|
||||
cd "${BASE_P}" || die
|
||||
eapply "${WORKDIR}/patch-${PATCH_PV}"
|
||||
for patch in "${WORKDIR}/${PATCHSET}"/*.patch; do
|
||||
eapply "${patch}"
|
||||
# non-experimental patches always finish with Gentoo Kconfig
|
||||
# we built -bins without them
|
||||
if [[ ${patch} == *Add-Gentoo-Linux-support-config-settings* ]]
|
||||
then
|
||||
break
|
||||
fi
|
||||
done
|
||||
|
||||
default
|
||||
|
||||
# add Gentoo patchset version
|
||||
local extraversion=${PV#${PATCH_PV}}
|
||||
sed -i -e "s:^\(EXTRAVERSION =\).*:\1 ${extraversion/_/-}:" Makefile || die
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
# force ld.bfd if we can find it easily
|
||||
local HOSTLD="$(tc-getBUILD_LD)"
|
||||
if type -P "${HOSTLD}.bfd" &>/dev/null; then
|
||||
HOSTLD+=.bfd
|
||||
fi
|
||||
local LD="$(tc-getLD)"
|
||||
if type -P "${LD}.bfd" &>/dev/null; then
|
||||
LD+=.bfd
|
||||
fi
|
||||
tc-export_build_env
|
||||
local makeargs=(
|
||||
V=1
|
||||
WERROR=0
|
||||
|
||||
HOSTCC="$(tc-getBUILD_CC)"
|
||||
HOSTCXX="$(tc-getBUILD_CXX)"
|
||||
HOSTLD="${HOSTLD}"
|
||||
HOSTAR="$(tc-getBUILD_AR)"
|
||||
HOSTCFLAGS="${BUILD_CFLAGS}"
|
||||
HOSTLDFLAGS="${BUILD_LDFLAGS}"
|
||||
|
||||
CROSS_COMPILE=${CHOST}-
|
||||
AS="$(tc-getAS)"
|
||||
CC="$(tc-getCC)"
|
||||
LD="${LD}"
|
||||
AR="$(tc-getAR)"
|
||||
NM="$(tc-getNM)"
|
||||
STRIP="$(tc-getSTRIP)"
|
||||
OBJCOPY="$(tc-getOBJCOPY)"
|
||||
OBJDUMP="$(tc-getOBJDUMP)"
|
||||
READELF="$(tc-getREADELF)"
|
||||
|
||||
# we need to pass it to override colliding Gentoo envvar
|
||||
ARCH="$(tc-arch-kernel)"
|
||||
|
||||
O="${WORKDIR}"/modprep
|
||||
)
|
||||
|
||||
local kernel_dir="${BINPKG}/image/usr/src/linux-${KV_FULL}"
|
||||
|
||||
# If this is set it will have an effect on the name of the output
|
||||
# image. Set this variable to track this setting.
|
||||
if grep -q "CONFIG_EFI_ZBOOT=y" "${kernel_dir}/.config"; then
|
||||
KERNEL_EFI_ZBOOT=1
|
||||
elif use arm64 && use generic-uki; then
|
||||
die "USE=generic-uki requires a CONFIG_EFI_ZBOOT enabled build"
|
||||
fi
|
||||
|
||||
local image="${kernel_dir}/$(dist-kernel_get_image_path)"
|
||||
local uki="${image%/*}/uki.efi"
|
||||
|
||||
# Override user variable with the cert used during build
|
||||
openssl x509 \
|
||||
-inform DER -in "${kernel_dir}/certs/signing_key.x509" \
|
||||
-outform PEM -out "${T}/cert.pem" ||
|
||||
die "Failed to convert pcrpkey to PEM format"
|
||||
export SECUREBOOT_SIGN_CERT=${T}/cert.pem
|
||||
|
||||
if [[ -s ${uki} ]]; then
|
||||
# We need to extract the plain image for the test phase
|
||||
# and USE=-generic-uki.
|
||||
kernel-install_extract_from_uki linux "${uki}" "${image}"
|
||||
fi
|
||||
|
||||
mkdir modprep || die
|
||||
cp "${kernel_dir}/.config" modprep/ || die
|
||||
emake -C "${BASE_P}" "${makeargs[@]}" modules_prepare
|
||||
}
|
||||
|
||||
src_test() {
|
||||
local kernel_dir="${BINPKG}/image/usr/src/linux-${KV_FULL}"
|
||||
kernel-install_test "${KV_FULL}" \
|
||||
"${WORKDIR}/${kernel_dir}/$(dist-kernel_get_image_path)" \
|
||||
"${BINPKG}/image/lib/modules/${KV_FULL}"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
local rel_kernel_dir=/usr/src/linux-${KV_FULL}
|
||||
local kernel_dir="${BINPKG}/image${rel_kernel_dir}"
|
||||
local image="${kernel_dir}/$(dist-kernel_get_image_path)"
|
||||
local uki="${image%/*}/uki.efi"
|
||||
if [[ -s ${uki} ]]; then
|
||||
# Keep the kernel image type we don't want out of install tree
|
||||
# Replace back with placeholder
|
||||
if use generic-uki; then
|
||||
> "${image}" || die
|
||||
else
|
||||
> "${uki}" || die
|
||||
fi
|
||||
fi
|
||||
|
||||
# Overwrite the identifier in the prebuilt package
|
||||
echo "${CATEGORY}/${PF}:${SLOT}" > "${kernel_dir}/dist-kernel" || die
|
||||
|
||||
mv "${BINPKG}"/image/{lib,usr} "${ED}"/ || die
|
||||
|
||||
# FIXME: requires proper mount-boot
|
||||
if [[ -d ${BINPKG}/image/boot/dtbs ]]; then
|
||||
mv "${BINPKG}"/image/boot "${ED}"/ || die
|
||||
fi
|
||||
|
||||
# strip out-of-source build stuffs from modprep
|
||||
# and then copy built files
|
||||
find modprep -type f '(' \
|
||||
-name Makefile -o \
|
||||
-name '*.[ao]' -o \
|
||||
'(' -name '.*' -a -not -name '.config' ')' \
|
||||
')' -delete || die
|
||||
rm modprep/source || die
|
||||
cp -p -R modprep/. "${ED}${rel_kernel_dir}"/ || die
|
||||
|
||||
# Update timestamps on all modules to ensure cleanup works correctly
|
||||
# when switching USE=modules-compress.
|
||||
find "${ED}/lib" -name '*.ko' -exec touch {} + || die
|
||||
|
||||
# Modules were already stripped before signing
|
||||
dostrip -x /lib/modules
|
||||
kernel-install_compress_modules
|
||||
|
||||
# Mirror the logic from kernel-build_src_install, for architectures
|
||||
# where USE=debug is used.
|
||||
if use ppc64; then
|
||||
dostrip -x "${rel_kernel_dir}/$(dist-kernel_get_image_path)"
|
||||
elif use debug && { use amd64 || use arm64; }; then
|
||||
dostrip -x "${rel_kernel_dir}/vmlinux"
|
||||
dostrip -x "${rel_kernel_dir}/vmlinux.ctfa"
|
||||
fi
|
||||
}
|
||||
@@ -1,237 +0,0 @@
|
||||
# Copyright 2020-2025 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
KERNEL_IUSE_GENERIC_UKI=1
|
||||
KERNEL_IUSE_MODULES_SIGN=1
|
||||
|
||||
inherit kernel-install toolchain-funcs unpacker verify-sig
|
||||
|
||||
BASE_P=linux-${PV%.*}
|
||||
PATCH_PV=${PV%_p*}
|
||||
PATCHSET=linux-gentoo-patches-6.17.2
|
||||
BINPKG=${P/-bin}-1
|
||||
SHA256SUM_DATE=20251015
|
||||
|
||||
DESCRIPTION="Pre-built Linux kernel with Gentoo patches"
|
||||
HOMEPAGE="
|
||||
https://wiki.gentoo.org/wiki/Project:Distribution_Kernel
|
||||
https://www.kernel.org/
|
||||
"
|
||||
SRC_URI+="
|
||||
https://cdn.kernel.org/pub/linux/kernel/v$(ver_cut 1).x/${BASE_P}.tar.xz
|
||||
https://cdn.kernel.org/pub/linux/kernel/v$(ver_cut 1).x/patch-${PATCH_PV}.xz
|
||||
https://dev.gentoo.org/~mgorny/dist/linux/${PATCHSET}.tar.xz
|
||||
verify-sig? (
|
||||
https://cdn.kernel.org/pub/linux/kernel/v$(ver_cut 1).x/sha256sums.asc
|
||||
-> linux-$(ver_cut 1).x-sha256sums-${SHA256SUM_DATE}.asc
|
||||
)
|
||||
amd64? (
|
||||
https://dev.gentoo.org/~mgorny/binpkg/amd64/kernel/sys-kernel/gentoo-kernel/${BINPKG}.gpkg.tar
|
||||
-> ${BINPKG}.amd64.gpkg.tar
|
||||
)
|
||||
arm64? (
|
||||
https://dev.gentoo.org/~mgorny/binpkg/arm64/kernel/sys-kernel/gentoo-kernel/${BINPKG}.gpkg.tar
|
||||
-> ${BINPKG}.arm64.gpkg.tar
|
||||
)
|
||||
ppc64? (
|
||||
https://dev.gentoo.org/~mgorny/binpkg/ppc64le/kernel/sys-kernel/gentoo-kernel/${BINPKG}.gpkg.tar
|
||||
-> ${BINPKG}.ppc64le.gpkg.tar
|
||||
)
|
||||
x86? (
|
||||
https://dev.gentoo.org/~mgorny/binpkg/x86/kernel/sys-kernel/gentoo-kernel/${BINPKG}.gpkg.tar
|
||||
-> ${BINPKG}.x86.gpkg.tar
|
||||
)
|
||||
"
|
||||
S=${WORKDIR}
|
||||
|
||||
KEYWORDS="~amd64 ~arm64 ~ppc64 ~x86"
|
||||
IUSE="debug"
|
||||
|
||||
RDEPEND="
|
||||
!sys-kernel/gentoo-kernel:${SLOT}
|
||||
"
|
||||
PDEPEND="
|
||||
>=virtual/dist-kernel-${PATCH_PV}
|
||||
"
|
||||
BDEPEND="
|
||||
app-alternatives/bc
|
||||
app-alternatives/lex
|
||||
dev-util/pahole
|
||||
virtual/libelf
|
||||
app-alternatives/yacc
|
||||
amd64? ( app-crypt/sbsigntools )
|
||||
arm64? ( app-crypt/sbsigntools )
|
||||
verify-sig? ( >=sec-keys/openpgp-keys-kernel-20250702 )
|
||||
"
|
||||
|
||||
KV_LOCALVERSION='-gentoo-dist'
|
||||
KV_FULL=${PV/_p/-p}${KV_LOCALVERSION}
|
||||
|
||||
QA_PREBUILT='*'
|
||||
|
||||
VERIFY_SIG_OPENPGP_KEY_PATH=/usr/share/openpgp-keys/kernel.org.asc
|
||||
|
||||
src_unpack() {
|
||||
if use verify-sig; then
|
||||
cd "${DISTDIR}" || die
|
||||
verify-sig_verify_signed_checksums \
|
||||
"linux-$(ver_cut 1).x-sha256sums-${SHA256SUM_DATE}.asc" \
|
||||
sha256 "${BASE_P}.tar.xz patch-${PATCH_PV}.xz"
|
||||
cd "${WORKDIR}" || die
|
||||
fi
|
||||
|
||||
unpacker
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
local patch
|
||||
cd "${BASE_P}" || die
|
||||
eapply "${WORKDIR}/patch-${PATCH_PV}"
|
||||
for patch in "${WORKDIR}/${PATCHSET}"/*.patch; do
|
||||
eapply "${patch}"
|
||||
# non-experimental patches always finish with Gentoo Kconfig
|
||||
# we built -bins without them
|
||||
if [[ ${patch} == *Add-Gentoo-Linux-support-config-settings* ]]
|
||||
then
|
||||
break
|
||||
fi
|
||||
done
|
||||
|
||||
default
|
||||
|
||||
# add Gentoo patchset version
|
||||
local extraversion=${PV#${PATCH_PV}}
|
||||
sed -i -e "s:^\(EXTRAVERSION =\).*:\1 ${extraversion/_/-}:" Makefile || die
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
# force ld.bfd if we can find it easily
|
||||
local HOSTLD="$(tc-getBUILD_LD)"
|
||||
if type -P "${HOSTLD}.bfd" &>/dev/null; then
|
||||
HOSTLD+=.bfd
|
||||
fi
|
||||
local LD="$(tc-getLD)"
|
||||
if type -P "${LD}.bfd" &>/dev/null; then
|
||||
LD+=.bfd
|
||||
fi
|
||||
tc-export_build_env
|
||||
local makeargs=(
|
||||
V=1
|
||||
WERROR=0
|
||||
|
||||
HOSTCC="$(tc-getBUILD_CC)"
|
||||
HOSTCXX="$(tc-getBUILD_CXX)"
|
||||
HOSTLD="${HOSTLD}"
|
||||
HOSTAR="$(tc-getBUILD_AR)"
|
||||
HOSTCFLAGS="${BUILD_CFLAGS}"
|
||||
HOSTLDFLAGS="${BUILD_LDFLAGS}"
|
||||
|
||||
CROSS_COMPILE=${CHOST}-
|
||||
AS="$(tc-getAS)"
|
||||
CC="$(tc-getCC)"
|
||||
LD="${LD}"
|
||||
AR="$(tc-getAR)"
|
||||
NM="$(tc-getNM)"
|
||||
STRIP="$(tc-getSTRIP)"
|
||||
OBJCOPY="$(tc-getOBJCOPY)"
|
||||
OBJDUMP="$(tc-getOBJDUMP)"
|
||||
READELF="$(tc-getREADELF)"
|
||||
|
||||
# we need to pass it to override colliding Gentoo envvar
|
||||
ARCH="$(tc-arch-kernel)"
|
||||
|
||||
O="${WORKDIR}"/modprep
|
||||
)
|
||||
|
||||
local kernel_dir="${BINPKG}/image/usr/src/linux-${KV_FULL}"
|
||||
|
||||
# If this is set it will have an effect on the name of the output
|
||||
# image. Set this variable to track this setting.
|
||||
if grep -q "CONFIG_EFI_ZBOOT=y" "${kernel_dir}/.config"; then
|
||||
KERNEL_EFI_ZBOOT=1
|
||||
elif use arm64 && use generic-uki; then
|
||||
die "USE=generic-uki requires a CONFIG_EFI_ZBOOT enabled build"
|
||||
fi
|
||||
|
||||
local image="${kernel_dir}/$(dist-kernel_get_image_path)"
|
||||
local uki="${image%/*}/uki.efi"
|
||||
|
||||
# Override user variable with the cert used during build
|
||||
openssl x509 \
|
||||
-inform DER -in "${kernel_dir}/certs/signing_key.x509" \
|
||||
-outform PEM -out "${T}/cert.pem" ||
|
||||
die "Failed to convert pcrpkey to PEM format"
|
||||
export SECUREBOOT_SIGN_CERT=${T}/cert.pem
|
||||
|
||||
if [[ -s ${uki} ]]; then
|
||||
# We need to extract the plain image for the test phase
|
||||
# and USE=-generic-uki.
|
||||
kernel-install_extract_from_uki linux "${uki}" "${image}"
|
||||
fi
|
||||
|
||||
mkdir modprep || die
|
||||
cp "${kernel_dir}/.config" modprep/ || die
|
||||
emake -C "${BASE_P}" "${makeargs[@]}" modules_prepare
|
||||
}
|
||||
|
||||
src_test() {
|
||||
local kernel_dir="${BINPKG}/image/usr/src/linux-${KV_FULL}"
|
||||
kernel-install_test "${KV_FULL}" \
|
||||
"${WORKDIR}/${kernel_dir}/$(dist-kernel_get_image_path)" \
|
||||
"${BINPKG}/image/lib/modules/${KV_FULL}"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
local rel_kernel_dir=/usr/src/linux-${KV_FULL}
|
||||
local kernel_dir="${BINPKG}/image${rel_kernel_dir}"
|
||||
local image="${kernel_dir}/$(dist-kernel_get_image_path)"
|
||||
local uki="${image%/*}/uki.efi"
|
||||
if [[ -s ${uki} ]]; then
|
||||
# Keep the kernel image type we don't want out of install tree
|
||||
# Replace back with placeholder
|
||||
if use generic-uki; then
|
||||
> "${image}" || die
|
||||
else
|
||||
> "${uki}" || die
|
||||
fi
|
||||
fi
|
||||
|
||||
# Overwrite the identifier in the prebuilt package
|
||||
echo "${CATEGORY}/${PF}:${SLOT}" > "${kernel_dir}/dist-kernel" || die
|
||||
|
||||
mv "${BINPKG}"/image/{lib,usr} "${ED}"/ || die
|
||||
|
||||
# FIXME: requires proper mount-boot
|
||||
if [[ -d ${BINPKG}/image/boot/dtbs ]]; then
|
||||
mv "${BINPKG}"/image/boot "${ED}"/ || die
|
||||
fi
|
||||
|
||||
# strip out-of-source build stuffs from modprep
|
||||
# and then copy built files
|
||||
find modprep -type f '(' \
|
||||
-name Makefile -o \
|
||||
-name '*.[ao]' -o \
|
||||
'(' -name '.*' -a -not -name '.config' ')' \
|
||||
')' -delete || die
|
||||
rm modprep/source || die
|
||||
cp -p -R modprep/. "${ED}${rel_kernel_dir}"/ || die
|
||||
|
||||
# Update timestamps on all modules to ensure cleanup works correctly
|
||||
# when switching USE=modules-compress.
|
||||
find "${ED}/lib" -name '*.ko' -exec touch {} + || die
|
||||
|
||||
# Modules were already stripped before signing
|
||||
dostrip -x /lib/modules
|
||||
kernel-install_compress_modules
|
||||
|
||||
# Mirror the logic from kernel-build_src_install, for architectures
|
||||
# where USE=debug is used.
|
||||
if use ppc64; then
|
||||
dostrip -x "${rel_kernel_dir}/$(dist-kernel_get_image_path)"
|
||||
elif use debug && { use amd64 || use arm64; }; then
|
||||
dostrip -x "${rel_kernel_dir}/vmlinux"
|
||||
dostrip -x "${rel_kernel_dir}/vmlinux.ctfa"
|
||||
fi
|
||||
}
|
||||
@@ -12,7 +12,7 @@ BASE_P=linux-${PV%.*}
|
||||
PATCH_PV=${PV%_p*}
|
||||
PATCHSET=linux-gentoo-patches-6.17.2
|
||||
BINPKG=${P/-bin}-1
|
||||
SHA256SUM_DATE=20251012
|
||||
SHA256SUM_DATE=20251023
|
||||
|
||||
DESCRIPTION="Pre-built Linux kernel with Gentoo patches"
|
||||
HOMEPAGE="
|
||||
@@ -1,232 +0,0 @@
|
||||
# Copyright 2020-2025 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
KERNEL_IUSE_GENERIC_UKI=1
|
||||
KERNEL_IUSE_MODULES_SIGN=1
|
||||
|
||||
inherit kernel-install toolchain-funcs unpacker verify-sig
|
||||
|
||||
MY_P=linux-${PV%.*}
|
||||
PATCHSET=linux-gentoo-patches-6.6.100
|
||||
BINPKG=${PF/-bin}-1
|
||||
SHA256SUM_DATE=20250801
|
||||
|
||||
DESCRIPTION="Pre-built Linux kernel with Gentoo patches"
|
||||
HOMEPAGE="
|
||||
https://wiki.gentoo.org/wiki/Project:Distribution_Kernel
|
||||
https://www.kernel.org/
|
||||
"
|
||||
SRC_URI+="
|
||||
https://cdn.kernel.org/pub/linux/kernel/v$(ver_cut 1).x/${MY_P}.tar.xz
|
||||
https://cdn.kernel.org/pub/linux/kernel/v$(ver_cut 1).x/patch-${PV}.xz
|
||||
https://dev.gentoo.org/~mgorny/dist/linux/${PATCHSET}.tar.xz
|
||||
verify-sig? (
|
||||
https://cdn.kernel.org/pub/linux/kernel/v$(ver_cut 1).x/sha256sums.asc
|
||||
-> linux-$(ver_cut 1).x-sha256sums-${SHA256SUM_DATE}.asc
|
||||
)
|
||||
amd64? (
|
||||
https://dev.gentoo.org/~mgorny/binpkg/amd64/kernel/sys-kernel/gentoo-kernel/${BINPKG}.gpkg.tar
|
||||
-> ${BINPKG}.amd64.gpkg.tar
|
||||
)
|
||||
arm64? (
|
||||
https://dev.gentoo.org/~mgorny/binpkg/arm64/kernel/sys-kernel/gentoo-kernel/${BINPKG}.gpkg.tar
|
||||
-> ${BINPKG}.arm64.gpkg.tar
|
||||
)
|
||||
ppc64? (
|
||||
https://dev.gentoo.org/~mgorny/binpkg/ppc64le/kernel/sys-kernel/gentoo-kernel/${BINPKG}.gpkg.tar
|
||||
-> ${BINPKG}.ppc64le.gpkg.tar
|
||||
)
|
||||
x86? (
|
||||
https://dev.gentoo.org/~mgorny/binpkg/x86/kernel/sys-kernel/gentoo-kernel/${BINPKG}.gpkg.tar
|
||||
-> ${BINPKG}.x86.gpkg.tar
|
||||
)
|
||||
"
|
||||
S=${WORKDIR}
|
||||
|
||||
KEYWORDS="amd64 arm64 ppc64 x86"
|
||||
IUSE="debug"
|
||||
|
||||
RDEPEND="
|
||||
!sys-kernel/gentoo-kernel:${SLOT}
|
||||
"
|
||||
PDEPEND="
|
||||
>=virtual/dist-kernel-${PV}
|
||||
"
|
||||
BDEPEND="
|
||||
app-alternatives/bc
|
||||
app-alternatives/lex
|
||||
dev-util/pahole
|
||||
virtual/libelf
|
||||
app-alternatives/yacc
|
||||
amd64? ( app-crypt/sbsigntools )
|
||||
arm64? ( app-crypt/sbsigntools )
|
||||
verify-sig? ( >=sec-keys/openpgp-keys-kernel-20250702 )
|
||||
"
|
||||
|
||||
KV_LOCALVERSION='-gentoo-dist'
|
||||
KPV=${PV}${KV_LOCALVERSION}
|
||||
|
||||
QA_PREBUILT='*'
|
||||
|
||||
VERIFY_SIG_OPENPGP_KEY_PATH=/usr/share/openpgp-keys/kernel.org.asc
|
||||
|
||||
src_unpack() {
|
||||
if use verify-sig; then
|
||||
cd "${DISTDIR}" || die
|
||||
verify-sig_verify_signed_checksums \
|
||||
"linux-$(ver_cut 1).x-sha256sums-${SHA256SUM_DATE}.asc" \
|
||||
sha256 "${MY_P}.tar.xz patch-${PV}.xz"
|
||||
cd "${WORKDIR}" || die
|
||||
fi
|
||||
|
||||
unpacker
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
local patch
|
||||
cd "${MY_P}" || die
|
||||
eapply "${WORKDIR}/patch-${PV}"
|
||||
for patch in "${WORKDIR}/${PATCHSET}"/*.patch; do
|
||||
eapply "${patch}"
|
||||
# non-experimental patches always finish with Gentoo Kconfig
|
||||
# we built -bins without them
|
||||
if [[ ${patch} == *Add-Gentoo-Linux-support-config-settings* ]]
|
||||
then
|
||||
break
|
||||
fi
|
||||
done
|
||||
|
||||
default
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
# force ld.bfd if we can find it easily
|
||||
local HOSTLD="$(tc-getBUILD_LD)"
|
||||
if type -P "${HOSTLD}.bfd" &>/dev/null; then
|
||||
HOSTLD+=.bfd
|
||||
fi
|
||||
local LD="$(tc-getLD)"
|
||||
if type -P "${LD}.bfd" &>/dev/null; then
|
||||
LD+=.bfd
|
||||
fi
|
||||
tc-export_build_env
|
||||
local makeargs=(
|
||||
V=1
|
||||
WERROR=0
|
||||
|
||||
HOSTCC="$(tc-getBUILD_CC)"
|
||||
HOSTCXX="$(tc-getBUILD_CXX)"
|
||||
HOSTLD="${HOSTLD}"
|
||||
HOSTAR="$(tc-getBUILD_AR)"
|
||||
HOSTCFLAGS="${BUILD_CFLAGS}"
|
||||
HOSTLDFLAGS="${BUILD_LDFLAGS}"
|
||||
|
||||
CROSS_COMPILE=${CHOST}-
|
||||
AS="$(tc-getAS)"
|
||||
CC="$(tc-getCC)"
|
||||
LD="${LD}"
|
||||
AR="$(tc-getAR)"
|
||||
NM="$(tc-getNM)"
|
||||
STRIP="$(tc-getSTRIP)"
|
||||
OBJCOPY="$(tc-getOBJCOPY)"
|
||||
OBJDUMP="$(tc-getOBJDUMP)"
|
||||
READELF="$(tc-getREADELF)"
|
||||
|
||||
# we need to pass it to override colliding Gentoo envvar
|
||||
ARCH="$(tc-arch-kernel)"
|
||||
|
||||
O="${WORKDIR}"/modprep
|
||||
)
|
||||
|
||||
local kernel_dir="${BINPKG}/image/usr/src/linux-${KPV}"
|
||||
|
||||
# If this is set it will have an effect on the name of the output
|
||||
# image. Set this variable to track this setting.
|
||||
if grep -q "CONFIG_EFI_ZBOOT=y" "${kernel_dir}/.config"; then
|
||||
KERNEL_EFI_ZBOOT=1
|
||||
elif use arm64 && use generic-uki; then
|
||||
die "USE=generic-uki requires a CONFIG_EFI_ZBOOT enabled build"
|
||||
fi
|
||||
|
||||
local image="${kernel_dir}/$(dist-kernel_get_image_path)"
|
||||
local uki="${image%/*}/uki.efi"
|
||||
|
||||
# Override user variable with the cert used during build
|
||||
openssl x509 \
|
||||
-inform DER -in "${kernel_dir}/certs/signing_key.x509" \
|
||||
-outform PEM -out "${T}/cert.pem" ||
|
||||
die "Failed to convert pcrpkey to PEM format"
|
||||
export SECUREBOOT_SIGN_CERT=${T}/cert.pem
|
||||
|
||||
if [[ -s ${uki} ]]; then
|
||||
# We need to extract the plain image for the test phase
|
||||
# and USE=-generic-uki.
|
||||
kernel-install_extract_from_uki linux "${uki}" "${image}"
|
||||
fi
|
||||
|
||||
mkdir modprep || die
|
||||
cp "${kernel_dir}/.config" modprep/ || die
|
||||
emake -C "${MY_P}" "${makeargs[@]}" modules_prepare
|
||||
}
|
||||
|
||||
src_test() {
|
||||
local kernel_dir="${BINPKG}/image/usr/src/linux-${KPV}"
|
||||
kernel-install_test "${KPV}" \
|
||||
"${WORKDIR}/${kernel_dir}/$(dist-kernel_get_image_path)" \
|
||||
"${BINPKG}/image/lib/modules/${KPV}"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
local rel_kernel_dir=/usr/src/linux-${KPV}
|
||||
local kernel_dir="${BINPKG}/image${rel_kernel_dir}"
|
||||
local image="${kernel_dir}/$(dist-kernel_get_image_path)"
|
||||
local uki="${image%/*}/uki.efi"
|
||||
if [[ -s ${uki} ]]; then
|
||||
# Keep the kernel image type we don't want out of install tree
|
||||
# Replace back with placeholder
|
||||
if use generic-uki; then
|
||||
> "${image}" || die
|
||||
else
|
||||
> "${uki}" || die
|
||||
fi
|
||||
fi
|
||||
|
||||
# Overwrite the identifier in the prebuilt package
|
||||
echo "${CATEGORY}/${PF}:${SLOT}" > "${kernel_dir}/dist-kernel" || die
|
||||
|
||||
mv "${BINPKG}"/image/{lib,usr} "${ED}"/ || die
|
||||
|
||||
# FIXME: requires proper mount-boot
|
||||
if [[ -d ${BINPKG}/image/boot/dtbs ]]; then
|
||||
mv "${BINPKG}"/image/boot "${ED}"/ || die
|
||||
fi
|
||||
|
||||
# strip out-of-source build stuffs from modprep
|
||||
# and then copy built files
|
||||
find modprep -type f '(' \
|
||||
-name Makefile -o \
|
||||
-name '*.[ao]' -o \
|
||||
'(' -name '.*' -a -not -name '.config' ')' \
|
||||
')' -delete || die
|
||||
rm modprep/source || die
|
||||
cp -p -R modprep/. "${ED}${rel_kernel_dir}"/ || die
|
||||
|
||||
# Update timestamps on all modules to ensure cleanup works correctly
|
||||
# when switching USE=modules-compress.
|
||||
find "${ED}/lib" -name '*.ko' -exec touch {} + || die
|
||||
|
||||
# Modules were already stripped before signing
|
||||
dostrip -x /lib/modules
|
||||
kernel-install_compress_modules
|
||||
|
||||
# Mirror the logic from kernel-build_src_install, for architectures
|
||||
# where USE=debug is used.
|
||||
if use ppc64; then
|
||||
dostrip -x "${rel_kernel_dir}/$(dist-kernel_get_image_path)"
|
||||
elif use debug && { use amd64 || use arm64; }; then
|
||||
dostrip -x "${rel_kernel_dir}/vmlinux"
|
||||
dostrip -x "${rel_kernel_dir}/vmlinux.ctfa"
|
||||
fi
|
||||
}
|
||||
@@ -1,237 +0,0 @@
|
||||
# Copyright 2020-2025 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
KERNEL_IUSE_GENERIC_UKI=1
|
||||
KERNEL_IUSE_MODULES_SIGN=1
|
||||
|
||||
inherit kernel-install toolchain-funcs unpacker verify-sig
|
||||
|
||||
BASE_P=linux-${PV%.*}
|
||||
PATCH_PV=${PV%_p*}
|
||||
PATCHSET=linux-gentoo-patches-6.6.107
|
||||
BINPKG=${P/-bin}-1
|
||||
SHA256SUM_DATE=20250919
|
||||
|
||||
DESCRIPTION="Pre-built Linux kernel with Gentoo patches"
|
||||
HOMEPAGE="
|
||||
https://wiki.gentoo.org/wiki/Project:Distribution_Kernel
|
||||
https://www.kernel.org/
|
||||
"
|
||||
SRC_URI+="
|
||||
https://cdn.kernel.org/pub/linux/kernel/v$(ver_cut 1).x/${BASE_P}.tar.xz
|
||||
https://cdn.kernel.org/pub/linux/kernel/v$(ver_cut 1).x/patch-${PATCH_PV}.xz
|
||||
https://dev.gentoo.org/~mgorny/dist/linux/${PATCHSET}.tar.xz
|
||||
verify-sig? (
|
||||
https://cdn.kernel.org/pub/linux/kernel/v$(ver_cut 1).x/sha256sums.asc
|
||||
-> linux-$(ver_cut 1).x-sha256sums-${SHA256SUM_DATE}.asc
|
||||
)
|
||||
amd64? (
|
||||
https://dev.gentoo.org/~mgorny/binpkg/amd64/kernel/sys-kernel/gentoo-kernel/${BINPKG}.gpkg.tar
|
||||
-> ${BINPKG}.amd64.gpkg.tar
|
||||
)
|
||||
arm64? (
|
||||
https://dev.gentoo.org/~mgorny/binpkg/arm64/kernel/sys-kernel/gentoo-kernel/${BINPKG}.gpkg.tar
|
||||
-> ${BINPKG}.arm64.gpkg.tar
|
||||
)
|
||||
ppc64? (
|
||||
https://dev.gentoo.org/~mgorny/binpkg/ppc64le/kernel/sys-kernel/gentoo-kernel/${BINPKG}.gpkg.tar
|
||||
-> ${BINPKG}.ppc64le.gpkg.tar
|
||||
)
|
||||
x86? (
|
||||
https://dev.gentoo.org/~mgorny/binpkg/x86/kernel/sys-kernel/gentoo-kernel/${BINPKG}.gpkg.tar
|
||||
-> ${BINPKG}.x86.gpkg.tar
|
||||
)
|
||||
"
|
||||
S=${WORKDIR}
|
||||
|
||||
KEYWORDS="~amd64 ~arm64 ~ppc64 ~x86"
|
||||
IUSE="debug"
|
||||
|
||||
RDEPEND="
|
||||
!sys-kernel/gentoo-kernel:${SLOT}
|
||||
"
|
||||
PDEPEND="
|
||||
>=virtual/dist-kernel-${PATCH_PV}
|
||||
"
|
||||
BDEPEND="
|
||||
app-alternatives/bc
|
||||
app-alternatives/lex
|
||||
dev-util/pahole
|
||||
virtual/libelf
|
||||
app-alternatives/yacc
|
||||
amd64? ( app-crypt/sbsigntools )
|
||||
arm64? ( app-crypt/sbsigntools )
|
||||
verify-sig? ( >=sec-keys/openpgp-keys-kernel-20250702 )
|
||||
"
|
||||
|
||||
KV_LOCALVERSION='-gentoo-dist'
|
||||
KV_FULL=${PV/_p/-p}${KV_LOCALVERSION}
|
||||
|
||||
QA_PREBUILT='*'
|
||||
|
||||
VERIFY_SIG_OPENPGP_KEY_PATH=/usr/share/openpgp-keys/kernel.org.asc
|
||||
|
||||
src_unpack() {
|
||||
if use verify-sig; then
|
||||
cd "${DISTDIR}" || die
|
||||
verify-sig_verify_signed_checksums \
|
||||
"linux-$(ver_cut 1).x-sha256sums-${SHA256SUM_DATE}.asc" \
|
||||
sha256 "${BASE_P}.tar.xz patch-${PATCH_PV}.xz"
|
||||
cd "${WORKDIR}" || die
|
||||
fi
|
||||
|
||||
unpacker
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
local patch
|
||||
cd "${BASE_P}" || die
|
||||
eapply "${WORKDIR}/patch-${PATCH_PV}"
|
||||
for patch in "${WORKDIR}/${PATCHSET}"/*.patch; do
|
||||
eapply "${patch}"
|
||||
# non-experimental patches always finish with Gentoo Kconfig
|
||||
# we built -bins without them
|
||||
if [[ ${patch} == *Add-Gentoo-Linux-support-config-settings* ]]
|
||||
then
|
||||
break
|
||||
fi
|
||||
done
|
||||
|
||||
default
|
||||
|
||||
# add Gentoo patchset version
|
||||
local extraversion=${PV#${PATCH_PV}}
|
||||
sed -i -e "s:^\(EXTRAVERSION =\).*:\1 ${extraversion/_/-}:" Makefile || die
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
# force ld.bfd if we can find it easily
|
||||
local HOSTLD="$(tc-getBUILD_LD)"
|
||||
if type -P "${HOSTLD}.bfd" &>/dev/null; then
|
||||
HOSTLD+=.bfd
|
||||
fi
|
||||
local LD="$(tc-getLD)"
|
||||
if type -P "${LD}.bfd" &>/dev/null; then
|
||||
LD+=.bfd
|
||||
fi
|
||||
tc-export_build_env
|
||||
local makeargs=(
|
||||
V=1
|
||||
WERROR=0
|
||||
|
||||
HOSTCC="$(tc-getBUILD_CC)"
|
||||
HOSTCXX="$(tc-getBUILD_CXX)"
|
||||
HOSTLD="${HOSTLD}"
|
||||
HOSTAR="$(tc-getBUILD_AR)"
|
||||
HOSTCFLAGS="${BUILD_CFLAGS}"
|
||||
HOSTLDFLAGS="${BUILD_LDFLAGS}"
|
||||
|
||||
CROSS_COMPILE=${CHOST}-
|
||||
AS="$(tc-getAS)"
|
||||
CC="$(tc-getCC)"
|
||||
LD="${LD}"
|
||||
AR="$(tc-getAR)"
|
||||
NM="$(tc-getNM)"
|
||||
STRIP="$(tc-getSTRIP)"
|
||||
OBJCOPY="$(tc-getOBJCOPY)"
|
||||
OBJDUMP="$(tc-getOBJDUMP)"
|
||||
READELF="$(tc-getREADELF)"
|
||||
|
||||
# we need to pass it to override colliding Gentoo envvar
|
||||
ARCH="$(tc-arch-kernel)"
|
||||
|
||||
O="${WORKDIR}"/modprep
|
||||
)
|
||||
|
||||
local kernel_dir="${BINPKG}/image/usr/src/linux-${KV_FULL}"
|
||||
|
||||
# If this is set it will have an effect on the name of the output
|
||||
# image. Set this variable to track this setting.
|
||||
if grep -q "CONFIG_EFI_ZBOOT=y" "${kernel_dir}/.config"; then
|
||||
KERNEL_EFI_ZBOOT=1
|
||||
elif use arm64 && use generic-uki; then
|
||||
die "USE=generic-uki requires a CONFIG_EFI_ZBOOT enabled build"
|
||||
fi
|
||||
|
||||
local image="${kernel_dir}/$(dist-kernel_get_image_path)"
|
||||
local uki="${image%/*}/uki.efi"
|
||||
|
||||
# Override user variable with the cert used during build
|
||||
openssl x509 \
|
||||
-inform DER -in "${kernel_dir}/certs/signing_key.x509" \
|
||||
-outform PEM -out "${T}/cert.pem" ||
|
||||
die "Failed to convert pcrpkey to PEM format"
|
||||
export SECUREBOOT_SIGN_CERT=${T}/cert.pem
|
||||
|
||||
if [[ -s ${uki} ]]; then
|
||||
# We need to extract the plain image for the test phase
|
||||
# and USE=-generic-uki.
|
||||
kernel-install_extract_from_uki linux "${uki}" "${image}"
|
||||
fi
|
||||
|
||||
mkdir modprep || die
|
||||
cp "${kernel_dir}/.config" modprep/ || die
|
||||
emake -C "${BASE_P}" "${makeargs[@]}" modules_prepare
|
||||
}
|
||||
|
||||
src_test() {
|
||||
local kernel_dir="${BINPKG}/image/usr/src/linux-${KV_FULL}"
|
||||
kernel-install_test "${KV_FULL}" \
|
||||
"${WORKDIR}/${kernel_dir}/$(dist-kernel_get_image_path)" \
|
||||
"${BINPKG}/image/lib/modules/${KV_FULL}"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
local rel_kernel_dir=/usr/src/linux-${KV_FULL}
|
||||
local kernel_dir="${BINPKG}/image${rel_kernel_dir}"
|
||||
local image="${kernel_dir}/$(dist-kernel_get_image_path)"
|
||||
local uki="${image%/*}/uki.efi"
|
||||
if [[ -s ${uki} ]]; then
|
||||
# Keep the kernel image type we don't want out of install tree
|
||||
# Replace back with placeholder
|
||||
if use generic-uki; then
|
||||
> "${image}" || die
|
||||
else
|
||||
> "${uki}" || die
|
||||
fi
|
||||
fi
|
||||
|
||||
# Overwrite the identifier in the prebuilt package
|
||||
echo "${CATEGORY}/${PF}:${SLOT}" > "${kernel_dir}/dist-kernel" || die
|
||||
|
||||
mv "${BINPKG}"/image/{lib,usr} "${ED}"/ || die
|
||||
|
||||
# FIXME: requires proper mount-boot
|
||||
if [[ -d ${BINPKG}/image/boot/dtbs ]]; then
|
||||
mv "${BINPKG}"/image/boot "${ED}"/ || die
|
||||
fi
|
||||
|
||||
# strip out-of-source build stuffs from modprep
|
||||
# and then copy built files
|
||||
find modprep -type f '(' \
|
||||
-name Makefile -o \
|
||||
-name '*.[ao]' -o \
|
||||
'(' -name '.*' -a -not -name '.config' ')' \
|
||||
')' -delete || die
|
||||
rm modprep/source || die
|
||||
cp -p -R modprep/. "${ED}${rel_kernel_dir}"/ || die
|
||||
|
||||
# Update timestamps on all modules to ensure cleanup works correctly
|
||||
# when switching USE=modules-compress.
|
||||
find "${ED}/lib" -name '*.ko' -exec touch {} + || die
|
||||
|
||||
# Modules were already stripped before signing
|
||||
dostrip -x /lib/modules
|
||||
kernel-install_compress_modules
|
||||
|
||||
# Mirror the logic from kernel-build_src_install, for architectures
|
||||
# where USE=debug is used.
|
||||
if use ppc64; then
|
||||
dostrip -x "${rel_kernel_dir}/$(dist-kernel_get_image_path)"
|
||||
elif use debug && { use amd64 || use arm64; }; then
|
||||
dostrip -x "${rel_kernel_dir}/vmlinux"
|
||||
dostrip -x "${rel_kernel_dir}/vmlinux.ctfa"
|
||||
fi
|
||||
}
|
||||
@@ -1,237 +0,0 @@
|
||||
# Copyright 2020-2025 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
KERNEL_IUSE_GENERIC_UKI=1
|
||||
KERNEL_IUSE_MODULES_SIGN=1
|
||||
|
||||
inherit kernel-install toolchain-funcs unpacker verify-sig
|
||||
|
||||
BASE_P=linux-${PV%.*}
|
||||
PATCH_PV=${PV%_p*}
|
||||
PATCHSET=linux-gentoo-patches-6.6.107
|
||||
BINPKG=${P/-bin}-1
|
||||
SHA256SUM_DATE=20250925
|
||||
|
||||
DESCRIPTION="Pre-built Linux kernel with Gentoo patches"
|
||||
HOMEPAGE="
|
||||
https://wiki.gentoo.org/wiki/Project:Distribution_Kernel
|
||||
https://www.kernel.org/
|
||||
"
|
||||
SRC_URI+="
|
||||
https://cdn.kernel.org/pub/linux/kernel/v$(ver_cut 1).x/${BASE_P}.tar.xz
|
||||
https://cdn.kernel.org/pub/linux/kernel/v$(ver_cut 1).x/patch-${PATCH_PV}.xz
|
||||
https://dev.gentoo.org/~mgorny/dist/linux/${PATCHSET}.tar.xz
|
||||
verify-sig? (
|
||||
https://cdn.kernel.org/pub/linux/kernel/v$(ver_cut 1).x/sha256sums.asc
|
||||
-> linux-$(ver_cut 1).x-sha256sums-${SHA256SUM_DATE}.asc
|
||||
)
|
||||
amd64? (
|
||||
https://dev.gentoo.org/~mgorny/binpkg/amd64/kernel/sys-kernel/gentoo-kernel/${BINPKG}.gpkg.tar
|
||||
-> ${BINPKG}.amd64.gpkg.tar
|
||||
)
|
||||
arm64? (
|
||||
https://dev.gentoo.org/~mgorny/binpkg/arm64/kernel/sys-kernel/gentoo-kernel/${BINPKG}.gpkg.tar
|
||||
-> ${BINPKG}.arm64.gpkg.tar
|
||||
)
|
||||
ppc64? (
|
||||
https://dev.gentoo.org/~mgorny/binpkg/ppc64le/kernel/sys-kernel/gentoo-kernel/${BINPKG}.gpkg.tar
|
||||
-> ${BINPKG}.ppc64le.gpkg.tar
|
||||
)
|
||||
x86? (
|
||||
https://dev.gentoo.org/~mgorny/binpkg/x86/kernel/sys-kernel/gentoo-kernel/${BINPKG}.gpkg.tar
|
||||
-> ${BINPKG}.x86.gpkg.tar
|
||||
)
|
||||
"
|
||||
S=${WORKDIR}
|
||||
|
||||
KEYWORDS="~amd64 ~arm64 ~ppc64 ~x86"
|
||||
IUSE="debug"
|
||||
|
||||
RDEPEND="
|
||||
!sys-kernel/gentoo-kernel:${SLOT}
|
||||
"
|
||||
PDEPEND="
|
||||
>=virtual/dist-kernel-${PV}
|
||||
"
|
||||
BDEPEND="
|
||||
app-alternatives/bc
|
||||
app-alternatives/lex
|
||||
dev-util/pahole
|
||||
virtual/libelf
|
||||
app-alternatives/yacc
|
||||
amd64? ( app-crypt/sbsigntools )
|
||||
arm64? ( app-crypt/sbsigntools )
|
||||
verify-sig? ( >=sec-keys/openpgp-keys-kernel-20250702 )
|
||||
"
|
||||
|
||||
KV_LOCALVERSION='-gentoo-dist'
|
||||
KV_FULL=${PV/_p/-p}${KV_LOCALVERSION}
|
||||
|
||||
QA_PREBUILT='*'
|
||||
|
||||
VERIFY_SIG_OPENPGP_KEY_PATH=/usr/share/openpgp-keys/kernel.org.asc
|
||||
|
||||
src_unpack() {
|
||||
if use verify-sig; then
|
||||
cd "${DISTDIR}" || die
|
||||
verify-sig_verify_signed_checksums \
|
||||
"linux-$(ver_cut 1).x-sha256sums-${SHA256SUM_DATE}.asc" \
|
||||
sha256 "${BASE_P}.tar.xz patch-${PATCH_PV}.xz"
|
||||
cd "${WORKDIR}" || die
|
||||
fi
|
||||
|
||||
unpacker
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
local patch
|
||||
cd "${BASE_P}" || die
|
||||
eapply "${WORKDIR}/patch-${PATCH_PV}"
|
||||
for patch in "${WORKDIR}/${PATCHSET}"/*.patch; do
|
||||
eapply "${patch}"
|
||||
# non-experimental patches always finish with Gentoo Kconfig
|
||||
# we built -bins without them
|
||||
if [[ ${patch} == *Add-Gentoo-Linux-support-config-settings* ]]
|
||||
then
|
||||
break
|
||||
fi
|
||||
done
|
||||
|
||||
default
|
||||
|
||||
# add Gentoo patchset version
|
||||
local extraversion=${PV#${PATCH_PV}}
|
||||
sed -i -e "s:^\(EXTRAVERSION =\).*:\1 ${extraversion/_/-}:" Makefile || die
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
# force ld.bfd if we can find it easily
|
||||
local HOSTLD="$(tc-getBUILD_LD)"
|
||||
if type -P "${HOSTLD}.bfd" &>/dev/null; then
|
||||
HOSTLD+=.bfd
|
||||
fi
|
||||
local LD="$(tc-getLD)"
|
||||
if type -P "${LD}.bfd" &>/dev/null; then
|
||||
LD+=.bfd
|
||||
fi
|
||||
tc-export_build_env
|
||||
local makeargs=(
|
||||
V=1
|
||||
WERROR=0
|
||||
|
||||
HOSTCC="$(tc-getBUILD_CC)"
|
||||
HOSTCXX="$(tc-getBUILD_CXX)"
|
||||
HOSTLD="${HOSTLD}"
|
||||
HOSTAR="$(tc-getBUILD_AR)"
|
||||
HOSTCFLAGS="${BUILD_CFLAGS}"
|
||||
HOSTLDFLAGS="${BUILD_LDFLAGS}"
|
||||
|
||||
CROSS_COMPILE=${CHOST}-
|
||||
AS="$(tc-getAS)"
|
||||
CC="$(tc-getCC)"
|
||||
LD="${LD}"
|
||||
AR="$(tc-getAR)"
|
||||
NM="$(tc-getNM)"
|
||||
STRIP="$(tc-getSTRIP)"
|
||||
OBJCOPY="$(tc-getOBJCOPY)"
|
||||
OBJDUMP="$(tc-getOBJDUMP)"
|
||||
READELF="$(tc-getREADELF)"
|
||||
|
||||
# we need to pass it to override colliding Gentoo envvar
|
||||
ARCH="$(tc-arch-kernel)"
|
||||
|
||||
O="${WORKDIR}"/modprep
|
||||
)
|
||||
|
||||
local kernel_dir="${BINPKG}/image/usr/src/linux-${KV_FULL}"
|
||||
|
||||
# If this is set it will have an effect on the name of the output
|
||||
# image. Set this variable to track this setting.
|
||||
if grep -q "CONFIG_EFI_ZBOOT=y" "${kernel_dir}/.config"; then
|
||||
KERNEL_EFI_ZBOOT=1
|
||||
elif use arm64 && use generic-uki; then
|
||||
die "USE=generic-uki requires a CONFIG_EFI_ZBOOT enabled build"
|
||||
fi
|
||||
|
||||
local image="${kernel_dir}/$(dist-kernel_get_image_path)"
|
||||
local uki="${image%/*}/uki.efi"
|
||||
|
||||
# Override user variable with the cert used during build
|
||||
openssl x509 \
|
||||
-inform DER -in "${kernel_dir}/certs/signing_key.x509" \
|
||||
-outform PEM -out "${T}/cert.pem" ||
|
||||
die "Failed to convert pcrpkey to PEM format"
|
||||
export SECUREBOOT_SIGN_CERT=${T}/cert.pem
|
||||
|
||||
if [[ -s ${uki} ]]; then
|
||||
# We need to extract the plain image for the test phase
|
||||
# and USE=-generic-uki.
|
||||
kernel-install_extract_from_uki linux "${uki}" "${image}"
|
||||
fi
|
||||
|
||||
mkdir modprep || die
|
||||
cp "${kernel_dir}/.config" modprep/ || die
|
||||
emake -C "${BASE_P}" "${makeargs[@]}" modules_prepare
|
||||
}
|
||||
|
||||
src_test() {
|
||||
local kernel_dir="${BINPKG}/image/usr/src/linux-${KV_FULL}"
|
||||
kernel-install_test "${KV_FULL}" \
|
||||
"${WORKDIR}/${kernel_dir}/$(dist-kernel_get_image_path)" \
|
||||
"${BINPKG}/image/lib/modules/${KV_FULL}"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
local rel_kernel_dir=/usr/src/linux-${KV_FULL}
|
||||
local kernel_dir="${BINPKG}/image${rel_kernel_dir}"
|
||||
local image="${kernel_dir}/$(dist-kernel_get_image_path)"
|
||||
local uki="${image%/*}/uki.efi"
|
||||
if [[ -s ${uki} ]]; then
|
||||
# Keep the kernel image type we don't want out of install tree
|
||||
# Replace back with placeholder
|
||||
if use generic-uki; then
|
||||
> "${image}" || die
|
||||
else
|
||||
> "${uki}" || die
|
||||
fi
|
||||
fi
|
||||
|
||||
# Overwrite the identifier in the prebuilt package
|
||||
echo "${CATEGORY}/${PF}:${SLOT}" > "${kernel_dir}/dist-kernel" || die
|
||||
|
||||
mv "${BINPKG}"/image/{lib,usr} "${ED}"/ || die
|
||||
|
||||
# FIXME: requires proper mount-boot
|
||||
if [[ -d ${BINPKG}/image/boot/dtbs ]]; then
|
||||
mv "${BINPKG}"/image/boot "${ED}"/ || die
|
||||
fi
|
||||
|
||||
# strip out-of-source build stuffs from modprep
|
||||
# and then copy built files
|
||||
find modprep -type f '(' \
|
||||
-name Makefile -o \
|
||||
-name '*.[ao]' -o \
|
||||
'(' -name '.*' -a -not -name '.config' ')' \
|
||||
')' -delete || die
|
||||
rm modprep/source || die
|
||||
cp -p -R modprep/. "${ED}${rel_kernel_dir}"/ || die
|
||||
|
||||
# Update timestamps on all modules to ensure cleanup works correctly
|
||||
# when switching USE=modules-compress.
|
||||
find "${ED}/lib" -name '*.ko' -exec touch {} + || die
|
||||
|
||||
# Modules were already stripped before signing
|
||||
dostrip -x /lib/modules
|
||||
kernel-install_compress_modules
|
||||
|
||||
# Mirror the logic from kernel-build_src_install, for architectures
|
||||
# where USE=debug is used.
|
||||
if use ppc64; then
|
||||
dostrip -x "${rel_kernel_dir}/$(dist-kernel_get_image_path)"
|
||||
elif use debug && { use amd64 || use arm64; }; then
|
||||
dostrip -x "${rel_kernel_dir}/vmlinux"
|
||||
dostrip -x "${rel_kernel_dir}/vmlinux.ctfa"
|
||||
fi
|
||||
}
|
||||
@@ -1,237 +0,0 @@
|
||||
# Copyright 2020-2025 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
KERNEL_IUSE_GENERIC_UKI=1
|
||||
KERNEL_IUSE_MODULES_SIGN=1
|
||||
|
||||
inherit kernel-install toolchain-funcs unpacker verify-sig
|
||||
|
||||
BASE_P=linux-${PV%.*}
|
||||
PATCH_PV=${PV%_p*}
|
||||
PATCHSET=linux-gentoo-patches-6.6.107
|
||||
BINPKG=${P/-bin}-1
|
||||
SHA256SUM_DATE=20251002
|
||||
|
||||
DESCRIPTION="Pre-built Linux kernel with Gentoo patches"
|
||||
HOMEPAGE="
|
||||
https://wiki.gentoo.org/wiki/Project:Distribution_Kernel
|
||||
https://www.kernel.org/
|
||||
"
|
||||
SRC_URI+="
|
||||
https://cdn.kernel.org/pub/linux/kernel/v$(ver_cut 1).x/${BASE_P}.tar.xz
|
||||
https://cdn.kernel.org/pub/linux/kernel/v$(ver_cut 1).x/patch-${PATCH_PV}.xz
|
||||
https://dev.gentoo.org/~mgorny/dist/linux/${PATCHSET}.tar.xz
|
||||
verify-sig? (
|
||||
https://cdn.kernel.org/pub/linux/kernel/v$(ver_cut 1).x/sha256sums.asc
|
||||
-> linux-$(ver_cut 1).x-sha256sums-${SHA256SUM_DATE}.asc
|
||||
)
|
||||
amd64? (
|
||||
https://dev.gentoo.org/~mgorny/binpkg/amd64/kernel/sys-kernel/gentoo-kernel/${BINPKG}.gpkg.tar
|
||||
-> ${BINPKG}.amd64.gpkg.tar
|
||||
)
|
||||
arm64? (
|
||||
https://dev.gentoo.org/~mgorny/binpkg/arm64/kernel/sys-kernel/gentoo-kernel/${BINPKG}.gpkg.tar
|
||||
-> ${BINPKG}.arm64.gpkg.tar
|
||||
)
|
||||
ppc64? (
|
||||
https://dev.gentoo.org/~mgorny/binpkg/ppc64le/kernel/sys-kernel/gentoo-kernel/${BINPKG}.gpkg.tar
|
||||
-> ${BINPKG}.ppc64le.gpkg.tar
|
||||
)
|
||||
x86? (
|
||||
https://dev.gentoo.org/~mgorny/binpkg/x86/kernel/sys-kernel/gentoo-kernel/${BINPKG}.gpkg.tar
|
||||
-> ${BINPKG}.x86.gpkg.tar
|
||||
)
|
||||
"
|
||||
S=${WORKDIR}
|
||||
|
||||
KEYWORDS="~amd64 ~arm64 ~ppc64 ~x86"
|
||||
IUSE="debug"
|
||||
|
||||
RDEPEND="
|
||||
!sys-kernel/gentoo-kernel:${SLOT}
|
||||
"
|
||||
PDEPEND="
|
||||
>=virtual/dist-kernel-${PV}
|
||||
"
|
||||
BDEPEND="
|
||||
app-alternatives/bc
|
||||
app-alternatives/lex
|
||||
dev-util/pahole
|
||||
virtual/libelf
|
||||
app-alternatives/yacc
|
||||
amd64? ( app-crypt/sbsigntools )
|
||||
arm64? ( app-crypt/sbsigntools )
|
||||
verify-sig? ( >=sec-keys/openpgp-keys-kernel-20250702 )
|
||||
"
|
||||
|
||||
KV_LOCALVERSION='-gentoo-dist'
|
||||
KV_FULL=${PV/_p/-p}${KV_LOCALVERSION}
|
||||
|
||||
QA_PREBUILT='*'
|
||||
|
||||
VERIFY_SIG_OPENPGP_KEY_PATH=/usr/share/openpgp-keys/kernel.org.asc
|
||||
|
||||
src_unpack() {
|
||||
if use verify-sig; then
|
||||
cd "${DISTDIR}" || die
|
||||
verify-sig_verify_signed_checksums \
|
||||
"linux-$(ver_cut 1).x-sha256sums-${SHA256SUM_DATE}.asc" \
|
||||
sha256 "${BASE_P}.tar.xz patch-${PATCH_PV}.xz"
|
||||
cd "${WORKDIR}" || die
|
||||
fi
|
||||
|
||||
unpacker
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
local patch
|
||||
cd "${BASE_P}" || die
|
||||
eapply "${WORKDIR}/patch-${PATCH_PV}"
|
||||
for patch in "${WORKDIR}/${PATCHSET}"/*.patch; do
|
||||
eapply "${patch}"
|
||||
# non-experimental patches always finish with Gentoo Kconfig
|
||||
# we built -bins without them
|
||||
if [[ ${patch} == *Add-Gentoo-Linux-support-config-settings* ]]
|
||||
then
|
||||
break
|
||||
fi
|
||||
done
|
||||
|
||||
default
|
||||
|
||||
# add Gentoo patchset version
|
||||
local extraversion=${PV#${PATCH_PV}}
|
||||
sed -i -e "s:^\(EXTRAVERSION =\).*:\1 ${extraversion/_/-}:" Makefile || die
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
# force ld.bfd if we can find it easily
|
||||
local HOSTLD="$(tc-getBUILD_LD)"
|
||||
if type -P "${HOSTLD}.bfd" &>/dev/null; then
|
||||
HOSTLD+=.bfd
|
||||
fi
|
||||
local LD="$(tc-getLD)"
|
||||
if type -P "${LD}.bfd" &>/dev/null; then
|
||||
LD+=.bfd
|
||||
fi
|
||||
tc-export_build_env
|
||||
local makeargs=(
|
||||
V=1
|
||||
WERROR=0
|
||||
|
||||
HOSTCC="$(tc-getBUILD_CC)"
|
||||
HOSTCXX="$(tc-getBUILD_CXX)"
|
||||
HOSTLD="${HOSTLD}"
|
||||
HOSTAR="$(tc-getBUILD_AR)"
|
||||
HOSTCFLAGS="${BUILD_CFLAGS}"
|
||||
HOSTLDFLAGS="${BUILD_LDFLAGS}"
|
||||
|
||||
CROSS_COMPILE=${CHOST}-
|
||||
AS="$(tc-getAS)"
|
||||
CC="$(tc-getCC)"
|
||||
LD="${LD}"
|
||||
AR="$(tc-getAR)"
|
||||
NM="$(tc-getNM)"
|
||||
STRIP="$(tc-getSTRIP)"
|
||||
OBJCOPY="$(tc-getOBJCOPY)"
|
||||
OBJDUMP="$(tc-getOBJDUMP)"
|
||||
READELF="$(tc-getREADELF)"
|
||||
|
||||
# we need to pass it to override colliding Gentoo envvar
|
||||
ARCH="$(tc-arch-kernel)"
|
||||
|
||||
O="${WORKDIR}"/modprep
|
||||
)
|
||||
|
||||
local kernel_dir="${BINPKG}/image/usr/src/linux-${KV_FULL}"
|
||||
|
||||
# If this is set it will have an effect on the name of the output
|
||||
# image. Set this variable to track this setting.
|
||||
if grep -q "CONFIG_EFI_ZBOOT=y" "${kernel_dir}/.config"; then
|
||||
KERNEL_EFI_ZBOOT=1
|
||||
elif use arm64 && use generic-uki; then
|
||||
die "USE=generic-uki requires a CONFIG_EFI_ZBOOT enabled build"
|
||||
fi
|
||||
|
||||
local image="${kernel_dir}/$(dist-kernel_get_image_path)"
|
||||
local uki="${image%/*}/uki.efi"
|
||||
|
||||
# Override user variable with the cert used during build
|
||||
openssl x509 \
|
||||
-inform DER -in "${kernel_dir}/certs/signing_key.x509" \
|
||||
-outform PEM -out "${T}/cert.pem" ||
|
||||
die "Failed to convert pcrpkey to PEM format"
|
||||
export SECUREBOOT_SIGN_CERT=${T}/cert.pem
|
||||
|
||||
if [[ -s ${uki} ]]; then
|
||||
# We need to extract the plain image for the test phase
|
||||
# and USE=-generic-uki.
|
||||
kernel-install_extract_from_uki linux "${uki}" "${image}"
|
||||
fi
|
||||
|
||||
mkdir modprep || die
|
||||
cp "${kernel_dir}/.config" modprep/ || die
|
||||
emake -C "${BASE_P}" "${makeargs[@]}" modules_prepare
|
||||
}
|
||||
|
||||
src_test() {
|
||||
local kernel_dir="${BINPKG}/image/usr/src/linux-${KV_FULL}"
|
||||
kernel-install_test "${KV_FULL}" \
|
||||
"${WORKDIR}/${kernel_dir}/$(dist-kernel_get_image_path)" \
|
||||
"${BINPKG}/image/lib/modules/${KV_FULL}"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
local rel_kernel_dir=/usr/src/linux-${KV_FULL}
|
||||
local kernel_dir="${BINPKG}/image${rel_kernel_dir}"
|
||||
local image="${kernel_dir}/$(dist-kernel_get_image_path)"
|
||||
local uki="${image%/*}/uki.efi"
|
||||
if [[ -s ${uki} ]]; then
|
||||
# Keep the kernel image type we don't want out of install tree
|
||||
# Replace back with placeholder
|
||||
if use generic-uki; then
|
||||
> "${image}" || die
|
||||
else
|
||||
> "${uki}" || die
|
||||
fi
|
||||
fi
|
||||
|
||||
# Overwrite the identifier in the prebuilt package
|
||||
echo "${CATEGORY}/${PF}:${SLOT}" > "${kernel_dir}/dist-kernel" || die
|
||||
|
||||
mv "${BINPKG}"/image/{lib,usr} "${ED}"/ || die
|
||||
|
||||
# FIXME: requires proper mount-boot
|
||||
if [[ -d ${BINPKG}/image/boot/dtbs ]]; then
|
||||
mv "${BINPKG}"/image/boot "${ED}"/ || die
|
||||
fi
|
||||
|
||||
# strip out-of-source build stuffs from modprep
|
||||
# and then copy built files
|
||||
find modprep -type f '(' \
|
||||
-name Makefile -o \
|
||||
-name '*.[ao]' -o \
|
||||
'(' -name '.*' -a -not -name '.config' ')' \
|
||||
')' -delete || die
|
||||
rm modprep/source || die
|
||||
cp -p -R modprep/. "${ED}${rel_kernel_dir}"/ || die
|
||||
|
||||
# Update timestamps on all modules to ensure cleanup works correctly
|
||||
# when switching USE=modules-compress.
|
||||
find "${ED}/lib" -name '*.ko' -exec touch {} + || die
|
||||
|
||||
# Modules were already stripped before signing
|
||||
dostrip -x /lib/modules
|
||||
kernel-install_compress_modules
|
||||
|
||||
# Mirror the logic from kernel-build_src_install, for architectures
|
||||
# where USE=debug is used.
|
||||
if use ppc64; then
|
||||
dostrip -x "${rel_kernel_dir}/$(dist-kernel_get_image_path)"
|
||||
elif use debug && { use amd64 || use arm64; }; then
|
||||
dostrip -x "${rel_kernel_dir}/vmlinux"
|
||||
dostrip -x "${rel_kernel_dir}/vmlinux.ctfa"
|
||||
fi
|
||||
}
|
||||
@@ -1,237 +0,0 @@
|
||||
# Copyright 2020-2025 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
KERNEL_IUSE_GENERIC_UKI=1
|
||||
KERNEL_IUSE_MODULES_SIGN=1
|
||||
|
||||
inherit kernel-install toolchain-funcs unpacker verify-sig
|
||||
|
||||
BASE_P=linux-${PV%.*}
|
||||
PATCH_PV=${PV%_p*}
|
||||
PATCHSET=linux-gentoo-patches-6.6.107
|
||||
BINPKG=${P/-bin}-1
|
||||
SHA256SUM_DATE=20251006
|
||||
|
||||
DESCRIPTION="Pre-built Linux kernel with Gentoo patches"
|
||||
HOMEPAGE="
|
||||
https://wiki.gentoo.org/wiki/Project:Distribution_Kernel
|
||||
https://www.kernel.org/
|
||||
"
|
||||
SRC_URI+="
|
||||
https://cdn.kernel.org/pub/linux/kernel/v$(ver_cut 1).x/${BASE_P}.tar.xz
|
||||
https://cdn.kernel.org/pub/linux/kernel/v$(ver_cut 1).x/patch-${PATCH_PV}.xz
|
||||
https://dev.gentoo.org/~mgorny/dist/linux/${PATCHSET}.tar.xz
|
||||
verify-sig? (
|
||||
https://cdn.kernel.org/pub/linux/kernel/v$(ver_cut 1).x/sha256sums.asc
|
||||
-> linux-$(ver_cut 1).x-sha256sums-${SHA256SUM_DATE}.asc
|
||||
)
|
||||
amd64? (
|
||||
https://dev.gentoo.org/~mgorny/binpkg/amd64/kernel/sys-kernel/gentoo-kernel/${BINPKG}.gpkg.tar
|
||||
-> ${BINPKG}.amd64.gpkg.tar
|
||||
)
|
||||
arm64? (
|
||||
https://dev.gentoo.org/~mgorny/binpkg/arm64/kernel/sys-kernel/gentoo-kernel/${BINPKG}.gpkg.tar
|
||||
-> ${BINPKG}.arm64.gpkg.tar
|
||||
)
|
||||
ppc64? (
|
||||
https://dev.gentoo.org/~mgorny/binpkg/ppc64le/kernel/sys-kernel/gentoo-kernel/${BINPKG}.gpkg.tar
|
||||
-> ${BINPKG}.ppc64le.gpkg.tar
|
||||
)
|
||||
x86? (
|
||||
https://dev.gentoo.org/~mgorny/binpkg/x86/kernel/sys-kernel/gentoo-kernel/${BINPKG}.gpkg.tar
|
||||
-> ${BINPKG}.x86.gpkg.tar
|
||||
)
|
||||
"
|
||||
S=${WORKDIR}
|
||||
|
||||
KEYWORDS="~amd64 ~arm64 ~ppc64 ~x86"
|
||||
IUSE="debug"
|
||||
|
||||
RDEPEND="
|
||||
!sys-kernel/gentoo-kernel:${SLOT}
|
||||
"
|
||||
PDEPEND="
|
||||
>=virtual/dist-kernel-${PV}
|
||||
"
|
||||
BDEPEND="
|
||||
app-alternatives/bc
|
||||
app-alternatives/lex
|
||||
dev-util/pahole
|
||||
virtual/libelf
|
||||
app-alternatives/yacc
|
||||
amd64? ( app-crypt/sbsigntools )
|
||||
arm64? ( app-crypt/sbsigntools )
|
||||
verify-sig? ( >=sec-keys/openpgp-keys-kernel-20250702 )
|
||||
"
|
||||
|
||||
KV_LOCALVERSION='-gentoo-dist'
|
||||
KV_FULL=${PV/_p/-p}${KV_LOCALVERSION}
|
||||
|
||||
QA_PREBUILT='*'
|
||||
|
||||
VERIFY_SIG_OPENPGP_KEY_PATH=/usr/share/openpgp-keys/kernel.org.asc
|
||||
|
||||
src_unpack() {
|
||||
if use verify-sig; then
|
||||
cd "${DISTDIR}" || die
|
||||
verify-sig_verify_signed_checksums \
|
||||
"linux-$(ver_cut 1).x-sha256sums-${SHA256SUM_DATE}.asc" \
|
||||
sha256 "${BASE_P}.tar.xz patch-${PATCH_PV}.xz"
|
||||
cd "${WORKDIR}" || die
|
||||
fi
|
||||
|
||||
unpacker
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
local patch
|
||||
cd "${BASE_P}" || die
|
||||
eapply "${WORKDIR}/patch-${PATCH_PV}"
|
||||
for patch in "${WORKDIR}/${PATCHSET}"/*.patch; do
|
||||
eapply "${patch}"
|
||||
# non-experimental patches always finish with Gentoo Kconfig
|
||||
# we built -bins without them
|
||||
if [[ ${patch} == *Add-Gentoo-Linux-support-config-settings* ]]
|
||||
then
|
||||
break
|
||||
fi
|
||||
done
|
||||
|
||||
default
|
||||
|
||||
# add Gentoo patchset version
|
||||
local extraversion=${PV#${PATCH_PV}}
|
||||
sed -i -e "s:^\(EXTRAVERSION =\).*:\1 ${extraversion/_/-}:" Makefile || die
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
# force ld.bfd if we can find it easily
|
||||
local HOSTLD="$(tc-getBUILD_LD)"
|
||||
if type -P "${HOSTLD}.bfd" &>/dev/null; then
|
||||
HOSTLD+=.bfd
|
||||
fi
|
||||
local LD="$(tc-getLD)"
|
||||
if type -P "${LD}.bfd" &>/dev/null; then
|
||||
LD+=.bfd
|
||||
fi
|
||||
tc-export_build_env
|
||||
local makeargs=(
|
||||
V=1
|
||||
WERROR=0
|
||||
|
||||
HOSTCC="$(tc-getBUILD_CC)"
|
||||
HOSTCXX="$(tc-getBUILD_CXX)"
|
||||
HOSTLD="${HOSTLD}"
|
||||
HOSTAR="$(tc-getBUILD_AR)"
|
||||
HOSTCFLAGS="${BUILD_CFLAGS}"
|
||||
HOSTLDFLAGS="${BUILD_LDFLAGS}"
|
||||
|
||||
CROSS_COMPILE=${CHOST}-
|
||||
AS="$(tc-getAS)"
|
||||
CC="$(tc-getCC)"
|
||||
LD="${LD}"
|
||||
AR="$(tc-getAR)"
|
||||
NM="$(tc-getNM)"
|
||||
STRIP="$(tc-getSTRIP)"
|
||||
OBJCOPY="$(tc-getOBJCOPY)"
|
||||
OBJDUMP="$(tc-getOBJDUMP)"
|
||||
READELF="$(tc-getREADELF)"
|
||||
|
||||
# we need to pass it to override colliding Gentoo envvar
|
||||
ARCH="$(tc-arch-kernel)"
|
||||
|
||||
O="${WORKDIR}"/modprep
|
||||
)
|
||||
|
||||
local kernel_dir="${BINPKG}/image/usr/src/linux-${KV_FULL}"
|
||||
|
||||
# If this is set it will have an effect on the name of the output
|
||||
# image. Set this variable to track this setting.
|
||||
if grep -q "CONFIG_EFI_ZBOOT=y" "${kernel_dir}/.config"; then
|
||||
KERNEL_EFI_ZBOOT=1
|
||||
elif use arm64 && use generic-uki; then
|
||||
die "USE=generic-uki requires a CONFIG_EFI_ZBOOT enabled build"
|
||||
fi
|
||||
|
||||
local image="${kernel_dir}/$(dist-kernel_get_image_path)"
|
||||
local uki="${image%/*}/uki.efi"
|
||||
|
||||
# Override user variable with the cert used during build
|
||||
openssl x509 \
|
||||
-inform DER -in "${kernel_dir}/certs/signing_key.x509" \
|
||||
-outform PEM -out "${T}/cert.pem" ||
|
||||
die "Failed to convert pcrpkey to PEM format"
|
||||
export SECUREBOOT_SIGN_CERT=${T}/cert.pem
|
||||
|
||||
if [[ -s ${uki} ]]; then
|
||||
# We need to extract the plain image for the test phase
|
||||
# and USE=-generic-uki.
|
||||
kernel-install_extract_from_uki linux "${uki}" "${image}"
|
||||
fi
|
||||
|
||||
mkdir modprep || die
|
||||
cp "${kernel_dir}/.config" modprep/ || die
|
||||
emake -C "${BASE_P}" "${makeargs[@]}" modules_prepare
|
||||
}
|
||||
|
||||
src_test() {
|
||||
local kernel_dir="${BINPKG}/image/usr/src/linux-${KV_FULL}"
|
||||
kernel-install_test "${KV_FULL}" \
|
||||
"${WORKDIR}/${kernel_dir}/$(dist-kernel_get_image_path)" \
|
||||
"${BINPKG}/image/lib/modules/${KV_FULL}"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
local rel_kernel_dir=/usr/src/linux-${KV_FULL}
|
||||
local kernel_dir="${BINPKG}/image${rel_kernel_dir}"
|
||||
local image="${kernel_dir}/$(dist-kernel_get_image_path)"
|
||||
local uki="${image%/*}/uki.efi"
|
||||
if [[ -s ${uki} ]]; then
|
||||
# Keep the kernel image type we don't want out of install tree
|
||||
# Replace back with placeholder
|
||||
if use generic-uki; then
|
||||
> "${image}" || die
|
||||
else
|
||||
> "${uki}" || die
|
||||
fi
|
||||
fi
|
||||
|
||||
# Overwrite the identifier in the prebuilt package
|
||||
echo "${CATEGORY}/${PF}:${SLOT}" > "${kernel_dir}/dist-kernel" || die
|
||||
|
||||
mv "${BINPKG}"/image/{lib,usr} "${ED}"/ || die
|
||||
|
||||
# FIXME: requires proper mount-boot
|
||||
if [[ -d ${BINPKG}/image/boot/dtbs ]]; then
|
||||
mv "${BINPKG}"/image/boot "${ED}"/ || die
|
||||
fi
|
||||
|
||||
# strip out-of-source build stuffs from modprep
|
||||
# and then copy built files
|
||||
find modprep -type f '(' \
|
||||
-name Makefile -o \
|
||||
-name '*.[ao]' -o \
|
||||
'(' -name '.*' -a -not -name '.config' ')' \
|
||||
')' -delete || die
|
||||
rm modprep/source || die
|
||||
cp -p -R modprep/. "${ED}${rel_kernel_dir}"/ || die
|
||||
|
||||
# Update timestamps on all modules to ensure cleanup works correctly
|
||||
# when switching USE=modules-compress.
|
||||
find "${ED}/lib" -name '*.ko' -exec touch {} + || die
|
||||
|
||||
# Modules were already stripped before signing
|
||||
dostrip -x /lib/modules
|
||||
kernel-install_compress_modules
|
||||
|
||||
# Mirror the logic from kernel-build_src_install, for architectures
|
||||
# where USE=debug is used.
|
||||
if use ppc64; then
|
||||
dostrip -x "${rel_kernel_dir}/$(dist-kernel_get_image_path)"
|
||||
elif use debug && { use amd64 || use arm64; }; then
|
||||
dostrip -x "${rel_kernel_dir}/vmlinux"
|
||||
dostrip -x "${rel_kernel_dir}/vmlinux.ctfa"
|
||||
fi
|
||||
}
|
||||
@@ -1,237 +0,0 @@
|
||||
# Copyright 2020-2025 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
KERNEL_IUSE_GENERIC_UKI=1
|
||||
KERNEL_IUSE_MODULES_SIGN=1
|
||||
|
||||
inherit kernel-install toolchain-funcs unpacker verify-sig
|
||||
|
||||
BASE_P=linux-${PV%.*}
|
||||
PATCH_PV=${PV%_p*}
|
||||
PATCHSET=linux-gentoo-patches-6.6.111
|
||||
BINPKG=${P/-bin}-1
|
||||
SHA256SUM_DATE=20251015
|
||||
|
||||
DESCRIPTION="Pre-built Linux kernel with Gentoo patches"
|
||||
HOMEPAGE="
|
||||
https://wiki.gentoo.org/wiki/Project:Distribution_Kernel
|
||||
https://www.kernel.org/
|
||||
"
|
||||
SRC_URI+="
|
||||
https://cdn.kernel.org/pub/linux/kernel/v$(ver_cut 1).x/${BASE_P}.tar.xz
|
||||
https://cdn.kernel.org/pub/linux/kernel/v$(ver_cut 1).x/patch-${PATCH_PV}.xz
|
||||
https://dev.gentoo.org/~mgorny/dist/linux/${PATCHSET}.tar.xz
|
||||
verify-sig? (
|
||||
https://cdn.kernel.org/pub/linux/kernel/v$(ver_cut 1).x/sha256sums.asc
|
||||
-> linux-$(ver_cut 1).x-sha256sums-${SHA256SUM_DATE}.asc
|
||||
)
|
||||
amd64? (
|
||||
https://dev.gentoo.org/~mgorny/binpkg/amd64/kernel/sys-kernel/gentoo-kernel/${BINPKG}.gpkg.tar
|
||||
-> ${BINPKG}.amd64.gpkg.tar
|
||||
)
|
||||
arm64? (
|
||||
https://dev.gentoo.org/~mgorny/binpkg/arm64/kernel/sys-kernel/gentoo-kernel/${BINPKG}.gpkg.tar
|
||||
-> ${BINPKG}.arm64.gpkg.tar
|
||||
)
|
||||
ppc64? (
|
||||
https://dev.gentoo.org/~mgorny/binpkg/ppc64le/kernel/sys-kernel/gentoo-kernel/${BINPKG}.gpkg.tar
|
||||
-> ${BINPKG}.ppc64le.gpkg.tar
|
||||
)
|
||||
x86? (
|
||||
https://dev.gentoo.org/~mgorny/binpkg/x86/kernel/sys-kernel/gentoo-kernel/${BINPKG}.gpkg.tar
|
||||
-> ${BINPKG}.x86.gpkg.tar
|
||||
)
|
||||
"
|
||||
S=${WORKDIR}
|
||||
|
||||
KEYWORDS="~amd64 ~arm64 ~ppc64 ~x86"
|
||||
IUSE="debug"
|
||||
|
||||
RDEPEND="
|
||||
!sys-kernel/gentoo-kernel:${SLOT}
|
||||
"
|
||||
PDEPEND="
|
||||
>=virtual/dist-kernel-${PV}
|
||||
"
|
||||
BDEPEND="
|
||||
app-alternatives/bc
|
||||
app-alternatives/lex
|
||||
dev-util/pahole
|
||||
virtual/libelf
|
||||
app-alternatives/yacc
|
||||
amd64? ( app-crypt/sbsigntools )
|
||||
arm64? ( app-crypt/sbsigntools )
|
||||
verify-sig? ( >=sec-keys/openpgp-keys-kernel-20250702 )
|
||||
"
|
||||
|
||||
KV_LOCALVERSION='-gentoo-dist'
|
||||
KV_FULL=${PV/_p/-p}${KV_LOCALVERSION}
|
||||
|
||||
QA_PREBUILT='*'
|
||||
|
||||
VERIFY_SIG_OPENPGP_KEY_PATH=/usr/share/openpgp-keys/kernel.org.asc
|
||||
|
||||
src_unpack() {
|
||||
if use verify-sig; then
|
||||
cd "${DISTDIR}" || die
|
||||
verify-sig_verify_signed_checksums \
|
||||
"linux-$(ver_cut 1).x-sha256sums-${SHA256SUM_DATE}.asc" \
|
||||
sha256 "${BASE_P}.tar.xz patch-${PATCH_PV}.xz"
|
||||
cd "${WORKDIR}" || die
|
||||
fi
|
||||
|
||||
unpacker
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
local patch
|
||||
cd "${BASE_P}" || die
|
||||
eapply "${WORKDIR}/patch-${PATCH_PV}"
|
||||
for patch in "${WORKDIR}/${PATCHSET}"/*.patch; do
|
||||
eapply "${patch}"
|
||||
# non-experimental patches always finish with Gentoo Kconfig
|
||||
# we built -bins without them
|
||||
if [[ ${patch} == *Add-Gentoo-Linux-support-config-settings* ]]
|
||||
then
|
||||
break
|
||||
fi
|
||||
done
|
||||
|
||||
default
|
||||
|
||||
# add Gentoo patchset version
|
||||
local extraversion=${PV#${PATCH_PV}}
|
||||
sed -i -e "s:^\(EXTRAVERSION =\).*:\1 ${extraversion/_/-}:" Makefile || die
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
# force ld.bfd if we can find it easily
|
||||
local HOSTLD="$(tc-getBUILD_LD)"
|
||||
if type -P "${HOSTLD}.bfd" &>/dev/null; then
|
||||
HOSTLD+=.bfd
|
||||
fi
|
||||
local LD="$(tc-getLD)"
|
||||
if type -P "${LD}.bfd" &>/dev/null; then
|
||||
LD+=.bfd
|
||||
fi
|
||||
tc-export_build_env
|
||||
local makeargs=(
|
||||
V=1
|
||||
WERROR=0
|
||||
|
||||
HOSTCC="$(tc-getBUILD_CC)"
|
||||
HOSTCXX="$(tc-getBUILD_CXX)"
|
||||
HOSTLD="${HOSTLD}"
|
||||
HOSTAR="$(tc-getBUILD_AR)"
|
||||
HOSTCFLAGS="${BUILD_CFLAGS}"
|
||||
HOSTLDFLAGS="${BUILD_LDFLAGS}"
|
||||
|
||||
CROSS_COMPILE=${CHOST}-
|
||||
AS="$(tc-getAS)"
|
||||
CC="$(tc-getCC)"
|
||||
LD="${LD}"
|
||||
AR="$(tc-getAR)"
|
||||
NM="$(tc-getNM)"
|
||||
STRIP="$(tc-getSTRIP)"
|
||||
OBJCOPY="$(tc-getOBJCOPY)"
|
||||
OBJDUMP="$(tc-getOBJDUMP)"
|
||||
READELF="$(tc-getREADELF)"
|
||||
|
||||
# we need to pass it to override colliding Gentoo envvar
|
||||
ARCH="$(tc-arch-kernel)"
|
||||
|
||||
O="${WORKDIR}"/modprep
|
||||
)
|
||||
|
||||
local kernel_dir="${BINPKG}/image/usr/src/linux-${KV_FULL}"
|
||||
|
||||
# If this is set it will have an effect on the name of the output
|
||||
# image. Set this variable to track this setting.
|
||||
if grep -q "CONFIG_EFI_ZBOOT=y" "${kernel_dir}/.config"; then
|
||||
KERNEL_EFI_ZBOOT=1
|
||||
elif use arm64 && use generic-uki; then
|
||||
die "USE=generic-uki requires a CONFIG_EFI_ZBOOT enabled build"
|
||||
fi
|
||||
|
||||
local image="${kernel_dir}/$(dist-kernel_get_image_path)"
|
||||
local uki="${image%/*}/uki.efi"
|
||||
|
||||
# Override user variable with the cert used during build
|
||||
openssl x509 \
|
||||
-inform DER -in "${kernel_dir}/certs/signing_key.x509" \
|
||||
-outform PEM -out "${T}/cert.pem" ||
|
||||
die "Failed to convert pcrpkey to PEM format"
|
||||
export SECUREBOOT_SIGN_CERT=${T}/cert.pem
|
||||
|
||||
if [[ -s ${uki} ]]; then
|
||||
# We need to extract the plain image for the test phase
|
||||
# and USE=-generic-uki.
|
||||
kernel-install_extract_from_uki linux "${uki}" "${image}"
|
||||
fi
|
||||
|
||||
mkdir modprep || die
|
||||
cp "${kernel_dir}/.config" modprep/ || die
|
||||
emake -C "${BASE_P}" "${makeargs[@]}" modules_prepare
|
||||
}
|
||||
|
||||
src_test() {
|
||||
local kernel_dir="${BINPKG}/image/usr/src/linux-${KV_FULL}"
|
||||
kernel-install_test "${KV_FULL}" \
|
||||
"${WORKDIR}/${kernel_dir}/$(dist-kernel_get_image_path)" \
|
||||
"${BINPKG}/image/lib/modules/${KV_FULL}"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
local rel_kernel_dir=/usr/src/linux-${KV_FULL}
|
||||
local kernel_dir="${BINPKG}/image${rel_kernel_dir}"
|
||||
local image="${kernel_dir}/$(dist-kernel_get_image_path)"
|
||||
local uki="${image%/*}/uki.efi"
|
||||
if [[ -s ${uki} ]]; then
|
||||
# Keep the kernel image type we don't want out of install tree
|
||||
# Replace back with placeholder
|
||||
if use generic-uki; then
|
||||
> "${image}" || die
|
||||
else
|
||||
> "${uki}" || die
|
||||
fi
|
||||
fi
|
||||
|
||||
# Overwrite the identifier in the prebuilt package
|
||||
echo "${CATEGORY}/${PF}:${SLOT}" > "${kernel_dir}/dist-kernel" || die
|
||||
|
||||
mv "${BINPKG}"/image/{lib,usr} "${ED}"/ || die
|
||||
|
||||
# FIXME: requires proper mount-boot
|
||||
if [[ -d ${BINPKG}/image/boot/dtbs ]]; then
|
||||
mv "${BINPKG}"/image/boot "${ED}"/ || die
|
||||
fi
|
||||
|
||||
# strip out-of-source build stuffs from modprep
|
||||
# and then copy built files
|
||||
find modprep -type f '(' \
|
||||
-name Makefile -o \
|
||||
-name '*.[ao]' -o \
|
||||
'(' -name '.*' -a -not -name '.config' ')' \
|
||||
')' -delete || die
|
||||
rm modprep/source || die
|
||||
cp -p -R modprep/. "${ED}${rel_kernel_dir}"/ || die
|
||||
|
||||
# Update timestamps on all modules to ensure cleanup works correctly
|
||||
# when switching USE=modules-compress.
|
||||
find "${ED}/lib" -name '*.ko' -exec touch {} + || die
|
||||
|
||||
# Modules were already stripped before signing
|
||||
dostrip -x /lib/modules
|
||||
kernel-install_compress_modules
|
||||
|
||||
# Mirror the logic from kernel-build_src_install, for architectures
|
||||
# where USE=debug is used.
|
||||
if use ppc64; then
|
||||
dostrip -x "${rel_kernel_dir}/$(dist-kernel_get_image_path)"
|
||||
elif use debug && { use amd64 || use arm64; }; then
|
||||
dostrip -x "${rel_kernel_dir}/vmlinux"
|
||||
dostrip -x "${rel_kernel_dir}/vmlinux.ctfa"
|
||||
fi
|
||||
}
|
||||
@@ -12,7 +12,7 @@ BASE_P=linux-${PV%.*}
|
||||
PATCH_PV=${PV%_p*}
|
||||
PATCHSET=linux-gentoo-patches-6.6.111
|
||||
BINPKG=${P/-bin}-1
|
||||
SHA256SUM_DATE=20251012
|
||||
SHA256SUM_DATE=20251023
|
||||
|
||||
DESCRIPTION="Pre-built Linux kernel with Gentoo patches"
|
||||
HOMEPAGE="
|
||||
@@ -1,126 +1,59 @@
|
||||
DIST gentoo-kernel-config-g16.tar.gz 5995 BLAKE2B cddb80d45169749c707d87efd186f7a981534aab2479b6c51790008ea61e9f9feac35d0d74b95dc18281e4b81771e09f259a1d9f216f5d7f806fa7cd6aeeb4d1 SHA512 f8114e645e1ab99e45703790b7e43c2fa9ee17b41a2265dccdd9187c122bf8b5a09ba918fbcf094aa899bb959f05d105ed474b75cdfa9a19c4d49fd138825647
|
||||
DIST gentoo-kernel-config-g17.tar.gz 6024 BLAKE2B 53ecea1c19cc83bc3f6e13ad3b2e813999a09e2b29526115480e8ea7b870da2f4728918713f8eb0b351730b2cdd9f75e7515dc99a9b34a4079f7d15a1cd78425 SHA512 a5a78da8027492a229f54bfbcddf4e8e14304280db01d856071a9eb1ed9cd86111254498c5546a9908d617a012c914e8ded0afad5bdf28e9f237e321b9ab0f63
|
||||
DIST kernel-aarch64-fedora.config.5.10.12 223184 BLAKE2B a0246dac2f7a4ad6a55b611538d24382ac87a8960077811a859c9595ac67f961b4bccb7e139a89abc7c0e26e80832da5c94211fc658082f2e7dde984f14dd29d SHA512 7d803b347b136331db1ad6e22e0445fe0224c3e26cd7c034cbe9794915d457b492e05f77664865079874ec001351553652646e2e08d0fee31e30b841b0008f52
|
||||
DIST kernel-aarch64-fedora.config.6.1.102-gentoo 252811 BLAKE2B f6bad0d23132bf0dfbaa25db928a95f39763b6500fd1df9b4aeca4351e3e75f185891c0df96b111ad840e4bac431d74a9b11e7344e766ab49715663c89e4dbfc SHA512 41ebf195d8b656801d49c6bb693ebe1404b6725d70d88d93a75bc4af230030d65ef0701ea931846b022a3c598dcca068fbc38ecf6d064262b3f5b88e57060437
|
||||
DIST kernel-aarch64-fedora.config.6.12.41-gentoo 288081 BLAKE2B 08273a34c387621d0ccffcc325a0a34b40e0a8fbe78f2429c8a9efc73aa05f8fb563ed53e5fadb25662089f23ebafb61b2d08f91ea00b073e67e702798255e9c SHA512 58ea4f247aa9af6f7535ab5fe44dae2fbf286c7fbceeda86df532125807bbd4c25a89ddeeff4284592efefbaaef5022626abad7f1d1d64976e3040dc6e89251a
|
||||
DIST kernel-aarch64-fedora.config.6.16.2-gentoo 297085 BLAKE2B 0adf857e4b81998357f6ee4f254a6c72a4f3556c68e21bda340137a66b5de7e696c4bacaa15f49885b0bc15672b86b0255c51e6a58f74cee0cf72b7c7fa45cec SHA512 e33e1c429e9678d9a86f87d9dac8ac49b8f0c6f7cef071e76b84698435215c97cb302d1f9352346a3f10e544b03bffbfe5ded509a921f363fe25a858d3e24405
|
||||
DIST kernel-aarch64-fedora.config.6.16.9-gentoo 297074 BLAKE2B 8dcd60d7acc3b1c38deced6cfdc76892b4e4b0f682d626a39462851a0d99f63f918b9edfdd3a70e4be9cc557f06fea0713bb80f53f5bd781406834515f89a3e8 SHA512 0aa8861ae29869a349f346d431fd98e727ca5fe847f4affca0a54b1626610b7f7a97bb3da72a79b0cd1c54716babcdc18a5f4bf8e6aeb459ff329353b8d87957
|
||||
DIST kernel-aarch64-fedora.config.6.17.0-gentoo 299605 BLAKE2B 34b52ba9bab684b7252bb746b04a9fae223241253e035cc650e2ed14fe1ff8660ae5e204ccd3f6f58977d1fd998ecc41d7ad061d7134fc5ba1d289372fd600ba SHA512 55903d907aaeac2b6647c3176a5d913f2cd458032a02d8ce32e2a15fedced5268e45b9429c3f062b354b30470aeabd88029cc9f36d7296f48b6ec39b265178fe
|
||||
DIST kernel-aarch64-fedora.config.6.17.3-gentoo 299506 BLAKE2B 94d31403019edf5c31599308b07fcde9d8534b025035cef2974055190aaa457997848a4ea788218767c0542d47969fa1976a557aeaefebc596029713c5239109 SHA512 aaa8536fc97653c2454175f51e90c3c9c91c3fdba31b3e5264ab21760b13fea79dfdb08a926adbf06a8e4116fcdbc94713c559ae04b8f6d0c6b8604e04c8ebd4
|
||||
DIST kernel-aarch64-fedora.config.6.6.12-gentoo 271041 BLAKE2B 5af7c2f57cd6cd9230d9ab1a539a4b12b02cfdd777f5921b2d69329b171060a8085909a60eed9916aea504e8d9c9d1e907a61f0c6681ac75d5c64864052f821e SHA512 f744444f2840020dce2dc8473e3e562fa53ac1c34a641a9f322c2c7efd8fc4d9b3677479d3a31e705fa60beff0b1beca79ab78ad7dd4b6633d4499bebbfc76bd
|
||||
DIST kernel-i686-fedora.config.5.10.12 205412 BLAKE2B 92c715b7e2cd7dd74da7970c05981f520597d3e403ce82c8cf4eee31c9f1f50b638792a6bdb256ef5bfdc99f1bcd594e819e8f44dc6febb2ad9a854bad817f2b SHA512 69d8db11723ae1b40fdedfaace74d15bb63198cdb0485e0a1e5eba95b31217110c93a93e39cc7370cf45f1d3a8bc7f75ec096d6db5ea9ecb28ac6b56702ebb10
|
||||
DIST kernel-i686-fedora.config.6.1.102-gentoo 228064 BLAKE2B 9e783fc6087efeb0808437bb8bd80ccb54c29fd48a6893087a51b452dab98586f476be8d2dc4e0a2896308c9a0c185879deca46ffba1bb446b142ab3e81303a3 SHA512 4ef3eedd4c1ab78c2c5294121b47a2c4b465b4f537d12d48c397a7ab30ab4dc58b65d680326a23bce661d611aa37a2f98e814ec8e3cb84c3522151f09661e90c
|
||||
DIST kernel-i686-fedora.config.6.12.41-gentoo 255152 BLAKE2B 4d865ad46de06195628acfca1b4774908bd14212878b9a2ceb579bc47e57a17192000941e472f35b5fca0556f241701760bca194c3a48f58d5a75e4c2b07a8a6 SHA512 6d17f93a5a9f5a8cb3b3466c304ef9828eeb7b18a3270220b70d9219834f80f5f0945a6956e92d4da4f311a980525d77513e85691811d060246f9dcaa6327bf2
|
||||
DIST kernel-i686-fedora.config.6.16.2-gentoo 263837 BLAKE2B de77b1dcb3f8a14d83dd0133d6a19858ef15f8e850c0c70cfd1d3dbbccfe9aa0c5de84c7259ed59dcccc78dc5be49664b8cb1b916435540a6272a0177698e5ac SHA512 80433599bf4b50dd046111c182ace71700507db0e2a80806935b93a011c0a61653c4f5dd79630bb039ed268f14ca076c4d113db7d789dd325de2f66597dd3565
|
||||
DIST kernel-i686-fedora.config.6.16.9-gentoo 263837 BLAKE2B de77b1dcb3f8a14d83dd0133d6a19858ef15f8e850c0c70cfd1d3dbbccfe9aa0c5de84c7259ed59dcccc78dc5be49664b8cb1b916435540a6272a0177698e5ac SHA512 80433599bf4b50dd046111c182ace71700507db0e2a80806935b93a011c0a61653c4f5dd79630bb039ed268f14ca076c4d113db7d789dd325de2f66597dd3565
|
||||
DIST kernel-i686-fedora.config.6.17.0-gentoo 265947 BLAKE2B efce7edf95788ca539c4ce9ea6630d4de76f09673239348208b234ff9798d963489823b2581f431fdf95b00aca2fe3ecd2a1be1f4397a4fac3ce99b4d975668e SHA512 6c3923cc3f75a9ce344405bfd6e731b4e6222a707e4c03e44dce376acfe55988ee369c3314ac23cf33782bbc118947cc114c091ab2c8057e13b66f42913422ef
|
||||
DIST kernel-i686-fedora.config.6.17.3-gentoo 265947 BLAKE2B efce7edf95788ca539c4ce9ea6630d4de76f09673239348208b234ff9798d963489823b2581f431fdf95b00aca2fe3ecd2a1be1f4397a4fac3ce99b4d975668e SHA512 6c3923cc3f75a9ce344405bfd6e731b4e6222a707e4c03e44dce376acfe55988ee369c3314ac23cf33782bbc118947cc114c091ab2c8057e13b66f42913422ef
|
||||
DIST kernel-i686-fedora.config.6.6.12-gentoo 242515 BLAKE2B dbb4df93a5c8ee34d687262cced152a07f412a89ef2e8122429477633424fdac80809ed57a5a6de72de05313ec91f266d37c3494426099621d047c0561ccb57e SHA512 a65fe3299b6d8f89373937d2a782aa1469ebf18954b00bbf2798cee952b9946d7fead795388c079cb508f6d431e49b2812fb6d845c8a0e3861a4a3bd11e81968
|
||||
DIST kernel-ppc64le-fedora.config.5.10.12 192105 BLAKE2B 889141debb0656a358a3381bae14b5216b982acdfce0bc758f9445c16647807a68a788fb290199c2a1a23627bda1ef4c9405b3f5ac2a4176d1d2b55c71fb7db9 SHA512 3ab0f1401d9f50a61477c71369dede438f575d9d2c3a2f5c2cf36d624c2b59a938efca9c981b075511b3860c983eaaf5e5a9f877d659277f09ceba45edd43770
|
||||
DIST kernel-ppc64le-fedora.config.6.1.102-gentoo 218278 BLAKE2B f4dda4430e9801c4660be4bbf6e4b37052e720656e77c928adb7176ff3dba55feb2fe66dd564d41a181809488941cf392ec9c94d786e4a3d813fbe5d683d305f SHA512 a5e12ab1045fae61b494938047cf1c2a3c34693d3d242968e4ab564a012c70e6d232b9d5333347f5ba114a64bb59dd96919b38c5a1327fb8c5154ef40ad28d2c
|
||||
DIST kernel-ppc64le-fedora.config.6.12.41-gentoo 241851 BLAKE2B e7b8833572348037d7af2ba1f9671e8010276d853e0d85b8a175c0dcc5c212c57c7660be54a7ba2621c427cc8120acbeb1063a1c1a1c293894ebe1d63921b684 SHA512 7a81fe1c4b1d4fb9f2d68846882a8869c0888c8fa764ec41f41d27e61b7a69825ea8ceba2209b40deb7c0e8f4bb2c5d81226a4f28e7ca8aff4788bc7a3292194
|
||||
DIST kernel-ppc64le-fedora.config.6.16.2-gentoo 247451 BLAKE2B 19219e8ae6988cb5e80bff24fb1bcdafc1d87d3806133f10df6ed528fd0c6aaa0627f77098f3e036f900cd008b5f3a8da8f2e34bd3e8fb4a2aa4253edc1b7b7d SHA512 3db2fcd4a77fa5f4c0d775c20c4e4fb02c918f80dae251cc68f8d29bb4dda19a240a5f3e0e33f4d6dfcd6bfe1d664a79adf3e8537d17f03a8e451bc48d1eadb7
|
||||
DIST kernel-ppc64le-fedora.config.6.16.9-gentoo 247451 BLAKE2B 19219e8ae6988cb5e80bff24fb1bcdafc1d87d3806133f10df6ed528fd0c6aaa0627f77098f3e036f900cd008b5f3a8da8f2e34bd3e8fb4a2aa4253edc1b7b7d SHA512 3db2fcd4a77fa5f4c0d775c20c4e4fb02c918f80dae251cc68f8d29bb4dda19a240a5f3e0e33f4d6dfcd6bfe1d664a79adf3e8537d17f03a8e451bc48d1eadb7
|
||||
DIST kernel-ppc64le-fedora.config.6.17.0-gentoo 249262 BLAKE2B ff80a57f4f2b1598a90c7afb0e71708396f059058179fc4bc024195be2a504e24946f3e7356c2d3d461c0d5cba7b5744159e4f3c7018cc4275321e47df59dab6 SHA512 8b4341bc1d11719ef14d4c717fc2ac73a3bf53bef497930ef663313995e66726e7ed4be84e0704bc9f5f8468a6a01e038d14c0f0a9469c0e29f28af185681714
|
||||
DIST kernel-ppc64le-fedora.config.6.17.3-gentoo 249262 BLAKE2B ff80a57f4f2b1598a90c7afb0e71708396f059058179fc4bc024195be2a504e24946f3e7356c2d3d461c0d5cba7b5744159e4f3c7018cc4275321e47df59dab6 SHA512 8b4341bc1d11719ef14d4c717fc2ac73a3bf53bef497930ef663313995e66726e7ed4be84e0704bc9f5f8468a6a01e038d14c0f0a9469c0e29f28af185681714
|
||||
DIST kernel-ppc64le-fedora.config.6.6.12-gentoo 232147 BLAKE2B d67c2ab2d089ecdde3879129d2b1f85a592adae811ed053d00d4ff120e6bb44546bb41d74817be558adb1d669d06f3dd50e6ea542c8a9c2f13672f77f4e4eed5 SHA512 b130b4c57959c0f7be983334b08354640d5e2946bfdd956d6c5b895f816f6177d5fa4bb1c4382cca5c4dd4723aac42e9e89a002b71d86f4eb30f755008f8f9af
|
||||
DIST kernel-riscv64-fedora.config.6.12.41-gentoo 245234 BLAKE2B 802218a7610177426b813a715ae9b94e7ca2f2d8d9f08124208a8cd122f1a7e3ed5b1cd8a7e227a21a5cb7341554640fac321cb690fecbe9de78e7d8929b5847 SHA512 cc06482e7c08704fbe92d0f1c0e2f7c7469953119ddf43c0bf6a4f2fde55d0ad8b6b326bfa3ba8f01c528fc94ee14d889f93427db02a97ac8a26e8b9a0ebcf91
|
||||
DIST kernel-riscv64-fedora.config.6.16.2-gentoo 251903 BLAKE2B 9a391dc81449275e2313101e3c8461aa22b7302193ce8c9e3b1958c47639e98eb5353fec218b026dcda6778a576318cbdfc97e2037671fb52f89f1f24ba797c4 SHA512 836204822c6e2701068159ed6ab4322aa8720ab9edcf4f065ba583783fc6460d278dfff9c77a7276581eefc0b3bcaabbdce1633569f71074e8aa63994e9e1bb2
|
||||
DIST kernel-riscv64-fedora.config.6.16.9-gentoo 251903 BLAKE2B 9a391dc81449275e2313101e3c8461aa22b7302193ce8c9e3b1958c47639e98eb5353fec218b026dcda6778a576318cbdfc97e2037671fb52f89f1f24ba797c4 SHA512 836204822c6e2701068159ed6ab4322aa8720ab9edcf4f065ba583783fc6460d278dfff9c77a7276581eefc0b3bcaabbdce1633569f71074e8aa63994e9e1bb2
|
||||
DIST kernel-riscv64-fedora.config.6.17.0-gentoo 253885 BLAKE2B 7ec9d7570a3fde72f181d571ef2dc6a92067cd70334cc98186e451ae3f204bbbb9f2c904c90802b43788e95265f867f6f1b61e77f057322ce132440b7a269c84 SHA512 2da86c5a5cadca1956332cff8f078dfea9841c9a8f7596cd9c589d0076b8c4a8dc3ecb42ec0557a7c892d58333806754a9f705defc13de373c28b8a9f946028b
|
||||
DIST kernel-riscv64-fedora.config.6.17.3-gentoo 253885 BLAKE2B 7ec9d7570a3fde72f181d571ef2dc6a92067cd70334cc98186e451ae3f204bbbb9f2c904c90802b43788e95265f867f6f1b61e77f057322ce132440b7a269c84 SHA512 2da86c5a5cadca1956332cff8f078dfea9841c9a8f7596cd9c589d0076b8c4a8dc3ecb42ec0557a7c892d58333806754a9f705defc13de373c28b8a9f946028b
|
||||
DIST kernel-x86_64-fedora.config.5.10.12 206357 BLAKE2B 0eda9d4f3f973336cabd67c1ac78f100aabde926354743e8dcb7ff84496f0de49210d45f99bc850a2096078b0b4687aa7fd965d999248559506004f2b29dac0c SHA512 b12f43d3c1a52a4915cd73db98874ce9ae6c425672c0f1c19ed1b1101341c868ebf1c9620bef5449752ec0d7342c1ce38fb77779d0f89b9267096a605ebf7a26
|
||||
DIST kernel-x86_64-fedora.config.6.1.102-gentoo 228685 BLAKE2B e68236ccc1d51b2aff850eda9f3197b7ea95b8a88716bc7b07dad30348a86fdbb99a948060300dddae73ca82267d851d357f1c9547a9dcefae1364deebdbd124 SHA512 42bec2ddb9cf7eb6e84bbdeb23eb98dc11c9cea41f6134b776010c6b36833b520a290f0ef0145379de15c7f7834398fa5e3aaabd7258d7d4e89567faa09eeb4c
|
||||
DIST kernel-x86_64-fedora.config.6.12.41-gentoo 256210 BLAKE2B f14f7de8ae573561824df47cf94c3c0ce52a820456ebd0e618e4c1e7f5454b7d3f6f86c559a3cd98dd94c55aaeed397f3d0cee6b0e37cf6b47d3aedd920a9dea SHA512 ea87b4b45c78888e02d0288dd5844cf2d97a14e251b565c7d6451a0e62fbe0dbef38f46715467af2f869995d6bbc8be61d5b70476a86d607a5bfa27fbaf36e92
|
||||
DIST kernel-x86_64-fedora.config.6.16.2-gentoo 264934 BLAKE2B ad8ce402e5ffc1329d9cd8e2988f22540286af761158f22067918fc14223af6c27b5873782fc5f1dd12bd2b68101a537b438960dcb71ac4ded9effd9c4b19d02 SHA512 ea8c66dc9bdff50eb2c74259af6fb3f310ec06b2bb6a4cbb1f1ae3f138ff68e3f01f5871c7b18047859d76d43a1566e397c74fbce6a643f5ad97e12f0a545b15
|
||||
DIST kernel-x86_64-fedora.config.6.16.9-gentoo 264962 BLAKE2B cb01a4e5248619d975bf6fbcc64d449e8e24fcb6815af0f1260b3dab48b87a78a02564c27dad549550a66b065248be0662ed45ea84409e1bb8fd72fb3902de6c SHA512 ee614bd2e1c4f73e640d86924f771c867e03f25dcd98a2312ba8d9093597e4b421a94a40c4b84c94c4e6b0ceb5d289801cd6451944765fb64bca5a2b84223583
|
||||
DIST kernel-x86_64-fedora.config.6.17.0-gentoo 267029 BLAKE2B 8640bdbaac5658542cd683e08d5abbbd5fe96c856364b1a73342a58632269b76e370277697c424a060c10912e162d329ca3089e90e3327809204071cd8537062 SHA512 9f62da015a50f83368dc87f06a0f704f97187a582931bb8371707da4397e52eb72b0d23dbee5f90baf5fca4ef10f454ee9d264f94bf4d934d37950c62d7cf73c
|
||||
DIST kernel-x86_64-fedora.config.6.17.3-gentoo 267029 BLAKE2B 8640bdbaac5658542cd683e08d5abbbd5fe96c856364b1a73342a58632269b76e370277697c424a060c10912e162d329ca3089e90e3327809204071cd8537062 SHA512 9f62da015a50f83368dc87f06a0f704f97187a582931bb8371707da4397e52eb72b0d23dbee5f90baf5fca4ef10f454ee9d264f94bf4d934d37950c62d7cf73c
|
||||
DIST kernel-x86_64-fedora.config.6.6.12-gentoo 243607 BLAKE2B 7e670d37c6471e50aa0ba395570cd0173af0210afe63faa48d7a147327110652e3aab5c339cf10ed22a6a20e81e505aee84311beb21fda3eb577e06ea55ecac8 SHA512 c484403a60670dd006ecbe65240cb00d97e8b3fe22d1169c5b6ccb92bcdbddb3ecd474d2b57880b30baf6a38bcef11fc8d56b8b0b02fcddd859833c3640cdc9c
|
||||
DIST linux-5.10.tar.xz 116606704 BLAKE2B b923d7b66309224f42f35f8a5fa219421b0a9362d2adacdadd8d96251f61f7230878ea297a269a7f3b3c56830f0b177e068691e1d7f88501a05653b0a13274d1 SHA512 95bc137d0cf9148da6a9d1f1a878698dc27b40f68e22c597544010a6c591ce1b256f083489d3ff45ff77753289b535135590194d88ef9f007d0ddab3d74de70e
|
||||
DIST linux-5.15.tar.xz 121913744 BLAKE2B 3921274b23f7938abdf3ed9334534b4581e13d7484303d3a5280eddb038999aaa8b836666a487472d9c4a219af0f06b9fecccaf348fb5510ab8762f4ef4b7e83 SHA512 d25ad40b5bcd6a4c6042fd0fd84e196e7a58024734c3e9a484fd0d5d54a0c1d87db8a3c784eff55e43b6f021709dc685eb0efa18d2aec327e4f88a79f405705a
|
||||
DIST linux-5.x-sha256sums-20250717.asc 364595 BLAKE2B 75abc4c666dede398ee54a7323380496f75cecb9439261305a60200169430544eaec7bc9e6ee3d4b1beb667d51cb6c858ebe109e3a9446667e9b1793298aef08 SHA512 1d52b1dfc0da4d287f4d1d02bb05a38c24f5505002c567bedc48b4bfd523a2135bdaa8e103c75e7bf521d356b66e7b36009054a792d8eaf3034ae1ef09fe3ff2
|
||||
DIST linux-5.x-sha256sums-20250911.asc 368378 BLAKE2B 068e10fc2176a4e8c7bf19ce19c48f3fa1551af2a250267f0d177ff0a277d16506444c5bad5dca08fcbc2badfd22021a9a05cdad5e256ce84d5866d5fcc8fea0 SHA512 9e8ee63833ea184f54741ee7e04284ab4c181e5384dc0af12e51518269d0bbc57f4d20911b2888beedbbeffa6a9649fab29cd8a355277e26e55cd45c4875337b
|
||||
DIST linux-5.x-sha256sums-20251002.asc 369409 BLAKE2B 62c1f9ac1772cd3890d9afef5a2f7da95fb34441396db435c4969e7a268e01bc72b82dba8f5fdd77d9f895dc8d6ff62d236bc6960db41156ca68a15aa3f66ecc SHA512 3a2f452d03ef1c2bfb60ba12021bed5942d9d8d96944e38eff905724e1dd2aeceeda133fe2c4e4d77d5caebae1b8e8d06dab0c8f18d44ed10659306c43cb9ef4
|
||||
DIST linux-5.x-sha256sums-20251019.asc 369754 BLAKE2B 43d79e2fa32a32f489bf4022f455012dbb1f60b6a961f75da96266b29ca552cc6d9480b0cbc3edd2460287431722c959b2e65c8e1e201414475f9df98fd97476 SHA512 1f39d7a6cc109cedb9d593c8db6f21513a3337650e993f39a2f44c9286cf49a076fefb2fd793b094196cef804062d54434b15bd30f1d6e69e18040e01277e171
|
||||
DIST linux-6.1.tar.xz 134728520 BLAKE2B ae60257860b2bd1bd708d183f0443afc60ebbd2b3d535c45e44c2e541bd0928530a3b62de6385dd4e4726ebbedcc0a871d4f3ffb4105b9f1f6d8ed7467f5688e SHA512 6ed2a73c2699d0810e54753715635736fc370288ad5ce95c594f2379959b0e418665cd71bc512a0273fe226fe90074d8b10d14c209080a6466498417a4fdda68
|
||||
DIST linux-6.12.tar.xz 147906904 BLAKE2B b2ec2fc69218cacabbbe49f78384a5d259ca581b717617c12b000b16f4a4c59ee348ea886b37147f5f70fb9a7a01c1e2c8f19021078f6b23f5bc62d1c48d5e5e SHA512 a37b1823df7b4f72542f689b65882634740ba0401a42fdcf6601d9efd2e132e5a7650e70450ba76f6cd1f13ca31180f2ccee9d54fe4df89bc0000ade4380a548
|
||||
DIST linux-6.16.tar.xz 152620004 BLAKE2B 87bc4da7e89cc8265aebffea7ec6c09f711be24fee87cb1c03a264c03fd5a538d66aa806640835aa5103926e612cdfbc52d7c861d7f7065f1a8bb11d893b0921 SHA512 55a00f89ad6db6db2e26ff5dc5cfc96bbf6654e5bd5d17d2a3b944a47640367e54139716d230923187bebc6cb7756edc9511a620fb8abc6f32c50a658a734784
|
||||
DIST linux-6.17.tar.xz 153382068 BLAKE2B 0edb2324be5638aa75984128aafdba3e50824187d2fcdff8794eab99d85c10c3a17d1e840053c2c83df5ee11fdf69f1c9452c57ecc9dae01c4af38180fe7821a SHA512 063999d7b819970657f6b7713fdb4173da2065ffdeed7cae197026dbb1edfd7f1d50374f073a1e19ef9686539594824ff6ecb8a930d97c4f272cb12f1c6d8355
|
||||
DIST linux-6.6.tar.xz 140064536 BLAKE2B 5f02fd8696d42f7ec8c5fbadec8e7270bdcfcb1f9844a6c4db3e1fd461c93ce1ccda650ca72dceb4890ebcbbf768ba8fba0bce91efc49fbd2c307b04e95665f2 SHA512 458b2c34d46206f9b4ccbac54cc57aeca1eaecaf831bc441e59701bac6eadffc17f6ce24af6eadd0454964e843186539ac0d63295ad2cc32d112b60360c39a35
|
||||
DIST linux-6.x-sha256sums-20250724.asc 159789 BLAKE2B 9a85b54a784ea9f026ccc7d63d961239f09c0e656a67eac035fac6d7f3eb8bbebd67097a1a38b6d06ab232e79411e6d0ea2cce30eb7972df4cac65fc5f63c664 SHA512 dd79403876b28843987b7685962a9f79f9dae3ae680ff1dd915ec78218c235df4177d1197f8ff9e2a05cb11a3464808dda4c15441626e0fc5b91bbbc217537d0
|
||||
DIST linux-6.x-sha256sums-20250801.asc 161137 BLAKE2B b2bf0bde731b85404a19a7da414530d7d5c5df672e79d49eb8d55ba57e51d86d53d2cd5e69c7413908c06e4ec7f2a743eb022d6011e81e51faf0b33c2c8086af SHA512 927477c663091ba0003f743d8c82e3116eb95f5f7c10b0443e058fd43d3d7c1746c866e02e11f3ffcf9ccc0dcf7c6958a6ac7c869ee998e1c592893728e2b1e7
|
||||
DIST linux-6.x-sha256sums-20250911.asc 169634 BLAKE2B da96d04ed279153edd39a0e9936a49e6ed688ea1d660eba3f6543a27167bcaa5884ab5f802f7290cd33f703e99244ff0a0de94af9793e923f14ca762563faee9 SHA512 bbb722cbf511b748979d9e2ee8c216e6901473234fc2e620fb320eaf5f5da0bf19b56798011021a829edb10a33cd75f12c898f17077efeaacdeb38cfa186c73f
|
||||
DIST linux-6.x-sha256sums-20250919.asc 170994 BLAKE2B a1082e77bf0a127dc8a256f722fab9087681d1be2b6f0a787171fb3eaaf899ce48f1f4647287e3b5f5f302131561588b0e6ee0a0d172b045034115e0620a88fc SHA512 e66b3334582ed3df4a6c79e252fdf803e208d8995b11b857d5ab80fc4f9c3260db546408a85d962e788f19be40c5bd4a513988983ea08ab3c247beea7adc3bb3
|
||||
DIST linux-6.x-sha256sums-20250925.asc 172354 BLAKE2B d47d7b4ca3ff08154c84ba895476362bad0fa216691e29d3375be55fd0ea60ab8829e50d3086fc045d04369b6e81fdec78e556806ee56e357b0c625a703da9eb SHA512 931979d856ec768bb59d54c3403e19d7a4afd59d9f79ea320b4a986431d286ce817a0a7bc2538552af89fb3257dad79e03f7c445f3252bc1a8b06c2d8413ee97
|
||||
DIST linux-6.x-sha256sums-20251002.asc 174047 BLAKE2B 472be6fbe67c21d21178f648aab6f34bdfecdaa17e2acbb6a54341ba8792a71eb5ea8172bb1a95ec4fcaeaf140f50db5cf0e4ebd0ef5ba898871fd4d213241c0 SHA512 b36add7db9f0fde5ee77025f454a9acb94b463c4c04c2ccbc8dc21d51d16b945274f4844fa47d32e3dc48135a1e35eb4cdea973203366f7ca1c243d422fb5e78
|
||||
DIST linux-6.x-sha256sums-20251006.asc 175407 BLAKE2B 369d5935711756f4a9b6dec658e15817160ced94da8787fa19316707a3599cfe450947a4e69544f2182a7f4f5fc062ad05aa41126847c88ca409a3d14cf4ecc7 SHA512 2a108737b88f4dade9ca6c104a2c20698b3b0ba219417edf56622ea630c1d3ec1d630472d58ce2bf859255f018d4fa423db4e043ffed3fb618068a65669f9a14
|
||||
DIST linux-6.x-sha256sums-20251012.asc 176767 BLAKE2B f7e4acdfcedb9c5dde535210cf6f65acf4ebec917db08fc10a2ae5fac47b6f6389d93671ce3e0a32bb1011814a627dfe688de09200be706c76e38b8c2707301b SHA512 6994d816e509fe72393b107cca386c09398ad8bf7f4813ed2479b78b9c01eddd3b6bceabea262793dcc2b64c89c674ac84b61e1548a39216203b31ebe2ff8b5b
|
||||
DIST linux-6.x-sha256sums-20251015.asc 178127 BLAKE2B 726dd0bec1aac697e998ba37cbf75d008ff1ac46d344f82e7e8feea9e60e2d30a0ce403b68854d8ff1c0106c2a2986f84cd861a3895248b25aa131e6da16d9c9 SHA512 a59379fec232b4d831e1a2e2778274f5e9ba874eda4710eb52ebb4268c74d6e41997d65fdb3bbb50226f103f61f06c4a0b62d2a09e9ac2731085c8fc4e1df950
|
||||
DIST linux-6.x-sha256sums-20251019.asc 179487 BLAKE2B 51ef5573677dadd88d0e221035b98234a09fe70fef44d4827264c73d91f64fded9cc288fa07c2cc0cd1abcf41adb2a99f2f2291130418299ca2649654cb9db8e SHA512 8dba06afc30f76c6ac896271c5092c263a30b10a2aeee890659f26cca64f178e12514c55d105cbdb797846c9adb9c9aea91bd28ba97960d2a44701e1b1dbd4af
|
||||
DIST linux-gentoo-patches-5.10.240.tar.xz 19396 BLAKE2B f61ba4218c2fb65f3e67b7c3480936fdf00edf8e278554d5aae81ce7ac71c8f8c83f7b71dbbd679ac2305004c847b0a11670b59b137fb11cf77c4d0849ddfcf8 SHA512 3368213c927b3d672490d0af3653dcc8d8784ea165d70a6eaf3fdacb936637a67a07de4b3a06a06eeb42109a083bbf82c3a5a03b1f98a2d240039de6ff704d7c
|
||||
DIST linux-6.x-sha256sums-20251023.asc 180506 BLAKE2B 740c8af4ce2c9b6e9363df1dbb3ffdeb6a5c6900965ddcc9d144a6ce412e9ad5c0d669cd5446e91b2b5310c25e3226cf3c18c3bff8c57b461773e9d531d46967 SHA512 2ad1d2c1dda538d0dee77d38acb3ce277d7f44d61e681a02de163ca9bc7fe0ce8902c5f29331bdef3ae681738503667b7e298c068f4c66d3e45305c7778fdb16
|
||||
DIST linux-gentoo-patches-5.10.241.tar.xz 21004 BLAKE2B 80efb313e1581e8a086bb20d1f30f59ea7982dc0fc3140974182a3802a49a00fae266222c08d3cb34eda7e315ef429bed25f145959c084843c58fdddfa68a2e9 SHA512 3a1b24d2fe5f3130e88abda428638d31adf6617332fe3baa7dfe6425d146e7607e5f8b571f406f0370acaf779cdd45f57af964bd955a3b5d5622d792527a5de0
|
||||
DIST linux-gentoo-patches-5.15.187.tar.xz 8636 BLAKE2B 64db6ded446586a589fc36753258ec166cc1260b95fa43e7612f0e5f3f831668dd81c5ec6339bf3bf2dca6228c624cf114ae9380290eddb4acec949f84de3ca9 SHA512 b18fd19031ad2f8078ad37cd654a6dffccbe53cec1e0c008ff56c5088a32c7c87895cc00be64d79f5252e842ba757a4e6681a09e5d0ef2f986c9d67666eee81e
|
||||
DIST linux-gentoo-patches-5.15.190.tar.xz 10240 BLAKE2B 41c7a6f78b3ab7b442cb067dec112e8b38d7024f5af10a69839563109e705a52c1d61d7025cdb62d2ea2c99c1c64a8a05ae909795642aa667689d42a9e6c9288 SHA512 dcf79bec5c424bf9f81ae1c1e2a122f4ffed52e6e2d3123ccfd7885c43bebb627e2b34c058ea2e3f0aaeda0e0114a69eb03f83d10c0c1c5d8b6ec7a89f087286
|
||||
DIST linux-gentoo-patches-5.15.195.tar.xz 12876 BLAKE2B d675d4150c8292c4f4b9846a26c53099910905e04e3015cfb3cb60e53dea99028b2e6fcbc345255246103699910aecf916054a09598e931d110b31db59a0b517 SHA512 e86691215cdab56a1a4fbe9aa3de44bda93db5659c39b04bfce53ed6ad8ed6923853431abb9444471b227421619c40e8841dab582b8007216e3c22e2b348a549
|
||||
DIST linux-gentoo-patches-6.1.147.tar.xz 29060 BLAKE2B ba49c42dad2186d320b37a2ed456ff0388de619bee4bda26336939567b2575be1cdf7adf853e28b7b5b1636a9638238337ff0e4f8001504c4e90287af017b367 SHA512 1e376dc5ba8f6d76fdeeb611802248b045059a4a2a7e174c31a73216d78f462366d88439d9cec2a60f493ba6258d5824d752f0f95b263349a0d12b3f196cbe32
|
||||
DIST linux-gentoo-patches-6.1.151.tar.xz 29532 BLAKE2B fb668de25f6bb9086d4fa1c76768c5790b44dfde9dca155a87b06486359cc8e7f56b6f9f032cf48739a14b47cf45d128c51be704ad4a3c0fe602d0c32c8adad1 SHA512 8df05c50f5c634172f517ba2df7856752b433f3316649b1955f1dd2784adae29558c1e368421f15ab91899228e1f77891f215d65e71e8966fd5d982de33da6b6
|
||||
DIST linux-gentoo-patches-6.1.153.tar.xz 29056 BLAKE2B 4a00d70119f3444d4e3fdbffbd82da7ee00c74522624c3cabe161cc30bf2bb8b2df02bedc1e09599ca3dfed972647a833705e2373b1f4eb8cd479b622c3d10a3 SHA512 9fb87b498e2aeda131b3ac367802c41e273dd69676f1ec96de4462abb4a6822bd1768bc68cb75fa08b389211a7edd59cdfc8ad34ad0f74b2d0c5d39748a2ac7a
|
||||
DIST linux-gentoo-patches-6.1.156.tar.xz 31604 BLAKE2B 09ede2987691e372c41567d975070451d243662b9f86dcd35489b63b732583e34431e1ad93ade3f9ea77dddae06e71e5752c0d12b3b6d0765106e19fe30876a4 SHA512 2f4a7960956c3aa7bbb46b20d14051ad58f07f45f8c4a6115100aaf6a46ddeaf414e1247d6034e4f71bdd7fd9479cb1b1bffab5e480a0422ad9af3b23e2bf95c
|
||||
DIST linux-gentoo-patches-6.12.40.tar.xz 19240 BLAKE2B 2e5bdafcbe44cab520c86d7ab37c48c5b032693cee5674d1625432e4ac6285137a3df2aec24abe4cf795247f76226ff236f09f7e748ba3bd7db81cc76af03526 SHA512 dfb551b87530b0509293e87cd70d2d91f1c669c62adc6c7f34395ffdd5fbfc19bbfe943f84c188653a71bd627bea95f5f9391f4edbf0e269a8da98e191477fe2
|
||||
DIST linux-gentoo-patches-6.12.46.tar.xz 19724 BLAKE2B edf0bc009a30dcf5d22c517bdfbab4ab7e4df3510e2102071fd24788d5cfc610434da2e92092ca5424e12e1676149b510f2de7e937be1ed96d0db4e2260ad42f SHA512 dd9d7c48767f3db0a8a6a33e8ffa9ecad4345044586d76de65d42e8985ef794bf7ab547852a1653bc1d66dbf4accdfc06cd5e35265cd2d2cccb0aafde21d8950
|
||||
DIST linux-gentoo-patches-6.12.48.tar.xz 19224 BLAKE2B 9265bc0cc7be0ac7bc51677f750bfa642dbc7530979ad5a743f6e29ca4514b79dc0a906fcc324482a26f53111d7a7f660071857aab875b25ca3e1dd9086a6407 SHA512 63c4b64e5ca1857ab71e92633ca32941f9e4c2ca37f53897d5f257effb9452721be5606770cafaae6ce238cc9cf3a5054c56a519111713c0d462b79549aea669
|
||||
DIST linux-gentoo-patches-6.12.52.tar.xz 21836 BLAKE2B 7b39c3a97fdcfe76e12f2e481ae1c9d6c339ffe133cac956ba485bb82d8766d26d88295c8672eac07162c2968c42cfa12d7705b37dbb8f2f6b09c499ce2b4ac2 SHA512 8005072e872b78e364b15e1f32c8b6bfc0d1f96c8c051b01d4ae60e33250e842cc7ddef602a1caeba2e3914100fe3f319f3e8b171c2079967565efd169d8c558
|
||||
DIST linux-gentoo-patches-6.16.10.tar.xz 86452 BLAKE2B c38938afd6493812dfe89b9212fe8aaf8617397468406ec97b7604848847b0cc9ede75ec55d1072d92d811a80edba8dd3aac796013ae981cb459ea50f5f57074 SHA512 092b77273757bbc713471834d076e0aeab489e34b371cf708ad978cc2f9d1a3eb8470d8d8b2d2276240ddf54f518aa0a20f2cca55ed5e209761ac87d0a446404
|
||||
DIST linux-gentoo-patches-6.16.12.tar.xz 88116 BLAKE2B df60dd2678e852f25d7c1f5c2f75351b2100c1034095f20c1895e56f81a7fe155c6ef35103e7074c34900c48677972e93a4fca862e91a8022c7023af240fb96c SHA512 40fda7e21d467c06ddcc4e9010d7bdfbe44bf64d6086571e2c61e27ecb2b3968ba3be520c73600eec95fd602b5009d7beb6681d8abf1e10dbbee1cd1b5819329
|
||||
DIST linux-gentoo-patches-6.16.6.tar.xz 86164 BLAKE2B a8d0590281c9e10008558979d3018fa5582ce052b8fbeda56b11115ae38ad3a8b3e5059513da86e89b2e8c1b4ac7525b3ce0260e3a25fbd0ac825b80edf697fa SHA512 799014df1f30fb9ccffcb6620611e6e11a94d9917d9ae7905e3647b0f1cb6699276c29d37efcf258465ca05819c3a457f334ef339761a2543c494f148b50eca0
|
||||
DIST linux-gentoo-patches-6.16.8.tar.xz 85692 BLAKE2B 21676e3d6e11913705c5aec2f6c23db0dca875487323c7b72ff9d367e9c52daca4b9676b91f44a3f51b45f2f110dad6902c3b99d500f54ba5a3266d839af2a4f SHA512 daa71cabd4d36bbc8cbdcb880ed4d76c6c995239d2a0c9c86749d86766ae362f896fb4e7da263b53dc3d81043eae8cc3351476cba62dea73b1529e4d661a9269
|
||||
DIST linux-gentoo-patches-6.16.9_p1.tar.xz 87740 BLAKE2B 1c4461ee590ac5a918be8141a9941cd372cd24580fbf9daddd9e58e6fa355d6d2b5b98bf3670cf036f4ee574b4ce5573fb0544461655e1389e648a1a84828baf SHA512 cd7c454247562610974249c199ca7650990bffb51a31a298e34e921741c7aed4427257fecbe97acb2dd7ec0ab273bd41edabee420c00cad1ed7d8a9f5f5cfea8
|
||||
DIST linux-gentoo-patches-6.17.1.tar.xz 96764 BLAKE2B 07abb414942e2268691ac701b4f37f47013690a5914d9837b261761524a7756547a540826cef2df7e1a80f708c1931238c6eea7d69304ad0df7c984059077776 SHA512 63cb20a8be8f205aaa54963ba646f5f077554175312829fd3a03d147712cbb1d1d2163368ef7c5fb46e6975c4fa3d6e864a3eb438591a3f83fdedcb137732a7a
|
||||
DIST linux-gentoo-patches-6.17.2.tar.xz 99184 BLAKE2B 867bbf3a8cce987dba3381a874985e614187649e5341bc8c43f97e0b501ed4cfc4bce2ee7d8114ce54d75605151c7dbfdea51e9e5da7af3a834b169bb6998eb1 SHA512 149946fd38c22ef5a8b198011f4a044d3c00a93635f85b3c0d0f1f4d74faead20355acf3ff0ee55df89361fd48e8270219f52feeae0688b92d090a1c59a20ba8
|
||||
DIST linux-gentoo-patches-6.6.100.tar.xz 42828 BLAKE2B e9d17c21e5355919e30e1a93178d3977d6ca1bf964ba18b601518616f31e098d65cb5008003fb6c8e1a8a5cc3ed803eaef3e1c9af5f1a895d230f172412b1283 SHA512 95c2790a5ebcca9f2b9e1ff098be0bcb9ef60f134a0f955995f27c020cff0d6831fc1af7c159b0bb918d3e3eba351f9428458d6e6964e9e751bd85afd47f7a2b
|
||||
DIST linux-gentoo-patches-6.6.105.tar.xz 43320 BLAKE2B 0d292ea8ab4d5e46821ea3d9cbfaa2151527eb1b020652ab3703a34c6466697b7265e8737c15cb4f73ef289f658cb394d841e275478a555143ed1fda3c1ff137 SHA512 0658fd70e2ed54dd762ff4faf080326f114204bab54c4a95302ff8aa3ec5c37a0fbaa7aa68549f0ca589fd26e6031811da52348347681e84a4a82e87c8bc8a3c
|
||||
DIST linux-gentoo-patches-6.6.107.tar.xz 42824 BLAKE2B 610fe8edc678a6a41f925a9703dc94920a72912f69793be460ebce6421cc016a1edf3023be05cfb715f8c3657be5e8ca4ae9cd89d982f8d55b22dbc53e150c9e SHA512 0fa6d34ac91c79b59dab60e00865e430aa39f9121728c9557f5345d2e9c0820ccdd3984505d3a6d4a777e917cb29289c807530d0533bf40a3e8bda4a711a98e6
|
||||
DIST linux-gentoo-patches-6.6.111.tar.xz 45328 BLAKE2B d940d418295c07fcf55614fe415b8124bb9e6abdd2cdb992f9b06ceb3f752503bf17df4224f781cef85170928a76013227340235d50b514899d3893d2f94efcf SHA512 4555fad79908133b0fd0ac0ec03ef4f5b6345974e4243b35255e1ee24182f1091366bb39f8d0cf40f67dde04eb688e95e2902c048b8a3b7aebae64fcc7c2847e
|
||||
DIST patch-5.10.240.xz 6786568 BLAKE2B 1cb287b2c99bb403585cad3500a2de0819db40ea62a72d276c2b53d8637915cfc0350051bfdfc99cbb56a4e839331b7e11cbb2abdf6768a683d44e798ee5862d SHA512 91f059de27701a33e5c4d40f2d3e982dc60d9dc14fa8cb6a0bbd49e4452195715f0093a563e3a1db1efa37b3a1e09e74b0a6d53f77357757ffd29374abcead19
|
||||
DIST patch-5.10.244.xz 6886012 BLAKE2B 4472ca1171fa697c4e9de7835b82e670b22e2b8f12c3f8b2b4197321ae468d333691fda1c36ee480d2781a62229ce8adc394fbea53d1420cd823c9383739149a SHA512 64d02ae7401effc89e906a1d0e54293af14ad7895d55b39424d67ab98b79cdc12d197b01b95dcb6fd6d4010ae13d8e123e2dc725914dd010335fcf43a8724be9
|
||||
DIST patch-5.10.245.xz 6907208 BLAKE2B 1015edea300289cab5c8e4017920419035c74bb5e589747fe1711aa82e9cacfda38e2bce2f14b02aee8ecb66e876066be8bb8db4c186aadaf72ea92da8dc0c20 SHA512 c29d28bb920d73153b5f6ce88d7e9c4f6888fad9ec04bd196bde33778d3a0bebb41f1c2f396780e1b2b2972144102cf4ac7c4479ad25b1182cab330518560033
|
||||
DIST patch-5.15.189.xz 6955776 BLAKE2B bd2bf4ad70014395ffac8874434b2caae7823b1b9999231738552d9f23a53547533c248fdb7fc4b4bdd60dc05e8898a910e3e94e6f5edae7ae96a66937f387a2 SHA512 8ace7d82af676b101ed37c382c9833193ab487cbb15b8444b92ccf8239e2c62bfb70ef7342ef6f694d71e8ac72b7db445d544e4ad285d9bd977365350bf155d3
|
||||
DIST patch-5.15.193.xz 7083524 BLAKE2B ceb5cafae883916d5b0786e2aaf178aa841642aa4829c903d5d0697b53344400b9654642ef2c888a7ba41b23b51c4345a5748b552d36b4ce50673f9e6890dd74 SHA512 92048ebe709dec716391615dcc4135dd6ab764b4d36f2bd550b4e248c860e6f7a6b3451477ac66bade53e1af7edfd24179d48e832d3c6eebd9f1ff8d5722c747
|
||||
DIST patch-5.15.194.xz 7107504 BLAKE2B cf8fa36126451deb0376db6145351c5089bd15abe2054206195d624f2d9d744e633c4428023ca584727d904e1c9014108f0bf22bed963639a3fe85479e78624e SHA512 ae23a0aebd42d8a0f9a498fbe58f019493cd9dfa9091e240c50236d53aa19fa77d293069d39c8a6adfd58dbb65db6141e816b825464fa0b060650bb6c722f9c5
|
||||
DIST patch-5.15.195.xz 7158088 BLAKE2B 63a662a495ea38091a522671ce876c976a7b4405f2d333f1edbc7522443d2783a363e03a09edfb33d044efe82e8547f824a6ea322908cd00b6e35305b3e54b7f SHA512 564924cd372abac65ef87ec797be82310cd224fb74c976415adc3e40b73cc102c78498be309a0c670509f45664897c897bccf3a920634a0315da158348adc23a
|
||||
DIST patch-6.1.147.xz 6320180 BLAKE2B d109214e0682653ead5f62f5699d0bad2764bae1765789720d780e74afefadc39faf8e833df1ee4cc1436e4db5facbfc7f4ba8c3b657fc48aabda3ab84a4b540 SHA512 2cfd04771f982da4b65caf53cb944bf9ae2888a32005428adce383c408c35c72bec5d88e49670deb87011f0d6bc329e0a53adcad065aaa716ad5c8baffb2fddf
|
||||
DIST patch-6.1.152.xz 6486524 BLAKE2B f9b532c867b2b5a15d28c08f89f9a30252b4b9d55dae069afbabc1f34eef570be6a39a6199e135c0cca18ede52accefa546dfa65342c8f6429a5b00280d1a56b SHA512 14fd84fc1f80125331940de767510a94735fce70f70cf71ef5868a46481ec146a2a6983af26935014547c90b84ff524a0e4a7341e8511fa18b92ae33fcd25a1d
|
||||
DIST patch-6.1.153.xz 6497932 BLAKE2B 67a540a290ccb6db0b4f83916102323a53907adb1d56874c11a11c91fa402d0a80f2151d9d1bb6c1dfb59522e239be788c0e4d5718b8039cf2016c7debd26a4a SHA512 d988204e844c17c18fa6d39d5712afc5a326374e82eb049be7c80d625be16400ea57accd81f7c550c69f8f803d01f48ecd4b497145a825817dca1b450f7bb5e5
|
||||
DIST patch-6.1.154.xz 6507340 BLAKE2B 5333097c2375c59b2bd73acf4b02cf60bf8aedb085031075dfb6c1df88995330e62163fda59e98e756b1456ebc3995b699102932b50e5e15ba59a1f92eb6c877 SHA512 268c89cef61d4fa0c83eed99f7056ca5483f855b6e78004c384c963cff3a21b68313683ced3b211d4b3eacc9481d3ca7e71dd8aa98912444ea1e10b5ed40cd33
|
||||
DIST patch-6.1.155.xz 6523120 BLAKE2B d7fded35eb0b20ced762bbaf0caadc53bae23243f3fe3a2ce25a3461c5cfce131541826aacc8764803edb6eb6abbf8253a324659f65186ce683909382ddd43b3 SHA512 4ec98b90483f80fce40dcfb134b7ebeb4b3fc9d257b0a2a6ef6b23f77e786e8a13c7812fdcd8928b40ebfab28b247a1e8d917b5429bbac538a2af441c4f53b77
|
||||
DIST patch-6.1.156.xz 6549524 BLAKE2B 3dd6e04f40fe58351f4a832550ff3058d840fa0e71768f72cf9b0930772a67f5bf60b0719460ec0a9e33185c13240f26946979bdf9d1982e48e69f35e7642b0e SHA512 abbea02001a8caf931baadb38fc30346fe69786fa26d6494689fb4fb77fe83a5716714363d0f7d5d47f3c13c43fd09ecee3862a6c5b926064ca64aee7b3d8184
|
||||
DIST patch-6.1.157.xz 6579568 BLAKE2B 57556c1ebd47576a12155d3b00a5c238d3667a18f9d16f260ca3c2638239f5ec983d77df1ad8e7d161977c7197d3f7e0df54d6d4f695a60052975b3cc11f93c8 SHA512 0b4b7d14a47cae3f62812ee17b9de7224d0b678249148729639fa2f3563208237ec047f6a52f7c904f49f0442f630dd7e5a09f1c445dd8912d98df7f10c2d409
|
||||
DIST patch-6.12.41.xz 2584360 BLAKE2B 8cb7d77a45e79b186e24bc59be15d74f4e9ea4b7c7f7b5c81b82eaa9b1a8b88a7aabff6768471d905e24539366bdb85593304365726307e19bcfa41937764bf0 SHA512 b9307fafe443eb61b0edc624b2c9ab7a0206765eb614683e0f01d7f7fab04a729a91d92d67b8ace03208d6b63088ff235203e8fdfad27adc97cdbf7df872b3c2
|
||||
DIST patch-6.12.47.xz 2896968 BLAKE2B 4064af2ae029d13d63a0a6cfb9e4121266ab33622c03e088ad3544a0f5bf443d75a2ff2f7c35b58d7cc8669acb0eac93165cd3bfe5d8567f332516850bc9f7a4 SHA512 19bb9e9e235fa408e3b37dd6fe475f1dc7690bd09274dcdcb722ccc9733da9169dbaa97dffb15e0b32da6a62cd89b2da8cad32b4d2f16f2fbbd9d023b5ebae9b
|
||||
DIST patch-6.12.48.xz 2931416 BLAKE2B 888711e5a4b9578bdd09379aac0b385b901e9784e1307b2c36a700f996e6deb9c2e6531ea2a4fd4daec6bd2cb44c8a7767d00e59922c2311e448592605929e00 SHA512 f7a4999b1f2d2019fcaf691a2c0f1797be73858404fd4825962ec32945733fe98f625d8451d9bc264a1c14500b4596be6b73ea947da35e7b27f044f08642f2ab
|
||||
DIST patch-6.12.49.xz 2955076 BLAKE2B 8f333d832ea1fe060000b3b14fb2e91ee2302df73f3e84a49a4813f59a254f56b51e7d7b8ad0a1f6c83655f34eaad41f97d70111c12ecd781d62b273a91c1af1 SHA512 38d48f5d76489936562b1ea0b62482ecfea1b2e1ccde07742f93950ce5f059897904b2c4342b6e91d2b647c283485c6f69d56719a9a3ed41a9e35f282b5e1dd1
|
||||
DIST patch-6.12.50.xz 2972204 BLAKE2B 589b11a26af4f14181e12f156a4d34e884e7b8310802c22a63d3494b9a4507d275e3a437aaef7c7c5e2736ddbf71fc91ee4a9ab11acb252c89a16697c8964ed0 SHA512 3ec4639bec29bfe04765efa90abbda5ec5384ce616114b926e0c4bc7601a43ddf45c71634d8e846e1b5189460210099ccf4a4c0f20278a2e564cc25767543a7b
|
||||
DIST patch-6.12.51.xz 2974844 BLAKE2B cfb7242811febee3e506aa8775189f90cb1501341ca7aea7153aca28553cb5e953902f1c7bc23b2872f3f4617ee76641888c0cc0ae7a4611399a892030832b58 SHA512 5e04752b3432809212315b24c8fc18764b367e9e3282325d3d52b75190b4e0eeca48a10dc3baf09abfde3a633a7b14e03b4224251ae4e0b6206085683cce5dd2
|
||||
DIST patch-6.12.52.xz 2981340 BLAKE2B c3317e774812d88811d8e2aaac2f0ac076e819a012a28966a7f7ab0efe8aa5bd0b96fad848333121c681df5d9867740d8f4f61b39359a88a007b66481970b4a0 SHA512 a26009f2fe4a9c0d64685ffc7567ec2a817dc649093b8f50a20742e4f7db49a0752def2a8d4c2261df111160dbc97278357bc8f66685a87f5bf55eb9fd626baf
|
||||
DIST patch-6.12.53.xz 3031480 BLAKE2B ba00b2dc89efd299aa9c581c0d075c350ab8634f04bdbd41eb9d4aa9c3a8eaf359cacf5f0e776f8f234d2c9b2705eb0cb17cff258b1da3f0f12e94b8d27c1fd6 SHA512 34d6aab0f26e6b66ed96f1a7e978abb88c355aab89e9a05759956ea3bafb3d5d19d3106896dda4f6a76d45b84164ac66aa20c0cdb9cfb74f8c17f49e5597908c
|
||||
DIST patch-6.12.54.xz 3096864 BLAKE2B f5bff8166a5a45535092614ef9ed1d9e39064fd2762f0d71e852a87437326892c9d25a095ad51eb3b7fdfe266ba5f16d271303b98c4c1c6ed1716cfa09b669bb SHA512 744143218b5258a67f4b00126c72d7630b6e563dd0cc0a9cf685bc38cb48dc217d717053117e72a52fba061b2171a99ef64d992288f75500f069c617d1663b5b
|
||||
DIST patch-6.16.10.xz 796140 BLAKE2B fb1868512d250eded50e32cbe9233e8a89e63d9004d0ca6cb1c5f156c128358bc294da6e0e7fe011cfbcac1358b1ef6b860d82628e34e15ac141a45465109c53 SHA512 0a2c34c2f64cd87f7079388295d120c81ad6bf3797873bac5bdaf4baeb0ae419f1beccb4f5415ed4a6b14f583f671073f7db2b7de92930ccf5bf59169a714e8f
|
||||
DIST patch-6.16.11.xz 799032 BLAKE2B 5e0a522494c81839a9a0c06825ebdbdce4c7a802ce62c337dd819cfe04012ecfed7bab3d93574aa6a3e66477971d687d0ef1971dff409ff49d0d18e09d68df21 SHA512 46423abc9bd8aaf0611f285947726dba54c24c73966cbfd03203314a6c235e98b110681335c2a1d0528c43abd13f285edec73a43f4df872c0cc7221677fd318c
|
||||
DIST patch-6.16.12.xz 808544 BLAKE2B 0fbd9b63869a73e5f4f1ba4dab26167faaeb9c178ef7ab0b0b9e158f493929eba9b70ca8681e05cb4b2d8e8983ee8ffa4b1845ad90cbef93671868fc9fa4c989 SHA512 64079698b0ad170b99f59db0ed119eb9920e2df7887c1738434583128cec578901e31f7f6002a7f397670d4d51ff2c2ac3f414c9896de9c7ba4f55e694364c11
|
||||
DIST patch-6.16.7.xz 650544 BLAKE2B 5ceb5a463cf7c9df15a894103913e7f872af9b879a6a8751b2cd4208c687e477654a2b23f468a44d6af66a987f55e76da55c0080de5025dcc286ddf1d1be9e4b SHA512 9351c2d01a914854831cd5db71aec3ebf9887161871ba7a00fdd234849121764b0af9ce4b08c5f275d9278268fc960e4aa4232edec15220e75113fc9610ca59e
|
||||
DIST patch-6.16.8.xz 719144 BLAKE2B bc4342eda12987323d7b5cb04307fc5454940e71d9c153e5e74876375798f95af6084c23245cfdc9551f6dbe478884d1fcbdea8e1a2d9bc27ab95a2cb30db280 SHA512 ce466430fae6ff8501cca3798d1c3e72b3defc997175f7f1ea78c774c207b97579c1dac5f5eee8b56e3569ca23fabaeaba9186125b5fdce617414a9abd6dda82
|
||||
DIST patch-6.16.9.xz 759708 BLAKE2B 740b6400b05631c7a0a5ff3ddeb812a5e570d2c834a194c848ad5cf87049b9d45666b0a8b3c83d386eb382a84b4f34290f16766df32b3002ea3172165aa2beae SHA512 58f3e476392a081648471fc5d8222981c7ebfa7896b6adfb267d93c2fe5227096a4e850ca3ba0914d243078ab1f6a3248bb1ff26fde1eef354e6fc579e419f52
|
||||
DIST patch-6.17.1.xz 6492 BLAKE2B a0c0ceae36a46f63fb02c0eaaca8a4c2613f6c3cb42d786626ae12e21f4b827e268eb95246a220411836414b46199aa705cb5a7974a072fbbc819f6e4e7efc97 SHA512 7a69dcd30b39c297332bfaeec104400768e185fdccc1603768cc05d2a7e9f37107df0da7b05e1dbea7d9464e5a63e02d867ea225b9989c57b6ec62391826d80b
|
||||
DIST patch-6.17.2.xz 16496 BLAKE2B ef9f5023aa506e252e108b653066ceb90b2f8cc7d2064603d0d4fa860d7a8ebdf281dd615729acbba006c79539202dc57e19169aa09380fdb59856cf69cc30b6 SHA512 90cdf063da741ec0628dc089f15089b074cfd7ce3382d32e5c8a330f13200be09faffd1b2dfa2fe57c3a16dcc9a01c166f4f0733bc0ee70e68bd6f05d879cc3e
|
||||
DIST patch-6.17.3.xz 205828 BLAKE2B 4b6b11f7a723c57bb532f066f66cf6bcd087ca7768be71e79d6a424b9f973414fb44af320411f18aa161d0b2ced6d43bfa8c96b9ff1ceedba16b710f14bc8802 SHA512 23fe4c195ca71fe0aa524f6d80d1ec4ba7ff6fe4352410c27fd93a86cecf23a0bd4cf61ee097fb2413da85b10aa76cac2a4e7da53ec493c2d7d1eddaccf71286
|
||||
DIST patch-6.12.55.xz 3132512 BLAKE2B b78f35653171cb91d00f115cfb7a9d5e1b1eb43e77f342b06e7eed3425e620975addcc35608b64eee11d08f0b0599850520ce92fc8170dad3742fd65a2d529b4 SHA512 c81f4e2afc3bb1e5c279147c26ad91bbc045b34bb557f0f2ccaa05d59991320e936a7fd71237ea177e246062280496d72e3e6a006b87e8d67aaaa6c8dfce4608
|
||||
DIST patch-6.17.4.xz 315840 BLAKE2B 4121f8cc485a71878335d1b186c39271b83bca4e176566ee63e60a26eedd74e68e5d238492c7bb462c4139fade13bff105c46a1d12411cb4fa0972c9eb9cb3d9 SHA512 c81d328581330b10d1b6b99e3bc1386a20c0661905d953a294bf0e68e8f7ccec698ba2286e2c868c8c0ed4e2f42fb8432a988080cc3cdeb57de36630b576400f
|
||||
DIST patch-6.6.101.xz 4660596 BLAKE2B 3b02a5a37a67113ec35d647bb13f729fa0b883fa59b004e7b19b401bed374b700ef806f27285c0951c2dc8cd3e0af16ae7d9fc3268b4f5020eafb1d0361aaab8 SHA512 bcb5671c660a84f34556210dd525c6b38f3a9cf6c78bbc6b7d936f8efeb3170b27bfbf4a343b0ac94659cc63a35c479e1e158ca35043d5937eebbaf4fd8cadb6
|
||||
DIST patch-6.17.5.xz 374980 BLAKE2B d1a8f1ab63801a8ca421981cce57aae2b5da5864336821fe8bbb5131a40b16c100d4fa3d3dd2d5c4ce28bb6e3dd9c6b4b5a642d81f2303dbe12739ce4b7f3c68 SHA512 decf5a01bb3ea68e62257233225e3648d140690ac471cbac9048386aa0ebe7f7362c34cfce1d8fb615c2b37368893d33346da6ea0376feab8b7f3d3187288c83
|
||||
DIST patch-6.6.106.xz 4880660 BLAKE2B 3205119e8c10be006eb9f5c455a6fd2cec6b98f351e5e9983c6303f11b5f8822f73ede0dbc95c390736ddbd90bd2ca6383e3737618d108ffe3637d38dafad762 SHA512 e4a2bbd7c0f6a5a875fe4bdb1fbc82ff54a7d8a37f0c8cf04e6222a2be3d4579458bcbd87736b9fc95058f79a5181a381d40dc4d5b69761378eae29dc30349bc
|
||||
DIST patch-6.6.107.xz 4898532 BLAKE2B 5be64e27df6d78bd192913d6196a75530fc21fd9863426e08fc09e968679921eb706703bc159ddf57bc4c6aa4240a77b9b4eb626569c84c7a97ab834df76ada4 SHA512 84c59a8d255e91f0ba1356ea16e16e9a29e078ecdd7ef368fcd501679e2edb17e8b41ef42feb7f28a32b7b02fc63427d7f96594ca22e0ee0306d02054e173fcb
|
||||
DIST patch-6.6.108.xz 4910552 BLAKE2B 6d482fe76be8b11fc931087537872b2a5b2ef862c8654be312d8531cc6bb4508a85fbd3a91c67f17190a42f0c6e0a540f27391aec3b4b81308c2ead7c43e2ab7 SHA512 fa31c0f6c378d80723c8acecf2e7dcd49028136d21be0596679d4797efcdc257a0c8994b91ab428934678626d14a01a27648aba48e643ad179cf2ac0b4220335
|
||||
DIST patch-6.6.109.xz 4925652 BLAKE2B 1eea77c0d6966963fa61546aa5a2e4deff3145a61e0b3ddc2a179222aa736f7f65d8581ce4e549bf2d0a76b679dda6c0a2970e49036b8a6be8c9104a390d9fd6 SHA512 a3c9fadf8d6c55c569fc388c3585ef571a958eee3736cddc900beaec14c3b59e78ad3e38493177d35322f3f840f6f372c231bdf5272243e6d831590499d8c6bc
|
||||
DIST patch-6.6.110.xz 4926864 BLAKE2B 062eded9bbb18836209b7b07bd5803602212f4bd1d0c9d87252eddbe9cbbce216f78618d3b797c8d3768ec4a1b71081c3aaf1ebf7cdbe4c59ddfcd77595bb658 SHA512 927f002bf2ec227c19d115589337e4189c8320aa30d54325923078e87f74e2b7ffa5f6dd9cec515c3266dcff3d74ddab2cae6cdfd63c120fa34923ed7d455ec3
|
||||
DIST patch-6.6.111.xz 4931684 BLAKE2B a832e787516bb20de7e4841b1f5adb45683c900bb4df9b7856878c150a0b5e27d8b83c951eb68cdbf8ff0cd42e4a12c65792c032854b140efd7759eb9b1c39be SHA512 583fbec82cf16b75e1e447a51c858dfde9b1599f4970e927043d6f2e7f4cd0afc619432b001d3cb89d33c02414eb217b811717973b163d646676c3ca86f48b3c
|
||||
DIST patch-6.6.112.xz 4963076 BLAKE2B 4e4798a85173a15fd73cd126d9444b0726701bc9c4d7f94a5fce44401787f6e8c2550190e9243426b8216e866663aa9a554552b1199e55b54138d60a4c9f22be SHA512 6a622dac83d2a7f737799403d41695582ed7f7cd008096af55fc930cc387c498dcffd826ed51cf9fa5011bd7a53549f8ab95418c010e9ed9a0e16aba91cbbde2
|
||||
DIST patch-6.6.113.xz 5000480 BLAKE2B 6f9b360db1f92e80a5faae98ab399aba43f307df6fbc37d106b768aff02b0abea69dd4d20cb3db82ecb7b778ecf769bd49998c0b3a0e00f7e81af4fff49a39c5 SHA512 37622c883ae85ada9ec01852b1b8b40ab8e6533ee1f59b6dc080599cf03eddc77901043ef25dcd3872698fa59029297727c31f83e1891332896c2b597fa2fcb9
|
||||
DIST patch-6.6.114.xz 5029636 BLAKE2B f41f9ce02f210d7506bfc1e646b9ac22cac7cadbbc89e0262f8a545372bb71a388c97279b8ff5c18d411029a48c05a19410dd4c36720b3511a2be843b1e39844 SHA512 92d061b9cd67fb293736b0e2989acab66399650d4fc6e83f220b39bf83dc179a40813fa58ddb16ffab6b562938e66512df140b6d55039c58ec51873ece10e378
|
||||
|
||||
@@ -1,164 +0,0 @@
|
||||
# Copyright 2020-2025 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
inherit kernel-build toolchain-funcs verify-sig
|
||||
|
||||
MY_P=linux-${PV%.*}
|
||||
PATCHSET=linux-gentoo-patches-5.10.240
|
||||
# https://koji.fedoraproject.org/koji/packageinfo?packageID=8
|
||||
CONFIG_VER=5.10.12
|
||||
CONFIG_HASH=836165dd2dff34e4f2c47ca8f9c803002c1e6530
|
||||
GENTOO_CONFIG_VER=g16
|
||||
SHA256SUM_DATE=20250717
|
||||
|
||||
DESCRIPTION="Linux kernel built with Gentoo patches"
|
||||
HOMEPAGE="
|
||||
https://wiki.gentoo.org/wiki/Project:Distribution_Kernel
|
||||
https://www.kernel.org/
|
||||
"
|
||||
SRC_URI+="
|
||||
https://cdn.kernel.org/pub/linux/kernel/v$(ver_cut 1).x/${MY_P}.tar.xz
|
||||
https://cdn.kernel.org/pub/linux/kernel/v$(ver_cut 1).x/patch-${PV}.xz
|
||||
https://dev.gentoo.org/~mgorny/dist/linux/${PATCHSET}.tar.xz
|
||||
https://github.com/projg2/gentoo-kernel-config/archive/${GENTOO_CONFIG_VER}.tar.gz
|
||||
-> gentoo-kernel-config-${GENTOO_CONFIG_VER}.tar.gz
|
||||
verify-sig? (
|
||||
https://cdn.kernel.org/pub/linux/kernel/v$(ver_cut 1).x/sha256sums.asc
|
||||
-> linux-$(ver_cut 1).x-sha256sums-${SHA256SUM_DATE}.asc
|
||||
)
|
||||
amd64? (
|
||||
https://src.fedoraproject.org/rpms/kernel/raw/${CONFIG_HASH}/f/kernel-x86_64-fedora.config
|
||||
-> kernel-x86_64-fedora.config.${CONFIG_VER}
|
||||
)
|
||||
arm64? (
|
||||
https://src.fedoraproject.org/rpms/kernel/raw/${CONFIG_HASH}/f/kernel-aarch64-fedora.config
|
||||
-> kernel-aarch64-fedora.config.${CONFIG_VER}
|
||||
)
|
||||
ppc64? (
|
||||
https://src.fedoraproject.org/rpms/kernel/raw/${CONFIG_HASH}/f/kernel-ppc64le-fedora.config
|
||||
-> kernel-ppc64le-fedora.config.${CONFIG_VER}
|
||||
)
|
||||
x86? (
|
||||
https://src.fedoraproject.org/rpms/kernel/raw/${CONFIG_HASH}/f/kernel-i686-fedora.config
|
||||
-> kernel-i686-fedora.config.${CONFIG_VER}
|
||||
)
|
||||
"
|
||||
S=${WORKDIR}/${MY_P}
|
||||
|
||||
KEYWORDS="amd64 ~arm arm64 ~hppa ~ppc ppc64 ~sparc x86"
|
||||
IUSE="debug experimental hardened"
|
||||
REQUIRED_USE="
|
||||
arm? ( savedconfig )
|
||||
hppa? ( savedconfig )
|
||||
sparc? ( savedconfig )
|
||||
"
|
||||
|
||||
RDEPEND="
|
||||
!sys-kernel/gentoo-kernel-bin:${SLOT}
|
||||
"
|
||||
BDEPEND="
|
||||
debug? ( dev-util/pahole )
|
||||
verify-sig? ( >=sec-keys/openpgp-keys-kernel-20250702 )
|
||||
"
|
||||
PDEPEND="
|
||||
>=virtual/dist-kernel-${PV}
|
||||
"
|
||||
|
||||
QA_FLAGS_IGNORED="
|
||||
usr/src/linux-.*/scripts/gcc-plugins/.*.so
|
||||
usr/src/linux-.*/vmlinux
|
||||
usr/src/linux-.*/arch/powerpc/kernel/vdso.*/vdso.*.so.dbg
|
||||
"
|
||||
|
||||
VERIFY_SIG_OPENPGP_KEY_PATH=/usr/share/openpgp-keys/kernel.org.asc
|
||||
|
||||
src_unpack() {
|
||||
if use verify-sig; then
|
||||
cd "${DISTDIR}" || die
|
||||
verify-sig_verify_signed_checksums \
|
||||
"linux-$(ver_cut 1).x-sha256sums-${SHA256SUM_DATE}.asc" \
|
||||
sha256 "${MY_P}.tar.xz patch-${PV}.xz"
|
||||
cd "${WORKDIR}" || die
|
||||
fi
|
||||
|
||||
default
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
local patch
|
||||
eapply "${WORKDIR}/patch-${PV}"
|
||||
for patch in "${WORKDIR}/${PATCHSET}"/*.patch; do
|
||||
eapply "${patch}"
|
||||
# non-experimental patches always finish with Gentoo Kconfig
|
||||
# when ! use experimental, stop applying after it
|
||||
if [[ ${patch} == *Add-Gentoo-Linux-support-config-settings* ]] &&
|
||||
! use experimental
|
||||
then
|
||||
break
|
||||
fi
|
||||
done
|
||||
|
||||
default
|
||||
|
||||
local biendian=false
|
||||
|
||||
# prepare the default config
|
||||
case ${ARCH} in
|
||||
arm | hppa | sparc)
|
||||
> .config || die
|
||||
;;
|
||||
amd64)
|
||||
cp "${DISTDIR}/kernel-x86_64-fedora.config.${CONFIG_VER}" .config || die
|
||||
;;
|
||||
arm64)
|
||||
cp "${DISTDIR}/kernel-aarch64-fedora.config.${CONFIG_VER}" .config || die
|
||||
biendian=true
|
||||
;;
|
||||
ppc)
|
||||
# assume powermac/powerbook defconfig
|
||||
# we still package.use.force savedconfig
|
||||
cp "${WORKDIR}/${MY_P}/arch/powerpc/configs/pmac32_defconfig" .config || die
|
||||
;;
|
||||
ppc64)
|
||||
cp "${DISTDIR}/kernel-ppc64le-fedora.config.${CONFIG_VER}" .config || die
|
||||
biendian=true
|
||||
;;
|
||||
x86)
|
||||
cp "${DISTDIR}/kernel-i686-fedora.config.${CONFIG_VER}" .config || die
|
||||
;;
|
||||
*)
|
||||
die "Unsupported arch ${ARCH}"
|
||||
;;
|
||||
esac
|
||||
|
||||
local myversion="-gentoo-dist"
|
||||
use hardened && myversion+="-hardened"
|
||||
echo "CONFIG_LOCALVERSION=\"${myversion}\"" > "${T}"/version.config || die
|
||||
local dist_conf_path="${WORKDIR}/gentoo-kernel-config-${GENTOO_CONFIG_VER}"
|
||||
|
||||
local merge_configs=(
|
||||
"${T}"/version.config
|
||||
"${dist_conf_path}"/base.config
|
||||
)
|
||||
use debug || merge_configs+=(
|
||||
"${dist_conf_path}"/no-debug.config
|
||||
)
|
||||
if use hardened; then
|
||||
merge_configs+=( "${dist_conf_path}"/hardened-base.config )
|
||||
|
||||
tc-is-gcc && merge_configs+=( "${dist_conf_path}"/hardened-gcc-plugins.config )
|
||||
|
||||
if [[ -f "${dist_conf_path}/hardened-${ARCH}.config" ]]; then
|
||||
merge_configs+=( "${dist_conf_path}/hardened-${ARCH}.config" )
|
||||
fi
|
||||
fi
|
||||
|
||||
# this covers ppc64 and aarch64_be only for now
|
||||
if [[ ${biendian} == true && $(tc-endian) == big ]]; then
|
||||
merge_configs+=( "${dist_conf_path}/big-endian.config" )
|
||||
fi
|
||||
|
||||
kernel-build_merge_configs "${merge_configs[@]}"
|
||||
}
|
||||
@@ -1,164 +0,0 @@
|
||||
# Copyright 2020-2025 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
inherit kernel-build toolchain-funcs verify-sig
|
||||
|
||||
MY_P=linux-${PV%.*}
|
||||
PATCHSET=linux-gentoo-patches-5.15.187
|
||||
# https://koji.fedoraproject.org/koji/packageinfo?packageID=8
|
||||
# forked to https://github.com/projg2/fedora-kernel-config-for-gentoo
|
||||
CONFIG_VER=6.1.102-gentoo
|
||||
GENTOO_CONFIG_VER=g16
|
||||
SHA256SUM_DATE=20250717
|
||||
|
||||
DESCRIPTION="Linux kernel built with Gentoo patches"
|
||||
HOMEPAGE="
|
||||
https://wiki.gentoo.org/wiki/Project:Distribution_Kernel
|
||||
https://www.kernel.org/
|
||||
"
|
||||
SRC_URI+="
|
||||
https://cdn.kernel.org/pub/linux/kernel/v$(ver_cut 1).x/${MY_P}.tar.xz
|
||||
https://cdn.kernel.org/pub/linux/kernel/v$(ver_cut 1).x/patch-${PV}.xz
|
||||
https://dev.gentoo.org/~mgorny/dist/linux/${PATCHSET}.tar.xz
|
||||
https://github.com/projg2/gentoo-kernel-config/archive/${GENTOO_CONFIG_VER}.tar.gz
|
||||
-> gentoo-kernel-config-${GENTOO_CONFIG_VER}.tar.gz
|
||||
verify-sig? (
|
||||
https://cdn.kernel.org/pub/linux/kernel/v$(ver_cut 1).x/sha256sums.asc
|
||||
-> linux-$(ver_cut 1).x-sha256sums-${SHA256SUM_DATE}.asc
|
||||
)
|
||||
amd64? (
|
||||
https://raw.githubusercontent.com/projg2/fedora-kernel-config-for-gentoo/${CONFIG_VER}/kernel-x86_64-fedora.config
|
||||
-> kernel-x86_64-fedora.config.${CONFIG_VER}
|
||||
)
|
||||
arm64? (
|
||||
https://raw.githubusercontent.com/projg2/fedora-kernel-config-for-gentoo/${CONFIG_VER}/kernel-aarch64-fedora.config
|
||||
-> kernel-aarch64-fedora.config.${CONFIG_VER}
|
||||
)
|
||||
ppc64? (
|
||||
https://raw.githubusercontent.com/projg2/fedora-kernel-config-for-gentoo/${CONFIG_VER}/kernel-ppc64le-fedora.config
|
||||
-> kernel-ppc64le-fedora.config.${CONFIG_VER}
|
||||
)
|
||||
x86? (
|
||||
https://raw.githubusercontent.com/projg2/fedora-kernel-config-for-gentoo/${CONFIG_VER}/kernel-i686-fedora.config
|
||||
-> kernel-i686-fedora.config.${CONFIG_VER}
|
||||
)
|
||||
"
|
||||
S=${WORKDIR}/${MY_P}
|
||||
|
||||
KEYWORDS="amd64 ~arm arm64 ~hppa ~ppc ppc64 ~sparc x86"
|
||||
IUSE="debug experimental hardened"
|
||||
REQUIRED_USE="
|
||||
arm? ( savedconfig )
|
||||
hppa? ( savedconfig )
|
||||
sparc? ( savedconfig )
|
||||
"
|
||||
|
||||
RDEPEND="
|
||||
!sys-kernel/gentoo-kernel-bin:${SLOT}
|
||||
"
|
||||
BDEPEND="
|
||||
debug? ( dev-util/pahole )
|
||||
verify-sig? ( >=sec-keys/openpgp-keys-kernel-20250702 )
|
||||
"
|
||||
PDEPEND="
|
||||
>=virtual/dist-kernel-${PV}
|
||||
"
|
||||
|
||||
QA_FLAGS_IGNORED="
|
||||
usr/src/linux-.*/scripts/gcc-plugins/.*.so
|
||||
usr/src/linux-.*/vmlinux
|
||||
usr/src/linux-.*/arch/powerpc/kernel/vdso.*/vdso.*.so.dbg
|
||||
"
|
||||
|
||||
VERIFY_SIG_OPENPGP_KEY_PATH=/usr/share/openpgp-keys/kernel.org.asc
|
||||
|
||||
src_unpack() {
|
||||
if use verify-sig; then
|
||||
cd "${DISTDIR}" || die
|
||||
verify-sig_verify_signed_checksums \
|
||||
"linux-$(ver_cut 1).x-sha256sums-${SHA256SUM_DATE}.asc" \
|
||||
sha256 "${MY_P}.tar.xz patch-${PV}.xz"
|
||||
cd "${WORKDIR}" || die
|
||||
fi
|
||||
|
||||
default
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
local patch
|
||||
eapply "${WORKDIR}/patch-${PV}"
|
||||
for patch in "${WORKDIR}/${PATCHSET}"/*.patch; do
|
||||
eapply "${patch}"
|
||||
# non-experimental patches always finish with Gentoo Kconfig
|
||||
# when ! use experimental, stop applying after it
|
||||
if [[ ${patch} == *Add-Gentoo-Linux-support-config-settings* ]] &&
|
||||
! use experimental
|
||||
then
|
||||
break
|
||||
fi
|
||||
done
|
||||
|
||||
default
|
||||
|
||||
local biendian=false
|
||||
|
||||
# prepare the default config
|
||||
case ${ARCH} in
|
||||
arm | hppa | sparc)
|
||||
> .config || die
|
||||
;;
|
||||
amd64)
|
||||
cp "${DISTDIR}/kernel-x86_64-fedora.config.${CONFIG_VER}" .config || die
|
||||
;;
|
||||
arm64)
|
||||
cp "${DISTDIR}/kernel-aarch64-fedora.config.${CONFIG_VER}" .config || die
|
||||
biendian=true
|
||||
;;
|
||||
ppc)
|
||||
# assume powermac/powerbook defconfig
|
||||
# we still package.use.force savedconfig
|
||||
cp "${WORKDIR}/${MY_P}/arch/powerpc/configs/pmac32_defconfig" .config || die
|
||||
;;
|
||||
ppc64)
|
||||
cp "${DISTDIR}/kernel-ppc64le-fedora.config.${CONFIG_VER}" .config || die
|
||||
biendian=true
|
||||
;;
|
||||
x86)
|
||||
cp "${DISTDIR}/kernel-i686-fedora.config.${CONFIG_VER}" .config || die
|
||||
;;
|
||||
*)
|
||||
die "Unsupported arch ${ARCH}"
|
||||
;;
|
||||
esac
|
||||
|
||||
local myversion="-gentoo-dist"
|
||||
use hardened && myversion+="-hardened"
|
||||
echo "CONFIG_LOCALVERSION=\"${myversion}\"" > "${T}"/version.config || die
|
||||
local dist_conf_path="${WORKDIR}/gentoo-kernel-config-${GENTOO_CONFIG_VER}"
|
||||
|
||||
local merge_configs=(
|
||||
"${T}"/version.config
|
||||
"${dist_conf_path}"/base.config
|
||||
)
|
||||
use debug || merge_configs+=(
|
||||
"${dist_conf_path}"/no-debug.config
|
||||
)
|
||||
if use hardened; then
|
||||
merge_configs+=( "${dist_conf_path}"/hardened-base.config )
|
||||
|
||||
tc-is-gcc && merge_configs+=( "${dist_conf_path}"/hardened-gcc-plugins.config )
|
||||
|
||||
if [[ -f "${dist_conf_path}/hardened-${ARCH}.config" ]]; then
|
||||
merge_configs+=( "${dist_conf_path}/hardened-${ARCH}.config" )
|
||||
fi
|
||||
fi
|
||||
|
||||
# this covers ppc64 and aarch64_be only for now
|
||||
if [[ ${biendian} == true && $(tc-endian) == big ]]; then
|
||||
merge_configs+=( "${dist_conf_path}/big-endian.config" )
|
||||
fi
|
||||
|
||||
kernel-build_merge_configs "${merge_configs[@]}"
|
||||
}
|
||||
@@ -1,173 +0,0 @@
|
||||
# Copyright 2020-2025 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
KERNEL_IUSE_MODULES_SIGN=1
|
||||
|
||||
inherit kernel-build toolchain-funcs verify-sig
|
||||
|
||||
BASE_P=linux-${PV%.*}
|
||||
PATCH_PV=${PV%_p*}
|
||||
PATCHSET=linux-gentoo-patches-5.15.190
|
||||
# https://koji.fedoraproject.org/koji/packageinfo?packageID=8
|
||||
# forked to https://github.com/projg2/fedora-kernel-config-for-gentoo
|
||||
CONFIG_VER=6.1.102-gentoo
|
||||
GENTOO_CONFIG_VER=g17
|
||||
SHA256SUM_DATE=20251002
|
||||
|
||||
DESCRIPTION="Linux kernel built with Gentoo patches"
|
||||
HOMEPAGE="
|
||||
https://wiki.gentoo.org/wiki/Project:Distribution_Kernel
|
||||
https://www.kernel.org/
|
||||
"
|
||||
SRC_URI+="
|
||||
https://cdn.kernel.org/pub/linux/kernel/v$(ver_cut 1).x/${BASE_P}.tar.xz
|
||||
https://cdn.kernel.org/pub/linux/kernel/v$(ver_cut 1).x/patch-${PATCH_PV}.xz
|
||||
https://dev.gentoo.org/~mgorny/dist/linux/${PATCHSET}.tar.xz
|
||||
https://github.com/projg2/gentoo-kernel-config/archive/${GENTOO_CONFIG_VER}.tar.gz
|
||||
-> gentoo-kernel-config-${GENTOO_CONFIG_VER}.tar.gz
|
||||
verify-sig? (
|
||||
https://cdn.kernel.org/pub/linux/kernel/v$(ver_cut 1).x/sha256sums.asc
|
||||
-> linux-$(ver_cut 1).x-sha256sums-${SHA256SUM_DATE}.asc
|
||||
)
|
||||
amd64? (
|
||||
https://raw.githubusercontent.com/projg2/fedora-kernel-config-for-gentoo/${CONFIG_VER}/kernel-x86_64-fedora.config
|
||||
-> kernel-x86_64-fedora.config.${CONFIG_VER}
|
||||
)
|
||||
arm64? (
|
||||
https://raw.githubusercontent.com/projg2/fedora-kernel-config-for-gentoo/${CONFIG_VER}/kernel-aarch64-fedora.config
|
||||
-> kernel-aarch64-fedora.config.${CONFIG_VER}
|
||||
)
|
||||
ppc64? (
|
||||
https://raw.githubusercontent.com/projg2/fedora-kernel-config-for-gentoo/${CONFIG_VER}/kernel-ppc64le-fedora.config
|
||||
-> kernel-ppc64le-fedora.config.${CONFIG_VER}
|
||||
)
|
||||
x86? (
|
||||
https://raw.githubusercontent.com/projg2/fedora-kernel-config-for-gentoo/${CONFIG_VER}/kernel-i686-fedora.config
|
||||
-> kernel-i686-fedora.config.${CONFIG_VER}
|
||||
)
|
||||
"
|
||||
S=${WORKDIR}/${BASE_P}
|
||||
|
||||
KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ppc ~ppc64 ~sparc ~x86"
|
||||
IUSE="debug experimental hardened"
|
||||
REQUIRED_USE="
|
||||
arm? ( savedconfig )
|
||||
hppa? ( savedconfig )
|
||||
sparc? ( savedconfig )
|
||||
"
|
||||
|
||||
RDEPEND="
|
||||
!sys-kernel/gentoo-kernel-bin:${SLOT}
|
||||
"
|
||||
BDEPEND="
|
||||
debug? ( dev-util/pahole )
|
||||
verify-sig? ( >=sec-keys/openpgp-keys-kernel-20250702 )
|
||||
"
|
||||
PDEPEND="
|
||||
>=virtual/dist-kernel-${PV}
|
||||
"
|
||||
|
||||
QA_FLAGS_IGNORED="
|
||||
usr/src/linux-.*/scripts/gcc-plugins/.*.so
|
||||
usr/src/linux-.*/vmlinux
|
||||
usr/src/linux-.*/arch/powerpc/kernel/vdso.*/vdso.*.so.dbg
|
||||
"
|
||||
|
||||
VERIFY_SIG_OPENPGP_KEY_PATH=/usr/share/openpgp-keys/kernel.org.asc
|
||||
|
||||
src_unpack() {
|
||||
if use verify-sig; then
|
||||
cd "${DISTDIR}" || die
|
||||
verify-sig_verify_signed_checksums \
|
||||
"linux-$(ver_cut 1).x-sha256sums-${SHA256SUM_DATE}.asc" \
|
||||
sha256 "${BASE_P}.tar.xz patch-${PATCH_PV}.xz"
|
||||
cd "${WORKDIR}" || die
|
||||
fi
|
||||
|
||||
default
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
local patch
|
||||
eapply "${WORKDIR}/patch-${PATCH_PV}"
|
||||
for patch in "${WORKDIR}/${PATCHSET}"/*.patch; do
|
||||
eapply "${patch}"
|
||||
# non-experimental patches always finish with Gentoo Kconfig
|
||||
# when ! use experimental, stop applying after it
|
||||
if [[ ${patch} == *Add-Gentoo-Linux-support-config-settings* ]] &&
|
||||
! use experimental
|
||||
then
|
||||
break
|
||||
fi
|
||||
done
|
||||
|
||||
default
|
||||
|
||||
# add Gentoo patchset version
|
||||
local extraversion=${PV#${PATCH_PV}}
|
||||
sed -i -e "s:^\(EXTRAVERSION =\).*:\1 ${extraversion/_/-}:" Makefile || die
|
||||
|
||||
local biendian=false
|
||||
|
||||
# prepare the default config
|
||||
case ${ARCH} in
|
||||
arm | hppa | sparc)
|
||||
> .config || die
|
||||
;;
|
||||
amd64)
|
||||
cp "${DISTDIR}/kernel-x86_64-fedora.config.${CONFIG_VER}" .config || die
|
||||
;;
|
||||
arm64)
|
||||
cp "${DISTDIR}/kernel-aarch64-fedora.config.${CONFIG_VER}" .config || die
|
||||
biendian=true
|
||||
;;
|
||||
ppc)
|
||||
# assume powermac/powerbook defconfig
|
||||
# we still package.use.force savedconfig
|
||||
cp "${WORKDIR}/${BASE_P}/arch/powerpc/configs/pmac32_defconfig" .config || die
|
||||
;;
|
||||
ppc64)
|
||||
cp "${DISTDIR}/kernel-ppc64le-fedora.config.${CONFIG_VER}" .config || die
|
||||
biendian=true
|
||||
;;
|
||||
x86)
|
||||
cp "${DISTDIR}/kernel-i686-fedora.config.${CONFIG_VER}" .config || die
|
||||
;;
|
||||
*)
|
||||
die "Unsupported arch ${ARCH}"
|
||||
;;
|
||||
esac
|
||||
|
||||
local myversion="-gentoo-dist"
|
||||
use hardened && myversion+="-hardened"
|
||||
echo "CONFIG_LOCALVERSION=\"${myversion}\"" > "${T}"/version.config || die
|
||||
local dist_conf_path="${WORKDIR}/gentoo-kernel-config-${GENTOO_CONFIG_VER}"
|
||||
|
||||
local merge_configs=(
|
||||
"${T}"/version.config
|
||||
"${dist_conf_path}"/base.config
|
||||
)
|
||||
use debug || merge_configs+=(
|
||||
"${dist_conf_path}"/no-debug.config
|
||||
)
|
||||
if use hardened; then
|
||||
merge_configs+=( "${dist_conf_path}"/hardened-base.config )
|
||||
|
||||
tc-is-gcc && merge_configs+=( "${dist_conf_path}"/hardened-gcc-plugins.config )
|
||||
|
||||
if [[ -f "${dist_conf_path}/hardened-${ARCH}.config" ]]; then
|
||||
merge_configs+=( "${dist_conf_path}/hardened-${ARCH}.config" )
|
||||
fi
|
||||
fi
|
||||
|
||||
# this covers ppc64 and aarch64_be only for now
|
||||
if [[ ${biendian} == true && $(tc-endian) == big ]]; then
|
||||
merge_configs+=( "${dist_conf_path}/big-endian.config" )
|
||||
fi
|
||||
|
||||
use secureboot && merge_configs+=( "${dist_conf_path}/secureboot.config" )
|
||||
|
||||
kernel-build_merge_configs "${merge_configs[@]}"
|
||||
}
|
||||
@@ -1,165 +0,0 @@
|
||||
# Copyright 2020-2025 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
inherit kernel-build toolchain-funcs verify-sig
|
||||
|
||||
MY_P=linux-${PV%.*}
|
||||
PATCHSET=linux-gentoo-patches-6.1.147
|
||||
# https://koji.fedoraproject.org/koji/packageinfo?packageID=8
|
||||
# forked to https://github.com/projg2/fedora-kernel-config-for-gentoo
|
||||
CONFIG_VER=6.1.102-gentoo
|
||||
GENTOO_CONFIG_VER=g16
|
||||
SHA256SUM_DATE=20250724
|
||||
|
||||
DESCRIPTION="Linux kernel built with Gentoo patches"
|
||||
HOMEPAGE="
|
||||
https://wiki.gentoo.org/wiki/Project:Distribution_Kernel
|
||||
https://www.kernel.org/
|
||||
"
|
||||
SRC_URI+="
|
||||
https://cdn.kernel.org/pub/linux/kernel/v$(ver_cut 1).x/${MY_P}.tar.xz
|
||||
https://cdn.kernel.org/pub/linux/kernel/v$(ver_cut 1).x/patch-${PV}.xz
|
||||
https://dev.gentoo.org/~mgorny/dist/linux/${PATCHSET}.tar.xz
|
||||
https://github.com/projg2/gentoo-kernel-config/archive/${GENTOO_CONFIG_VER}.tar.gz
|
||||
-> gentoo-kernel-config-${GENTOO_CONFIG_VER}.tar.gz
|
||||
verify-sig? (
|
||||
https://cdn.kernel.org/pub/linux/kernel/v$(ver_cut 1).x/sha256sums.asc
|
||||
-> linux-$(ver_cut 1).x-sha256sums-${SHA256SUM_DATE}.asc
|
||||
)
|
||||
amd64? (
|
||||
https://raw.githubusercontent.com/projg2/fedora-kernel-config-for-gentoo/${CONFIG_VER}/kernel-x86_64-fedora.config
|
||||
-> kernel-x86_64-fedora.config.${CONFIG_VER}
|
||||
)
|
||||
arm64? (
|
||||
https://raw.githubusercontent.com/projg2/fedora-kernel-config-for-gentoo/${CONFIG_VER}/kernel-aarch64-fedora.config
|
||||
-> kernel-aarch64-fedora.config.${CONFIG_VER}
|
||||
)
|
||||
ppc64? (
|
||||
https://raw.githubusercontent.com/projg2/fedora-kernel-config-for-gentoo/${CONFIG_VER}/kernel-ppc64le-fedora.config
|
||||
-> kernel-ppc64le-fedora.config.${CONFIG_VER}
|
||||
)
|
||||
x86? (
|
||||
https://raw.githubusercontent.com/projg2/fedora-kernel-config-for-gentoo/${CONFIG_VER}/kernel-i686-fedora.config
|
||||
-> kernel-i686-fedora.config.${CONFIG_VER}
|
||||
)
|
||||
"
|
||||
S=${WORKDIR}/${MY_P}
|
||||
|
||||
KEYWORDS="amd64 ~arm arm64 ~hppa ~loong ~ppc ppc64 ~riscv ~sparc x86"
|
||||
IUSE="debug experimental hardened"
|
||||
REQUIRED_USE="
|
||||
arm? ( savedconfig )
|
||||
hppa? ( savedconfig )
|
||||
riscv? ( savedconfig )
|
||||
sparc? ( savedconfig )
|
||||
"
|
||||
|
||||
RDEPEND="
|
||||
!sys-kernel/gentoo-kernel-bin:${SLOT}
|
||||
"
|
||||
BDEPEND="
|
||||
debug? ( dev-util/pahole )
|
||||
verify-sig? ( >=sec-keys/openpgp-keys-kernel-20250702 )
|
||||
"
|
||||
PDEPEND="
|
||||
>=virtual/dist-kernel-${PV}
|
||||
"
|
||||
|
||||
QA_FLAGS_IGNORED="
|
||||
usr/src/linux-.*/scripts/gcc-plugins/.*.so
|
||||
usr/src/linux-.*/vmlinux
|
||||
usr/src/linux-.*/arch/powerpc/kernel/vdso.*/vdso.*.so.dbg
|
||||
"
|
||||
|
||||
VERIFY_SIG_OPENPGP_KEY_PATH=/usr/share/openpgp-keys/kernel.org.asc
|
||||
|
||||
src_unpack() {
|
||||
if use verify-sig; then
|
||||
cd "${DISTDIR}" || die
|
||||
verify-sig_verify_signed_checksums \
|
||||
"linux-$(ver_cut 1).x-sha256sums-${SHA256SUM_DATE}.asc" \
|
||||
sha256 "${MY_P}.tar.xz patch-${PV}.xz"
|
||||
cd "${WORKDIR}" || die
|
||||
fi
|
||||
|
||||
default
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
local patch
|
||||
eapply "${WORKDIR}/patch-${PV}"
|
||||
for patch in "${WORKDIR}/${PATCHSET}"/*.patch; do
|
||||
eapply "${patch}"
|
||||
# non-experimental patches always finish with Gentoo Kconfig
|
||||
# when ! use experimental, stop applying after it
|
||||
if [[ ${patch} == *Add-Gentoo-Linux-support-config-settings* ]] &&
|
||||
! use experimental
|
||||
then
|
||||
break
|
||||
fi
|
||||
done
|
||||
|
||||
default
|
||||
|
||||
local biendian=false
|
||||
|
||||
# prepare the default config
|
||||
case ${ARCH} in
|
||||
arm | hppa | loong | riscv | sparc)
|
||||
> .config || die
|
||||
;;
|
||||
amd64)
|
||||
cp "${DISTDIR}/kernel-x86_64-fedora.config.${CONFIG_VER}" .config || die
|
||||
;;
|
||||
arm64)
|
||||
cp "${DISTDIR}/kernel-aarch64-fedora.config.${CONFIG_VER}" .config || die
|
||||
biendian=true
|
||||
;;
|
||||
ppc)
|
||||
# assume powermac/powerbook defconfig
|
||||
# we still package.use.force savedconfig
|
||||
cp "${WORKDIR}/${MY_P}/arch/powerpc/configs/pmac32_defconfig" .config || die
|
||||
;;
|
||||
ppc64)
|
||||
cp "${DISTDIR}/kernel-ppc64le-fedora.config.${CONFIG_VER}" .config || die
|
||||
biendian=true
|
||||
;;
|
||||
x86)
|
||||
cp "${DISTDIR}/kernel-i686-fedora.config.${CONFIG_VER}" .config || die
|
||||
;;
|
||||
*)
|
||||
die "Unsupported arch ${ARCH}"
|
||||
;;
|
||||
esac
|
||||
|
||||
local myversion="-gentoo-dist"
|
||||
use hardened && myversion+="-hardened"
|
||||
echo "CONFIG_LOCALVERSION=\"${myversion}\"" > "${T}"/version.config || die
|
||||
local dist_conf_path="${WORKDIR}/gentoo-kernel-config-${GENTOO_CONFIG_VER}"
|
||||
|
||||
local merge_configs=(
|
||||
"${T}"/version.config
|
||||
"${dist_conf_path}"/base.config
|
||||
)
|
||||
use debug || merge_configs+=(
|
||||
"${dist_conf_path}"/no-debug.config
|
||||
)
|
||||
if use hardened; then
|
||||
merge_configs+=( "${dist_conf_path}"/hardened-base.config )
|
||||
|
||||
tc-is-gcc && merge_configs+=( "${dist_conf_path}"/hardened-gcc-plugins.config )
|
||||
|
||||
if [[ -f "${dist_conf_path}/hardened-${ARCH}.config" ]]; then
|
||||
merge_configs+=( "${dist_conf_path}/hardened-${ARCH}.config" )
|
||||
fi
|
||||
fi
|
||||
|
||||
# this covers ppc64 and aarch64_be only for now
|
||||
if [[ ${biendian} == true && $(tc-endian) == big ]]; then
|
||||
merge_configs+=( "${dist_conf_path}/big-endian.config" )
|
||||
fi
|
||||
|
||||
kernel-build_merge_configs "${merge_configs[@]}"
|
||||
}
|
||||
@@ -1,174 +0,0 @@
|
||||
# Copyright 2020-2025 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
KERNEL_IUSE_MODULES_SIGN=1
|
||||
|
||||
inherit kernel-build toolchain-funcs verify-sig
|
||||
|
||||
BASE_P=linux-${PV%.*}
|
||||
PATCH_PV=${PV%_p*}
|
||||
PATCHSET=linux-gentoo-patches-6.1.153
|
||||
# https://koji.fedoraproject.org/koji/packageinfo?packageID=8
|
||||
# forked to https://github.com/projg2/fedora-kernel-config-for-gentoo
|
||||
CONFIG_VER=6.1.102-gentoo
|
||||
GENTOO_CONFIG_VER=g17
|
||||
SHA256SUM_DATE=20250919
|
||||
|
||||
DESCRIPTION="Linux kernel built with Gentoo patches"
|
||||
HOMEPAGE="
|
||||
https://wiki.gentoo.org/wiki/Project:Distribution_Kernel
|
||||
https://www.kernel.org/
|
||||
"
|
||||
SRC_URI+="
|
||||
https://cdn.kernel.org/pub/linux/kernel/v$(ver_cut 1).x/${BASE_P}.tar.xz
|
||||
https://cdn.kernel.org/pub/linux/kernel/v$(ver_cut 1).x/patch-${PATCH_PV}.xz
|
||||
https://dev.gentoo.org/~mgorny/dist/linux/${PATCHSET}.tar.xz
|
||||
https://github.com/projg2/gentoo-kernel-config/archive/${GENTOO_CONFIG_VER}.tar.gz
|
||||
-> gentoo-kernel-config-${GENTOO_CONFIG_VER}.tar.gz
|
||||
verify-sig? (
|
||||
https://cdn.kernel.org/pub/linux/kernel/v$(ver_cut 1).x/sha256sums.asc
|
||||
-> linux-$(ver_cut 1).x-sha256sums-${SHA256SUM_DATE}.asc
|
||||
)
|
||||
amd64? (
|
||||
https://raw.githubusercontent.com/projg2/fedora-kernel-config-for-gentoo/${CONFIG_VER}/kernel-x86_64-fedora.config
|
||||
-> kernel-x86_64-fedora.config.${CONFIG_VER}
|
||||
)
|
||||
arm64? (
|
||||
https://raw.githubusercontent.com/projg2/fedora-kernel-config-for-gentoo/${CONFIG_VER}/kernel-aarch64-fedora.config
|
||||
-> kernel-aarch64-fedora.config.${CONFIG_VER}
|
||||
)
|
||||
ppc64? (
|
||||
https://raw.githubusercontent.com/projg2/fedora-kernel-config-for-gentoo/${CONFIG_VER}/kernel-ppc64le-fedora.config
|
||||
-> kernel-ppc64le-fedora.config.${CONFIG_VER}
|
||||
)
|
||||
x86? (
|
||||
https://raw.githubusercontent.com/projg2/fedora-kernel-config-for-gentoo/${CONFIG_VER}/kernel-i686-fedora.config
|
||||
-> kernel-i686-fedora.config.${CONFIG_VER}
|
||||
)
|
||||
"
|
||||
S=${WORKDIR}/${BASE_P}
|
||||
|
||||
KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~loong ~ppc ~ppc64 ~riscv ~sparc ~x86"
|
||||
IUSE="debug experimental hardened"
|
||||
REQUIRED_USE="
|
||||
arm? ( savedconfig )
|
||||
hppa? ( savedconfig )
|
||||
riscv? ( savedconfig )
|
||||
sparc? ( savedconfig )
|
||||
"
|
||||
|
||||
RDEPEND="
|
||||
!sys-kernel/gentoo-kernel-bin:${SLOT}
|
||||
"
|
||||
BDEPEND="
|
||||
debug? ( dev-util/pahole )
|
||||
verify-sig? ( >=sec-keys/openpgp-keys-kernel-20250702 )
|
||||
"
|
||||
PDEPEND="
|
||||
>=virtual/dist-kernel-${PATCH_PV}
|
||||
"
|
||||
|
||||
QA_FLAGS_IGNORED="
|
||||
usr/src/linux-.*/scripts/gcc-plugins/.*.so
|
||||
usr/src/linux-.*/vmlinux
|
||||
usr/src/linux-.*/arch/powerpc/kernel/vdso.*/vdso.*.so.dbg
|
||||
"
|
||||
|
||||
VERIFY_SIG_OPENPGP_KEY_PATH=/usr/share/openpgp-keys/kernel.org.asc
|
||||
|
||||
src_unpack() {
|
||||
if use verify-sig; then
|
||||
cd "${DISTDIR}" || die
|
||||
verify-sig_verify_signed_checksums \
|
||||
"linux-$(ver_cut 1).x-sha256sums-${SHA256SUM_DATE}.asc" \
|
||||
sha256 "${BASE_P}.tar.xz patch-${PATCH_PV}.xz"
|
||||
cd "${WORKDIR}" || die
|
||||
fi
|
||||
|
||||
default
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
local patch
|
||||
eapply "${WORKDIR}/patch-${PATCH_PV}"
|
||||
for patch in "${WORKDIR}/${PATCHSET}"/*.patch; do
|
||||
eapply "${patch}"
|
||||
# non-experimental patches always finish with Gentoo Kconfig
|
||||
# when ! use experimental, stop applying after it
|
||||
if [[ ${patch} == *Add-Gentoo-Linux-support-config-settings* ]] &&
|
||||
! use experimental
|
||||
then
|
||||
break
|
||||
fi
|
||||
done
|
||||
|
||||
default
|
||||
|
||||
# add Gentoo patchset version
|
||||
local extraversion=${PV#${PATCH_PV}}
|
||||
sed -i -e "s:^\(EXTRAVERSION =\).*:\1 ${extraversion/_/-}:" Makefile || die
|
||||
|
||||
local biendian=false
|
||||
|
||||
# prepare the default config
|
||||
case ${ARCH} in
|
||||
arm | hppa | loong | riscv | sparc)
|
||||
> .config || die
|
||||
;;
|
||||
amd64)
|
||||
cp "${DISTDIR}/kernel-x86_64-fedora.config.${CONFIG_VER}" .config || die
|
||||
;;
|
||||
arm64)
|
||||
cp "${DISTDIR}/kernel-aarch64-fedora.config.${CONFIG_VER}" .config || die
|
||||
biendian=true
|
||||
;;
|
||||
ppc)
|
||||
# assume powermac/powerbook defconfig
|
||||
# we still package.use.force savedconfig
|
||||
cp "${WORKDIR}/${BASE_P}/arch/powerpc/configs/pmac32_defconfig" .config || die
|
||||
;;
|
||||
ppc64)
|
||||
cp "${DISTDIR}/kernel-ppc64le-fedora.config.${CONFIG_VER}" .config || die
|
||||
biendian=true
|
||||
;;
|
||||
x86)
|
||||
cp "${DISTDIR}/kernel-i686-fedora.config.${CONFIG_VER}" .config || die
|
||||
;;
|
||||
*)
|
||||
die "Unsupported arch ${ARCH}"
|
||||
;;
|
||||
esac
|
||||
|
||||
local myversion="-gentoo-dist"
|
||||
use hardened && myversion+="-hardened"
|
||||
echo "CONFIG_LOCALVERSION=\"${myversion}\"" > "${T}"/version.config || die
|
||||
local dist_conf_path="${WORKDIR}/gentoo-kernel-config-${GENTOO_CONFIG_VER}"
|
||||
|
||||
local merge_configs=(
|
||||
"${T}"/version.config
|
||||
"${dist_conf_path}"/base.config
|
||||
)
|
||||
use debug || merge_configs+=(
|
||||
"${dist_conf_path}"/no-debug.config
|
||||
)
|
||||
if use hardened; then
|
||||
merge_configs+=( "${dist_conf_path}"/hardened-base.config )
|
||||
|
||||
tc-is-gcc && merge_configs+=( "${dist_conf_path}"/hardened-gcc-plugins.config )
|
||||
|
||||
if [[ -f "${dist_conf_path}/hardened-${ARCH}.config" ]]; then
|
||||
merge_configs+=( "${dist_conf_path}/hardened-${ARCH}.config" )
|
||||
fi
|
||||
fi
|
||||
|
||||
# this covers ppc64 and aarch64_be only for now
|
||||
if [[ ${biendian} == true && $(tc-endian) == big ]]; then
|
||||
merge_configs+=( "${dist_conf_path}/big-endian.config" )
|
||||
fi
|
||||
|
||||
use secureboot && merge_configs+=( "${dist_conf_path}/secureboot.config" )
|
||||
|
||||
kernel-build_merge_configs "${merge_configs[@]}"
|
||||
}
|
||||
@@ -1,174 +0,0 @@
|
||||
# Copyright 2020-2025 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
KERNEL_IUSE_MODULES_SIGN=1
|
||||
|
||||
inherit kernel-build toolchain-funcs verify-sig
|
||||
|
||||
BASE_P=linux-${PV%.*}
|
||||
PATCH_PV=${PV%_p*}
|
||||
PATCHSET=linux-gentoo-patches-6.1.153
|
||||
# https://koji.fedoraproject.org/koji/packageinfo?packageID=8
|
||||
# forked to https://github.com/projg2/fedora-kernel-config-for-gentoo
|
||||
CONFIG_VER=6.1.102-gentoo
|
||||
GENTOO_CONFIG_VER=g17
|
||||
SHA256SUM_DATE=20250925
|
||||
|
||||
DESCRIPTION="Linux kernel built with Gentoo patches"
|
||||
HOMEPAGE="
|
||||
https://wiki.gentoo.org/wiki/Project:Distribution_Kernel
|
||||
https://www.kernel.org/
|
||||
"
|
||||
SRC_URI+="
|
||||
https://cdn.kernel.org/pub/linux/kernel/v$(ver_cut 1).x/${BASE_P}.tar.xz
|
||||
https://cdn.kernel.org/pub/linux/kernel/v$(ver_cut 1).x/patch-${PATCH_PV}.xz
|
||||
https://dev.gentoo.org/~mgorny/dist/linux/${PATCHSET}.tar.xz
|
||||
https://github.com/projg2/gentoo-kernel-config/archive/${GENTOO_CONFIG_VER}.tar.gz
|
||||
-> gentoo-kernel-config-${GENTOO_CONFIG_VER}.tar.gz
|
||||
verify-sig? (
|
||||
https://cdn.kernel.org/pub/linux/kernel/v$(ver_cut 1).x/sha256sums.asc
|
||||
-> linux-$(ver_cut 1).x-sha256sums-${SHA256SUM_DATE}.asc
|
||||
)
|
||||
amd64? (
|
||||
https://raw.githubusercontent.com/projg2/fedora-kernel-config-for-gentoo/${CONFIG_VER}/kernel-x86_64-fedora.config
|
||||
-> kernel-x86_64-fedora.config.${CONFIG_VER}
|
||||
)
|
||||
arm64? (
|
||||
https://raw.githubusercontent.com/projg2/fedora-kernel-config-for-gentoo/${CONFIG_VER}/kernel-aarch64-fedora.config
|
||||
-> kernel-aarch64-fedora.config.${CONFIG_VER}
|
||||
)
|
||||
ppc64? (
|
||||
https://raw.githubusercontent.com/projg2/fedora-kernel-config-for-gentoo/${CONFIG_VER}/kernel-ppc64le-fedora.config
|
||||
-> kernel-ppc64le-fedora.config.${CONFIG_VER}
|
||||
)
|
||||
x86? (
|
||||
https://raw.githubusercontent.com/projg2/fedora-kernel-config-for-gentoo/${CONFIG_VER}/kernel-i686-fedora.config
|
||||
-> kernel-i686-fedora.config.${CONFIG_VER}
|
||||
)
|
||||
"
|
||||
S=${WORKDIR}/${BASE_P}
|
||||
|
||||
KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~loong ~ppc ~ppc64 ~riscv ~sparc ~x86"
|
||||
IUSE="debug experimental hardened"
|
||||
REQUIRED_USE="
|
||||
arm? ( savedconfig )
|
||||
hppa? ( savedconfig )
|
||||
riscv? ( savedconfig )
|
||||
sparc? ( savedconfig )
|
||||
"
|
||||
|
||||
RDEPEND="
|
||||
!sys-kernel/gentoo-kernel-bin:${SLOT}
|
||||
"
|
||||
BDEPEND="
|
||||
debug? ( dev-util/pahole )
|
||||
verify-sig? ( >=sec-keys/openpgp-keys-kernel-20250702 )
|
||||
"
|
||||
PDEPEND="
|
||||
>=virtual/dist-kernel-${PV}
|
||||
"
|
||||
|
||||
QA_FLAGS_IGNORED="
|
||||
usr/src/linux-.*/scripts/gcc-plugins/.*.so
|
||||
usr/src/linux-.*/vmlinux
|
||||
usr/src/linux-.*/arch/powerpc/kernel/vdso.*/vdso.*.so.dbg
|
||||
"
|
||||
|
||||
VERIFY_SIG_OPENPGP_KEY_PATH=/usr/share/openpgp-keys/kernel.org.asc
|
||||
|
||||
src_unpack() {
|
||||
if use verify-sig; then
|
||||
cd "${DISTDIR}" || die
|
||||
verify-sig_verify_signed_checksums \
|
||||
"linux-$(ver_cut 1).x-sha256sums-${SHA256SUM_DATE}.asc" \
|
||||
sha256 "${BASE_P}.tar.xz patch-${PATCH_PV}.xz"
|
||||
cd "${WORKDIR}" || die
|
||||
fi
|
||||
|
||||
default
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
local patch
|
||||
eapply "${WORKDIR}/patch-${PATCH_PV}"
|
||||
for patch in "${WORKDIR}/${PATCHSET}"/*.patch; do
|
||||
eapply "${patch}"
|
||||
# non-experimental patches always finish with Gentoo Kconfig
|
||||
# when ! use experimental, stop applying after it
|
||||
if [[ ${patch} == *Add-Gentoo-Linux-support-config-settings* ]] &&
|
||||
! use experimental
|
||||
then
|
||||
break
|
||||
fi
|
||||
done
|
||||
|
||||
default
|
||||
|
||||
# add Gentoo patchset version
|
||||
local extraversion=${PV#${PATCH_PV}}
|
||||
sed -i -e "s:^\(EXTRAVERSION =\).*:\1 ${extraversion/_/-}:" Makefile || die
|
||||
|
||||
local biendian=false
|
||||
|
||||
# prepare the default config
|
||||
case ${ARCH} in
|
||||
arm | hppa | loong | riscv | sparc)
|
||||
> .config || die
|
||||
;;
|
||||
amd64)
|
||||
cp "${DISTDIR}/kernel-x86_64-fedora.config.${CONFIG_VER}" .config || die
|
||||
;;
|
||||
arm64)
|
||||
cp "${DISTDIR}/kernel-aarch64-fedora.config.${CONFIG_VER}" .config || die
|
||||
biendian=true
|
||||
;;
|
||||
ppc)
|
||||
# assume powermac/powerbook defconfig
|
||||
# we still package.use.force savedconfig
|
||||
cp "${WORKDIR}/${BASE_P}/arch/powerpc/configs/pmac32_defconfig" .config || die
|
||||
;;
|
||||
ppc64)
|
||||
cp "${DISTDIR}/kernel-ppc64le-fedora.config.${CONFIG_VER}" .config || die
|
||||
biendian=true
|
||||
;;
|
||||
x86)
|
||||
cp "${DISTDIR}/kernel-i686-fedora.config.${CONFIG_VER}" .config || die
|
||||
;;
|
||||
*)
|
||||
die "Unsupported arch ${ARCH}"
|
||||
;;
|
||||
esac
|
||||
|
||||
local myversion="-gentoo-dist"
|
||||
use hardened && myversion+="-hardened"
|
||||
echo "CONFIG_LOCALVERSION=\"${myversion}\"" > "${T}"/version.config || die
|
||||
local dist_conf_path="${WORKDIR}/gentoo-kernel-config-${GENTOO_CONFIG_VER}"
|
||||
|
||||
local merge_configs=(
|
||||
"${T}"/version.config
|
||||
"${dist_conf_path}"/base.config
|
||||
)
|
||||
use debug || merge_configs+=(
|
||||
"${dist_conf_path}"/no-debug.config
|
||||
)
|
||||
if use hardened; then
|
||||
merge_configs+=( "${dist_conf_path}"/hardened-base.config )
|
||||
|
||||
tc-is-gcc && merge_configs+=( "${dist_conf_path}"/hardened-gcc-plugins.config )
|
||||
|
||||
if [[ -f "${dist_conf_path}/hardened-${ARCH}.config" ]]; then
|
||||
merge_configs+=( "${dist_conf_path}/hardened-${ARCH}.config" )
|
||||
fi
|
||||
fi
|
||||
|
||||
# this covers ppc64 and aarch64_be only for now
|
||||
if [[ ${biendian} == true && $(tc-endian) == big ]]; then
|
||||
merge_configs+=( "${dist_conf_path}/big-endian.config" )
|
||||
fi
|
||||
|
||||
use secureboot && merge_configs+=( "${dist_conf_path}/secureboot.config" )
|
||||
|
||||
kernel-build_merge_configs "${merge_configs[@]}"
|
||||
}
|
||||
@@ -1,174 +0,0 @@
|
||||
# Copyright 2020-2025 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
KERNEL_IUSE_MODULES_SIGN=1
|
||||
|
||||
inherit kernel-build toolchain-funcs verify-sig
|
||||
|
||||
BASE_P=linux-${PV%.*}
|
||||
PATCH_PV=${PV%_p*}
|
||||
PATCHSET=linux-gentoo-patches-6.1.153
|
||||
# https://koji.fedoraproject.org/koji/packageinfo?packageID=8
|
||||
# forked to https://github.com/projg2/fedora-kernel-config-for-gentoo
|
||||
CONFIG_VER=6.1.102-gentoo
|
||||
GENTOO_CONFIG_VER=g17
|
||||
SHA256SUM_DATE=20251002
|
||||
|
||||
DESCRIPTION="Linux kernel built with Gentoo patches"
|
||||
HOMEPAGE="
|
||||
https://wiki.gentoo.org/wiki/Project:Distribution_Kernel
|
||||
https://www.kernel.org/
|
||||
"
|
||||
SRC_URI+="
|
||||
https://cdn.kernel.org/pub/linux/kernel/v$(ver_cut 1).x/${BASE_P}.tar.xz
|
||||
https://cdn.kernel.org/pub/linux/kernel/v$(ver_cut 1).x/patch-${PATCH_PV}.xz
|
||||
https://dev.gentoo.org/~mgorny/dist/linux/${PATCHSET}.tar.xz
|
||||
https://github.com/projg2/gentoo-kernel-config/archive/${GENTOO_CONFIG_VER}.tar.gz
|
||||
-> gentoo-kernel-config-${GENTOO_CONFIG_VER}.tar.gz
|
||||
verify-sig? (
|
||||
https://cdn.kernel.org/pub/linux/kernel/v$(ver_cut 1).x/sha256sums.asc
|
||||
-> linux-$(ver_cut 1).x-sha256sums-${SHA256SUM_DATE}.asc
|
||||
)
|
||||
amd64? (
|
||||
https://raw.githubusercontent.com/projg2/fedora-kernel-config-for-gentoo/${CONFIG_VER}/kernel-x86_64-fedora.config
|
||||
-> kernel-x86_64-fedora.config.${CONFIG_VER}
|
||||
)
|
||||
arm64? (
|
||||
https://raw.githubusercontent.com/projg2/fedora-kernel-config-for-gentoo/${CONFIG_VER}/kernel-aarch64-fedora.config
|
||||
-> kernel-aarch64-fedora.config.${CONFIG_VER}
|
||||
)
|
||||
ppc64? (
|
||||
https://raw.githubusercontent.com/projg2/fedora-kernel-config-for-gentoo/${CONFIG_VER}/kernel-ppc64le-fedora.config
|
||||
-> kernel-ppc64le-fedora.config.${CONFIG_VER}
|
||||
)
|
||||
x86? (
|
||||
https://raw.githubusercontent.com/projg2/fedora-kernel-config-for-gentoo/${CONFIG_VER}/kernel-i686-fedora.config
|
||||
-> kernel-i686-fedora.config.${CONFIG_VER}
|
||||
)
|
||||
"
|
||||
S=${WORKDIR}/${BASE_P}
|
||||
|
||||
KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~loong ~ppc ~ppc64 ~riscv ~sparc ~x86"
|
||||
IUSE="debug experimental hardened"
|
||||
REQUIRED_USE="
|
||||
arm? ( savedconfig )
|
||||
hppa? ( savedconfig )
|
||||
riscv? ( savedconfig )
|
||||
sparc? ( savedconfig )
|
||||
"
|
||||
|
||||
RDEPEND="
|
||||
!sys-kernel/gentoo-kernel-bin:${SLOT}
|
||||
"
|
||||
BDEPEND="
|
||||
debug? ( dev-util/pahole )
|
||||
verify-sig? ( >=sec-keys/openpgp-keys-kernel-20250702 )
|
||||
"
|
||||
PDEPEND="
|
||||
>=virtual/dist-kernel-${PV}
|
||||
"
|
||||
|
||||
QA_FLAGS_IGNORED="
|
||||
usr/src/linux-.*/scripts/gcc-plugins/.*.so
|
||||
usr/src/linux-.*/vmlinux
|
||||
usr/src/linux-.*/arch/powerpc/kernel/vdso.*/vdso.*.so.dbg
|
||||
"
|
||||
|
||||
VERIFY_SIG_OPENPGP_KEY_PATH=/usr/share/openpgp-keys/kernel.org.asc
|
||||
|
||||
src_unpack() {
|
||||
if use verify-sig; then
|
||||
cd "${DISTDIR}" || die
|
||||
verify-sig_verify_signed_checksums \
|
||||
"linux-$(ver_cut 1).x-sha256sums-${SHA256SUM_DATE}.asc" \
|
||||
sha256 "${BASE_P}.tar.xz patch-${PATCH_PV}.xz"
|
||||
cd "${WORKDIR}" || die
|
||||
fi
|
||||
|
||||
default
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
local patch
|
||||
eapply "${WORKDIR}/patch-${PATCH_PV}"
|
||||
for patch in "${WORKDIR}/${PATCHSET}"/*.patch; do
|
||||
eapply "${patch}"
|
||||
# non-experimental patches always finish with Gentoo Kconfig
|
||||
# when ! use experimental, stop applying after it
|
||||
if [[ ${patch} == *Add-Gentoo-Linux-support-config-settings* ]] &&
|
||||
! use experimental
|
||||
then
|
||||
break
|
||||
fi
|
||||
done
|
||||
|
||||
default
|
||||
|
||||
# add Gentoo patchset version
|
||||
local extraversion=${PV#${PATCH_PV}}
|
||||
sed -i -e "s:^\(EXTRAVERSION =\).*:\1 ${extraversion/_/-}:" Makefile || die
|
||||
|
||||
local biendian=false
|
||||
|
||||
# prepare the default config
|
||||
case ${ARCH} in
|
||||
arm | hppa | loong | riscv | sparc)
|
||||
> .config || die
|
||||
;;
|
||||
amd64)
|
||||
cp "${DISTDIR}/kernel-x86_64-fedora.config.${CONFIG_VER}" .config || die
|
||||
;;
|
||||
arm64)
|
||||
cp "${DISTDIR}/kernel-aarch64-fedora.config.${CONFIG_VER}" .config || die
|
||||
biendian=true
|
||||
;;
|
||||
ppc)
|
||||
# assume powermac/powerbook defconfig
|
||||
# we still package.use.force savedconfig
|
||||
cp "${WORKDIR}/${BASE_P}/arch/powerpc/configs/pmac32_defconfig" .config || die
|
||||
;;
|
||||
ppc64)
|
||||
cp "${DISTDIR}/kernel-ppc64le-fedora.config.${CONFIG_VER}" .config || die
|
||||
biendian=true
|
||||
;;
|
||||
x86)
|
||||
cp "${DISTDIR}/kernel-i686-fedora.config.${CONFIG_VER}" .config || die
|
||||
;;
|
||||
*)
|
||||
die "Unsupported arch ${ARCH}"
|
||||
;;
|
||||
esac
|
||||
|
||||
local myversion="-gentoo-dist"
|
||||
use hardened && myversion+="-hardened"
|
||||
echo "CONFIG_LOCALVERSION=\"${myversion}\"" > "${T}"/version.config || die
|
||||
local dist_conf_path="${WORKDIR}/gentoo-kernel-config-${GENTOO_CONFIG_VER}"
|
||||
|
||||
local merge_configs=(
|
||||
"${T}"/version.config
|
||||
"${dist_conf_path}"/base.config
|
||||
)
|
||||
use debug || merge_configs+=(
|
||||
"${dist_conf_path}"/no-debug.config
|
||||
)
|
||||
if use hardened; then
|
||||
merge_configs+=( "${dist_conf_path}"/hardened-base.config )
|
||||
|
||||
tc-is-gcc && merge_configs+=( "${dist_conf_path}"/hardened-gcc-plugins.config )
|
||||
|
||||
if [[ -f "${dist_conf_path}/hardened-${ARCH}.config" ]]; then
|
||||
merge_configs+=( "${dist_conf_path}/hardened-${ARCH}.config" )
|
||||
fi
|
||||
fi
|
||||
|
||||
# this covers ppc64 and aarch64_be only for now
|
||||
if [[ ${biendian} == true && $(tc-endian) == big ]]; then
|
||||
merge_configs+=( "${dist_conf_path}/big-endian.config" )
|
||||
fi
|
||||
|
||||
use secureboot && merge_configs+=( "${dist_conf_path}/secureboot.config" )
|
||||
|
||||
kernel-build_merge_configs "${merge_configs[@]}"
|
||||
}
|
||||
@@ -1,174 +0,0 @@
|
||||
# Copyright 2020-2025 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
KERNEL_IUSE_MODULES_SIGN=1
|
||||
|
||||
inherit kernel-build toolchain-funcs verify-sig
|
||||
|
||||
BASE_P=linux-${PV%.*}
|
||||
PATCH_PV=${PV%_p*}
|
||||
PATCHSET=linux-gentoo-patches-6.1.156
|
||||
# https://koji.fedoraproject.org/koji/packageinfo?packageID=8
|
||||
# forked to https://github.com/projg2/fedora-kernel-config-for-gentoo
|
||||
CONFIG_VER=6.1.102-gentoo
|
||||
GENTOO_CONFIG_VER=g17
|
||||
SHA256SUM_DATE=20251015
|
||||
|
||||
DESCRIPTION="Linux kernel built with Gentoo patches"
|
||||
HOMEPAGE="
|
||||
https://wiki.gentoo.org/wiki/Project:Distribution_Kernel
|
||||
https://www.kernel.org/
|
||||
"
|
||||
SRC_URI+="
|
||||
https://cdn.kernel.org/pub/linux/kernel/v$(ver_cut 1).x/${BASE_P}.tar.xz
|
||||
https://cdn.kernel.org/pub/linux/kernel/v$(ver_cut 1).x/patch-${PATCH_PV}.xz
|
||||
https://dev.gentoo.org/~mgorny/dist/linux/${PATCHSET}.tar.xz
|
||||
https://github.com/projg2/gentoo-kernel-config/archive/${GENTOO_CONFIG_VER}.tar.gz
|
||||
-> gentoo-kernel-config-${GENTOO_CONFIG_VER}.tar.gz
|
||||
verify-sig? (
|
||||
https://cdn.kernel.org/pub/linux/kernel/v$(ver_cut 1).x/sha256sums.asc
|
||||
-> linux-$(ver_cut 1).x-sha256sums-${SHA256SUM_DATE}.asc
|
||||
)
|
||||
amd64? (
|
||||
https://raw.githubusercontent.com/projg2/fedora-kernel-config-for-gentoo/${CONFIG_VER}/kernel-x86_64-fedora.config
|
||||
-> kernel-x86_64-fedora.config.${CONFIG_VER}
|
||||
)
|
||||
arm64? (
|
||||
https://raw.githubusercontent.com/projg2/fedora-kernel-config-for-gentoo/${CONFIG_VER}/kernel-aarch64-fedora.config
|
||||
-> kernel-aarch64-fedora.config.${CONFIG_VER}
|
||||
)
|
||||
ppc64? (
|
||||
https://raw.githubusercontent.com/projg2/fedora-kernel-config-for-gentoo/${CONFIG_VER}/kernel-ppc64le-fedora.config
|
||||
-> kernel-ppc64le-fedora.config.${CONFIG_VER}
|
||||
)
|
||||
x86? (
|
||||
https://raw.githubusercontent.com/projg2/fedora-kernel-config-for-gentoo/${CONFIG_VER}/kernel-i686-fedora.config
|
||||
-> kernel-i686-fedora.config.${CONFIG_VER}
|
||||
)
|
||||
"
|
||||
S=${WORKDIR}/${BASE_P}
|
||||
|
||||
KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~loong ~ppc ~ppc64 ~riscv ~sparc ~x86"
|
||||
IUSE="debug experimental hardened"
|
||||
REQUIRED_USE="
|
||||
arm? ( savedconfig )
|
||||
hppa? ( savedconfig )
|
||||
riscv? ( savedconfig )
|
||||
sparc? ( savedconfig )
|
||||
"
|
||||
|
||||
RDEPEND="
|
||||
!sys-kernel/gentoo-kernel-bin:${SLOT}
|
||||
"
|
||||
BDEPEND="
|
||||
debug? ( dev-util/pahole )
|
||||
verify-sig? ( >=sec-keys/openpgp-keys-kernel-20250702 )
|
||||
"
|
||||
PDEPEND="
|
||||
>=virtual/dist-kernel-${PV}
|
||||
"
|
||||
|
||||
QA_FLAGS_IGNORED="
|
||||
usr/src/linux-.*/scripts/gcc-plugins/.*.so
|
||||
usr/src/linux-.*/vmlinux
|
||||
usr/src/linux-.*/arch/powerpc/kernel/vdso.*/vdso.*.so.dbg
|
||||
"
|
||||
|
||||
VERIFY_SIG_OPENPGP_KEY_PATH=/usr/share/openpgp-keys/kernel.org.asc
|
||||
|
||||
src_unpack() {
|
||||
if use verify-sig; then
|
||||
cd "${DISTDIR}" || die
|
||||
verify-sig_verify_signed_checksums \
|
||||
"linux-$(ver_cut 1).x-sha256sums-${SHA256SUM_DATE}.asc" \
|
||||
sha256 "${BASE_P}.tar.xz patch-${PATCH_PV}.xz"
|
||||
cd "${WORKDIR}" || die
|
||||
fi
|
||||
|
||||
default
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
local patch
|
||||
eapply "${WORKDIR}/patch-${PATCH_PV}"
|
||||
for patch in "${WORKDIR}/${PATCHSET}"/*.patch; do
|
||||
eapply "${patch}"
|
||||
# non-experimental patches always finish with Gentoo Kconfig
|
||||
# when ! use experimental, stop applying after it
|
||||
if [[ ${patch} == *Add-Gentoo-Linux-support-config-settings* ]] &&
|
||||
! use experimental
|
||||
then
|
||||
break
|
||||
fi
|
||||
done
|
||||
|
||||
default
|
||||
|
||||
# add Gentoo patchset version
|
||||
local extraversion=${PV#${PATCH_PV}}
|
||||
sed -i -e "s:^\(EXTRAVERSION =\).*:\1 ${extraversion/_/-}:" Makefile || die
|
||||
|
||||
local biendian=false
|
||||
|
||||
# prepare the default config
|
||||
case ${ARCH} in
|
||||
arm | hppa | loong | riscv | sparc)
|
||||
> .config || die
|
||||
;;
|
||||
amd64)
|
||||
cp "${DISTDIR}/kernel-x86_64-fedora.config.${CONFIG_VER}" .config || die
|
||||
;;
|
||||
arm64)
|
||||
cp "${DISTDIR}/kernel-aarch64-fedora.config.${CONFIG_VER}" .config || die
|
||||
biendian=true
|
||||
;;
|
||||
ppc)
|
||||
# assume powermac/powerbook defconfig
|
||||
# we still package.use.force savedconfig
|
||||
cp "${WORKDIR}/${BASE_P}/arch/powerpc/configs/pmac32_defconfig" .config || die
|
||||
;;
|
||||
ppc64)
|
||||
cp "${DISTDIR}/kernel-ppc64le-fedora.config.${CONFIG_VER}" .config || die
|
||||
biendian=true
|
||||
;;
|
||||
x86)
|
||||
cp "${DISTDIR}/kernel-i686-fedora.config.${CONFIG_VER}" .config || die
|
||||
;;
|
||||
*)
|
||||
die "Unsupported arch ${ARCH}"
|
||||
;;
|
||||
esac
|
||||
|
||||
local myversion="-gentoo-dist"
|
||||
use hardened && myversion+="-hardened"
|
||||
echo "CONFIG_LOCALVERSION=\"${myversion}\"" > "${T}"/version.config || die
|
||||
local dist_conf_path="${WORKDIR}/gentoo-kernel-config-${GENTOO_CONFIG_VER}"
|
||||
|
||||
local merge_configs=(
|
||||
"${T}"/version.config
|
||||
"${dist_conf_path}"/base.config
|
||||
)
|
||||
use debug || merge_configs+=(
|
||||
"${dist_conf_path}"/no-debug.config
|
||||
)
|
||||
if use hardened; then
|
||||
merge_configs+=( "${dist_conf_path}"/hardened-base.config )
|
||||
|
||||
tc-is-gcc && merge_configs+=( "${dist_conf_path}"/hardened-gcc-plugins.config )
|
||||
|
||||
if [[ -f "${dist_conf_path}/hardened-${ARCH}.config" ]]; then
|
||||
merge_configs+=( "${dist_conf_path}/hardened-${ARCH}.config" )
|
||||
fi
|
||||
fi
|
||||
|
||||
# this covers ppc64 and aarch64_be only for now
|
||||
if [[ ${biendian} == true && $(tc-endian) == big ]]; then
|
||||
merge_configs+=( "${dist_conf_path}/big-endian.config" )
|
||||
fi
|
||||
|
||||
use secureboot && merge_configs+=( "${dist_conf_path}/secureboot.config" )
|
||||
|
||||
kernel-build_merge_configs "${merge_configs[@]}"
|
||||
}
|
||||
@@ -1,177 +0,0 @@
|
||||
# Copyright 2020-2025 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
KERNEL_IUSE_GENERIC_UKI=1
|
||||
KERNEL_IUSE_MODULES_SIGN=1
|
||||
|
||||
inherit kernel-build toolchain-funcs verify-sig
|
||||
|
||||
MY_P=linux-${PV%.*}
|
||||
PATCHSET=linux-gentoo-patches-6.12.40
|
||||
# https://koji.fedoraproject.org/koji/packageinfo?packageID=8
|
||||
# forked to https://github.com/projg2/fedora-kernel-config-for-gentoo
|
||||
CONFIG_VER=6.12.41-gentoo
|
||||
GENTOO_CONFIG_VER=g16
|
||||
SHA256SUM_DATE=20250801
|
||||
|
||||
DESCRIPTION="Linux kernel built with Gentoo patches"
|
||||
HOMEPAGE="
|
||||
https://wiki.gentoo.org/wiki/Project:Distribution_Kernel
|
||||
https://www.kernel.org/
|
||||
"
|
||||
SRC_URI+="
|
||||
https://cdn.kernel.org/pub/linux/kernel/v$(ver_cut 1).x/${MY_P}.tar.xz
|
||||
https://cdn.kernel.org/pub/linux/kernel/v$(ver_cut 1).x/patch-${PV}.xz
|
||||
https://dev.gentoo.org/~mgorny/dist/linux/${PATCHSET}.tar.xz
|
||||
https://github.com/projg2/gentoo-kernel-config/archive/${GENTOO_CONFIG_VER}.tar.gz
|
||||
-> gentoo-kernel-config-${GENTOO_CONFIG_VER}.tar.gz
|
||||
verify-sig? (
|
||||
https://cdn.kernel.org/pub/linux/kernel/v$(ver_cut 1).x/sha256sums.asc
|
||||
-> linux-$(ver_cut 1).x-sha256sums-${SHA256SUM_DATE}.asc
|
||||
)
|
||||
amd64? (
|
||||
https://raw.githubusercontent.com/projg2/fedora-kernel-config-for-gentoo/${CONFIG_VER}/kernel-x86_64-fedora.config
|
||||
-> kernel-x86_64-fedora.config.${CONFIG_VER}
|
||||
)
|
||||
arm64? (
|
||||
https://raw.githubusercontent.com/projg2/fedora-kernel-config-for-gentoo/${CONFIG_VER}/kernel-aarch64-fedora.config
|
||||
-> kernel-aarch64-fedora.config.${CONFIG_VER}
|
||||
)
|
||||
ppc64? (
|
||||
https://raw.githubusercontent.com/projg2/fedora-kernel-config-for-gentoo/${CONFIG_VER}/kernel-ppc64le-fedora.config
|
||||
-> kernel-ppc64le-fedora.config.${CONFIG_VER}
|
||||
)
|
||||
riscv? (
|
||||
https://raw.githubusercontent.com/projg2/fedora-kernel-config-for-gentoo/${CONFIG_VER}/kernel-riscv64-fedora.config
|
||||
-> kernel-riscv64-fedora.config.${CONFIG_VER}
|
||||
)
|
||||
x86? (
|
||||
https://raw.githubusercontent.com/projg2/fedora-kernel-config-for-gentoo/${CONFIG_VER}/kernel-i686-fedora.config
|
||||
-> kernel-i686-fedora.config.${CONFIG_VER}
|
||||
)
|
||||
"
|
||||
S=${WORKDIR}/${MY_P}
|
||||
|
||||
KEYWORDS="amd64 ~arm arm64 ~hppa ~loong ~ppc ppc64 ~riscv ~sparc x86"
|
||||
IUSE="debug experimental hardened"
|
||||
REQUIRED_USE="
|
||||
arm? ( savedconfig )
|
||||
hppa? ( savedconfig )
|
||||
sparc? ( savedconfig )
|
||||
"
|
||||
|
||||
RDEPEND="
|
||||
!sys-kernel/gentoo-kernel-bin:${SLOT}
|
||||
"
|
||||
BDEPEND="
|
||||
debug? ( dev-util/pahole )
|
||||
verify-sig? ( >=sec-keys/openpgp-keys-kernel-20250702 )
|
||||
"
|
||||
PDEPEND="
|
||||
>=virtual/dist-kernel-${PV}
|
||||
"
|
||||
|
||||
QA_FLAGS_IGNORED="
|
||||
usr/src/linux-.*/scripts/gcc-plugins/.*.so
|
||||
usr/src/linux-.*/vmlinux
|
||||
usr/src/linux-.*/arch/powerpc/kernel/vdso.*/vdso.*.so.dbg
|
||||
"
|
||||
|
||||
VERIFY_SIG_OPENPGP_KEY_PATH=/usr/share/openpgp-keys/kernel.org.asc
|
||||
|
||||
src_unpack() {
|
||||
if use verify-sig; then
|
||||
cd "${DISTDIR}" || die
|
||||
verify-sig_verify_signed_checksums \
|
||||
"linux-$(ver_cut 1).x-sha256sums-${SHA256SUM_DATE}.asc" \
|
||||
sha256 "${MY_P}.tar.xz patch-${PV}.xz"
|
||||
cd "${WORKDIR}" || die
|
||||
fi
|
||||
|
||||
default
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
local patch
|
||||
eapply "${WORKDIR}/patch-${PV}"
|
||||
for patch in "${WORKDIR}/${PATCHSET}"/*.patch; do
|
||||
eapply "${patch}"
|
||||
# non-experimental patches always finish with Gentoo Kconfig
|
||||
# when ! use experimental, stop applying after it
|
||||
if [[ ${patch} == *Add-Gentoo-Linux-support-config-settings* ]] &&
|
||||
! use experimental
|
||||
then
|
||||
break
|
||||
fi
|
||||
done
|
||||
|
||||
default
|
||||
|
||||
local biendian=false
|
||||
|
||||
# prepare the default config
|
||||
case ${ARCH} in
|
||||
arm | hppa | loong | sparc)
|
||||
> .config || die
|
||||
;;
|
||||
amd64)
|
||||
cp "${DISTDIR}/kernel-x86_64-fedora.config.${CONFIG_VER}" .config || die
|
||||
;;
|
||||
arm64)
|
||||
cp "${DISTDIR}/kernel-aarch64-fedora.config.${CONFIG_VER}" .config || die
|
||||
biendian=true
|
||||
;;
|
||||
ppc)
|
||||
# assume powermac/powerbook defconfig
|
||||
# we still package.use.force savedconfig
|
||||
cp "${WORKDIR}/${MY_P}/arch/powerpc/configs/pmac32_defconfig" .config || die
|
||||
;;
|
||||
ppc64)
|
||||
cp "${DISTDIR}/kernel-ppc64le-fedora.config.${CONFIG_VER}" .config || die
|
||||
biendian=true
|
||||
;;
|
||||
riscv)
|
||||
cp "${DISTDIR}/kernel-riscv64-fedora.config.${CONFIG_VER}" .config || die
|
||||
;;
|
||||
x86)
|
||||
cp "${DISTDIR}/kernel-i686-fedora.config.${CONFIG_VER}" .config || die
|
||||
;;
|
||||
*)
|
||||
die "Unsupported arch ${ARCH}"
|
||||
;;
|
||||
esac
|
||||
|
||||
local myversion="-gentoo-dist"
|
||||
use hardened && myversion+="-hardened"
|
||||
echo "CONFIG_LOCALVERSION=\"${myversion}\"" > "${T}"/version.config || die
|
||||
local dist_conf_path="${WORKDIR}/gentoo-kernel-config-${GENTOO_CONFIG_VER}"
|
||||
|
||||
local merge_configs=(
|
||||
"${T}"/version.config
|
||||
"${dist_conf_path}"/base.config
|
||||
"${dist_conf_path}"/6.12+.config
|
||||
)
|
||||
use debug || merge_configs+=(
|
||||
"${dist_conf_path}"/no-debug.config
|
||||
)
|
||||
if use hardened; then
|
||||
merge_configs+=( "${dist_conf_path}"/hardened-base.config )
|
||||
|
||||
tc-is-gcc && merge_configs+=( "${dist_conf_path}"/hardened-gcc-plugins.config )
|
||||
|
||||
if [[ -f "${dist_conf_path}/hardened-${ARCH}.config" ]]; then
|
||||
merge_configs+=( "${dist_conf_path}/hardened-${ARCH}.config" )
|
||||
fi
|
||||
fi
|
||||
|
||||
# this covers ppc64 and aarch64_be only for now
|
||||
if [[ ${biendian} == true && $(tc-endian) == big ]]; then
|
||||
merge_configs+=( "${dist_conf_path}/big-endian.config" )
|
||||
fi
|
||||
|
||||
use secureboot && merge_configs+=( "${dist_conf_path}/secureboot.config" )
|
||||
|
||||
kernel-build_merge_configs "${merge_configs[@]}"
|
||||
}
|
||||
@@ -1,185 +0,0 @@
|
||||
# Copyright 2020-2025 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
KERNEL_IUSE_GENERIC_UKI=1
|
||||
KERNEL_IUSE_MODULES_SIGN=1
|
||||
|
||||
inherit kernel-build toolchain-funcs verify-sig
|
||||
|
||||
BASE_P=linux-${PV%.*}
|
||||
PATCH_PV=${PV%_p*}
|
||||
PATCHSET=linux-gentoo-patches-6.12.48
|
||||
# https://koji.fedoraproject.org/koji/packageinfo?packageID=8
|
||||
# forked to https://github.com/projg2/fedora-kernel-config-for-gentoo
|
||||
CONFIG_VER=6.12.41-gentoo
|
||||
GENTOO_CONFIG_VER=g17
|
||||
SHA256SUM_DATE=20250919
|
||||
|
||||
DESCRIPTION="Linux kernel built with Gentoo patches"
|
||||
HOMEPAGE="
|
||||
https://wiki.gentoo.org/wiki/Project:Distribution_Kernel
|
||||
https://www.kernel.org/
|
||||
"
|
||||
SRC_URI+="
|
||||
https://cdn.kernel.org/pub/linux/kernel/v$(ver_cut 1).x/${BASE_P}.tar.xz
|
||||
https://cdn.kernel.org/pub/linux/kernel/v$(ver_cut 1).x/patch-${PATCH_PV}.xz
|
||||
https://dev.gentoo.org/~mgorny/dist/linux/${PATCHSET}.tar.xz
|
||||
https://github.com/projg2/gentoo-kernel-config/archive/${GENTOO_CONFIG_VER}.tar.gz
|
||||
-> gentoo-kernel-config-${GENTOO_CONFIG_VER}.tar.gz
|
||||
verify-sig? (
|
||||
https://cdn.kernel.org/pub/linux/kernel/v$(ver_cut 1).x/sha256sums.asc
|
||||
-> linux-$(ver_cut 1).x-sha256sums-${SHA256SUM_DATE}.asc
|
||||
)
|
||||
amd64? (
|
||||
https://raw.githubusercontent.com/projg2/fedora-kernel-config-for-gentoo/${CONFIG_VER}/kernel-x86_64-fedora.config
|
||||
-> kernel-x86_64-fedora.config.${CONFIG_VER}
|
||||
)
|
||||
arm64? (
|
||||
https://raw.githubusercontent.com/projg2/fedora-kernel-config-for-gentoo/${CONFIG_VER}/kernel-aarch64-fedora.config
|
||||
-> kernel-aarch64-fedora.config.${CONFIG_VER}
|
||||
)
|
||||
ppc64? (
|
||||
https://raw.githubusercontent.com/projg2/fedora-kernel-config-for-gentoo/${CONFIG_VER}/kernel-ppc64le-fedora.config
|
||||
-> kernel-ppc64le-fedora.config.${CONFIG_VER}
|
||||
)
|
||||
riscv? (
|
||||
https://raw.githubusercontent.com/projg2/fedora-kernel-config-for-gentoo/${CONFIG_VER}/kernel-riscv64-fedora.config
|
||||
-> kernel-riscv64-fedora.config.${CONFIG_VER}
|
||||
)
|
||||
x86? (
|
||||
https://raw.githubusercontent.com/projg2/fedora-kernel-config-for-gentoo/${CONFIG_VER}/kernel-i686-fedora.config
|
||||
-> kernel-i686-fedora.config.${CONFIG_VER}
|
||||
)
|
||||
"
|
||||
S=${WORKDIR}/${BASE_P}
|
||||
|
||||
KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~loong ~ppc ~ppc64 ~riscv ~sparc ~x86"
|
||||
IUSE="debug experimental hardened"
|
||||
REQUIRED_USE="
|
||||
arm? ( savedconfig )
|
||||
hppa? ( savedconfig )
|
||||
sparc? ( savedconfig )
|
||||
"
|
||||
|
||||
RDEPEND="
|
||||
!sys-kernel/gentoo-kernel-bin:${SLOT}
|
||||
"
|
||||
BDEPEND="
|
||||
debug? ( dev-util/pahole )
|
||||
verify-sig? ( >=sec-keys/openpgp-keys-kernel-20250702 )
|
||||
"
|
||||
PDEPEND="
|
||||
>=virtual/dist-kernel-${PATCH_PV}
|
||||
"
|
||||
|
||||
QA_FLAGS_IGNORED="
|
||||
usr/src/linux-.*/scripts/gcc-plugins/.*.so
|
||||
usr/src/linux-.*/vmlinux
|
||||
usr/src/linux-.*/arch/powerpc/kernel/vdso.*/vdso.*.so.dbg
|
||||
"
|
||||
|
||||
VERIFY_SIG_OPENPGP_KEY_PATH=/usr/share/openpgp-keys/kernel.org.asc
|
||||
|
||||
src_unpack() {
|
||||
if use verify-sig; then
|
||||
cd "${DISTDIR}" || die
|
||||
verify-sig_verify_signed_checksums \
|
||||
"linux-$(ver_cut 1).x-sha256sums-${SHA256SUM_DATE}.asc" \
|
||||
sha256 "${BASE_P}.tar.xz patch-${PATCH_PV}.xz"
|
||||
cd "${WORKDIR}" || die
|
||||
fi
|
||||
|
||||
default
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
local patch
|
||||
eapply "${WORKDIR}/patch-${PATCH_PV}"
|
||||
for patch in "${WORKDIR}/${PATCHSET}"/*.patch; do
|
||||
eapply "${patch}"
|
||||
# non-experimental patches always finish with Gentoo Kconfig
|
||||
# when ! use experimental, stop applying after it
|
||||
if [[ ${patch} == *Add-Gentoo-Linux-support-config-settings* ]] &&
|
||||
! use experimental
|
||||
then
|
||||
break
|
||||
fi
|
||||
done
|
||||
|
||||
default
|
||||
|
||||
# add Gentoo patchset version
|
||||
local extraversion=${PV#${PATCH_PV}}
|
||||
sed -i -e "s:^\(EXTRAVERSION =\).*:\1 ${extraversion/_/-}:" Makefile || die
|
||||
|
||||
local biendian=false
|
||||
|
||||
# prepare the default config
|
||||
case ${ARCH} in
|
||||
arm | hppa | loong | sparc)
|
||||
> .config || die
|
||||
;;
|
||||
amd64)
|
||||
cp "${DISTDIR}/kernel-x86_64-fedora.config.${CONFIG_VER}" .config || die
|
||||
;;
|
||||
arm64)
|
||||
cp "${DISTDIR}/kernel-aarch64-fedora.config.${CONFIG_VER}" .config || die
|
||||
biendian=true
|
||||
;;
|
||||
ppc)
|
||||
# assume powermac/powerbook defconfig
|
||||
# we still package.use.force savedconfig
|
||||
cp "${WORKDIR}/${BASE_P}/arch/powerpc/configs/pmac32_defconfig" .config || die
|
||||
;;
|
||||
ppc64)
|
||||
cp "${DISTDIR}/kernel-ppc64le-fedora.config.${CONFIG_VER}" .config || die
|
||||
biendian=true
|
||||
;;
|
||||
riscv)
|
||||
cp "${DISTDIR}/kernel-riscv64-fedora.config.${CONFIG_VER}" .config || die
|
||||
;;
|
||||
x86)
|
||||
cp "${DISTDIR}/kernel-i686-fedora.config.${CONFIG_VER}" .config || die
|
||||
;;
|
||||
*)
|
||||
die "Unsupported arch ${ARCH}"
|
||||
;;
|
||||
esac
|
||||
|
||||
local myversion="-gentoo-dist"
|
||||
use hardened && myversion+="-hardened"
|
||||
echo "CONFIG_LOCALVERSION=\"${myversion}\"" > "${T}"/version.config || die
|
||||
local dist_conf_path="${WORKDIR}/gentoo-kernel-config-${GENTOO_CONFIG_VER}"
|
||||
|
||||
local merge_configs=(
|
||||
"${T}"/version.config
|
||||
"${dist_conf_path}"/base.config
|
||||
"${dist_conf_path}"/6.12+.config
|
||||
)
|
||||
use debug || merge_configs+=(
|
||||
"${dist_conf_path}"/no-debug.config
|
||||
)
|
||||
if use hardened; then
|
||||
merge_configs+=( "${dist_conf_path}"/hardened-base.config )
|
||||
|
||||
tc-is-gcc && merge_configs+=( "${dist_conf_path}"/hardened-gcc-plugins.config )
|
||||
|
||||
if [[ -f "${dist_conf_path}/hardened-${ARCH}.config" ]]; then
|
||||
merge_configs+=( "${dist_conf_path}/hardened-${ARCH}.config" )
|
||||
fi
|
||||
fi
|
||||
|
||||
# this covers ppc64 and aarch64_be only for now
|
||||
if [[ ${biendian} == true && $(tc-endian) == big ]]; then
|
||||
merge_configs+=( "${dist_conf_path}/big-endian.config" )
|
||||
fi
|
||||
|
||||
use secureboot && merge_configs+=(
|
||||
"${dist_conf_path}/secureboot.config"
|
||||
"${dist_conf_path}/zboot.config"
|
||||
)
|
||||
|
||||
kernel-build_merge_configs "${merge_configs[@]}"
|
||||
}
|
||||
@@ -1,185 +0,0 @@
|
||||
# Copyright 2020-2025 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
KERNEL_IUSE_GENERIC_UKI=1
|
||||
KERNEL_IUSE_MODULES_SIGN=1
|
||||
|
||||
inherit kernel-build toolchain-funcs verify-sig
|
||||
|
||||
BASE_P=linux-${PV%.*}
|
||||
PATCH_PV=${PV%_p*}
|
||||
PATCHSET=linux-gentoo-patches-6.12.48
|
||||
# https://koji.fedoraproject.org/koji/packageinfo?packageID=8
|
||||
# forked to https://github.com/projg2/fedora-kernel-config-for-gentoo
|
||||
CONFIG_VER=6.12.41-gentoo
|
||||
GENTOO_CONFIG_VER=g17
|
||||
SHA256SUM_DATE=20250925
|
||||
|
||||
DESCRIPTION="Linux kernel built with Gentoo patches"
|
||||
HOMEPAGE="
|
||||
https://wiki.gentoo.org/wiki/Project:Distribution_Kernel
|
||||
https://www.kernel.org/
|
||||
"
|
||||
SRC_URI+="
|
||||
https://cdn.kernel.org/pub/linux/kernel/v$(ver_cut 1).x/${BASE_P}.tar.xz
|
||||
https://cdn.kernel.org/pub/linux/kernel/v$(ver_cut 1).x/patch-${PATCH_PV}.xz
|
||||
https://dev.gentoo.org/~mgorny/dist/linux/${PATCHSET}.tar.xz
|
||||
https://github.com/projg2/gentoo-kernel-config/archive/${GENTOO_CONFIG_VER}.tar.gz
|
||||
-> gentoo-kernel-config-${GENTOO_CONFIG_VER}.tar.gz
|
||||
verify-sig? (
|
||||
https://cdn.kernel.org/pub/linux/kernel/v$(ver_cut 1).x/sha256sums.asc
|
||||
-> linux-$(ver_cut 1).x-sha256sums-${SHA256SUM_DATE}.asc
|
||||
)
|
||||
amd64? (
|
||||
https://raw.githubusercontent.com/projg2/fedora-kernel-config-for-gentoo/${CONFIG_VER}/kernel-x86_64-fedora.config
|
||||
-> kernel-x86_64-fedora.config.${CONFIG_VER}
|
||||
)
|
||||
arm64? (
|
||||
https://raw.githubusercontent.com/projg2/fedora-kernel-config-for-gentoo/${CONFIG_VER}/kernel-aarch64-fedora.config
|
||||
-> kernel-aarch64-fedora.config.${CONFIG_VER}
|
||||
)
|
||||
ppc64? (
|
||||
https://raw.githubusercontent.com/projg2/fedora-kernel-config-for-gentoo/${CONFIG_VER}/kernel-ppc64le-fedora.config
|
||||
-> kernel-ppc64le-fedora.config.${CONFIG_VER}
|
||||
)
|
||||
riscv? (
|
||||
https://raw.githubusercontent.com/projg2/fedora-kernel-config-for-gentoo/${CONFIG_VER}/kernel-riscv64-fedora.config
|
||||
-> kernel-riscv64-fedora.config.${CONFIG_VER}
|
||||
)
|
||||
x86? (
|
||||
https://raw.githubusercontent.com/projg2/fedora-kernel-config-for-gentoo/${CONFIG_VER}/kernel-i686-fedora.config
|
||||
-> kernel-i686-fedora.config.${CONFIG_VER}
|
||||
)
|
||||
"
|
||||
S=${WORKDIR}/${BASE_P}
|
||||
|
||||
KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~loong ~ppc ~ppc64 ~riscv ~sparc ~x86"
|
||||
IUSE="debug experimental hardened"
|
||||
REQUIRED_USE="
|
||||
arm? ( savedconfig )
|
||||
hppa? ( savedconfig )
|
||||
sparc? ( savedconfig )
|
||||
"
|
||||
|
||||
RDEPEND="
|
||||
!sys-kernel/gentoo-kernel-bin:${SLOT}
|
||||
"
|
||||
BDEPEND="
|
||||
debug? ( dev-util/pahole )
|
||||
verify-sig? ( >=sec-keys/openpgp-keys-kernel-20250702 )
|
||||
"
|
||||
PDEPEND="
|
||||
>=virtual/dist-kernel-${PV}
|
||||
"
|
||||
|
||||
QA_FLAGS_IGNORED="
|
||||
usr/src/linux-.*/scripts/gcc-plugins/.*.so
|
||||
usr/src/linux-.*/vmlinux
|
||||
usr/src/linux-.*/arch/powerpc/kernel/vdso.*/vdso.*.so.dbg
|
||||
"
|
||||
|
||||
VERIFY_SIG_OPENPGP_KEY_PATH=/usr/share/openpgp-keys/kernel.org.asc
|
||||
|
||||
src_unpack() {
|
||||
if use verify-sig; then
|
||||
cd "${DISTDIR}" || die
|
||||
verify-sig_verify_signed_checksums \
|
||||
"linux-$(ver_cut 1).x-sha256sums-${SHA256SUM_DATE}.asc" \
|
||||
sha256 "${BASE_P}.tar.xz patch-${PATCH_PV}.xz"
|
||||
cd "${WORKDIR}" || die
|
||||
fi
|
||||
|
||||
default
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
local patch
|
||||
eapply "${WORKDIR}/patch-${PATCH_PV}"
|
||||
for patch in "${WORKDIR}/${PATCHSET}"/*.patch; do
|
||||
eapply "${patch}"
|
||||
# non-experimental patches always finish with Gentoo Kconfig
|
||||
# when ! use experimental, stop applying after it
|
||||
if [[ ${patch} == *Add-Gentoo-Linux-support-config-settings* ]] &&
|
||||
! use experimental
|
||||
then
|
||||
break
|
||||
fi
|
||||
done
|
||||
|
||||
default
|
||||
|
||||
# add Gentoo patchset version
|
||||
local extraversion=${PV#${PATCH_PV}}
|
||||
sed -i -e "s:^\(EXTRAVERSION =\).*:\1 ${extraversion/_/-}:" Makefile || die
|
||||
|
||||
local biendian=false
|
||||
|
||||
# prepare the default config
|
||||
case ${ARCH} in
|
||||
arm | hppa | loong | sparc)
|
||||
> .config || die
|
||||
;;
|
||||
amd64)
|
||||
cp "${DISTDIR}/kernel-x86_64-fedora.config.${CONFIG_VER}" .config || die
|
||||
;;
|
||||
arm64)
|
||||
cp "${DISTDIR}/kernel-aarch64-fedora.config.${CONFIG_VER}" .config || die
|
||||
biendian=true
|
||||
;;
|
||||
ppc)
|
||||
# assume powermac/powerbook defconfig
|
||||
# we still package.use.force savedconfig
|
||||
cp "${WORKDIR}/${BASE_P}/arch/powerpc/configs/pmac32_defconfig" .config || die
|
||||
;;
|
||||
ppc64)
|
||||
cp "${DISTDIR}/kernel-ppc64le-fedora.config.${CONFIG_VER}" .config || die
|
||||
biendian=true
|
||||
;;
|
||||
riscv)
|
||||
cp "${DISTDIR}/kernel-riscv64-fedora.config.${CONFIG_VER}" .config || die
|
||||
;;
|
||||
x86)
|
||||
cp "${DISTDIR}/kernel-i686-fedora.config.${CONFIG_VER}" .config || die
|
||||
;;
|
||||
*)
|
||||
die "Unsupported arch ${ARCH}"
|
||||
;;
|
||||
esac
|
||||
|
||||
local myversion="-gentoo-dist"
|
||||
use hardened && myversion+="-hardened"
|
||||
echo "CONFIG_LOCALVERSION=\"${myversion}\"" > "${T}"/version.config || die
|
||||
local dist_conf_path="${WORKDIR}/gentoo-kernel-config-${GENTOO_CONFIG_VER}"
|
||||
|
||||
local merge_configs=(
|
||||
"${T}"/version.config
|
||||
"${dist_conf_path}"/base.config
|
||||
"${dist_conf_path}"/6.12+.config
|
||||
)
|
||||
use debug || merge_configs+=(
|
||||
"${dist_conf_path}"/no-debug.config
|
||||
)
|
||||
if use hardened; then
|
||||
merge_configs+=( "${dist_conf_path}"/hardened-base.config )
|
||||
|
||||
tc-is-gcc && merge_configs+=( "${dist_conf_path}"/hardened-gcc-plugins.config )
|
||||
|
||||
if [[ -f "${dist_conf_path}/hardened-${ARCH}.config" ]]; then
|
||||
merge_configs+=( "${dist_conf_path}/hardened-${ARCH}.config" )
|
||||
fi
|
||||
fi
|
||||
|
||||
# this covers ppc64 and aarch64_be only for now
|
||||
if [[ ${biendian} == true && $(tc-endian) == big ]]; then
|
||||
merge_configs+=( "${dist_conf_path}/big-endian.config" )
|
||||
fi
|
||||
|
||||
use secureboot && merge_configs+=(
|
||||
"${dist_conf_path}/secureboot.config"
|
||||
"${dist_conf_path}/zboot.config"
|
||||
)
|
||||
|
||||
kernel-build_merge_configs "${merge_configs[@]}"
|
||||
}
|
||||
@@ -1,185 +0,0 @@
|
||||
# Copyright 2020-2025 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
KERNEL_IUSE_GENERIC_UKI=1
|
||||
KERNEL_IUSE_MODULES_SIGN=1
|
||||
|
||||
inherit kernel-build toolchain-funcs verify-sig
|
||||
|
||||
BASE_P=linux-${PV%.*}
|
||||
PATCH_PV=${PV%_p*}
|
||||
PATCHSET=linux-gentoo-patches-6.12.48
|
||||
# https://koji.fedoraproject.org/koji/packageinfo?packageID=8
|
||||
# forked to https://github.com/projg2/fedora-kernel-config-for-gentoo
|
||||
CONFIG_VER=6.12.41-gentoo
|
||||
GENTOO_CONFIG_VER=g17
|
||||
SHA256SUM_DATE=20251002
|
||||
|
||||
DESCRIPTION="Linux kernel built with Gentoo patches"
|
||||
HOMEPAGE="
|
||||
https://wiki.gentoo.org/wiki/Project:Distribution_Kernel
|
||||
https://www.kernel.org/
|
||||
"
|
||||
SRC_URI+="
|
||||
https://cdn.kernel.org/pub/linux/kernel/v$(ver_cut 1).x/${BASE_P}.tar.xz
|
||||
https://cdn.kernel.org/pub/linux/kernel/v$(ver_cut 1).x/patch-${PATCH_PV}.xz
|
||||
https://dev.gentoo.org/~mgorny/dist/linux/${PATCHSET}.tar.xz
|
||||
https://github.com/projg2/gentoo-kernel-config/archive/${GENTOO_CONFIG_VER}.tar.gz
|
||||
-> gentoo-kernel-config-${GENTOO_CONFIG_VER}.tar.gz
|
||||
verify-sig? (
|
||||
https://cdn.kernel.org/pub/linux/kernel/v$(ver_cut 1).x/sha256sums.asc
|
||||
-> linux-$(ver_cut 1).x-sha256sums-${SHA256SUM_DATE}.asc
|
||||
)
|
||||
amd64? (
|
||||
https://raw.githubusercontent.com/projg2/fedora-kernel-config-for-gentoo/${CONFIG_VER}/kernel-x86_64-fedora.config
|
||||
-> kernel-x86_64-fedora.config.${CONFIG_VER}
|
||||
)
|
||||
arm64? (
|
||||
https://raw.githubusercontent.com/projg2/fedora-kernel-config-for-gentoo/${CONFIG_VER}/kernel-aarch64-fedora.config
|
||||
-> kernel-aarch64-fedora.config.${CONFIG_VER}
|
||||
)
|
||||
ppc64? (
|
||||
https://raw.githubusercontent.com/projg2/fedora-kernel-config-for-gentoo/${CONFIG_VER}/kernel-ppc64le-fedora.config
|
||||
-> kernel-ppc64le-fedora.config.${CONFIG_VER}
|
||||
)
|
||||
riscv? (
|
||||
https://raw.githubusercontent.com/projg2/fedora-kernel-config-for-gentoo/${CONFIG_VER}/kernel-riscv64-fedora.config
|
||||
-> kernel-riscv64-fedora.config.${CONFIG_VER}
|
||||
)
|
||||
x86? (
|
||||
https://raw.githubusercontent.com/projg2/fedora-kernel-config-for-gentoo/${CONFIG_VER}/kernel-i686-fedora.config
|
||||
-> kernel-i686-fedora.config.${CONFIG_VER}
|
||||
)
|
||||
"
|
||||
S=${WORKDIR}/${BASE_P}
|
||||
|
||||
KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~loong ~ppc ~ppc64 ~riscv ~sparc ~x86"
|
||||
IUSE="debug experimental hardened"
|
||||
REQUIRED_USE="
|
||||
arm? ( savedconfig )
|
||||
hppa? ( savedconfig )
|
||||
sparc? ( savedconfig )
|
||||
"
|
||||
|
||||
RDEPEND="
|
||||
!sys-kernel/gentoo-kernel-bin:${SLOT}
|
||||
"
|
||||
BDEPEND="
|
||||
debug? ( dev-util/pahole )
|
||||
verify-sig? ( >=sec-keys/openpgp-keys-kernel-20250702 )
|
||||
"
|
||||
PDEPEND="
|
||||
>=virtual/dist-kernel-${PV}
|
||||
"
|
||||
|
||||
QA_FLAGS_IGNORED="
|
||||
usr/src/linux-.*/scripts/gcc-plugins/.*.so
|
||||
usr/src/linux-.*/vmlinux
|
||||
usr/src/linux-.*/arch/powerpc/kernel/vdso.*/vdso.*.so.dbg
|
||||
"
|
||||
|
||||
VERIFY_SIG_OPENPGP_KEY_PATH=/usr/share/openpgp-keys/kernel.org.asc
|
||||
|
||||
src_unpack() {
|
||||
if use verify-sig; then
|
||||
cd "${DISTDIR}" || die
|
||||
verify-sig_verify_signed_checksums \
|
||||
"linux-$(ver_cut 1).x-sha256sums-${SHA256SUM_DATE}.asc" \
|
||||
sha256 "${BASE_P}.tar.xz patch-${PATCH_PV}.xz"
|
||||
cd "${WORKDIR}" || die
|
||||
fi
|
||||
|
||||
default
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
local patch
|
||||
eapply "${WORKDIR}/patch-${PATCH_PV}"
|
||||
for patch in "${WORKDIR}/${PATCHSET}"/*.patch; do
|
||||
eapply "${patch}"
|
||||
# non-experimental patches always finish with Gentoo Kconfig
|
||||
# when ! use experimental, stop applying after it
|
||||
if [[ ${patch} == *Add-Gentoo-Linux-support-config-settings* ]] &&
|
||||
! use experimental
|
||||
then
|
||||
break
|
||||
fi
|
||||
done
|
||||
|
||||
default
|
||||
|
||||
# add Gentoo patchset version
|
||||
local extraversion=${PV#${PATCH_PV}}
|
||||
sed -i -e "s:^\(EXTRAVERSION =\).*:\1 ${extraversion/_/-}:" Makefile || die
|
||||
|
||||
local biendian=false
|
||||
|
||||
# prepare the default config
|
||||
case ${ARCH} in
|
||||
arm | hppa | loong | sparc)
|
||||
> .config || die
|
||||
;;
|
||||
amd64)
|
||||
cp "${DISTDIR}/kernel-x86_64-fedora.config.${CONFIG_VER}" .config || die
|
||||
;;
|
||||
arm64)
|
||||
cp "${DISTDIR}/kernel-aarch64-fedora.config.${CONFIG_VER}" .config || die
|
||||
biendian=true
|
||||
;;
|
||||
ppc)
|
||||
# assume powermac/powerbook defconfig
|
||||
# we still package.use.force savedconfig
|
||||
cp "${WORKDIR}/${BASE_P}/arch/powerpc/configs/pmac32_defconfig" .config || die
|
||||
;;
|
||||
ppc64)
|
||||
cp "${DISTDIR}/kernel-ppc64le-fedora.config.${CONFIG_VER}" .config || die
|
||||
biendian=true
|
||||
;;
|
||||
riscv)
|
||||
cp "${DISTDIR}/kernel-riscv64-fedora.config.${CONFIG_VER}" .config || die
|
||||
;;
|
||||
x86)
|
||||
cp "${DISTDIR}/kernel-i686-fedora.config.${CONFIG_VER}" .config || die
|
||||
;;
|
||||
*)
|
||||
die "Unsupported arch ${ARCH}"
|
||||
;;
|
||||
esac
|
||||
|
||||
local myversion="-gentoo-dist"
|
||||
use hardened && myversion+="-hardened"
|
||||
echo "CONFIG_LOCALVERSION=\"${myversion}\"" > "${T}"/version.config || die
|
||||
local dist_conf_path="${WORKDIR}/gentoo-kernel-config-${GENTOO_CONFIG_VER}"
|
||||
|
||||
local merge_configs=(
|
||||
"${T}"/version.config
|
||||
"${dist_conf_path}"/base.config
|
||||
"${dist_conf_path}"/6.12+.config
|
||||
)
|
||||
use debug || merge_configs+=(
|
||||
"${dist_conf_path}"/no-debug.config
|
||||
)
|
||||
if use hardened; then
|
||||
merge_configs+=( "${dist_conf_path}"/hardened-base.config )
|
||||
|
||||
tc-is-gcc && merge_configs+=( "${dist_conf_path}"/hardened-gcc-plugins.config )
|
||||
|
||||
if [[ -f "${dist_conf_path}/hardened-${ARCH}.config" ]]; then
|
||||
merge_configs+=( "${dist_conf_path}/hardened-${ARCH}.config" )
|
||||
fi
|
||||
fi
|
||||
|
||||
# this covers ppc64 and aarch64_be only for now
|
||||
if [[ ${biendian} == true && $(tc-endian) == big ]]; then
|
||||
merge_configs+=( "${dist_conf_path}/big-endian.config" )
|
||||
fi
|
||||
|
||||
use secureboot && merge_configs+=(
|
||||
"${dist_conf_path}/secureboot.config"
|
||||
"${dist_conf_path}/zboot.config"
|
||||
)
|
||||
|
||||
kernel-build_merge_configs "${merge_configs[@]}"
|
||||
}
|
||||
@@ -1,185 +0,0 @@
|
||||
# Copyright 2020-2025 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
KERNEL_IUSE_GENERIC_UKI=1
|
||||
KERNEL_IUSE_MODULES_SIGN=1
|
||||
|
||||
inherit kernel-build toolchain-funcs verify-sig
|
||||
|
||||
BASE_P=linux-${PV%.*}
|
||||
PATCH_PV=${PV%_p*}
|
||||
PATCHSET=linux-gentoo-patches-6.12.48
|
||||
# https://koji.fedoraproject.org/koji/packageinfo?packageID=8
|
||||
# forked to https://github.com/projg2/fedora-kernel-config-for-gentoo
|
||||
CONFIG_VER=6.12.41-gentoo
|
||||
GENTOO_CONFIG_VER=g17
|
||||
SHA256SUM_DATE=20251006
|
||||
|
||||
DESCRIPTION="Linux kernel built with Gentoo patches"
|
||||
HOMEPAGE="
|
||||
https://wiki.gentoo.org/wiki/Project:Distribution_Kernel
|
||||
https://www.kernel.org/
|
||||
"
|
||||
SRC_URI+="
|
||||
https://cdn.kernel.org/pub/linux/kernel/v$(ver_cut 1).x/${BASE_P}.tar.xz
|
||||
https://cdn.kernel.org/pub/linux/kernel/v$(ver_cut 1).x/patch-${PATCH_PV}.xz
|
||||
https://dev.gentoo.org/~mgorny/dist/linux/${PATCHSET}.tar.xz
|
||||
https://github.com/projg2/gentoo-kernel-config/archive/${GENTOO_CONFIG_VER}.tar.gz
|
||||
-> gentoo-kernel-config-${GENTOO_CONFIG_VER}.tar.gz
|
||||
verify-sig? (
|
||||
https://cdn.kernel.org/pub/linux/kernel/v$(ver_cut 1).x/sha256sums.asc
|
||||
-> linux-$(ver_cut 1).x-sha256sums-${SHA256SUM_DATE}.asc
|
||||
)
|
||||
amd64? (
|
||||
https://raw.githubusercontent.com/projg2/fedora-kernel-config-for-gentoo/${CONFIG_VER}/kernel-x86_64-fedora.config
|
||||
-> kernel-x86_64-fedora.config.${CONFIG_VER}
|
||||
)
|
||||
arm64? (
|
||||
https://raw.githubusercontent.com/projg2/fedora-kernel-config-for-gentoo/${CONFIG_VER}/kernel-aarch64-fedora.config
|
||||
-> kernel-aarch64-fedora.config.${CONFIG_VER}
|
||||
)
|
||||
ppc64? (
|
||||
https://raw.githubusercontent.com/projg2/fedora-kernel-config-for-gentoo/${CONFIG_VER}/kernel-ppc64le-fedora.config
|
||||
-> kernel-ppc64le-fedora.config.${CONFIG_VER}
|
||||
)
|
||||
riscv? (
|
||||
https://raw.githubusercontent.com/projg2/fedora-kernel-config-for-gentoo/${CONFIG_VER}/kernel-riscv64-fedora.config
|
||||
-> kernel-riscv64-fedora.config.${CONFIG_VER}
|
||||
)
|
||||
x86? (
|
||||
https://raw.githubusercontent.com/projg2/fedora-kernel-config-for-gentoo/${CONFIG_VER}/kernel-i686-fedora.config
|
||||
-> kernel-i686-fedora.config.${CONFIG_VER}
|
||||
)
|
||||
"
|
||||
S=${WORKDIR}/${BASE_P}
|
||||
|
||||
KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~loong ~ppc ~ppc64 ~riscv ~sparc ~x86"
|
||||
IUSE="debug experimental hardened"
|
||||
REQUIRED_USE="
|
||||
arm? ( savedconfig )
|
||||
hppa? ( savedconfig )
|
||||
sparc? ( savedconfig )
|
||||
"
|
||||
|
||||
RDEPEND="
|
||||
!sys-kernel/gentoo-kernel-bin:${SLOT}
|
||||
"
|
||||
BDEPEND="
|
||||
debug? ( dev-util/pahole )
|
||||
verify-sig? ( >=sec-keys/openpgp-keys-kernel-20250702 )
|
||||
"
|
||||
PDEPEND="
|
||||
>=virtual/dist-kernel-${PV}
|
||||
"
|
||||
|
||||
QA_FLAGS_IGNORED="
|
||||
usr/src/linux-.*/scripts/gcc-plugins/.*.so
|
||||
usr/src/linux-.*/vmlinux
|
||||
usr/src/linux-.*/arch/powerpc/kernel/vdso.*/vdso.*.so.dbg
|
||||
"
|
||||
|
||||
VERIFY_SIG_OPENPGP_KEY_PATH=/usr/share/openpgp-keys/kernel.org.asc
|
||||
|
||||
src_unpack() {
|
||||
if use verify-sig; then
|
||||
cd "${DISTDIR}" || die
|
||||
verify-sig_verify_signed_checksums \
|
||||
"linux-$(ver_cut 1).x-sha256sums-${SHA256SUM_DATE}.asc" \
|
||||
sha256 "${BASE_P}.tar.xz patch-${PATCH_PV}.xz"
|
||||
cd "${WORKDIR}" || die
|
||||
fi
|
||||
|
||||
default
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
local patch
|
||||
eapply "${WORKDIR}/patch-${PATCH_PV}"
|
||||
for patch in "${WORKDIR}/${PATCHSET}"/*.patch; do
|
||||
eapply "${patch}"
|
||||
# non-experimental patches always finish with Gentoo Kconfig
|
||||
# when ! use experimental, stop applying after it
|
||||
if [[ ${patch} == *Add-Gentoo-Linux-support-config-settings* ]] &&
|
||||
! use experimental
|
||||
then
|
||||
break
|
||||
fi
|
||||
done
|
||||
|
||||
default
|
||||
|
||||
# add Gentoo patchset version
|
||||
local extraversion=${PV#${PATCH_PV}}
|
||||
sed -i -e "s:^\(EXTRAVERSION =\).*:\1 ${extraversion/_/-}:" Makefile || die
|
||||
|
||||
local biendian=false
|
||||
|
||||
# prepare the default config
|
||||
case ${ARCH} in
|
||||
arm | hppa | loong | sparc)
|
||||
> .config || die
|
||||
;;
|
||||
amd64)
|
||||
cp "${DISTDIR}/kernel-x86_64-fedora.config.${CONFIG_VER}" .config || die
|
||||
;;
|
||||
arm64)
|
||||
cp "${DISTDIR}/kernel-aarch64-fedora.config.${CONFIG_VER}" .config || die
|
||||
biendian=true
|
||||
;;
|
||||
ppc)
|
||||
# assume powermac/powerbook defconfig
|
||||
# we still package.use.force savedconfig
|
||||
cp "${WORKDIR}/${BASE_P}/arch/powerpc/configs/pmac32_defconfig" .config || die
|
||||
;;
|
||||
ppc64)
|
||||
cp "${DISTDIR}/kernel-ppc64le-fedora.config.${CONFIG_VER}" .config || die
|
||||
biendian=true
|
||||
;;
|
||||
riscv)
|
||||
cp "${DISTDIR}/kernel-riscv64-fedora.config.${CONFIG_VER}" .config || die
|
||||
;;
|
||||
x86)
|
||||
cp "${DISTDIR}/kernel-i686-fedora.config.${CONFIG_VER}" .config || die
|
||||
;;
|
||||
*)
|
||||
die "Unsupported arch ${ARCH}"
|
||||
;;
|
||||
esac
|
||||
|
||||
local myversion="-gentoo-dist"
|
||||
use hardened && myversion+="-hardened"
|
||||
echo "CONFIG_LOCALVERSION=\"${myversion}\"" > "${T}"/version.config || die
|
||||
local dist_conf_path="${WORKDIR}/gentoo-kernel-config-${GENTOO_CONFIG_VER}"
|
||||
|
||||
local merge_configs=(
|
||||
"${T}"/version.config
|
||||
"${dist_conf_path}"/base.config
|
||||
"${dist_conf_path}"/6.12+.config
|
||||
)
|
||||
use debug || merge_configs+=(
|
||||
"${dist_conf_path}"/no-debug.config
|
||||
)
|
||||
if use hardened; then
|
||||
merge_configs+=( "${dist_conf_path}"/hardened-base.config )
|
||||
|
||||
tc-is-gcc && merge_configs+=( "${dist_conf_path}"/hardened-gcc-plugins.config )
|
||||
|
||||
if [[ -f "${dist_conf_path}/hardened-${ARCH}.config" ]]; then
|
||||
merge_configs+=( "${dist_conf_path}/hardened-${ARCH}.config" )
|
||||
fi
|
||||
fi
|
||||
|
||||
# this covers ppc64 and aarch64_be only for now
|
||||
if [[ ${biendian} == true && $(tc-endian) == big ]]; then
|
||||
merge_configs+=( "${dist_conf_path}/big-endian.config" )
|
||||
fi
|
||||
|
||||
use secureboot && merge_configs+=(
|
||||
"${dist_conf_path}/secureboot.config"
|
||||
"${dist_conf_path}/zboot.config"
|
||||
)
|
||||
|
||||
kernel-build_merge_configs "${merge_configs[@]}"
|
||||
}
|
||||
@@ -1,185 +0,0 @@
|
||||
# Copyright 2020-2025 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
KERNEL_IUSE_GENERIC_UKI=1
|
||||
KERNEL_IUSE_MODULES_SIGN=1
|
||||
|
||||
inherit kernel-build toolchain-funcs verify-sig
|
||||
|
||||
BASE_P=linux-${PV%.*}
|
||||
PATCH_PV=${PV%_p*}
|
||||
PATCHSET=linux-gentoo-patches-6.12.52
|
||||
# https://koji.fedoraproject.org/koji/packageinfo?packageID=8
|
||||
# forked to https://github.com/projg2/fedora-kernel-config-for-gentoo
|
||||
CONFIG_VER=6.12.41-gentoo
|
||||
GENTOO_CONFIG_VER=g17
|
||||
SHA256SUM_DATE=20251015
|
||||
|
||||
DESCRIPTION="Linux kernel built with Gentoo patches"
|
||||
HOMEPAGE="
|
||||
https://wiki.gentoo.org/wiki/Project:Distribution_Kernel
|
||||
https://www.kernel.org/
|
||||
"
|
||||
SRC_URI+="
|
||||
https://cdn.kernel.org/pub/linux/kernel/v$(ver_cut 1).x/${BASE_P}.tar.xz
|
||||
https://cdn.kernel.org/pub/linux/kernel/v$(ver_cut 1).x/patch-${PATCH_PV}.xz
|
||||
https://dev.gentoo.org/~mgorny/dist/linux/${PATCHSET}.tar.xz
|
||||
https://github.com/projg2/gentoo-kernel-config/archive/${GENTOO_CONFIG_VER}.tar.gz
|
||||
-> gentoo-kernel-config-${GENTOO_CONFIG_VER}.tar.gz
|
||||
verify-sig? (
|
||||
https://cdn.kernel.org/pub/linux/kernel/v$(ver_cut 1).x/sha256sums.asc
|
||||
-> linux-$(ver_cut 1).x-sha256sums-${SHA256SUM_DATE}.asc
|
||||
)
|
||||
amd64? (
|
||||
https://raw.githubusercontent.com/projg2/fedora-kernel-config-for-gentoo/${CONFIG_VER}/kernel-x86_64-fedora.config
|
||||
-> kernel-x86_64-fedora.config.${CONFIG_VER}
|
||||
)
|
||||
arm64? (
|
||||
https://raw.githubusercontent.com/projg2/fedora-kernel-config-for-gentoo/${CONFIG_VER}/kernel-aarch64-fedora.config
|
||||
-> kernel-aarch64-fedora.config.${CONFIG_VER}
|
||||
)
|
||||
ppc64? (
|
||||
https://raw.githubusercontent.com/projg2/fedora-kernel-config-for-gentoo/${CONFIG_VER}/kernel-ppc64le-fedora.config
|
||||
-> kernel-ppc64le-fedora.config.${CONFIG_VER}
|
||||
)
|
||||
riscv? (
|
||||
https://raw.githubusercontent.com/projg2/fedora-kernel-config-for-gentoo/${CONFIG_VER}/kernel-riscv64-fedora.config
|
||||
-> kernel-riscv64-fedora.config.${CONFIG_VER}
|
||||
)
|
||||
x86? (
|
||||
https://raw.githubusercontent.com/projg2/fedora-kernel-config-for-gentoo/${CONFIG_VER}/kernel-i686-fedora.config
|
||||
-> kernel-i686-fedora.config.${CONFIG_VER}
|
||||
)
|
||||
"
|
||||
S=${WORKDIR}/${BASE_P}
|
||||
|
||||
KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~loong ~ppc ~ppc64 ~riscv ~sparc ~x86"
|
||||
IUSE="debug experimental hardened"
|
||||
REQUIRED_USE="
|
||||
arm? ( savedconfig )
|
||||
hppa? ( savedconfig )
|
||||
sparc? ( savedconfig )
|
||||
"
|
||||
|
||||
RDEPEND="
|
||||
!sys-kernel/gentoo-kernel-bin:${SLOT}
|
||||
"
|
||||
BDEPEND="
|
||||
debug? ( dev-util/pahole )
|
||||
verify-sig? ( >=sec-keys/openpgp-keys-kernel-20250702 )
|
||||
"
|
||||
PDEPEND="
|
||||
>=virtual/dist-kernel-${PV}
|
||||
"
|
||||
|
||||
QA_FLAGS_IGNORED="
|
||||
usr/src/linux-.*/scripts/gcc-plugins/.*.so
|
||||
usr/src/linux-.*/vmlinux
|
||||
usr/src/linux-.*/arch/powerpc/kernel/vdso.*/vdso.*.so.dbg
|
||||
"
|
||||
|
||||
VERIFY_SIG_OPENPGP_KEY_PATH=/usr/share/openpgp-keys/kernel.org.asc
|
||||
|
||||
src_unpack() {
|
||||
if use verify-sig; then
|
||||
cd "${DISTDIR}" || die
|
||||
verify-sig_verify_signed_checksums \
|
||||
"linux-$(ver_cut 1).x-sha256sums-${SHA256SUM_DATE}.asc" \
|
||||
sha256 "${BASE_P}.tar.xz patch-${PATCH_PV}.xz"
|
||||
cd "${WORKDIR}" || die
|
||||
fi
|
||||
|
||||
default
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
local patch
|
||||
eapply "${WORKDIR}/patch-${PATCH_PV}"
|
||||
for patch in "${WORKDIR}/${PATCHSET}"/*.patch; do
|
||||
eapply "${patch}"
|
||||
# non-experimental patches always finish with Gentoo Kconfig
|
||||
# when ! use experimental, stop applying after it
|
||||
if [[ ${patch} == *Add-Gentoo-Linux-support-config-settings* ]] &&
|
||||
! use experimental
|
||||
then
|
||||
break
|
||||
fi
|
||||
done
|
||||
|
||||
default
|
||||
|
||||
# add Gentoo patchset version
|
||||
local extraversion=${PV#${PATCH_PV}}
|
||||
sed -i -e "s:^\(EXTRAVERSION =\).*:\1 ${extraversion/_/-}:" Makefile || die
|
||||
|
||||
local biendian=false
|
||||
|
||||
# prepare the default config
|
||||
case ${ARCH} in
|
||||
arm | hppa | loong | sparc)
|
||||
> .config || die
|
||||
;;
|
||||
amd64)
|
||||
cp "${DISTDIR}/kernel-x86_64-fedora.config.${CONFIG_VER}" .config || die
|
||||
;;
|
||||
arm64)
|
||||
cp "${DISTDIR}/kernel-aarch64-fedora.config.${CONFIG_VER}" .config || die
|
||||
biendian=true
|
||||
;;
|
||||
ppc)
|
||||
# assume powermac/powerbook defconfig
|
||||
# we still package.use.force savedconfig
|
||||
cp "${WORKDIR}/${BASE_P}/arch/powerpc/configs/pmac32_defconfig" .config || die
|
||||
;;
|
||||
ppc64)
|
||||
cp "${DISTDIR}/kernel-ppc64le-fedora.config.${CONFIG_VER}" .config || die
|
||||
biendian=true
|
||||
;;
|
||||
riscv)
|
||||
cp "${DISTDIR}/kernel-riscv64-fedora.config.${CONFIG_VER}" .config || die
|
||||
;;
|
||||
x86)
|
||||
cp "${DISTDIR}/kernel-i686-fedora.config.${CONFIG_VER}" .config || die
|
||||
;;
|
||||
*)
|
||||
die "Unsupported arch ${ARCH}"
|
||||
;;
|
||||
esac
|
||||
|
||||
local myversion="-gentoo-dist"
|
||||
use hardened && myversion+="-hardened"
|
||||
echo "CONFIG_LOCALVERSION=\"${myversion}\"" > "${T}"/version.config || die
|
||||
local dist_conf_path="${WORKDIR}/gentoo-kernel-config-${GENTOO_CONFIG_VER}"
|
||||
|
||||
local merge_configs=(
|
||||
"${T}"/version.config
|
||||
"${dist_conf_path}"/base.config
|
||||
"${dist_conf_path}"/6.12+.config
|
||||
)
|
||||
use debug || merge_configs+=(
|
||||
"${dist_conf_path}"/no-debug.config
|
||||
)
|
||||
if use hardened; then
|
||||
merge_configs+=( "${dist_conf_path}"/hardened-base.config )
|
||||
|
||||
tc-is-gcc && merge_configs+=( "${dist_conf_path}"/hardened-gcc-plugins.config )
|
||||
|
||||
if [[ -f "${dist_conf_path}/hardened-${ARCH}.config" ]]; then
|
||||
merge_configs+=( "${dist_conf_path}/hardened-${ARCH}.config" )
|
||||
fi
|
||||
fi
|
||||
|
||||
# this covers ppc64 and aarch64_be only for now
|
||||
if [[ ${biendian} == true && $(tc-endian) == big ]]; then
|
||||
merge_configs+=( "${dist_conf_path}/big-endian.config" )
|
||||
fi
|
||||
|
||||
use secureboot && merge_configs+=(
|
||||
"${dist_conf_path}/secureboot.config"
|
||||
"${dist_conf_path}/zboot.config"
|
||||
)
|
||||
|
||||
kernel-build_merge_configs "${merge_configs[@]}"
|
||||
}
|
||||
@@ -15,7 +15,7 @@ PATCHSET=linux-gentoo-patches-6.12.52
|
||||
# forked to https://github.com/projg2/fedora-kernel-config-for-gentoo
|
||||
CONFIG_VER=6.12.41-gentoo
|
||||
GENTOO_CONFIG_VER=g17
|
||||
SHA256SUM_DATE=20251012
|
||||
SHA256SUM_DATE=20251023
|
||||
|
||||
DESCRIPTION="Linux kernel built with Gentoo patches"
|
||||
HOMEPAGE="
|
||||
@@ -1,185 +0,0 @@
|
||||
# Copyright 2020-2025 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
KERNEL_IUSE_GENERIC_UKI=1
|
||||
KERNEL_IUSE_MODULES_SIGN=1
|
||||
|
||||
inherit kernel-build toolchain-funcs verify-sig
|
||||
|
||||
BASE_P=linux-${PV%.*}
|
||||
PATCH_PV=${PV%_p*}
|
||||
PATCHSET=linux-gentoo-patches-6.16.10
|
||||
# https://koji.fedoraproject.org/koji/packageinfo?packageID=8
|
||||
# forked to https://github.com/projg2/fedora-kernel-config-for-gentoo
|
||||
CONFIG_VER=6.16.9-gentoo
|
||||
GENTOO_CONFIG_VER=g17
|
||||
SHA256SUM_DATE=20251002
|
||||
|
||||
DESCRIPTION="Linux kernel built with Gentoo patches"
|
||||
HOMEPAGE="
|
||||
https://wiki.gentoo.org/wiki/Project:Distribution_Kernel
|
||||
https://www.kernel.org/
|
||||
"
|
||||
SRC_URI+="
|
||||
https://cdn.kernel.org/pub/linux/kernel/v$(ver_cut 1).x/${BASE_P}.tar.xz
|
||||
https://cdn.kernel.org/pub/linux/kernel/v$(ver_cut 1).x/patch-${PATCH_PV}.xz
|
||||
https://dev.gentoo.org/~mgorny/dist/linux/${PATCHSET}.tar.xz
|
||||
https://github.com/projg2/gentoo-kernel-config/archive/${GENTOO_CONFIG_VER}.tar.gz
|
||||
-> gentoo-kernel-config-${GENTOO_CONFIG_VER}.tar.gz
|
||||
verify-sig? (
|
||||
https://cdn.kernel.org/pub/linux/kernel/v$(ver_cut 1).x/sha256sums.asc
|
||||
-> linux-$(ver_cut 1).x-sha256sums-${SHA256SUM_DATE}.asc
|
||||
)
|
||||
amd64? (
|
||||
https://raw.githubusercontent.com/projg2/fedora-kernel-config-for-gentoo/${CONFIG_VER}/kernel-x86_64-fedora.config
|
||||
-> kernel-x86_64-fedora.config.${CONFIG_VER}
|
||||
)
|
||||
arm64? (
|
||||
https://raw.githubusercontent.com/projg2/fedora-kernel-config-for-gentoo/${CONFIG_VER}/kernel-aarch64-fedora.config
|
||||
-> kernel-aarch64-fedora.config.${CONFIG_VER}
|
||||
)
|
||||
ppc64? (
|
||||
https://raw.githubusercontent.com/projg2/fedora-kernel-config-for-gentoo/${CONFIG_VER}/kernel-ppc64le-fedora.config
|
||||
-> kernel-ppc64le-fedora.config.${CONFIG_VER}
|
||||
)
|
||||
riscv? (
|
||||
https://raw.githubusercontent.com/projg2/fedora-kernel-config-for-gentoo/${CONFIG_VER}/kernel-riscv64-fedora.config
|
||||
-> kernel-riscv64-fedora.config.${CONFIG_VER}
|
||||
)
|
||||
x86? (
|
||||
https://raw.githubusercontent.com/projg2/fedora-kernel-config-for-gentoo/${CONFIG_VER}/kernel-i686-fedora.config
|
||||
-> kernel-i686-fedora.config.${CONFIG_VER}
|
||||
)
|
||||
"
|
||||
S=${WORKDIR}/${BASE_P}
|
||||
|
||||
KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~loong ~ppc ~ppc64 ~riscv ~sparc ~x86"
|
||||
IUSE="debug experimental hardened"
|
||||
REQUIRED_USE="
|
||||
arm? ( savedconfig )
|
||||
hppa? ( savedconfig )
|
||||
sparc? ( savedconfig )
|
||||
"
|
||||
|
||||
RDEPEND="
|
||||
!sys-kernel/gentoo-kernel-bin:${SLOT}
|
||||
"
|
||||
BDEPEND="
|
||||
debug? ( dev-util/pahole )
|
||||
verify-sig? ( >=sec-keys/openpgp-keys-kernel-20250702 )
|
||||
"
|
||||
PDEPEND="
|
||||
>=virtual/dist-kernel-${PV}
|
||||
"
|
||||
|
||||
QA_FLAGS_IGNORED="
|
||||
usr/src/linux-.*/scripts/gcc-plugins/.*.so
|
||||
usr/src/linux-.*/vmlinux
|
||||
usr/src/linux-.*/arch/powerpc/kernel/vdso.*/vdso.*.so.dbg
|
||||
"
|
||||
|
||||
VERIFY_SIG_OPENPGP_KEY_PATH=/usr/share/openpgp-keys/kernel.org.asc
|
||||
|
||||
src_unpack() {
|
||||
if use verify-sig; then
|
||||
cd "${DISTDIR}" || die
|
||||
verify-sig_verify_signed_checksums \
|
||||
"linux-$(ver_cut 1).x-sha256sums-${SHA256SUM_DATE}.asc" \
|
||||
sha256 "${BASE_P}.tar.xz patch-${PATCH_PV}.xz"
|
||||
cd "${WORKDIR}" || die
|
||||
fi
|
||||
|
||||
default
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
local patch
|
||||
eapply "${WORKDIR}/patch-${PATCH_PV}"
|
||||
for patch in "${WORKDIR}/${PATCHSET}"/*.patch; do
|
||||
eapply "${patch}"
|
||||
# non-experimental patches always finish with Gentoo Kconfig
|
||||
# when ! use experimental, stop applying after it
|
||||
if [[ ${patch} == *Add-Gentoo-Linux-support-config-settings* ]] &&
|
||||
! use experimental
|
||||
then
|
||||
break
|
||||
fi
|
||||
done
|
||||
|
||||
default
|
||||
|
||||
# add Gentoo patchset version
|
||||
local extraversion=${PV#${PATCH_PV}}
|
||||
sed -i -e "s:^\(EXTRAVERSION =\).*:\1 ${extraversion/_/-}:" Makefile || die
|
||||
|
||||
local biendian=false
|
||||
|
||||
# prepare the default config
|
||||
case ${ARCH} in
|
||||
arm | hppa | loong | sparc)
|
||||
> .config || die
|
||||
;;
|
||||
amd64)
|
||||
cp "${DISTDIR}/kernel-x86_64-fedora.config.${CONFIG_VER}" .config || die
|
||||
;;
|
||||
arm64)
|
||||
cp "${DISTDIR}/kernel-aarch64-fedora.config.${CONFIG_VER}" .config || die
|
||||
biendian=true
|
||||
;;
|
||||
ppc)
|
||||
# assume powermac/powerbook defconfig
|
||||
# we still package.use.force savedconfig
|
||||
cp "${WORKDIR}/${BASE_P}/arch/powerpc/configs/pmac32_defconfig" .config || die
|
||||
;;
|
||||
ppc64)
|
||||
cp "${DISTDIR}/kernel-ppc64le-fedora.config.${CONFIG_VER}" .config || die
|
||||
biendian=true
|
||||
;;
|
||||
riscv)
|
||||
cp "${DISTDIR}/kernel-riscv64-fedora.config.${CONFIG_VER}" .config || die
|
||||
;;
|
||||
x86)
|
||||
cp "${DISTDIR}/kernel-i686-fedora.config.${CONFIG_VER}" .config || die
|
||||
;;
|
||||
*)
|
||||
die "Unsupported arch ${ARCH}"
|
||||
;;
|
||||
esac
|
||||
|
||||
local myversion="-gentoo-dist"
|
||||
use hardened && myversion+="-hardened"
|
||||
echo "CONFIG_LOCALVERSION=\"${myversion}\"" > "${T}"/version.config || die
|
||||
local dist_conf_path="${WORKDIR}/gentoo-kernel-config-${GENTOO_CONFIG_VER}"
|
||||
|
||||
local merge_configs=(
|
||||
"${T}"/version.config
|
||||
"${dist_conf_path}"/base.config
|
||||
"${dist_conf_path}"/6.12+.config
|
||||
)
|
||||
use debug || merge_configs+=(
|
||||
"${dist_conf_path}"/no-debug.config
|
||||
)
|
||||
if use hardened; then
|
||||
merge_configs+=( "${dist_conf_path}"/hardened-base.config )
|
||||
|
||||
tc-is-gcc && merge_configs+=( "${dist_conf_path}"/hardened-gcc-plugins.config )
|
||||
|
||||
if [[ -f "${dist_conf_path}/hardened-${ARCH}.config" ]]; then
|
||||
merge_configs+=( "${dist_conf_path}/hardened-${ARCH}.config" )
|
||||
fi
|
||||
fi
|
||||
|
||||
# this covers ppc64 and aarch64_be only for now
|
||||
if [[ ${biendian} == true && $(tc-endian) == big ]]; then
|
||||
merge_configs+=( "${dist_conf_path}/big-endian.config" )
|
||||
fi
|
||||
|
||||
use secureboot && merge_configs+=(
|
||||
"${dist_conf_path}/secureboot.config"
|
||||
"${dist_conf_path}/zboot.config"
|
||||
)
|
||||
|
||||
kernel-build_merge_configs "${merge_configs[@]}"
|
||||
}
|
||||
@@ -1,185 +0,0 @@
|
||||
# Copyright 2020-2025 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
KERNEL_IUSE_GENERIC_UKI=1
|
||||
KERNEL_IUSE_MODULES_SIGN=1
|
||||
|
||||
inherit kernel-build toolchain-funcs verify-sig
|
||||
|
||||
BASE_P=linux-${PV%.*}
|
||||
PATCH_PV=${PV%_p*}
|
||||
PATCHSET=linux-gentoo-patches-6.16.8
|
||||
# https://koji.fedoraproject.org/koji/packageinfo?packageID=8
|
||||
# forked to https://github.com/projg2/fedora-kernel-config-for-gentoo
|
||||
CONFIG_VER=6.16.9-gentoo
|
||||
GENTOO_CONFIG_VER=g17
|
||||
SHA256SUM_DATE=20251006
|
||||
|
||||
DESCRIPTION="Linux kernel built with Gentoo patches"
|
||||
HOMEPAGE="
|
||||
https://wiki.gentoo.org/wiki/Project:Distribution_Kernel
|
||||
https://www.kernel.org/
|
||||
"
|
||||
SRC_URI+="
|
||||
https://cdn.kernel.org/pub/linux/kernel/v$(ver_cut 1).x/${BASE_P}.tar.xz
|
||||
https://cdn.kernel.org/pub/linux/kernel/v$(ver_cut 1).x/patch-${PATCH_PV}.xz
|
||||
https://dev.gentoo.org/~mgorny/dist/linux/${PATCHSET}.tar.xz
|
||||
https://github.com/projg2/gentoo-kernel-config/archive/${GENTOO_CONFIG_VER}.tar.gz
|
||||
-> gentoo-kernel-config-${GENTOO_CONFIG_VER}.tar.gz
|
||||
verify-sig? (
|
||||
https://cdn.kernel.org/pub/linux/kernel/v$(ver_cut 1).x/sha256sums.asc
|
||||
-> linux-$(ver_cut 1).x-sha256sums-${SHA256SUM_DATE}.asc
|
||||
)
|
||||
amd64? (
|
||||
https://raw.githubusercontent.com/projg2/fedora-kernel-config-for-gentoo/${CONFIG_VER}/kernel-x86_64-fedora.config
|
||||
-> kernel-x86_64-fedora.config.${CONFIG_VER}
|
||||
)
|
||||
arm64? (
|
||||
https://raw.githubusercontent.com/projg2/fedora-kernel-config-for-gentoo/${CONFIG_VER}/kernel-aarch64-fedora.config
|
||||
-> kernel-aarch64-fedora.config.${CONFIG_VER}
|
||||
)
|
||||
ppc64? (
|
||||
https://raw.githubusercontent.com/projg2/fedora-kernel-config-for-gentoo/${CONFIG_VER}/kernel-ppc64le-fedora.config
|
||||
-> kernel-ppc64le-fedora.config.${CONFIG_VER}
|
||||
)
|
||||
riscv? (
|
||||
https://raw.githubusercontent.com/projg2/fedora-kernel-config-for-gentoo/${CONFIG_VER}/kernel-riscv64-fedora.config
|
||||
-> kernel-riscv64-fedora.config.${CONFIG_VER}
|
||||
)
|
||||
x86? (
|
||||
https://raw.githubusercontent.com/projg2/fedora-kernel-config-for-gentoo/${CONFIG_VER}/kernel-i686-fedora.config
|
||||
-> kernel-i686-fedora.config.${CONFIG_VER}
|
||||
)
|
||||
"
|
||||
S=${WORKDIR}/${BASE_P}
|
||||
|
||||
KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~loong ~ppc ~ppc64 ~riscv ~sparc ~x86"
|
||||
IUSE="debug experimental hardened"
|
||||
REQUIRED_USE="
|
||||
arm? ( savedconfig )
|
||||
hppa? ( savedconfig )
|
||||
sparc? ( savedconfig )
|
||||
"
|
||||
|
||||
RDEPEND="
|
||||
!sys-kernel/gentoo-kernel-bin:${SLOT}
|
||||
"
|
||||
BDEPEND="
|
||||
debug? ( dev-util/pahole )
|
||||
verify-sig? ( >=sec-keys/openpgp-keys-kernel-20250702 )
|
||||
"
|
||||
PDEPEND="
|
||||
>=virtual/dist-kernel-${PV}
|
||||
"
|
||||
|
||||
QA_FLAGS_IGNORED="
|
||||
usr/src/linux-.*/scripts/gcc-plugins/.*.so
|
||||
usr/src/linux-.*/vmlinux
|
||||
usr/src/linux-.*/arch/powerpc/kernel/vdso.*/vdso.*.so.dbg
|
||||
"
|
||||
|
||||
VERIFY_SIG_OPENPGP_KEY_PATH=/usr/share/openpgp-keys/kernel.org.asc
|
||||
|
||||
src_unpack() {
|
||||
if use verify-sig; then
|
||||
cd "${DISTDIR}" || die
|
||||
verify-sig_verify_signed_checksums \
|
||||
"linux-$(ver_cut 1).x-sha256sums-${SHA256SUM_DATE}.asc" \
|
||||
sha256 "${BASE_P}.tar.xz patch-${PATCH_PV}.xz"
|
||||
cd "${WORKDIR}" || die
|
||||
fi
|
||||
|
||||
default
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
local patch
|
||||
eapply "${WORKDIR}/patch-${PATCH_PV}"
|
||||
for patch in "${WORKDIR}/${PATCHSET}"/*.patch; do
|
||||
eapply "${patch}"
|
||||
# non-experimental patches always finish with Gentoo Kconfig
|
||||
# when ! use experimental, stop applying after it
|
||||
if [[ ${patch} == *Add-Gentoo-Linux-support-config-settings* ]] &&
|
||||
! use experimental
|
||||
then
|
||||
break
|
||||
fi
|
||||
done
|
||||
|
||||
default
|
||||
|
||||
# add Gentoo patchset version
|
||||
local extraversion=${PV#${PATCH_PV}}
|
||||
sed -i -e "s:^\(EXTRAVERSION =\).*:\1 ${extraversion/_/-}:" Makefile || die
|
||||
|
||||
local biendian=false
|
||||
|
||||
# prepare the default config
|
||||
case ${ARCH} in
|
||||
arm | hppa | loong | sparc)
|
||||
> .config || die
|
||||
;;
|
||||
amd64)
|
||||
cp "${DISTDIR}/kernel-x86_64-fedora.config.${CONFIG_VER}" .config || die
|
||||
;;
|
||||
arm64)
|
||||
cp "${DISTDIR}/kernel-aarch64-fedora.config.${CONFIG_VER}" .config || die
|
||||
biendian=true
|
||||
;;
|
||||
ppc)
|
||||
# assume powermac/powerbook defconfig
|
||||
# we still package.use.force savedconfig
|
||||
cp "${WORKDIR}/${BASE_P}/arch/powerpc/configs/pmac32_defconfig" .config || die
|
||||
;;
|
||||
ppc64)
|
||||
cp "${DISTDIR}/kernel-ppc64le-fedora.config.${CONFIG_VER}" .config || die
|
||||
biendian=true
|
||||
;;
|
||||
riscv)
|
||||
cp "${DISTDIR}/kernel-riscv64-fedora.config.${CONFIG_VER}" .config || die
|
||||
;;
|
||||
x86)
|
||||
cp "${DISTDIR}/kernel-i686-fedora.config.${CONFIG_VER}" .config || die
|
||||
;;
|
||||
*)
|
||||
die "Unsupported arch ${ARCH}"
|
||||
;;
|
||||
esac
|
||||
|
||||
local myversion="-gentoo-dist"
|
||||
use hardened && myversion+="-hardened"
|
||||
echo "CONFIG_LOCALVERSION=\"${myversion}\"" > "${T}"/version.config || die
|
||||
local dist_conf_path="${WORKDIR}/gentoo-kernel-config-${GENTOO_CONFIG_VER}"
|
||||
|
||||
local merge_configs=(
|
||||
"${T}"/version.config
|
||||
"${dist_conf_path}"/base.config
|
||||
"${dist_conf_path}"/6.12+.config
|
||||
)
|
||||
use debug || merge_configs+=(
|
||||
"${dist_conf_path}"/no-debug.config
|
||||
)
|
||||
if use hardened; then
|
||||
merge_configs+=( "${dist_conf_path}"/hardened-base.config )
|
||||
|
||||
tc-is-gcc && merge_configs+=( "${dist_conf_path}"/hardened-gcc-plugins.config )
|
||||
|
||||
if [[ -f "${dist_conf_path}/hardened-${ARCH}.config" ]]; then
|
||||
merge_configs+=( "${dist_conf_path}/hardened-${ARCH}.config" )
|
||||
fi
|
||||
fi
|
||||
|
||||
# this covers ppc64 and aarch64_be only for now
|
||||
if [[ ${biendian} == true && $(tc-endian) == big ]]; then
|
||||
merge_configs+=( "${dist_conf_path}/big-endian.config" )
|
||||
fi
|
||||
|
||||
use secureboot && merge_configs+=(
|
||||
"${dist_conf_path}/secureboot.config"
|
||||
"${dist_conf_path}/zboot.config"
|
||||
)
|
||||
|
||||
kernel-build_merge_configs "${merge_configs[@]}"
|
||||
}
|
||||
@@ -1,185 +0,0 @@
|
||||
# Copyright 2020-2025 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
KERNEL_IUSE_GENERIC_UKI=1
|
||||
KERNEL_IUSE_MODULES_SIGN=1
|
||||
|
||||
inherit kernel-build toolchain-funcs verify-sig
|
||||
|
||||
BASE_P=linux-${PV%.*}
|
||||
PATCH_PV=${PV%_p*}
|
||||
PATCHSET=linux-gentoo-patches-6.16.12
|
||||
# https://koji.fedoraproject.org/koji/packageinfo?packageID=8
|
||||
# forked to https://github.com/projg2/fedora-kernel-config-for-gentoo
|
||||
CONFIG_VER=6.16.9-gentoo
|
||||
GENTOO_CONFIG_VER=g17
|
||||
SHA256SUM_DATE=20251012
|
||||
|
||||
DESCRIPTION="Linux kernel built with Gentoo patches"
|
||||
HOMEPAGE="
|
||||
https://wiki.gentoo.org/wiki/Project:Distribution_Kernel
|
||||
https://www.kernel.org/
|
||||
"
|
||||
SRC_URI+="
|
||||
https://cdn.kernel.org/pub/linux/kernel/v$(ver_cut 1).x/${BASE_P}.tar.xz
|
||||
https://cdn.kernel.org/pub/linux/kernel/v$(ver_cut 1).x/patch-${PATCH_PV}.xz
|
||||
https://dev.gentoo.org/~mgorny/dist/linux/${PATCHSET}.tar.xz
|
||||
https://github.com/projg2/gentoo-kernel-config/archive/${GENTOO_CONFIG_VER}.tar.gz
|
||||
-> gentoo-kernel-config-${GENTOO_CONFIG_VER}.tar.gz
|
||||
verify-sig? (
|
||||
https://cdn.kernel.org/pub/linux/kernel/v$(ver_cut 1).x/sha256sums.asc
|
||||
-> linux-$(ver_cut 1).x-sha256sums-${SHA256SUM_DATE}.asc
|
||||
)
|
||||
amd64? (
|
||||
https://raw.githubusercontent.com/projg2/fedora-kernel-config-for-gentoo/${CONFIG_VER}/kernel-x86_64-fedora.config
|
||||
-> kernel-x86_64-fedora.config.${CONFIG_VER}
|
||||
)
|
||||
arm64? (
|
||||
https://raw.githubusercontent.com/projg2/fedora-kernel-config-for-gentoo/${CONFIG_VER}/kernel-aarch64-fedora.config
|
||||
-> kernel-aarch64-fedora.config.${CONFIG_VER}
|
||||
)
|
||||
ppc64? (
|
||||
https://raw.githubusercontent.com/projg2/fedora-kernel-config-for-gentoo/${CONFIG_VER}/kernel-ppc64le-fedora.config
|
||||
-> kernel-ppc64le-fedora.config.${CONFIG_VER}
|
||||
)
|
||||
riscv? (
|
||||
https://raw.githubusercontent.com/projg2/fedora-kernel-config-for-gentoo/${CONFIG_VER}/kernel-riscv64-fedora.config
|
||||
-> kernel-riscv64-fedora.config.${CONFIG_VER}
|
||||
)
|
||||
x86? (
|
||||
https://raw.githubusercontent.com/projg2/fedora-kernel-config-for-gentoo/${CONFIG_VER}/kernel-i686-fedora.config
|
||||
-> kernel-i686-fedora.config.${CONFIG_VER}
|
||||
)
|
||||
"
|
||||
S=${WORKDIR}/${BASE_P}
|
||||
|
||||
KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~loong ~ppc ~ppc64 ~riscv ~sparc ~x86"
|
||||
IUSE="debug experimental hardened"
|
||||
REQUIRED_USE="
|
||||
arm? ( savedconfig )
|
||||
hppa? ( savedconfig )
|
||||
sparc? ( savedconfig )
|
||||
"
|
||||
|
||||
RDEPEND="
|
||||
!sys-kernel/gentoo-kernel-bin:${SLOT}
|
||||
"
|
||||
BDEPEND="
|
||||
debug? ( dev-util/pahole )
|
||||
verify-sig? ( >=sec-keys/openpgp-keys-kernel-20250702 )
|
||||
"
|
||||
PDEPEND="
|
||||
>=virtual/dist-kernel-${PV}
|
||||
"
|
||||
|
||||
QA_FLAGS_IGNORED="
|
||||
usr/src/linux-.*/scripts/gcc-plugins/.*.so
|
||||
usr/src/linux-.*/vmlinux
|
||||
usr/src/linux-.*/arch/powerpc/kernel/vdso.*/vdso.*.so.dbg
|
||||
"
|
||||
|
||||
VERIFY_SIG_OPENPGP_KEY_PATH=/usr/share/openpgp-keys/kernel.org.asc
|
||||
|
||||
src_unpack() {
|
||||
if use verify-sig; then
|
||||
cd "${DISTDIR}" || die
|
||||
verify-sig_verify_signed_checksums \
|
||||
"linux-$(ver_cut 1).x-sha256sums-${SHA256SUM_DATE}.asc" \
|
||||
sha256 "${BASE_P}.tar.xz patch-${PATCH_PV}.xz"
|
||||
cd "${WORKDIR}" || die
|
||||
fi
|
||||
|
||||
default
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
local patch
|
||||
eapply "${WORKDIR}/patch-${PATCH_PV}"
|
||||
for patch in "${WORKDIR}/${PATCHSET}"/*.patch; do
|
||||
eapply "${patch}"
|
||||
# non-experimental patches always finish with Gentoo Kconfig
|
||||
# when ! use experimental, stop applying after it
|
||||
if [[ ${patch} == *Add-Gentoo-Linux-support-config-settings* ]] &&
|
||||
! use experimental
|
||||
then
|
||||
break
|
||||
fi
|
||||
done
|
||||
|
||||
default
|
||||
|
||||
# add Gentoo patchset version
|
||||
local extraversion=${PV#${PATCH_PV}}
|
||||
sed -i -e "s:^\(EXTRAVERSION =\).*:\1 ${extraversion/_/-}:" Makefile || die
|
||||
|
||||
local biendian=false
|
||||
|
||||
# prepare the default config
|
||||
case ${ARCH} in
|
||||
arm | hppa | loong | sparc)
|
||||
> .config || die
|
||||
;;
|
||||
amd64)
|
||||
cp "${DISTDIR}/kernel-x86_64-fedora.config.${CONFIG_VER}" .config || die
|
||||
;;
|
||||
arm64)
|
||||
cp "${DISTDIR}/kernel-aarch64-fedora.config.${CONFIG_VER}" .config || die
|
||||
biendian=true
|
||||
;;
|
||||
ppc)
|
||||
# assume powermac/powerbook defconfig
|
||||
# we still package.use.force savedconfig
|
||||
cp "${WORKDIR}/${BASE_P}/arch/powerpc/configs/pmac32_defconfig" .config || die
|
||||
;;
|
||||
ppc64)
|
||||
cp "${DISTDIR}/kernel-ppc64le-fedora.config.${CONFIG_VER}" .config || die
|
||||
biendian=true
|
||||
;;
|
||||
riscv)
|
||||
cp "${DISTDIR}/kernel-riscv64-fedora.config.${CONFIG_VER}" .config || die
|
||||
;;
|
||||
x86)
|
||||
cp "${DISTDIR}/kernel-i686-fedora.config.${CONFIG_VER}" .config || die
|
||||
;;
|
||||
*)
|
||||
die "Unsupported arch ${ARCH}"
|
||||
;;
|
||||
esac
|
||||
|
||||
local myversion="-gentoo-dist"
|
||||
use hardened && myversion+="-hardened"
|
||||
echo "CONFIG_LOCALVERSION=\"${myversion}\"" > "${T}"/version.config || die
|
||||
local dist_conf_path="${WORKDIR}/gentoo-kernel-config-${GENTOO_CONFIG_VER}"
|
||||
|
||||
local merge_configs=(
|
||||
"${T}"/version.config
|
||||
"${dist_conf_path}"/base.config
|
||||
"${dist_conf_path}"/6.12+.config
|
||||
)
|
||||
use debug || merge_configs+=(
|
||||
"${dist_conf_path}"/no-debug.config
|
||||
)
|
||||
if use hardened; then
|
||||
merge_configs+=( "${dist_conf_path}"/hardened-base.config )
|
||||
|
||||
tc-is-gcc && merge_configs+=( "${dist_conf_path}"/hardened-gcc-plugins.config )
|
||||
|
||||
if [[ -f "${dist_conf_path}/hardened-${ARCH}.config" ]]; then
|
||||
merge_configs+=( "${dist_conf_path}/hardened-${ARCH}.config" )
|
||||
fi
|
||||
fi
|
||||
|
||||
# this covers ppc64 and aarch64_be only for now
|
||||
if [[ ${biendian} == true && $(tc-endian) == big ]]; then
|
||||
merge_configs+=( "${dist_conf_path}/big-endian.config" )
|
||||
fi
|
||||
|
||||
use secureboot && merge_configs+=(
|
||||
"${dist_conf_path}/secureboot.config"
|
||||
"${dist_conf_path}/zboot.config"
|
||||
)
|
||||
|
||||
kernel-build_merge_configs "${merge_configs[@]}"
|
||||
}
|
||||
@@ -1,185 +0,0 @@
|
||||
# Copyright 2020-2025 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
KERNEL_IUSE_GENERIC_UKI=1
|
||||
KERNEL_IUSE_MODULES_SIGN=1
|
||||
|
||||
inherit kernel-build toolchain-funcs verify-sig
|
||||
|
||||
BASE_P=linux-${PV%.*}
|
||||
PATCH_PV=${PV%_p*}
|
||||
PATCHSET=linux-gentoo-patches-6.16.6
|
||||
# https://koji.fedoraproject.org/koji/packageinfo?packageID=8
|
||||
# forked to https://github.com/projg2/fedora-kernel-config-for-gentoo
|
||||
CONFIG_VER=6.16.2-gentoo
|
||||
GENTOO_CONFIG_VER=g17
|
||||
SHA256SUM_DATE=20250911
|
||||
|
||||
DESCRIPTION="Linux kernel built with Gentoo patches"
|
||||
HOMEPAGE="
|
||||
https://wiki.gentoo.org/wiki/Project:Distribution_Kernel
|
||||
https://www.kernel.org/
|
||||
"
|
||||
SRC_URI+="
|
||||
https://cdn.kernel.org/pub/linux/kernel/v$(ver_cut 1).x/${BASE_P}.tar.xz
|
||||
https://cdn.kernel.org/pub/linux/kernel/v$(ver_cut 1).x/patch-${PATCH_PV}.xz
|
||||
https://dev.gentoo.org/~mgorny/dist/linux/${PATCHSET}.tar.xz
|
||||
https://github.com/projg2/gentoo-kernel-config/archive/${GENTOO_CONFIG_VER}.tar.gz
|
||||
-> gentoo-kernel-config-${GENTOO_CONFIG_VER}.tar.gz
|
||||
verify-sig? (
|
||||
https://cdn.kernel.org/pub/linux/kernel/v$(ver_cut 1).x/sha256sums.asc
|
||||
-> linux-$(ver_cut 1).x-sha256sums-${SHA256SUM_DATE}.asc
|
||||
)
|
||||
amd64? (
|
||||
https://raw.githubusercontent.com/projg2/fedora-kernel-config-for-gentoo/${CONFIG_VER}/kernel-x86_64-fedora.config
|
||||
-> kernel-x86_64-fedora.config.${CONFIG_VER}
|
||||
)
|
||||
arm64? (
|
||||
https://raw.githubusercontent.com/projg2/fedora-kernel-config-for-gentoo/${CONFIG_VER}/kernel-aarch64-fedora.config
|
||||
-> kernel-aarch64-fedora.config.${CONFIG_VER}
|
||||
)
|
||||
ppc64? (
|
||||
https://raw.githubusercontent.com/projg2/fedora-kernel-config-for-gentoo/${CONFIG_VER}/kernel-ppc64le-fedora.config
|
||||
-> kernel-ppc64le-fedora.config.${CONFIG_VER}
|
||||
)
|
||||
riscv? (
|
||||
https://raw.githubusercontent.com/projg2/fedora-kernel-config-for-gentoo/${CONFIG_VER}/kernel-riscv64-fedora.config
|
||||
-> kernel-riscv64-fedora.config.${CONFIG_VER}
|
||||
)
|
||||
x86? (
|
||||
https://raw.githubusercontent.com/projg2/fedora-kernel-config-for-gentoo/${CONFIG_VER}/kernel-i686-fedora.config
|
||||
-> kernel-i686-fedora.config.${CONFIG_VER}
|
||||
)
|
||||
"
|
||||
S=${WORKDIR}/${BASE_P}
|
||||
|
||||
KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~loong ~ppc ~ppc64 ~riscv ~sparc ~x86"
|
||||
IUSE="debug experimental hardened"
|
||||
REQUIRED_USE="
|
||||
arm? ( savedconfig )
|
||||
hppa? ( savedconfig )
|
||||
sparc? ( savedconfig )
|
||||
"
|
||||
|
||||
RDEPEND="
|
||||
!sys-kernel/gentoo-kernel-bin:${SLOT}
|
||||
"
|
||||
BDEPEND="
|
||||
debug? ( dev-util/pahole )
|
||||
verify-sig? ( >=sec-keys/openpgp-keys-kernel-20250702 )
|
||||
"
|
||||
PDEPEND="
|
||||
>=virtual/dist-kernel-${PATCH_PV}
|
||||
"
|
||||
|
||||
QA_FLAGS_IGNORED="
|
||||
usr/src/linux-.*/scripts/gcc-plugins/.*.so
|
||||
usr/src/linux-.*/vmlinux
|
||||
usr/src/linux-.*/arch/powerpc/kernel/vdso.*/vdso.*.so.dbg
|
||||
"
|
||||
|
||||
VERIFY_SIG_OPENPGP_KEY_PATH=/usr/share/openpgp-keys/kernel.org.asc
|
||||
|
||||
src_unpack() {
|
||||
if use verify-sig; then
|
||||
cd "${DISTDIR}" || die
|
||||
verify-sig_verify_signed_checksums \
|
||||
"linux-$(ver_cut 1).x-sha256sums-${SHA256SUM_DATE}.asc" \
|
||||
sha256 "${BASE_P}.tar.xz patch-${PATCH_PV}.xz"
|
||||
cd "${WORKDIR}" || die
|
||||
fi
|
||||
|
||||
default
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
local patch
|
||||
eapply "${WORKDIR}/patch-${PATCH_PV}"
|
||||
for patch in "${WORKDIR}/${PATCHSET}"/*.patch; do
|
||||
eapply "${patch}"
|
||||
# non-experimental patches always finish with Gentoo Kconfig
|
||||
# when ! use experimental, stop applying after it
|
||||
if [[ ${patch} == *Add-Gentoo-Linux-support-config-settings* ]] &&
|
||||
! use experimental
|
||||
then
|
||||
break
|
||||
fi
|
||||
done
|
||||
|
||||
default
|
||||
|
||||
# add Gentoo patchset version
|
||||
local extraversion=${PV#${PATCH_PV}}
|
||||
sed -i -e "s:^\(EXTRAVERSION =\).*:\1 ${extraversion/_/-}:" Makefile || die
|
||||
|
||||
local biendian=false
|
||||
|
||||
# prepare the default config
|
||||
case ${ARCH} in
|
||||
arm | hppa | loong | sparc)
|
||||
> .config || die
|
||||
;;
|
||||
amd64)
|
||||
cp "${DISTDIR}/kernel-x86_64-fedora.config.${CONFIG_VER}" .config || die
|
||||
;;
|
||||
arm64)
|
||||
cp "${DISTDIR}/kernel-aarch64-fedora.config.${CONFIG_VER}" .config || die
|
||||
biendian=true
|
||||
;;
|
||||
ppc)
|
||||
# assume powermac/powerbook defconfig
|
||||
# we still package.use.force savedconfig
|
||||
cp "${WORKDIR}/${BASE_P}/arch/powerpc/configs/pmac32_defconfig" .config || die
|
||||
;;
|
||||
ppc64)
|
||||
cp "${DISTDIR}/kernel-ppc64le-fedora.config.${CONFIG_VER}" .config || die
|
||||
biendian=true
|
||||
;;
|
||||
riscv)
|
||||
cp "${DISTDIR}/kernel-riscv64-fedora.config.${CONFIG_VER}" .config || die
|
||||
;;
|
||||
x86)
|
||||
cp "${DISTDIR}/kernel-i686-fedora.config.${CONFIG_VER}" .config || die
|
||||
;;
|
||||
*)
|
||||
die "Unsupported arch ${ARCH}"
|
||||
;;
|
||||
esac
|
||||
|
||||
local myversion="-gentoo-dist"
|
||||
use hardened && myversion+="-hardened"
|
||||
echo "CONFIG_LOCALVERSION=\"${myversion}\"" > "${T}"/version.config || die
|
||||
local dist_conf_path="${WORKDIR}/gentoo-kernel-config-${GENTOO_CONFIG_VER}"
|
||||
|
||||
local merge_configs=(
|
||||
"${T}"/version.config
|
||||
"${dist_conf_path}"/base.config
|
||||
"${dist_conf_path}"/6.12+.config
|
||||
)
|
||||
use debug || merge_configs+=(
|
||||
"${dist_conf_path}"/no-debug.config
|
||||
)
|
||||
if use hardened; then
|
||||
merge_configs+=( "${dist_conf_path}"/hardened-base.config )
|
||||
|
||||
tc-is-gcc && merge_configs+=( "${dist_conf_path}"/hardened-gcc-plugins.config )
|
||||
|
||||
if [[ -f "${dist_conf_path}/hardened-${ARCH}.config" ]]; then
|
||||
merge_configs+=( "${dist_conf_path}/hardened-${ARCH}.config" )
|
||||
fi
|
||||
fi
|
||||
|
||||
# this covers ppc64 and aarch64_be only for now
|
||||
if [[ ${biendian} == true && $(tc-endian) == big ]]; then
|
||||
merge_configs+=( "${dist_conf_path}/big-endian.config" )
|
||||
fi
|
||||
|
||||
use secureboot && merge_configs+=(
|
||||
"${dist_conf_path}/secureboot.config"
|
||||
"${dist_conf_path}/zboot.config"
|
||||
)
|
||||
|
||||
kernel-build_merge_configs "${merge_configs[@]}"
|
||||
}
|
||||
@@ -1,185 +0,0 @@
|
||||
# Copyright 2020-2025 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
KERNEL_IUSE_GENERIC_UKI=1
|
||||
KERNEL_IUSE_MODULES_SIGN=1
|
||||
|
||||
inherit kernel-build toolchain-funcs verify-sig
|
||||
|
||||
BASE_P=linux-${PV%.*}
|
||||
PATCH_PV=${PV%_p*}
|
||||
PATCHSET=linux-gentoo-patches-6.16.8
|
||||
# https://koji.fedoraproject.org/koji/packageinfo?packageID=8
|
||||
# forked to https://github.com/projg2/fedora-kernel-config-for-gentoo
|
||||
CONFIG_VER=6.16.2-gentoo
|
||||
GENTOO_CONFIG_VER=g17
|
||||
SHA256SUM_DATE=20250919
|
||||
|
||||
DESCRIPTION="Linux kernel built with Gentoo patches"
|
||||
HOMEPAGE="
|
||||
https://wiki.gentoo.org/wiki/Project:Distribution_Kernel
|
||||
https://www.kernel.org/
|
||||
"
|
||||
SRC_URI+="
|
||||
https://cdn.kernel.org/pub/linux/kernel/v$(ver_cut 1).x/${BASE_P}.tar.xz
|
||||
https://cdn.kernel.org/pub/linux/kernel/v$(ver_cut 1).x/patch-${PATCH_PV}.xz
|
||||
https://dev.gentoo.org/~mgorny/dist/linux/${PATCHSET}.tar.xz
|
||||
https://github.com/projg2/gentoo-kernel-config/archive/${GENTOO_CONFIG_VER}.tar.gz
|
||||
-> gentoo-kernel-config-${GENTOO_CONFIG_VER}.tar.gz
|
||||
verify-sig? (
|
||||
https://cdn.kernel.org/pub/linux/kernel/v$(ver_cut 1).x/sha256sums.asc
|
||||
-> linux-$(ver_cut 1).x-sha256sums-${SHA256SUM_DATE}.asc
|
||||
)
|
||||
amd64? (
|
||||
https://raw.githubusercontent.com/projg2/fedora-kernel-config-for-gentoo/${CONFIG_VER}/kernel-x86_64-fedora.config
|
||||
-> kernel-x86_64-fedora.config.${CONFIG_VER}
|
||||
)
|
||||
arm64? (
|
||||
https://raw.githubusercontent.com/projg2/fedora-kernel-config-for-gentoo/${CONFIG_VER}/kernel-aarch64-fedora.config
|
||||
-> kernel-aarch64-fedora.config.${CONFIG_VER}
|
||||
)
|
||||
ppc64? (
|
||||
https://raw.githubusercontent.com/projg2/fedora-kernel-config-for-gentoo/${CONFIG_VER}/kernel-ppc64le-fedora.config
|
||||
-> kernel-ppc64le-fedora.config.${CONFIG_VER}
|
||||
)
|
||||
riscv? (
|
||||
https://raw.githubusercontent.com/projg2/fedora-kernel-config-for-gentoo/${CONFIG_VER}/kernel-riscv64-fedora.config
|
||||
-> kernel-riscv64-fedora.config.${CONFIG_VER}
|
||||
)
|
||||
x86? (
|
||||
https://raw.githubusercontent.com/projg2/fedora-kernel-config-for-gentoo/${CONFIG_VER}/kernel-i686-fedora.config
|
||||
-> kernel-i686-fedora.config.${CONFIG_VER}
|
||||
)
|
||||
"
|
||||
S=${WORKDIR}/${BASE_P}
|
||||
|
||||
KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~loong ~ppc ~ppc64 ~riscv ~sparc ~x86"
|
||||
IUSE="debug experimental hardened"
|
||||
REQUIRED_USE="
|
||||
arm? ( savedconfig )
|
||||
hppa? ( savedconfig )
|
||||
sparc? ( savedconfig )
|
||||
"
|
||||
|
||||
RDEPEND="
|
||||
!sys-kernel/gentoo-kernel-bin:${SLOT}
|
||||
"
|
||||
BDEPEND="
|
||||
debug? ( dev-util/pahole )
|
||||
verify-sig? ( >=sec-keys/openpgp-keys-kernel-20250702 )
|
||||
"
|
||||
PDEPEND="
|
||||
>=virtual/dist-kernel-${PATCH_PV}
|
||||
"
|
||||
|
||||
QA_FLAGS_IGNORED="
|
||||
usr/src/linux-.*/scripts/gcc-plugins/.*.so
|
||||
usr/src/linux-.*/vmlinux
|
||||
usr/src/linux-.*/arch/powerpc/kernel/vdso.*/vdso.*.so.dbg
|
||||
"
|
||||
|
||||
VERIFY_SIG_OPENPGP_KEY_PATH=/usr/share/openpgp-keys/kernel.org.asc
|
||||
|
||||
src_unpack() {
|
||||
if use verify-sig; then
|
||||
cd "${DISTDIR}" || die
|
||||
verify-sig_verify_signed_checksums \
|
||||
"linux-$(ver_cut 1).x-sha256sums-${SHA256SUM_DATE}.asc" \
|
||||
sha256 "${BASE_P}.tar.xz patch-${PATCH_PV}.xz"
|
||||
cd "${WORKDIR}" || die
|
||||
fi
|
||||
|
||||
default
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
local patch
|
||||
eapply "${WORKDIR}/patch-${PATCH_PV}"
|
||||
for patch in "${WORKDIR}/${PATCHSET}"/*.patch; do
|
||||
eapply "${patch}"
|
||||
# non-experimental patches always finish with Gentoo Kconfig
|
||||
# when ! use experimental, stop applying after it
|
||||
if [[ ${patch} == *Add-Gentoo-Linux-support-config-settings* ]] &&
|
||||
! use experimental
|
||||
then
|
||||
break
|
||||
fi
|
||||
done
|
||||
|
||||
default
|
||||
|
||||
# add Gentoo patchset version
|
||||
local extraversion=${PV#${PATCH_PV}}
|
||||
sed -i -e "s:^\(EXTRAVERSION =\).*:\1 ${extraversion/_/-}:" Makefile || die
|
||||
|
||||
local biendian=false
|
||||
|
||||
# prepare the default config
|
||||
case ${ARCH} in
|
||||
arm | hppa | loong | sparc)
|
||||
> .config || die
|
||||
;;
|
||||
amd64)
|
||||
cp "${DISTDIR}/kernel-x86_64-fedora.config.${CONFIG_VER}" .config || die
|
||||
;;
|
||||
arm64)
|
||||
cp "${DISTDIR}/kernel-aarch64-fedora.config.${CONFIG_VER}" .config || die
|
||||
biendian=true
|
||||
;;
|
||||
ppc)
|
||||
# assume powermac/powerbook defconfig
|
||||
# we still package.use.force savedconfig
|
||||
cp "${WORKDIR}/${BASE_P}/arch/powerpc/configs/pmac32_defconfig" .config || die
|
||||
;;
|
||||
ppc64)
|
||||
cp "${DISTDIR}/kernel-ppc64le-fedora.config.${CONFIG_VER}" .config || die
|
||||
biendian=true
|
||||
;;
|
||||
riscv)
|
||||
cp "${DISTDIR}/kernel-riscv64-fedora.config.${CONFIG_VER}" .config || die
|
||||
;;
|
||||
x86)
|
||||
cp "${DISTDIR}/kernel-i686-fedora.config.${CONFIG_VER}" .config || die
|
||||
;;
|
||||
*)
|
||||
die "Unsupported arch ${ARCH}"
|
||||
;;
|
||||
esac
|
||||
|
||||
local myversion="-gentoo-dist"
|
||||
use hardened && myversion+="-hardened"
|
||||
echo "CONFIG_LOCALVERSION=\"${myversion}\"" > "${T}"/version.config || die
|
||||
local dist_conf_path="${WORKDIR}/gentoo-kernel-config-${GENTOO_CONFIG_VER}"
|
||||
|
||||
local merge_configs=(
|
||||
"${T}"/version.config
|
||||
"${dist_conf_path}"/base.config
|
||||
"${dist_conf_path}"/6.12+.config
|
||||
)
|
||||
use debug || merge_configs+=(
|
||||
"${dist_conf_path}"/no-debug.config
|
||||
)
|
||||
if use hardened; then
|
||||
merge_configs+=( "${dist_conf_path}"/hardened-base.config )
|
||||
|
||||
tc-is-gcc && merge_configs+=( "${dist_conf_path}"/hardened-gcc-plugins.config )
|
||||
|
||||
if [[ -f "${dist_conf_path}/hardened-${ARCH}.config" ]]; then
|
||||
merge_configs+=( "${dist_conf_path}/hardened-${ARCH}.config" )
|
||||
fi
|
||||
fi
|
||||
|
||||
# this covers ppc64 and aarch64_be only for now
|
||||
if [[ ${biendian} == true && $(tc-endian) == big ]]; then
|
||||
merge_configs+=( "${dist_conf_path}/big-endian.config" )
|
||||
fi
|
||||
|
||||
use secureboot && merge_configs+=(
|
||||
"${dist_conf_path}/secureboot.config"
|
||||
"${dist_conf_path}/zboot.config"
|
||||
)
|
||||
|
||||
kernel-build_merge_configs "${merge_configs[@]}"
|
||||
}
|
||||
@@ -1,185 +0,0 @@
|
||||
# Copyright 2020-2025 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
KERNEL_IUSE_GENERIC_UKI=1
|
||||
KERNEL_IUSE_MODULES_SIGN=1
|
||||
|
||||
inherit kernel-build toolchain-funcs verify-sig
|
||||
|
||||
BASE_P=linux-${PV%.*}
|
||||
PATCH_PV=${PV%_p*}
|
||||
PATCHSET=linux-gentoo-patches-6.16.8
|
||||
# https://koji.fedoraproject.org/koji/packageinfo?packageID=8
|
||||
# forked to https://github.com/projg2/fedora-kernel-config-for-gentoo
|
||||
CONFIG_VER=6.16.2-gentoo
|
||||
GENTOO_CONFIG_VER=g17
|
||||
SHA256SUM_DATE=20250925
|
||||
|
||||
DESCRIPTION="Linux kernel built with Gentoo patches"
|
||||
HOMEPAGE="
|
||||
https://wiki.gentoo.org/wiki/Project:Distribution_Kernel
|
||||
https://www.kernel.org/
|
||||
"
|
||||
SRC_URI+="
|
||||
https://cdn.kernel.org/pub/linux/kernel/v$(ver_cut 1).x/${BASE_P}.tar.xz
|
||||
https://cdn.kernel.org/pub/linux/kernel/v$(ver_cut 1).x/patch-${PATCH_PV}.xz
|
||||
https://dev.gentoo.org/~mgorny/dist/linux/${PATCHSET}.tar.xz
|
||||
https://github.com/projg2/gentoo-kernel-config/archive/${GENTOO_CONFIG_VER}.tar.gz
|
||||
-> gentoo-kernel-config-${GENTOO_CONFIG_VER}.tar.gz
|
||||
verify-sig? (
|
||||
https://cdn.kernel.org/pub/linux/kernel/v$(ver_cut 1).x/sha256sums.asc
|
||||
-> linux-$(ver_cut 1).x-sha256sums-${SHA256SUM_DATE}.asc
|
||||
)
|
||||
amd64? (
|
||||
https://raw.githubusercontent.com/projg2/fedora-kernel-config-for-gentoo/${CONFIG_VER}/kernel-x86_64-fedora.config
|
||||
-> kernel-x86_64-fedora.config.${CONFIG_VER}
|
||||
)
|
||||
arm64? (
|
||||
https://raw.githubusercontent.com/projg2/fedora-kernel-config-for-gentoo/${CONFIG_VER}/kernel-aarch64-fedora.config
|
||||
-> kernel-aarch64-fedora.config.${CONFIG_VER}
|
||||
)
|
||||
ppc64? (
|
||||
https://raw.githubusercontent.com/projg2/fedora-kernel-config-for-gentoo/${CONFIG_VER}/kernel-ppc64le-fedora.config
|
||||
-> kernel-ppc64le-fedora.config.${CONFIG_VER}
|
||||
)
|
||||
riscv? (
|
||||
https://raw.githubusercontent.com/projg2/fedora-kernel-config-for-gentoo/${CONFIG_VER}/kernel-riscv64-fedora.config
|
||||
-> kernel-riscv64-fedora.config.${CONFIG_VER}
|
||||
)
|
||||
x86? (
|
||||
https://raw.githubusercontent.com/projg2/fedora-kernel-config-for-gentoo/${CONFIG_VER}/kernel-i686-fedora.config
|
||||
-> kernel-i686-fedora.config.${CONFIG_VER}
|
||||
)
|
||||
"
|
||||
S=${WORKDIR}/${BASE_P}
|
||||
|
||||
KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~loong ~ppc ~ppc64 ~riscv ~sparc ~x86"
|
||||
IUSE="debug experimental hardened"
|
||||
REQUIRED_USE="
|
||||
arm? ( savedconfig )
|
||||
hppa? ( savedconfig )
|
||||
sparc? ( savedconfig )
|
||||
"
|
||||
|
||||
RDEPEND="
|
||||
!sys-kernel/gentoo-kernel-bin:${SLOT}
|
||||
"
|
||||
BDEPEND="
|
||||
debug? ( dev-util/pahole )
|
||||
verify-sig? ( >=sec-keys/openpgp-keys-kernel-20250702 )
|
||||
"
|
||||
PDEPEND="
|
||||
>=virtual/dist-kernel-${PATCH_PV}
|
||||
"
|
||||
|
||||
QA_FLAGS_IGNORED="
|
||||
usr/src/linux-.*/scripts/gcc-plugins/.*.so
|
||||
usr/src/linux-.*/vmlinux
|
||||
usr/src/linux-.*/arch/powerpc/kernel/vdso.*/vdso.*.so.dbg
|
||||
"
|
||||
|
||||
VERIFY_SIG_OPENPGP_KEY_PATH=/usr/share/openpgp-keys/kernel.org.asc
|
||||
|
||||
src_unpack() {
|
||||
if use verify-sig; then
|
||||
cd "${DISTDIR}" || die
|
||||
verify-sig_verify_signed_checksums \
|
||||
"linux-$(ver_cut 1).x-sha256sums-${SHA256SUM_DATE}.asc" \
|
||||
sha256 "${BASE_P}.tar.xz patch-${PATCH_PV}.xz"
|
||||
cd "${WORKDIR}" || die
|
||||
fi
|
||||
|
||||
default
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
local patch
|
||||
eapply "${WORKDIR}/patch-${PATCH_PV}"
|
||||
for patch in "${WORKDIR}/${PATCHSET}"/*.patch; do
|
||||
eapply "${patch}"
|
||||
# non-experimental patches always finish with Gentoo Kconfig
|
||||
# when ! use experimental, stop applying after it
|
||||
if [[ ${patch} == *Add-Gentoo-Linux-support-config-settings* ]] &&
|
||||
! use experimental
|
||||
then
|
||||
break
|
||||
fi
|
||||
done
|
||||
|
||||
default
|
||||
|
||||
# add Gentoo patchset version
|
||||
local extraversion=${PV#${PATCH_PV}}
|
||||
sed -i -e "s:^\(EXTRAVERSION =\).*:\1 ${extraversion/_/-}:" Makefile || die
|
||||
|
||||
local biendian=false
|
||||
|
||||
# prepare the default config
|
||||
case ${ARCH} in
|
||||
arm | hppa | loong | sparc)
|
||||
> .config || die
|
||||
;;
|
||||
amd64)
|
||||
cp "${DISTDIR}/kernel-x86_64-fedora.config.${CONFIG_VER}" .config || die
|
||||
;;
|
||||
arm64)
|
||||
cp "${DISTDIR}/kernel-aarch64-fedora.config.${CONFIG_VER}" .config || die
|
||||
biendian=true
|
||||
;;
|
||||
ppc)
|
||||
# assume powermac/powerbook defconfig
|
||||
# we still package.use.force savedconfig
|
||||
cp "${WORKDIR}/${BASE_P}/arch/powerpc/configs/pmac32_defconfig" .config || die
|
||||
;;
|
||||
ppc64)
|
||||
cp "${DISTDIR}/kernel-ppc64le-fedora.config.${CONFIG_VER}" .config || die
|
||||
biendian=true
|
||||
;;
|
||||
riscv)
|
||||
cp "${DISTDIR}/kernel-riscv64-fedora.config.${CONFIG_VER}" .config || die
|
||||
;;
|
||||
x86)
|
||||
cp "${DISTDIR}/kernel-i686-fedora.config.${CONFIG_VER}" .config || die
|
||||
;;
|
||||
*)
|
||||
die "Unsupported arch ${ARCH}"
|
||||
;;
|
||||
esac
|
||||
|
||||
local myversion="-gentoo-dist"
|
||||
use hardened && myversion+="-hardened"
|
||||
echo "CONFIG_LOCALVERSION=\"${myversion}\"" > "${T}"/version.config || die
|
||||
local dist_conf_path="${WORKDIR}/gentoo-kernel-config-${GENTOO_CONFIG_VER}"
|
||||
|
||||
local merge_configs=(
|
||||
"${T}"/version.config
|
||||
"${dist_conf_path}"/base.config
|
||||
"${dist_conf_path}"/6.12+.config
|
||||
)
|
||||
use debug || merge_configs+=(
|
||||
"${dist_conf_path}"/no-debug.config
|
||||
)
|
||||
if use hardened; then
|
||||
merge_configs+=( "${dist_conf_path}"/hardened-base.config )
|
||||
|
||||
tc-is-gcc && merge_configs+=( "${dist_conf_path}"/hardened-gcc-plugins.config )
|
||||
|
||||
if [[ -f "${dist_conf_path}/hardened-${ARCH}.config" ]]; then
|
||||
merge_configs+=( "${dist_conf_path}/hardened-${ARCH}.config" )
|
||||
fi
|
||||
fi
|
||||
|
||||
# this covers ppc64 and aarch64_be only for now
|
||||
if [[ ${biendian} == true && $(tc-endian) == big ]]; then
|
||||
merge_configs+=( "${dist_conf_path}/big-endian.config" )
|
||||
fi
|
||||
|
||||
use secureboot && merge_configs+=(
|
||||
"${dist_conf_path}/secureboot.config"
|
||||
"${dist_conf_path}/zboot.config"
|
||||
)
|
||||
|
||||
kernel-build_merge_configs "${merge_configs[@]}"
|
||||
}
|
||||
@@ -1,185 +0,0 @@
|
||||
# Copyright 2020-2025 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
KERNEL_IUSE_GENERIC_UKI=1
|
||||
KERNEL_IUSE_MODULES_SIGN=1
|
||||
|
||||
inherit kernel-build toolchain-funcs verify-sig
|
||||
|
||||
BASE_P=linux-${PV%.*}
|
||||
PATCH_PV=${PV%_p*}
|
||||
PATCHSET=linux-gentoo-patches-6.16.9_p1
|
||||
# https://koji.fedoraproject.org/koji/packageinfo?packageID=8
|
||||
# forked to https://github.com/projg2/fedora-kernel-config-for-gentoo
|
||||
CONFIG_VER=6.16.2-gentoo
|
||||
GENTOO_CONFIG_VER=g17
|
||||
SHA256SUM_DATE=20250925
|
||||
|
||||
DESCRIPTION="Linux kernel built with Gentoo patches"
|
||||
HOMEPAGE="
|
||||
https://wiki.gentoo.org/wiki/Project:Distribution_Kernel
|
||||
https://www.kernel.org/
|
||||
"
|
||||
SRC_URI+="
|
||||
https://cdn.kernel.org/pub/linux/kernel/v$(ver_cut 1).x/${BASE_P}.tar.xz
|
||||
https://cdn.kernel.org/pub/linux/kernel/v$(ver_cut 1).x/patch-${PATCH_PV}.xz
|
||||
https://dev.gentoo.org/~mgorny/dist/linux/${PATCHSET}.tar.xz
|
||||
https://github.com/projg2/gentoo-kernel-config/archive/${GENTOO_CONFIG_VER}.tar.gz
|
||||
-> gentoo-kernel-config-${GENTOO_CONFIG_VER}.tar.gz
|
||||
verify-sig? (
|
||||
https://cdn.kernel.org/pub/linux/kernel/v$(ver_cut 1).x/sha256sums.asc
|
||||
-> linux-$(ver_cut 1).x-sha256sums-${SHA256SUM_DATE}.asc
|
||||
)
|
||||
amd64? (
|
||||
https://raw.githubusercontent.com/projg2/fedora-kernel-config-for-gentoo/${CONFIG_VER}/kernel-x86_64-fedora.config
|
||||
-> kernel-x86_64-fedora.config.${CONFIG_VER}
|
||||
)
|
||||
arm64? (
|
||||
https://raw.githubusercontent.com/projg2/fedora-kernel-config-for-gentoo/${CONFIG_VER}/kernel-aarch64-fedora.config
|
||||
-> kernel-aarch64-fedora.config.${CONFIG_VER}
|
||||
)
|
||||
ppc64? (
|
||||
https://raw.githubusercontent.com/projg2/fedora-kernel-config-for-gentoo/${CONFIG_VER}/kernel-ppc64le-fedora.config
|
||||
-> kernel-ppc64le-fedora.config.${CONFIG_VER}
|
||||
)
|
||||
riscv? (
|
||||
https://raw.githubusercontent.com/projg2/fedora-kernel-config-for-gentoo/${CONFIG_VER}/kernel-riscv64-fedora.config
|
||||
-> kernel-riscv64-fedora.config.${CONFIG_VER}
|
||||
)
|
||||
x86? (
|
||||
https://raw.githubusercontent.com/projg2/fedora-kernel-config-for-gentoo/${CONFIG_VER}/kernel-i686-fedora.config
|
||||
-> kernel-i686-fedora.config.${CONFIG_VER}
|
||||
)
|
||||
"
|
||||
S=${WORKDIR}/${BASE_P}
|
||||
|
||||
KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~loong ~ppc ~ppc64 ~riscv ~sparc ~x86"
|
||||
IUSE="debug experimental hardened"
|
||||
REQUIRED_USE="
|
||||
arm? ( savedconfig )
|
||||
hppa? ( savedconfig )
|
||||
sparc? ( savedconfig )
|
||||
"
|
||||
|
||||
RDEPEND="
|
||||
!sys-kernel/gentoo-kernel-bin:${SLOT}
|
||||
"
|
||||
BDEPEND="
|
||||
debug? ( dev-util/pahole )
|
||||
verify-sig? ( >=sec-keys/openpgp-keys-kernel-20250702 )
|
||||
"
|
||||
PDEPEND="
|
||||
>=virtual/dist-kernel-${PV}
|
||||
"
|
||||
|
||||
QA_FLAGS_IGNORED="
|
||||
usr/src/linux-.*/scripts/gcc-plugins/.*.so
|
||||
usr/src/linux-.*/vmlinux
|
||||
usr/src/linux-.*/arch/powerpc/kernel/vdso.*/vdso.*.so.dbg
|
||||
"
|
||||
|
||||
VERIFY_SIG_OPENPGP_KEY_PATH=/usr/share/openpgp-keys/kernel.org.asc
|
||||
|
||||
src_unpack() {
|
||||
if use verify-sig; then
|
||||
cd "${DISTDIR}" || die
|
||||
verify-sig_verify_signed_checksums \
|
||||
"linux-$(ver_cut 1).x-sha256sums-${SHA256SUM_DATE}.asc" \
|
||||
sha256 "${BASE_P}.tar.xz patch-${PATCH_PV}.xz"
|
||||
cd "${WORKDIR}" || die
|
||||
fi
|
||||
|
||||
default
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
local patch
|
||||
eapply "${WORKDIR}/patch-${PATCH_PV}"
|
||||
for patch in "${WORKDIR}/${PATCHSET}"/*.patch; do
|
||||
eapply "${patch}"
|
||||
# non-experimental patches always finish with Gentoo Kconfig
|
||||
# when ! use experimental, stop applying after it
|
||||
if [[ ${patch} == *Add-Gentoo-Linux-support-config-settings* ]] &&
|
||||
! use experimental
|
||||
then
|
||||
break
|
||||
fi
|
||||
done
|
||||
|
||||
default
|
||||
|
||||
# add Gentoo patchset version
|
||||
local extraversion=${PV#${PATCH_PV}}
|
||||
sed -i -e "s:^\(EXTRAVERSION =\).*:\1 ${extraversion/_/-}:" Makefile || die
|
||||
|
||||
local biendian=false
|
||||
|
||||
# prepare the default config
|
||||
case ${ARCH} in
|
||||
arm | hppa | loong | sparc)
|
||||
> .config || die
|
||||
;;
|
||||
amd64)
|
||||
cp "${DISTDIR}/kernel-x86_64-fedora.config.${CONFIG_VER}" .config || die
|
||||
;;
|
||||
arm64)
|
||||
cp "${DISTDIR}/kernel-aarch64-fedora.config.${CONFIG_VER}" .config || die
|
||||
biendian=true
|
||||
;;
|
||||
ppc)
|
||||
# assume powermac/powerbook defconfig
|
||||
# we still package.use.force savedconfig
|
||||
cp "${WORKDIR}/${BASE_P}/arch/powerpc/configs/pmac32_defconfig" .config || die
|
||||
;;
|
||||
ppc64)
|
||||
cp "${DISTDIR}/kernel-ppc64le-fedora.config.${CONFIG_VER}" .config || die
|
||||
biendian=true
|
||||
;;
|
||||
riscv)
|
||||
cp "${DISTDIR}/kernel-riscv64-fedora.config.${CONFIG_VER}" .config || die
|
||||
;;
|
||||
x86)
|
||||
cp "${DISTDIR}/kernel-i686-fedora.config.${CONFIG_VER}" .config || die
|
||||
;;
|
||||
*)
|
||||
die "Unsupported arch ${ARCH}"
|
||||
;;
|
||||
esac
|
||||
|
||||
local myversion="-gentoo-dist"
|
||||
use hardened && myversion+="-hardened"
|
||||
echo "CONFIG_LOCALVERSION=\"${myversion}\"" > "${T}"/version.config || die
|
||||
local dist_conf_path="${WORKDIR}/gentoo-kernel-config-${GENTOO_CONFIG_VER}"
|
||||
|
||||
local merge_configs=(
|
||||
"${T}"/version.config
|
||||
"${dist_conf_path}"/base.config
|
||||
"${dist_conf_path}"/6.12+.config
|
||||
)
|
||||
use debug || merge_configs+=(
|
||||
"${dist_conf_path}"/no-debug.config
|
||||
)
|
||||
if use hardened; then
|
||||
merge_configs+=( "${dist_conf_path}"/hardened-base.config )
|
||||
|
||||
tc-is-gcc && merge_configs+=( "${dist_conf_path}"/hardened-gcc-plugins.config )
|
||||
|
||||
if [[ -f "${dist_conf_path}/hardened-${ARCH}.config" ]]; then
|
||||
merge_configs+=( "${dist_conf_path}/hardened-${ARCH}.config" )
|
||||
fi
|
||||
fi
|
||||
|
||||
# this covers ppc64 and aarch64_be only for now
|
||||
if [[ ${biendian} == true && $(tc-endian) == big ]]; then
|
||||
merge_configs+=( "${dist_conf_path}/big-endian.config" )
|
||||
fi
|
||||
|
||||
use secureboot && merge_configs+=(
|
||||
"${dist_conf_path}/secureboot.config"
|
||||
"${dist_conf_path}/zboot.config"
|
||||
)
|
||||
|
||||
kernel-build_merge_configs "${merge_configs[@]}"
|
||||
}
|
||||
@@ -1,185 +0,0 @@
|
||||
# Copyright 2020-2025 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
KERNEL_IUSE_GENERIC_UKI=1
|
||||
KERNEL_IUSE_MODULES_SIGN=1
|
||||
|
||||
inherit kernel-build toolchain-funcs verify-sig
|
||||
|
||||
BASE_P=linux-${PV%.*}
|
||||
PATCH_PV=${PV%_p*}
|
||||
PATCHSET=linux-gentoo-patches-6.17.1
|
||||
# https://koji.fedoraproject.org/koji/packageinfo?packageID=8
|
||||
# forked to https://github.com/projg2/fedora-kernel-config-for-gentoo
|
||||
CONFIG_VER=6.17.0-gentoo
|
||||
GENTOO_CONFIG_VER=g17
|
||||
SHA256SUM_DATE=20251006
|
||||
|
||||
DESCRIPTION="Linux kernel built with Gentoo patches"
|
||||
HOMEPAGE="
|
||||
https://wiki.gentoo.org/wiki/Project:Distribution_Kernel
|
||||
https://www.kernel.org/
|
||||
"
|
||||
SRC_URI+="
|
||||
https://cdn.kernel.org/pub/linux/kernel/v$(ver_cut 1).x/${BASE_P}.tar.xz
|
||||
https://cdn.kernel.org/pub/linux/kernel/v$(ver_cut 1).x/patch-${PATCH_PV}.xz
|
||||
https://dev.gentoo.org/~mgorny/dist/linux/${PATCHSET}.tar.xz
|
||||
https://github.com/projg2/gentoo-kernel-config/archive/${GENTOO_CONFIG_VER}.tar.gz
|
||||
-> gentoo-kernel-config-${GENTOO_CONFIG_VER}.tar.gz
|
||||
verify-sig? (
|
||||
https://cdn.kernel.org/pub/linux/kernel/v$(ver_cut 1).x/sha256sums.asc
|
||||
-> linux-$(ver_cut 1).x-sha256sums-${SHA256SUM_DATE}.asc
|
||||
)
|
||||
amd64? (
|
||||
https://raw.githubusercontent.com/projg2/fedora-kernel-config-for-gentoo/${CONFIG_VER}/kernel-x86_64-fedora.config
|
||||
-> kernel-x86_64-fedora.config.${CONFIG_VER}
|
||||
)
|
||||
arm64? (
|
||||
https://raw.githubusercontent.com/projg2/fedora-kernel-config-for-gentoo/${CONFIG_VER}/kernel-aarch64-fedora.config
|
||||
-> kernel-aarch64-fedora.config.${CONFIG_VER}
|
||||
)
|
||||
ppc64? (
|
||||
https://raw.githubusercontent.com/projg2/fedora-kernel-config-for-gentoo/${CONFIG_VER}/kernel-ppc64le-fedora.config
|
||||
-> kernel-ppc64le-fedora.config.${CONFIG_VER}
|
||||
)
|
||||
riscv? (
|
||||
https://raw.githubusercontent.com/projg2/fedora-kernel-config-for-gentoo/${CONFIG_VER}/kernel-riscv64-fedora.config
|
||||
-> kernel-riscv64-fedora.config.${CONFIG_VER}
|
||||
)
|
||||
x86? (
|
||||
https://raw.githubusercontent.com/projg2/fedora-kernel-config-for-gentoo/${CONFIG_VER}/kernel-i686-fedora.config
|
||||
-> kernel-i686-fedora.config.${CONFIG_VER}
|
||||
)
|
||||
"
|
||||
S=${WORKDIR}/${BASE_P}
|
||||
|
||||
KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~loong ~ppc ~ppc64 ~riscv ~sparc ~x86"
|
||||
IUSE="debug experimental hardened"
|
||||
REQUIRED_USE="
|
||||
arm? ( savedconfig )
|
||||
hppa? ( savedconfig )
|
||||
sparc? ( savedconfig )
|
||||
"
|
||||
|
||||
RDEPEND="
|
||||
!sys-kernel/gentoo-kernel-bin:${SLOT}
|
||||
"
|
||||
BDEPEND="
|
||||
debug? ( dev-util/pahole )
|
||||
verify-sig? ( >=sec-keys/openpgp-keys-kernel-20250702 )
|
||||
"
|
||||
PDEPEND="
|
||||
>=virtual/dist-kernel-${PV}
|
||||
"
|
||||
|
||||
QA_FLAGS_IGNORED="
|
||||
usr/src/linux-.*/scripts/gcc-plugins/.*.so
|
||||
usr/src/linux-.*/vmlinux
|
||||
usr/src/linux-.*/arch/powerpc/kernel/vdso.*/vdso.*.so.dbg
|
||||
"
|
||||
|
||||
VERIFY_SIG_OPENPGP_KEY_PATH=/usr/share/openpgp-keys/kernel.org.asc
|
||||
|
||||
src_unpack() {
|
||||
if use verify-sig; then
|
||||
cd "${DISTDIR}" || die
|
||||
verify-sig_verify_signed_checksums \
|
||||
"linux-$(ver_cut 1).x-sha256sums-${SHA256SUM_DATE}.asc" \
|
||||
sha256 "${BASE_P}.tar.xz patch-${PATCH_PV}.xz"
|
||||
cd "${WORKDIR}" || die
|
||||
fi
|
||||
|
||||
default
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
local patch
|
||||
eapply "${WORKDIR}/patch-${PATCH_PV}"
|
||||
for patch in "${WORKDIR}/${PATCHSET}"/*.patch; do
|
||||
eapply "${patch}"
|
||||
# non-experimental patches always finish with Gentoo Kconfig
|
||||
# when ! use experimental, stop applying after it
|
||||
if [[ ${patch} == *Add-Gentoo-Linux-support-config-settings* ]] &&
|
||||
! use experimental
|
||||
then
|
||||
break
|
||||
fi
|
||||
done
|
||||
|
||||
default
|
||||
|
||||
# add Gentoo patchset version
|
||||
local extraversion=${PV#${PATCH_PV}}
|
||||
sed -i -e "s:^\(EXTRAVERSION =\).*:\1 ${extraversion/_/-}:" Makefile || die
|
||||
|
||||
local biendian=false
|
||||
|
||||
# prepare the default config
|
||||
case ${ARCH} in
|
||||
arm | hppa | loong | sparc)
|
||||
> .config || die
|
||||
;;
|
||||
amd64)
|
||||
cp "${DISTDIR}/kernel-x86_64-fedora.config.${CONFIG_VER}" .config || die
|
||||
;;
|
||||
arm64)
|
||||
cp "${DISTDIR}/kernel-aarch64-fedora.config.${CONFIG_VER}" .config || die
|
||||
biendian=true
|
||||
;;
|
||||
ppc)
|
||||
# assume powermac/powerbook defconfig
|
||||
# we still package.use.force savedconfig
|
||||
cp "${WORKDIR}/${BASE_P}/arch/powerpc/configs/pmac32_defconfig" .config || die
|
||||
;;
|
||||
ppc64)
|
||||
cp "${DISTDIR}/kernel-ppc64le-fedora.config.${CONFIG_VER}" .config || die
|
||||
biendian=true
|
||||
;;
|
||||
riscv)
|
||||
cp "${DISTDIR}/kernel-riscv64-fedora.config.${CONFIG_VER}" .config || die
|
||||
;;
|
||||
x86)
|
||||
cp "${DISTDIR}/kernel-i686-fedora.config.${CONFIG_VER}" .config || die
|
||||
;;
|
||||
*)
|
||||
die "Unsupported arch ${ARCH}"
|
||||
;;
|
||||
esac
|
||||
|
||||
local myversion="-gentoo-dist"
|
||||
use hardened && myversion+="-hardened"
|
||||
echo "CONFIG_LOCALVERSION=\"${myversion}\"" > "${T}"/version.config || die
|
||||
local dist_conf_path="${WORKDIR}/gentoo-kernel-config-${GENTOO_CONFIG_VER}"
|
||||
|
||||
local merge_configs=(
|
||||
"${T}"/version.config
|
||||
"${dist_conf_path}"/base.config
|
||||
"${dist_conf_path}"/6.12+.config
|
||||
)
|
||||
use debug || merge_configs+=(
|
||||
"${dist_conf_path}"/no-debug.config
|
||||
)
|
||||
if use hardened; then
|
||||
merge_configs+=( "${dist_conf_path}"/hardened-base.config )
|
||||
|
||||
tc-is-gcc && merge_configs+=( "${dist_conf_path}"/hardened-gcc-plugins.config )
|
||||
|
||||
if [[ -f "${dist_conf_path}/hardened-${ARCH}.config" ]]; then
|
||||
merge_configs+=( "${dist_conf_path}/hardened-${ARCH}.config" )
|
||||
fi
|
||||
fi
|
||||
|
||||
# this covers ppc64 and aarch64_be only for now
|
||||
if [[ ${biendian} == true && $(tc-endian) == big ]]; then
|
||||
merge_configs+=( "${dist_conf_path}/big-endian.config" )
|
||||
fi
|
||||
|
||||
use secureboot && merge_configs+=(
|
||||
"${dist_conf_path}/secureboot.config"
|
||||
"${dist_conf_path}/zboot.config"
|
||||
)
|
||||
|
||||
kernel-build_merge_configs "${merge_configs[@]}"
|
||||
}
|
||||
@@ -1,185 +0,0 @@
|
||||
# Copyright 2020-2025 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
KERNEL_IUSE_GENERIC_UKI=1
|
||||
KERNEL_IUSE_MODULES_SIGN=1
|
||||
|
||||
inherit kernel-build toolchain-funcs verify-sig
|
||||
|
||||
BASE_P=linux-${PV%.*}
|
||||
PATCH_PV=${PV%_p*}
|
||||
PATCHSET=linux-gentoo-patches-6.17.2
|
||||
# https://koji.fedoraproject.org/koji/packageinfo?packageID=8
|
||||
# forked to https://github.com/projg2/fedora-kernel-config-for-gentoo
|
||||
CONFIG_VER=6.17.0-gentoo
|
||||
GENTOO_CONFIG_VER=g17
|
||||
SHA256SUM_DATE=20251015
|
||||
|
||||
DESCRIPTION="Linux kernel built with Gentoo patches"
|
||||
HOMEPAGE="
|
||||
https://wiki.gentoo.org/wiki/Project:Distribution_Kernel
|
||||
https://www.kernel.org/
|
||||
"
|
||||
SRC_URI+="
|
||||
https://cdn.kernel.org/pub/linux/kernel/v$(ver_cut 1).x/${BASE_P}.tar.xz
|
||||
https://cdn.kernel.org/pub/linux/kernel/v$(ver_cut 1).x/patch-${PATCH_PV}.xz
|
||||
https://dev.gentoo.org/~mgorny/dist/linux/${PATCHSET}.tar.xz
|
||||
https://github.com/projg2/gentoo-kernel-config/archive/${GENTOO_CONFIG_VER}.tar.gz
|
||||
-> gentoo-kernel-config-${GENTOO_CONFIG_VER}.tar.gz
|
||||
verify-sig? (
|
||||
https://cdn.kernel.org/pub/linux/kernel/v$(ver_cut 1).x/sha256sums.asc
|
||||
-> linux-$(ver_cut 1).x-sha256sums-${SHA256SUM_DATE}.asc
|
||||
)
|
||||
amd64? (
|
||||
https://raw.githubusercontent.com/projg2/fedora-kernel-config-for-gentoo/${CONFIG_VER}/kernel-x86_64-fedora.config
|
||||
-> kernel-x86_64-fedora.config.${CONFIG_VER}
|
||||
)
|
||||
arm64? (
|
||||
https://raw.githubusercontent.com/projg2/fedora-kernel-config-for-gentoo/${CONFIG_VER}/kernel-aarch64-fedora.config
|
||||
-> kernel-aarch64-fedora.config.${CONFIG_VER}
|
||||
)
|
||||
ppc64? (
|
||||
https://raw.githubusercontent.com/projg2/fedora-kernel-config-for-gentoo/${CONFIG_VER}/kernel-ppc64le-fedora.config
|
||||
-> kernel-ppc64le-fedora.config.${CONFIG_VER}
|
||||
)
|
||||
riscv? (
|
||||
https://raw.githubusercontent.com/projg2/fedora-kernel-config-for-gentoo/${CONFIG_VER}/kernel-riscv64-fedora.config
|
||||
-> kernel-riscv64-fedora.config.${CONFIG_VER}
|
||||
)
|
||||
x86? (
|
||||
https://raw.githubusercontent.com/projg2/fedora-kernel-config-for-gentoo/${CONFIG_VER}/kernel-i686-fedora.config
|
||||
-> kernel-i686-fedora.config.${CONFIG_VER}
|
||||
)
|
||||
"
|
||||
S=${WORKDIR}/${BASE_P}
|
||||
|
||||
KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~loong ~ppc ~ppc64 ~riscv ~sparc ~x86"
|
||||
IUSE="debug experimental hardened"
|
||||
REQUIRED_USE="
|
||||
arm? ( savedconfig )
|
||||
hppa? ( savedconfig )
|
||||
sparc? ( savedconfig )
|
||||
"
|
||||
|
||||
RDEPEND="
|
||||
!sys-kernel/gentoo-kernel-bin:${SLOT}
|
||||
"
|
||||
BDEPEND="
|
||||
debug? ( dev-util/pahole )
|
||||
verify-sig? ( >=sec-keys/openpgp-keys-kernel-20250702 )
|
||||
"
|
||||
PDEPEND="
|
||||
>=virtual/dist-kernel-${PV}
|
||||
"
|
||||
|
||||
QA_FLAGS_IGNORED="
|
||||
usr/src/linux-.*/scripts/gcc-plugins/.*.so
|
||||
usr/src/linux-.*/vmlinux
|
||||
usr/src/linux-.*/arch/powerpc/kernel/vdso.*/vdso.*.so.dbg
|
||||
"
|
||||
|
||||
VERIFY_SIG_OPENPGP_KEY_PATH=/usr/share/openpgp-keys/kernel.org.asc
|
||||
|
||||
src_unpack() {
|
||||
if use verify-sig; then
|
||||
cd "${DISTDIR}" || die
|
||||
verify-sig_verify_signed_checksums \
|
||||
"linux-$(ver_cut 1).x-sha256sums-${SHA256SUM_DATE}.asc" \
|
||||
sha256 "${BASE_P}.tar.xz patch-${PATCH_PV}.xz"
|
||||
cd "${WORKDIR}" || die
|
||||
fi
|
||||
|
||||
default
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
local patch
|
||||
eapply "${WORKDIR}/patch-${PATCH_PV}"
|
||||
for patch in "${WORKDIR}/${PATCHSET}"/*.patch; do
|
||||
eapply "${patch}"
|
||||
# non-experimental patches always finish with Gentoo Kconfig
|
||||
# when ! use experimental, stop applying after it
|
||||
if [[ ${patch} == *Add-Gentoo-Linux-support-config-settings* ]] &&
|
||||
! use experimental
|
||||
then
|
||||
break
|
||||
fi
|
||||
done
|
||||
|
||||
default
|
||||
|
||||
# add Gentoo patchset version
|
||||
local extraversion=${PV#${PATCH_PV}}
|
||||
sed -i -e "s:^\(EXTRAVERSION =\).*:\1 ${extraversion/_/-}:" Makefile || die
|
||||
|
||||
local biendian=false
|
||||
|
||||
# prepare the default config
|
||||
case ${ARCH} in
|
||||
arm | hppa | loong | sparc)
|
||||
> .config || die
|
||||
;;
|
||||
amd64)
|
||||
cp "${DISTDIR}/kernel-x86_64-fedora.config.${CONFIG_VER}" .config || die
|
||||
;;
|
||||
arm64)
|
||||
cp "${DISTDIR}/kernel-aarch64-fedora.config.${CONFIG_VER}" .config || die
|
||||
biendian=true
|
||||
;;
|
||||
ppc)
|
||||
# assume powermac/powerbook defconfig
|
||||
# we still package.use.force savedconfig
|
||||
cp "${WORKDIR}/${BASE_P}/arch/powerpc/configs/pmac32_defconfig" .config || die
|
||||
;;
|
||||
ppc64)
|
||||
cp "${DISTDIR}/kernel-ppc64le-fedora.config.${CONFIG_VER}" .config || die
|
||||
biendian=true
|
||||
;;
|
||||
riscv)
|
||||
cp "${DISTDIR}/kernel-riscv64-fedora.config.${CONFIG_VER}" .config || die
|
||||
;;
|
||||
x86)
|
||||
cp "${DISTDIR}/kernel-i686-fedora.config.${CONFIG_VER}" .config || die
|
||||
;;
|
||||
*)
|
||||
die "Unsupported arch ${ARCH}"
|
||||
;;
|
||||
esac
|
||||
|
||||
local myversion="-gentoo-dist"
|
||||
use hardened && myversion+="-hardened"
|
||||
echo "CONFIG_LOCALVERSION=\"${myversion}\"" > "${T}"/version.config || die
|
||||
local dist_conf_path="${WORKDIR}/gentoo-kernel-config-${GENTOO_CONFIG_VER}"
|
||||
|
||||
local merge_configs=(
|
||||
"${T}"/version.config
|
||||
"${dist_conf_path}"/base.config
|
||||
"${dist_conf_path}"/6.12+.config
|
||||
)
|
||||
use debug || merge_configs+=(
|
||||
"${dist_conf_path}"/no-debug.config
|
||||
)
|
||||
if use hardened; then
|
||||
merge_configs+=( "${dist_conf_path}"/hardened-base.config )
|
||||
|
||||
tc-is-gcc && merge_configs+=( "${dist_conf_path}"/hardened-gcc-plugins.config )
|
||||
|
||||
if [[ -f "${dist_conf_path}/hardened-${ARCH}.config" ]]; then
|
||||
merge_configs+=( "${dist_conf_path}/hardened-${ARCH}.config" )
|
||||
fi
|
||||
fi
|
||||
|
||||
# this covers ppc64 and aarch64_be only for now
|
||||
if [[ ${biendian} == true && $(tc-endian) == big ]]; then
|
||||
merge_configs+=( "${dist_conf_path}/big-endian.config" )
|
||||
fi
|
||||
|
||||
use secureboot && merge_configs+=(
|
||||
"${dist_conf_path}/secureboot.config"
|
||||
"${dist_conf_path}/zboot.config"
|
||||
)
|
||||
|
||||
kernel-build_merge_configs "${merge_configs[@]}"
|
||||
}
|
||||
@@ -13,9 +13,9 @@ PATCH_PV=${PV%_p*}
|
||||
PATCHSET=linux-gentoo-patches-6.17.2
|
||||
# https://koji.fedoraproject.org/koji/packageinfo?packageID=8
|
||||
# forked to https://github.com/projg2/fedora-kernel-config-for-gentoo
|
||||
CONFIG_VER=6.17.0-gentoo
|
||||
CONFIG_VER=6.17.3-gentoo
|
||||
GENTOO_CONFIG_VER=g17
|
||||
SHA256SUM_DATE=20251012
|
||||
SHA256SUM_DATE=20251023
|
||||
|
||||
DESCRIPTION="Linux kernel built with Gentoo patches"
|
||||
HOMEPAGE="
|
||||
@@ -1,170 +0,0 @@
|
||||
# Copyright 2020-2025 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
KERNEL_IUSE_GENERIC_UKI=1
|
||||
KERNEL_IUSE_MODULES_SIGN=1
|
||||
|
||||
inherit kernel-build toolchain-funcs verify-sig
|
||||
|
||||
MY_P=linux-${PV%.*}
|
||||
PATCHSET=linux-gentoo-patches-6.6.100
|
||||
# https://koji.fedoraproject.org/koji/packageinfo?packageID=8
|
||||
# forked to https://github.com/projg2/fedora-kernel-config-for-gentoo
|
||||
CONFIG_VER=6.6.12-gentoo
|
||||
GENTOO_CONFIG_VER=g16
|
||||
SHA256SUM_DATE=20250801
|
||||
|
||||
DESCRIPTION="Linux kernel built with Gentoo patches"
|
||||
HOMEPAGE="
|
||||
https://wiki.gentoo.org/wiki/Project:Distribution_Kernel
|
||||
https://www.kernel.org/
|
||||
"
|
||||
SRC_URI+="
|
||||
https://cdn.kernel.org/pub/linux/kernel/v$(ver_cut 1).x/${MY_P}.tar.xz
|
||||
https://cdn.kernel.org/pub/linux/kernel/v$(ver_cut 1).x/patch-${PV}.xz
|
||||
https://dev.gentoo.org/~mgorny/dist/linux/${PATCHSET}.tar.xz
|
||||
https://github.com/projg2/gentoo-kernel-config/archive/${GENTOO_CONFIG_VER}.tar.gz
|
||||
-> gentoo-kernel-config-${GENTOO_CONFIG_VER}.tar.gz
|
||||
verify-sig? (
|
||||
https://cdn.kernel.org/pub/linux/kernel/v$(ver_cut 1).x/sha256sums.asc
|
||||
-> linux-$(ver_cut 1).x-sha256sums-${SHA256SUM_DATE}.asc
|
||||
)
|
||||
amd64? (
|
||||
https://raw.githubusercontent.com/projg2/fedora-kernel-config-for-gentoo/${CONFIG_VER}/kernel-x86_64-fedora.config
|
||||
-> kernel-x86_64-fedora.config.${CONFIG_VER}
|
||||
)
|
||||
arm64? (
|
||||
https://raw.githubusercontent.com/projg2/fedora-kernel-config-for-gentoo/${CONFIG_VER}/kernel-aarch64-fedora.config
|
||||
-> kernel-aarch64-fedora.config.${CONFIG_VER}
|
||||
)
|
||||
ppc64? (
|
||||
https://raw.githubusercontent.com/projg2/fedora-kernel-config-for-gentoo/${CONFIG_VER}/kernel-ppc64le-fedora.config
|
||||
-> kernel-ppc64le-fedora.config.${CONFIG_VER}
|
||||
)
|
||||
x86? (
|
||||
https://raw.githubusercontent.com/projg2/fedora-kernel-config-for-gentoo/${CONFIG_VER}/kernel-i686-fedora.config
|
||||
-> kernel-i686-fedora.config.${CONFIG_VER}
|
||||
)
|
||||
"
|
||||
S=${WORKDIR}/${MY_P}
|
||||
|
||||
KEYWORDS="amd64 ~arm arm64 ~hppa ~loong ~ppc ppc64 ~riscv ~sparc x86"
|
||||
IUSE="debug experimental hardened"
|
||||
REQUIRED_USE="
|
||||
arm? ( savedconfig )
|
||||
hppa? ( savedconfig )
|
||||
riscv? ( savedconfig )
|
||||
sparc? ( savedconfig )
|
||||
"
|
||||
|
||||
RDEPEND="
|
||||
!sys-kernel/gentoo-kernel-bin:${SLOT}
|
||||
"
|
||||
BDEPEND="
|
||||
debug? ( dev-util/pahole )
|
||||
verify-sig? ( >=sec-keys/openpgp-keys-kernel-20250702 )
|
||||
"
|
||||
PDEPEND="
|
||||
>=virtual/dist-kernel-${PV}
|
||||
"
|
||||
|
||||
QA_FLAGS_IGNORED="
|
||||
usr/src/linux-.*/scripts/gcc-plugins/.*.so
|
||||
usr/src/linux-.*/vmlinux
|
||||
usr/src/linux-.*/arch/powerpc/kernel/vdso.*/vdso.*.so.dbg
|
||||
"
|
||||
|
||||
VERIFY_SIG_OPENPGP_KEY_PATH=/usr/share/openpgp-keys/kernel.org.asc
|
||||
|
||||
src_unpack() {
|
||||
if use verify-sig; then
|
||||
cd "${DISTDIR}" || die
|
||||
verify-sig_verify_signed_checksums \
|
||||
"linux-$(ver_cut 1).x-sha256sums-${SHA256SUM_DATE}.asc" \
|
||||
sha256 "${MY_P}.tar.xz patch-${PV}.xz"
|
||||
cd "${WORKDIR}" || die
|
||||
fi
|
||||
|
||||
default
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
local patch
|
||||
eapply "${WORKDIR}/patch-${PV}"
|
||||
for patch in "${WORKDIR}/${PATCHSET}"/*.patch; do
|
||||
eapply "${patch}"
|
||||
# non-experimental patches always finish with Gentoo Kconfig
|
||||
# when ! use experimental, stop applying after it
|
||||
if [[ ${patch} == *Add-Gentoo-Linux-support-config-settings* ]] &&
|
||||
! use experimental
|
||||
then
|
||||
break
|
||||
fi
|
||||
done
|
||||
|
||||
default
|
||||
|
||||
local biendian=false
|
||||
|
||||
# prepare the default config
|
||||
case ${ARCH} in
|
||||
arm | hppa | loong | riscv | sparc)
|
||||
> .config || die
|
||||
;;
|
||||
amd64)
|
||||
cp "${DISTDIR}/kernel-x86_64-fedora.config.${CONFIG_VER}" .config || die
|
||||
;;
|
||||
arm64)
|
||||
cp "${DISTDIR}/kernel-aarch64-fedora.config.${CONFIG_VER}" .config || die
|
||||
biendian=true
|
||||
;;
|
||||
ppc)
|
||||
# assume powermac/powerbook defconfig
|
||||
# we still package.use.force savedconfig
|
||||
cp "${WORKDIR}/${MY_P}/arch/powerpc/configs/pmac32_defconfig" .config || die
|
||||
;;
|
||||
ppc64)
|
||||
cp "${DISTDIR}/kernel-ppc64le-fedora.config.${CONFIG_VER}" .config || die
|
||||
biendian=true
|
||||
;;
|
||||
x86)
|
||||
cp "${DISTDIR}/kernel-i686-fedora.config.${CONFIG_VER}" .config || die
|
||||
;;
|
||||
*)
|
||||
die "Unsupported arch ${ARCH}"
|
||||
;;
|
||||
esac
|
||||
|
||||
local myversion="-gentoo-dist"
|
||||
use hardened && myversion+="-hardened"
|
||||
echo "CONFIG_LOCALVERSION=\"${myversion}\"" > "${T}"/version.config || die
|
||||
local dist_conf_path="${WORKDIR}/gentoo-kernel-config-${GENTOO_CONFIG_VER}"
|
||||
|
||||
local merge_configs=(
|
||||
"${T}"/version.config
|
||||
"${dist_conf_path}"/base.config
|
||||
)
|
||||
use debug || merge_configs+=(
|
||||
"${dist_conf_path}"/no-debug.config
|
||||
)
|
||||
if use hardened; then
|
||||
merge_configs+=( "${dist_conf_path}"/hardened-base.config )
|
||||
|
||||
tc-is-gcc && merge_configs+=( "${dist_conf_path}"/hardened-gcc-plugins.config )
|
||||
|
||||
if [[ -f "${dist_conf_path}/hardened-${ARCH}.config" ]]; then
|
||||
merge_configs+=( "${dist_conf_path}/hardened-${ARCH}.config" )
|
||||
fi
|
||||
fi
|
||||
|
||||
# this covers ppc64 and aarch64_be only for now
|
||||
if [[ ${biendian} == true && $(tc-endian) == big ]]; then
|
||||
merge_configs+=( "${dist_conf_path}/big-endian.config" )
|
||||
fi
|
||||
|
||||
use secureboot && merge_configs+=( "${dist_conf_path}/secureboot.config" )
|
||||
|
||||
kernel-build_merge_configs "${merge_configs[@]}"
|
||||
}
|
||||
@@ -1,178 +0,0 @@
|
||||
# Copyright 2020-2025 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
KERNEL_IUSE_GENERIC_UKI=1
|
||||
KERNEL_IUSE_MODULES_SIGN=1
|
||||
|
||||
inherit kernel-build toolchain-funcs verify-sig
|
||||
|
||||
BASE_P=linux-${PV%.*}
|
||||
PATCH_PV=${PV%_p*}
|
||||
PATCHSET=linux-gentoo-patches-6.6.107
|
||||
# https://koji.fedoraproject.org/koji/packageinfo?packageID=8
|
||||
# forked to https://github.com/projg2/fedora-kernel-config-for-gentoo
|
||||
CONFIG_VER=6.6.12-gentoo
|
||||
GENTOO_CONFIG_VER=g17
|
||||
SHA256SUM_DATE=20250919
|
||||
|
||||
DESCRIPTION="Linux kernel built with Gentoo patches"
|
||||
HOMEPAGE="
|
||||
https://wiki.gentoo.org/wiki/Project:Distribution_Kernel
|
||||
https://www.kernel.org/
|
||||
"
|
||||
SRC_URI+="
|
||||
https://cdn.kernel.org/pub/linux/kernel/v$(ver_cut 1).x/${BASE_P}.tar.xz
|
||||
https://cdn.kernel.org/pub/linux/kernel/v$(ver_cut 1).x/patch-${PATCH_PV}.xz
|
||||
https://dev.gentoo.org/~mgorny/dist/linux/${PATCHSET}.tar.xz
|
||||
https://github.com/projg2/gentoo-kernel-config/archive/${GENTOO_CONFIG_VER}.tar.gz
|
||||
-> gentoo-kernel-config-${GENTOO_CONFIG_VER}.tar.gz
|
||||
verify-sig? (
|
||||
https://cdn.kernel.org/pub/linux/kernel/v$(ver_cut 1).x/sha256sums.asc
|
||||
-> linux-$(ver_cut 1).x-sha256sums-${SHA256SUM_DATE}.asc
|
||||
)
|
||||
amd64? (
|
||||
https://raw.githubusercontent.com/projg2/fedora-kernel-config-for-gentoo/${CONFIG_VER}/kernel-x86_64-fedora.config
|
||||
-> kernel-x86_64-fedora.config.${CONFIG_VER}
|
||||
)
|
||||
arm64? (
|
||||
https://raw.githubusercontent.com/projg2/fedora-kernel-config-for-gentoo/${CONFIG_VER}/kernel-aarch64-fedora.config
|
||||
-> kernel-aarch64-fedora.config.${CONFIG_VER}
|
||||
)
|
||||
ppc64? (
|
||||
https://raw.githubusercontent.com/projg2/fedora-kernel-config-for-gentoo/${CONFIG_VER}/kernel-ppc64le-fedora.config
|
||||
-> kernel-ppc64le-fedora.config.${CONFIG_VER}
|
||||
)
|
||||
x86? (
|
||||
https://raw.githubusercontent.com/projg2/fedora-kernel-config-for-gentoo/${CONFIG_VER}/kernel-i686-fedora.config
|
||||
-> kernel-i686-fedora.config.${CONFIG_VER}
|
||||
)
|
||||
"
|
||||
S=${WORKDIR}/${BASE_P}
|
||||
|
||||
KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~loong ~ppc ~ppc64 ~riscv ~sparc ~x86"
|
||||
IUSE="debug experimental hardened"
|
||||
REQUIRED_USE="
|
||||
arm? ( savedconfig )
|
||||
hppa? ( savedconfig )
|
||||
riscv? ( savedconfig )
|
||||
sparc? ( savedconfig )
|
||||
"
|
||||
|
||||
RDEPEND="
|
||||
!sys-kernel/gentoo-kernel-bin:${SLOT}
|
||||
"
|
||||
BDEPEND="
|
||||
debug? ( dev-util/pahole )
|
||||
verify-sig? ( >=sec-keys/openpgp-keys-kernel-20250702 )
|
||||
"
|
||||
PDEPEND="
|
||||
>=virtual/dist-kernel-${PATCH_PV}
|
||||
"
|
||||
|
||||
QA_FLAGS_IGNORED="
|
||||
usr/src/linux-.*/scripts/gcc-plugins/.*.so
|
||||
usr/src/linux-.*/vmlinux
|
||||
usr/src/linux-.*/arch/powerpc/kernel/vdso.*/vdso.*.so.dbg
|
||||
"
|
||||
|
||||
VERIFY_SIG_OPENPGP_KEY_PATH=/usr/share/openpgp-keys/kernel.org.asc
|
||||
|
||||
src_unpack() {
|
||||
if use verify-sig; then
|
||||
cd "${DISTDIR}" || die
|
||||
verify-sig_verify_signed_checksums \
|
||||
"linux-$(ver_cut 1).x-sha256sums-${SHA256SUM_DATE}.asc" \
|
||||
sha256 "${BASE_P}.tar.xz patch-${PATCH_PV}.xz"
|
||||
cd "${WORKDIR}" || die
|
||||
fi
|
||||
|
||||
default
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
local patch
|
||||
eapply "${WORKDIR}/patch-${PATCH_PV}"
|
||||
for patch in "${WORKDIR}/${PATCHSET}"/*.patch; do
|
||||
eapply "${patch}"
|
||||
# non-experimental patches always finish with Gentoo Kconfig
|
||||
# when ! use experimental, stop applying after it
|
||||
if [[ ${patch} == *Add-Gentoo-Linux-support-config-settings* ]] &&
|
||||
! use experimental
|
||||
then
|
||||
break
|
||||
fi
|
||||
done
|
||||
|
||||
default
|
||||
|
||||
# add Gentoo patchset version
|
||||
local extraversion=${PV#${PATCH_PV}}
|
||||
sed -i -e "s:^\(EXTRAVERSION =\).*:\1 ${extraversion/_/-}:" Makefile || die
|
||||
|
||||
local biendian=false
|
||||
|
||||
# prepare the default config
|
||||
case ${ARCH} in
|
||||
arm | hppa | loong | riscv | sparc)
|
||||
> .config || die
|
||||
;;
|
||||
amd64)
|
||||
cp "${DISTDIR}/kernel-x86_64-fedora.config.${CONFIG_VER}" .config || die
|
||||
;;
|
||||
arm64)
|
||||
cp "${DISTDIR}/kernel-aarch64-fedora.config.${CONFIG_VER}" .config || die
|
||||
biendian=true
|
||||
;;
|
||||
ppc)
|
||||
# assume powermac/powerbook defconfig
|
||||
# we still package.use.force savedconfig
|
||||
cp "${WORKDIR}/${BASE_P}/arch/powerpc/configs/pmac32_defconfig" .config || die
|
||||
;;
|
||||
ppc64)
|
||||
cp "${DISTDIR}/kernel-ppc64le-fedora.config.${CONFIG_VER}" .config || die
|
||||
biendian=true
|
||||
;;
|
||||
x86)
|
||||
cp "${DISTDIR}/kernel-i686-fedora.config.${CONFIG_VER}" .config || die
|
||||
;;
|
||||
*)
|
||||
die "Unsupported arch ${ARCH}"
|
||||
;;
|
||||
esac
|
||||
|
||||
local myversion="-gentoo-dist"
|
||||
use hardened && myversion+="-hardened"
|
||||
echo "CONFIG_LOCALVERSION=\"${myversion}\"" > "${T}"/version.config || die
|
||||
local dist_conf_path="${WORKDIR}/gentoo-kernel-config-${GENTOO_CONFIG_VER}"
|
||||
|
||||
local merge_configs=(
|
||||
"${T}"/version.config
|
||||
"${dist_conf_path}"/base.config
|
||||
)
|
||||
use debug || merge_configs+=(
|
||||
"${dist_conf_path}"/no-debug.config
|
||||
)
|
||||
if use hardened; then
|
||||
merge_configs+=( "${dist_conf_path}"/hardened-base.config )
|
||||
|
||||
tc-is-gcc && merge_configs+=( "${dist_conf_path}"/hardened-gcc-plugins.config )
|
||||
|
||||
if [[ -f "${dist_conf_path}/hardened-${ARCH}.config" ]]; then
|
||||
merge_configs+=( "${dist_conf_path}/hardened-${ARCH}.config" )
|
||||
fi
|
||||
fi
|
||||
|
||||
# this covers ppc64 and aarch64_be only for now
|
||||
if [[ ${biendian} == true && $(tc-endian) == big ]]; then
|
||||
merge_configs+=( "${dist_conf_path}/big-endian.config" )
|
||||
fi
|
||||
|
||||
use secureboot && merge_configs+=(
|
||||
"${dist_conf_path}/secureboot.config"
|
||||
"${dist_conf_path}/zboot.config"
|
||||
)
|
||||
|
||||
kernel-build_merge_configs "${merge_configs[@]}"
|
||||
}
|
||||
@@ -1,178 +0,0 @@
|
||||
# Copyright 2020-2025 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
KERNEL_IUSE_GENERIC_UKI=1
|
||||
KERNEL_IUSE_MODULES_SIGN=1
|
||||
|
||||
inherit kernel-build toolchain-funcs verify-sig
|
||||
|
||||
BASE_P=linux-${PV%.*}
|
||||
PATCH_PV=${PV%_p*}
|
||||
PATCHSET=linux-gentoo-patches-6.6.107
|
||||
# https://koji.fedoraproject.org/koji/packageinfo?packageID=8
|
||||
# forked to https://github.com/projg2/fedora-kernel-config-for-gentoo
|
||||
CONFIG_VER=6.6.12-gentoo
|
||||
GENTOO_CONFIG_VER=g17
|
||||
SHA256SUM_DATE=20250925
|
||||
|
||||
DESCRIPTION="Linux kernel built with Gentoo patches"
|
||||
HOMEPAGE="
|
||||
https://wiki.gentoo.org/wiki/Project:Distribution_Kernel
|
||||
https://www.kernel.org/
|
||||
"
|
||||
SRC_URI+="
|
||||
https://cdn.kernel.org/pub/linux/kernel/v$(ver_cut 1).x/${BASE_P}.tar.xz
|
||||
https://cdn.kernel.org/pub/linux/kernel/v$(ver_cut 1).x/patch-${PATCH_PV}.xz
|
||||
https://dev.gentoo.org/~mgorny/dist/linux/${PATCHSET}.tar.xz
|
||||
https://github.com/projg2/gentoo-kernel-config/archive/${GENTOO_CONFIG_VER}.tar.gz
|
||||
-> gentoo-kernel-config-${GENTOO_CONFIG_VER}.tar.gz
|
||||
verify-sig? (
|
||||
https://cdn.kernel.org/pub/linux/kernel/v$(ver_cut 1).x/sha256sums.asc
|
||||
-> linux-$(ver_cut 1).x-sha256sums-${SHA256SUM_DATE}.asc
|
||||
)
|
||||
amd64? (
|
||||
https://raw.githubusercontent.com/projg2/fedora-kernel-config-for-gentoo/${CONFIG_VER}/kernel-x86_64-fedora.config
|
||||
-> kernel-x86_64-fedora.config.${CONFIG_VER}
|
||||
)
|
||||
arm64? (
|
||||
https://raw.githubusercontent.com/projg2/fedora-kernel-config-for-gentoo/${CONFIG_VER}/kernel-aarch64-fedora.config
|
||||
-> kernel-aarch64-fedora.config.${CONFIG_VER}
|
||||
)
|
||||
ppc64? (
|
||||
https://raw.githubusercontent.com/projg2/fedora-kernel-config-for-gentoo/${CONFIG_VER}/kernel-ppc64le-fedora.config
|
||||
-> kernel-ppc64le-fedora.config.${CONFIG_VER}
|
||||
)
|
||||
x86? (
|
||||
https://raw.githubusercontent.com/projg2/fedora-kernel-config-for-gentoo/${CONFIG_VER}/kernel-i686-fedora.config
|
||||
-> kernel-i686-fedora.config.${CONFIG_VER}
|
||||
)
|
||||
"
|
||||
S=${WORKDIR}/${BASE_P}
|
||||
|
||||
KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~loong ~ppc ~ppc64 ~riscv ~sparc ~x86"
|
||||
IUSE="debug experimental hardened"
|
||||
REQUIRED_USE="
|
||||
arm? ( savedconfig )
|
||||
hppa? ( savedconfig )
|
||||
riscv? ( savedconfig )
|
||||
sparc? ( savedconfig )
|
||||
"
|
||||
|
||||
RDEPEND="
|
||||
!sys-kernel/gentoo-kernel-bin:${SLOT}
|
||||
"
|
||||
BDEPEND="
|
||||
debug? ( dev-util/pahole )
|
||||
verify-sig? ( >=sec-keys/openpgp-keys-kernel-20250702 )
|
||||
"
|
||||
PDEPEND="
|
||||
>=virtual/dist-kernel-${PV}
|
||||
"
|
||||
|
||||
QA_FLAGS_IGNORED="
|
||||
usr/src/linux-.*/scripts/gcc-plugins/.*.so
|
||||
usr/src/linux-.*/vmlinux
|
||||
usr/src/linux-.*/arch/powerpc/kernel/vdso.*/vdso.*.so.dbg
|
||||
"
|
||||
|
||||
VERIFY_SIG_OPENPGP_KEY_PATH=/usr/share/openpgp-keys/kernel.org.asc
|
||||
|
||||
src_unpack() {
|
||||
if use verify-sig; then
|
||||
cd "${DISTDIR}" || die
|
||||
verify-sig_verify_signed_checksums \
|
||||
"linux-$(ver_cut 1).x-sha256sums-${SHA256SUM_DATE}.asc" \
|
||||
sha256 "${BASE_P}.tar.xz patch-${PATCH_PV}.xz"
|
||||
cd "${WORKDIR}" || die
|
||||
fi
|
||||
|
||||
default
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
local patch
|
||||
eapply "${WORKDIR}/patch-${PATCH_PV}"
|
||||
for patch in "${WORKDIR}/${PATCHSET}"/*.patch; do
|
||||
eapply "${patch}"
|
||||
# non-experimental patches always finish with Gentoo Kconfig
|
||||
# when ! use experimental, stop applying after it
|
||||
if [[ ${patch} == *Add-Gentoo-Linux-support-config-settings* ]] &&
|
||||
! use experimental
|
||||
then
|
||||
break
|
||||
fi
|
||||
done
|
||||
|
||||
default
|
||||
|
||||
# add Gentoo patchset version
|
||||
local extraversion=${PV#${PATCH_PV}}
|
||||
sed -i -e "s:^\(EXTRAVERSION =\).*:\1 ${extraversion/_/-}:" Makefile || die
|
||||
|
||||
local biendian=false
|
||||
|
||||
# prepare the default config
|
||||
case ${ARCH} in
|
||||
arm | hppa | loong | riscv | sparc)
|
||||
> .config || die
|
||||
;;
|
||||
amd64)
|
||||
cp "${DISTDIR}/kernel-x86_64-fedora.config.${CONFIG_VER}" .config || die
|
||||
;;
|
||||
arm64)
|
||||
cp "${DISTDIR}/kernel-aarch64-fedora.config.${CONFIG_VER}" .config || die
|
||||
biendian=true
|
||||
;;
|
||||
ppc)
|
||||
# assume powermac/powerbook defconfig
|
||||
# we still package.use.force savedconfig
|
||||
cp "${WORKDIR}/${BASE_P}/arch/powerpc/configs/pmac32_defconfig" .config || die
|
||||
;;
|
||||
ppc64)
|
||||
cp "${DISTDIR}/kernel-ppc64le-fedora.config.${CONFIG_VER}" .config || die
|
||||
biendian=true
|
||||
;;
|
||||
x86)
|
||||
cp "${DISTDIR}/kernel-i686-fedora.config.${CONFIG_VER}" .config || die
|
||||
;;
|
||||
*)
|
||||
die "Unsupported arch ${ARCH}"
|
||||
;;
|
||||
esac
|
||||
|
||||
local myversion="-gentoo-dist"
|
||||
use hardened && myversion+="-hardened"
|
||||
echo "CONFIG_LOCALVERSION=\"${myversion}\"" > "${T}"/version.config || die
|
||||
local dist_conf_path="${WORKDIR}/gentoo-kernel-config-${GENTOO_CONFIG_VER}"
|
||||
|
||||
local merge_configs=(
|
||||
"${T}"/version.config
|
||||
"${dist_conf_path}"/base.config
|
||||
)
|
||||
use debug || merge_configs+=(
|
||||
"${dist_conf_path}"/no-debug.config
|
||||
)
|
||||
if use hardened; then
|
||||
merge_configs+=( "${dist_conf_path}"/hardened-base.config )
|
||||
|
||||
tc-is-gcc && merge_configs+=( "${dist_conf_path}"/hardened-gcc-plugins.config )
|
||||
|
||||
if [[ -f "${dist_conf_path}/hardened-${ARCH}.config" ]]; then
|
||||
merge_configs+=( "${dist_conf_path}/hardened-${ARCH}.config" )
|
||||
fi
|
||||
fi
|
||||
|
||||
# this covers ppc64 and aarch64_be only for now
|
||||
if [[ ${biendian} == true && $(tc-endian) == big ]]; then
|
||||
merge_configs+=( "${dist_conf_path}/big-endian.config" )
|
||||
fi
|
||||
|
||||
use secureboot && merge_configs+=(
|
||||
"${dist_conf_path}/secureboot.config"
|
||||
"${dist_conf_path}/zboot.config"
|
||||
)
|
||||
|
||||
kernel-build_merge_configs "${merge_configs[@]}"
|
||||
}
|
||||
@@ -1,178 +0,0 @@
|
||||
# Copyright 2020-2025 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
KERNEL_IUSE_GENERIC_UKI=1
|
||||
KERNEL_IUSE_MODULES_SIGN=1
|
||||
|
||||
inherit kernel-build toolchain-funcs verify-sig
|
||||
|
||||
BASE_P=linux-${PV%.*}
|
||||
PATCH_PV=${PV%_p*}
|
||||
PATCHSET=linux-gentoo-patches-6.6.107
|
||||
# https://koji.fedoraproject.org/koji/packageinfo?packageID=8
|
||||
# forked to https://github.com/projg2/fedora-kernel-config-for-gentoo
|
||||
CONFIG_VER=6.6.12-gentoo
|
||||
GENTOO_CONFIG_VER=g17
|
||||
SHA256SUM_DATE=20251002
|
||||
|
||||
DESCRIPTION="Linux kernel built with Gentoo patches"
|
||||
HOMEPAGE="
|
||||
https://wiki.gentoo.org/wiki/Project:Distribution_Kernel
|
||||
https://www.kernel.org/
|
||||
"
|
||||
SRC_URI+="
|
||||
https://cdn.kernel.org/pub/linux/kernel/v$(ver_cut 1).x/${BASE_P}.tar.xz
|
||||
https://cdn.kernel.org/pub/linux/kernel/v$(ver_cut 1).x/patch-${PATCH_PV}.xz
|
||||
https://dev.gentoo.org/~mgorny/dist/linux/${PATCHSET}.tar.xz
|
||||
https://github.com/projg2/gentoo-kernel-config/archive/${GENTOO_CONFIG_VER}.tar.gz
|
||||
-> gentoo-kernel-config-${GENTOO_CONFIG_VER}.tar.gz
|
||||
verify-sig? (
|
||||
https://cdn.kernel.org/pub/linux/kernel/v$(ver_cut 1).x/sha256sums.asc
|
||||
-> linux-$(ver_cut 1).x-sha256sums-${SHA256SUM_DATE}.asc
|
||||
)
|
||||
amd64? (
|
||||
https://raw.githubusercontent.com/projg2/fedora-kernel-config-for-gentoo/${CONFIG_VER}/kernel-x86_64-fedora.config
|
||||
-> kernel-x86_64-fedora.config.${CONFIG_VER}
|
||||
)
|
||||
arm64? (
|
||||
https://raw.githubusercontent.com/projg2/fedora-kernel-config-for-gentoo/${CONFIG_VER}/kernel-aarch64-fedora.config
|
||||
-> kernel-aarch64-fedora.config.${CONFIG_VER}
|
||||
)
|
||||
ppc64? (
|
||||
https://raw.githubusercontent.com/projg2/fedora-kernel-config-for-gentoo/${CONFIG_VER}/kernel-ppc64le-fedora.config
|
||||
-> kernel-ppc64le-fedora.config.${CONFIG_VER}
|
||||
)
|
||||
x86? (
|
||||
https://raw.githubusercontent.com/projg2/fedora-kernel-config-for-gentoo/${CONFIG_VER}/kernel-i686-fedora.config
|
||||
-> kernel-i686-fedora.config.${CONFIG_VER}
|
||||
)
|
||||
"
|
||||
S=${WORKDIR}/${BASE_P}
|
||||
|
||||
KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~loong ~ppc ~ppc64 ~riscv ~sparc ~x86"
|
||||
IUSE="debug experimental hardened"
|
||||
REQUIRED_USE="
|
||||
arm? ( savedconfig )
|
||||
hppa? ( savedconfig )
|
||||
riscv? ( savedconfig )
|
||||
sparc? ( savedconfig )
|
||||
"
|
||||
|
||||
RDEPEND="
|
||||
!sys-kernel/gentoo-kernel-bin:${SLOT}
|
||||
"
|
||||
BDEPEND="
|
||||
debug? ( dev-util/pahole )
|
||||
verify-sig? ( >=sec-keys/openpgp-keys-kernel-20250702 )
|
||||
"
|
||||
PDEPEND="
|
||||
>=virtual/dist-kernel-${PV}
|
||||
"
|
||||
|
||||
QA_FLAGS_IGNORED="
|
||||
usr/src/linux-.*/scripts/gcc-plugins/.*.so
|
||||
usr/src/linux-.*/vmlinux
|
||||
usr/src/linux-.*/arch/powerpc/kernel/vdso.*/vdso.*.so.dbg
|
||||
"
|
||||
|
||||
VERIFY_SIG_OPENPGP_KEY_PATH=/usr/share/openpgp-keys/kernel.org.asc
|
||||
|
||||
src_unpack() {
|
||||
if use verify-sig; then
|
||||
cd "${DISTDIR}" || die
|
||||
verify-sig_verify_signed_checksums \
|
||||
"linux-$(ver_cut 1).x-sha256sums-${SHA256SUM_DATE}.asc" \
|
||||
sha256 "${BASE_P}.tar.xz patch-${PATCH_PV}.xz"
|
||||
cd "${WORKDIR}" || die
|
||||
fi
|
||||
|
||||
default
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
local patch
|
||||
eapply "${WORKDIR}/patch-${PATCH_PV}"
|
||||
for patch in "${WORKDIR}/${PATCHSET}"/*.patch; do
|
||||
eapply "${patch}"
|
||||
# non-experimental patches always finish with Gentoo Kconfig
|
||||
# when ! use experimental, stop applying after it
|
||||
if [[ ${patch} == *Add-Gentoo-Linux-support-config-settings* ]] &&
|
||||
! use experimental
|
||||
then
|
||||
break
|
||||
fi
|
||||
done
|
||||
|
||||
default
|
||||
|
||||
# add Gentoo patchset version
|
||||
local extraversion=${PV#${PATCH_PV}}
|
||||
sed -i -e "s:^\(EXTRAVERSION =\).*:\1 ${extraversion/_/-}:" Makefile || die
|
||||
|
||||
local biendian=false
|
||||
|
||||
# prepare the default config
|
||||
case ${ARCH} in
|
||||
arm | hppa | loong | riscv | sparc)
|
||||
> .config || die
|
||||
;;
|
||||
amd64)
|
||||
cp "${DISTDIR}/kernel-x86_64-fedora.config.${CONFIG_VER}" .config || die
|
||||
;;
|
||||
arm64)
|
||||
cp "${DISTDIR}/kernel-aarch64-fedora.config.${CONFIG_VER}" .config || die
|
||||
biendian=true
|
||||
;;
|
||||
ppc)
|
||||
# assume powermac/powerbook defconfig
|
||||
# we still package.use.force savedconfig
|
||||
cp "${WORKDIR}/${BASE_P}/arch/powerpc/configs/pmac32_defconfig" .config || die
|
||||
;;
|
||||
ppc64)
|
||||
cp "${DISTDIR}/kernel-ppc64le-fedora.config.${CONFIG_VER}" .config || die
|
||||
biendian=true
|
||||
;;
|
||||
x86)
|
||||
cp "${DISTDIR}/kernel-i686-fedora.config.${CONFIG_VER}" .config || die
|
||||
;;
|
||||
*)
|
||||
die "Unsupported arch ${ARCH}"
|
||||
;;
|
||||
esac
|
||||
|
||||
local myversion="-gentoo-dist"
|
||||
use hardened && myversion+="-hardened"
|
||||
echo "CONFIG_LOCALVERSION=\"${myversion}\"" > "${T}"/version.config || die
|
||||
local dist_conf_path="${WORKDIR}/gentoo-kernel-config-${GENTOO_CONFIG_VER}"
|
||||
|
||||
local merge_configs=(
|
||||
"${T}"/version.config
|
||||
"${dist_conf_path}"/base.config
|
||||
)
|
||||
use debug || merge_configs+=(
|
||||
"${dist_conf_path}"/no-debug.config
|
||||
)
|
||||
if use hardened; then
|
||||
merge_configs+=( "${dist_conf_path}"/hardened-base.config )
|
||||
|
||||
tc-is-gcc && merge_configs+=( "${dist_conf_path}"/hardened-gcc-plugins.config )
|
||||
|
||||
if [[ -f "${dist_conf_path}/hardened-${ARCH}.config" ]]; then
|
||||
merge_configs+=( "${dist_conf_path}/hardened-${ARCH}.config" )
|
||||
fi
|
||||
fi
|
||||
|
||||
# this covers ppc64 and aarch64_be only for now
|
||||
if [[ ${biendian} == true && $(tc-endian) == big ]]; then
|
||||
merge_configs+=( "${dist_conf_path}/big-endian.config" )
|
||||
fi
|
||||
|
||||
use secureboot && merge_configs+=(
|
||||
"${dist_conf_path}/secureboot.config"
|
||||
"${dist_conf_path}/zboot.config"
|
||||
)
|
||||
|
||||
kernel-build_merge_configs "${merge_configs[@]}"
|
||||
}
|
||||
@@ -1,178 +0,0 @@
|
||||
# Copyright 2020-2025 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
KERNEL_IUSE_GENERIC_UKI=1
|
||||
KERNEL_IUSE_MODULES_SIGN=1
|
||||
|
||||
inherit kernel-build toolchain-funcs verify-sig
|
||||
|
||||
BASE_P=linux-${PV%.*}
|
||||
PATCH_PV=${PV%_p*}
|
||||
PATCHSET=linux-gentoo-patches-6.6.107
|
||||
# https://koji.fedoraproject.org/koji/packageinfo?packageID=8
|
||||
# forked to https://github.com/projg2/fedora-kernel-config-for-gentoo
|
||||
CONFIG_VER=6.6.12-gentoo
|
||||
GENTOO_CONFIG_VER=g17
|
||||
SHA256SUM_DATE=20251006
|
||||
|
||||
DESCRIPTION="Linux kernel built with Gentoo patches"
|
||||
HOMEPAGE="
|
||||
https://wiki.gentoo.org/wiki/Project:Distribution_Kernel
|
||||
https://www.kernel.org/
|
||||
"
|
||||
SRC_URI+="
|
||||
https://cdn.kernel.org/pub/linux/kernel/v$(ver_cut 1).x/${BASE_P}.tar.xz
|
||||
https://cdn.kernel.org/pub/linux/kernel/v$(ver_cut 1).x/patch-${PATCH_PV}.xz
|
||||
https://dev.gentoo.org/~mgorny/dist/linux/${PATCHSET}.tar.xz
|
||||
https://github.com/projg2/gentoo-kernel-config/archive/${GENTOO_CONFIG_VER}.tar.gz
|
||||
-> gentoo-kernel-config-${GENTOO_CONFIG_VER}.tar.gz
|
||||
verify-sig? (
|
||||
https://cdn.kernel.org/pub/linux/kernel/v$(ver_cut 1).x/sha256sums.asc
|
||||
-> linux-$(ver_cut 1).x-sha256sums-${SHA256SUM_DATE}.asc
|
||||
)
|
||||
amd64? (
|
||||
https://raw.githubusercontent.com/projg2/fedora-kernel-config-for-gentoo/${CONFIG_VER}/kernel-x86_64-fedora.config
|
||||
-> kernel-x86_64-fedora.config.${CONFIG_VER}
|
||||
)
|
||||
arm64? (
|
||||
https://raw.githubusercontent.com/projg2/fedora-kernel-config-for-gentoo/${CONFIG_VER}/kernel-aarch64-fedora.config
|
||||
-> kernel-aarch64-fedora.config.${CONFIG_VER}
|
||||
)
|
||||
ppc64? (
|
||||
https://raw.githubusercontent.com/projg2/fedora-kernel-config-for-gentoo/${CONFIG_VER}/kernel-ppc64le-fedora.config
|
||||
-> kernel-ppc64le-fedora.config.${CONFIG_VER}
|
||||
)
|
||||
x86? (
|
||||
https://raw.githubusercontent.com/projg2/fedora-kernel-config-for-gentoo/${CONFIG_VER}/kernel-i686-fedora.config
|
||||
-> kernel-i686-fedora.config.${CONFIG_VER}
|
||||
)
|
||||
"
|
||||
S=${WORKDIR}/${BASE_P}
|
||||
|
||||
KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~loong ~ppc ~ppc64 ~riscv ~sparc ~x86"
|
||||
IUSE="debug experimental hardened"
|
||||
REQUIRED_USE="
|
||||
arm? ( savedconfig )
|
||||
hppa? ( savedconfig )
|
||||
riscv? ( savedconfig )
|
||||
sparc? ( savedconfig )
|
||||
"
|
||||
|
||||
RDEPEND="
|
||||
!sys-kernel/gentoo-kernel-bin:${SLOT}
|
||||
"
|
||||
BDEPEND="
|
||||
debug? ( dev-util/pahole )
|
||||
verify-sig? ( >=sec-keys/openpgp-keys-kernel-20250702 )
|
||||
"
|
||||
PDEPEND="
|
||||
>=virtual/dist-kernel-${PV}
|
||||
"
|
||||
|
||||
QA_FLAGS_IGNORED="
|
||||
usr/src/linux-.*/scripts/gcc-plugins/.*.so
|
||||
usr/src/linux-.*/vmlinux
|
||||
usr/src/linux-.*/arch/powerpc/kernel/vdso.*/vdso.*.so.dbg
|
||||
"
|
||||
|
||||
VERIFY_SIG_OPENPGP_KEY_PATH=/usr/share/openpgp-keys/kernel.org.asc
|
||||
|
||||
src_unpack() {
|
||||
if use verify-sig; then
|
||||
cd "${DISTDIR}" || die
|
||||
verify-sig_verify_signed_checksums \
|
||||
"linux-$(ver_cut 1).x-sha256sums-${SHA256SUM_DATE}.asc" \
|
||||
sha256 "${BASE_P}.tar.xz patch-${PATCH_PV}.xz"
|
||||
cd "${WORKDIR}" || die
|
||||
fi
|
||||
|
||||
default
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
local patch
|
||||
eapply "${WORKDIR}/patch-${PATCH_PV}"
|
||||
for patch in "${WORKDIR}/${PATCHSET}"/*.patch; do
|
||||
eapply "${patch}"
|
||||
# non-experimental patches always finish with Gentoo Kconfig
|
||||
# when ! use experimental, stop applying after it
|
||||
if [[ ${patch} == *Add-Gentoo-Linux-support-config-settings* ]] &&
|
||||
! use experimental
|
||||
then
|
||||
break
|
||||
fi
|
||||
done
|
||||
|
||||
default
|
||||
|
||||
# add Gentoo patchset version
|
||||
local extraversion=${PV#${PATCH_PV}}
|
||||
sed -i -e "s:^\(EXTRAVERSION =\).*:\1 ${extraversion/_/-}:" Makefile || die
|
||||
|
||||
local biendian=false
|
||||
|
||||
# prepare the default config
|
||||
case ${ARCH} in
|
||||
arm | hppa | loong | riscv | sparc)
|
||||
> .config || die
|
||||
;;
|
||||
amd64)
|
||||
cp "${DISTDIR}/kernel-x86_64-fedora.config.${CONFIG_VER}" .config || die
|
||||
;;
|
||||
arm64)
|
||||
cp "${DISTDIR}/kernel-aarch64-fedora.config.${CONFIG_VER}" .config || die
|
||||
biendian=true
|
||||
;;
|
||||
ppc)
|
||||
# assume powermac/powerbook defconfig
|
||||
# we still package.use.force savedconfig
|
||||
cp "${WORKDIR}/${BASE_P}/arch/powerpc/configs/pmac32_defconfig" .config || die
|
||||
;;
|
||||
ppc64)
|
||||
cp "${DISTDIR}/kernel-ppc64le-fedora.config.${CONFIG_VER}" .config || die
|
||||
biendian=true
|
||||
;;
|
||||
x86)
|
||||
cp "${DISTDIR}/kernel-i686-fedora.config.${CONFIG_VER}" .config || die
|
||||
;;
|
||||
*)
|
||||
die "Unsupported arch ${ARCH}"
|
||||
;;
|
||||
esac
|
||||
|
||||
local myversion="-gentoo-dist"
|
||||
use hardened && myversion+="-hardened"
|
||||
echo "CONFIG_LOCALVERSION=\"${myversion}\"" > "${T}"/version.config || die
|
||||
local dist_conf_path="${WORKDIR}/gentoo-kernel-config-${GENTOO_CONFIG_VER}"
|
||||
|
||||
local merge_configs=(
|
||||
"${T}"/version.config
|
||||
"${dist_conf_path}"/base.config
|
||||
)
|
||||
use debug || merge_configs+=(
|
||||
"${dist_conf_path}"/no-debug.config
|
||||
)
|
||||
if use hardened; then
|
||||
merge_configs+=( "${dist_conf_path}"/hardened-base.config )
|
||||
|
||||
tc-is-gcc && merge_configs+=( "${dist_conf_path}"/hardened-gcc-plugins.config )
|
||||
|
||||
if [[ -f "${dist_conf_path}/hardened-${ARCH}.config" ]]; then
|
||||
merge_configs+=( "${dist_conf_path}/hardened-${ARCH}.config" )
|
||||
fi
|
||||
fi
|
||||
|
||||
# this covers ppc64 and aarch64_be only for now
|
||||
if [[ ${biendian} == true && $(tc-endian) == big ]]; then
|
||||
merge_configs+=( "${dist_conf_path}/big-endian.config" )
|
||||
fi
|
||||
|
||||
use secureboot && merge_configs+=(
|
||||
"${dist_conf_path}/secureboot.config"
|
||||
"${dist_conf_path}/zboot.config"
|
||||
)
|
||||
|
||||
kernel-build_merge_configs "${merge_configs[@]}"
|
||||
}
|
||||
@@ -1,178 +0,0 @@
|
||||
# Copyright 2020-2025 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
KERNEL_IUSE_GENERIC_UKI=1
|
||||
KERNEL_IUSE_MODULES_SIGN=1
|
||||
|
||||
inherit kernel-build toolchain-funcs verify-sig
|
||||
|
||||
BASE_P=linux-${PV%.*}
|
||||
PATCH_PV=${PV%_p*}
|
||||
PATCHSET=linux-gentoo-patches-6.6.111
|
||||
# https://koji.fedoraproject.org/koji/packageinfo?packageID=8
|
||||
# forked to https://github.com/projg2/fedora-kernel-config-for-gentoo
|
||||
CONFIG_VER=6.6.12-gentoo
|
||||
GENTOO_CONFIG_VER=g17
|
||||
SHA256SUM_DATE=20251015
|
||||
|
||||
DESCRIPTION="Linux kernel built with Gentoo patches"
|
||||
HOMEPAGE="
|
||||
https://wiki.gentoo.org/wiki/Project:Distribution_Kernel
|
||||
https://www.kernel.org/
|
||||
"
|
||||
SRC_URI+="
|
||||
https://cdn.kernel.org/pub/linux/kernel/v$(ver_cut 1).x/${BASE_P}.tar.xz
|
||||
https://cdn.kernel.org/pub/linux/kernel/v$(ver_cut 1).x/patch-${PATCH_PV}.xz
|
||||
https://dev.gentoo.org/~mgorny/dist/linux/${PATCHSET}.tar.xz
|
||||
https://github.com/projg2/gentoo-kernel-config/archive/${GENTOO_CONFIG_VER}.tar.gz
|
||||
-> gentoo-kernel-config-${GENTOO_CONFIG_VER}.tar.gz
|
||||
verify-sig? (
|
||||
https://cdn.kernel.org/pub/linux/kernel/v$(ver_cut 1).x/sha256sums.asc
|
||||
-> linux-$(ver_cut 1).x-sha256sums-${SHA256SUM_DATE}.asc
|
||||
)
|
||||
amd64? (
|
||||
https://raw.githubusercontent.com/projg2/fedora-kernel-config-for-gentoo/${CONFIG_VER}/kernel-x86_64-fedora.config
|
||||
-> kernel-x86_64-fedora.config.${CONFIG_VER}
|
||||
)
|
||||
arm64? (
|
||||
https://raw.githubusercontent.com/projg2/fedora-kernel-config-for-gentoo/${CONFIG_VER}/kernel-aarch64-fedora.config
|
||||
-> kernel-aarch64-fedora.config.${CONFIG_VER}
|
||||
)
|
||||
ppc64? (
|
||||
https://raw.githubusercontent.com/projg2/fedora-kernel-config-for-gentoo/${CONFIG_VER}/kernel-ppc64le-fedora.config
|
||||
-> kernel-ppc64le-fedora.config.${CONFIG_VER}
|
||||
)
|
||||
x86? (
|
||||
https://raw.githubusercontent.com/projg2/fedora-kernel-config-for-gentoo/${CONFIG_VER}/kernel-i686-fedora.config
|
||||
-> kernel-i686-fedora.config.${CONFIG_VER}
|
||||
)
|
||||
"
|
||||
S=${WORKDIR}/${BASE_P}
|
||||
|
||||
KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~loong ~ppc ~ppc64 ~riscv ~sparc ~x86"
|
||||
IUSE="debug experimental hardened"
|
||||
REQUIRED_USE="
|
||||
arm? ( savedconfig )
|
||||
hppa? ( savedconfig )
|
||||
riscv? ( savedconfig )
|
||||
sparc? ( savedconfig )
|
||||
"
|
||||
|
||||
RDEPEND="
|
||||
!sys-kernel/gentoo-kernel-bin:${SLOT}
|
||||
"
|
||||
BDEPEND="
|
||||
debug? ( dev-util/pahole )
|
||||
verify-sig? ( >=sec-keys/openpgp-keys-kernel-20250702 )
|
||||
"
|
||||
PDEPEND="
|
||||
>=virtual/dist-kernel-${PV}
|
||||
"
|
||||
|
||||
QA_FLAGS_IGNORED="
|
||||
usr/src/linux-.*/scripts/gcc-plugins/.*.so
|
||||
usr/src/linux-.*/vmlinux
|
||||
usr/src/linux-.*/arch/powerpc/kernel/vdso.*/vdso.*.so.dbg
|
||||
"
|
||||
|
||||
VERIFY_SIG_OPENPGP_KEY_PATH=/usr/share/openpgp-keys/kernel.org.asc
|
||||
|
||||
src_unpack() {
|
||||
if use verify-sig; then
|
||||
cd "${DISTDIR}" || die
|
||||
verify-sig_verify_signed_checksums \
|
||||
"linux-$(ver_cut 1).x-sha256sums-${SHA256SUM_DATE}.asc" \
|
||||
sha256 "${BASE_P}.tar.xz patch-${PATCH_PV}.xz"
|
||||
cd "${WORKDIR}" || die
|
||||
fi
|
||||
|
||||
default
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
local patch
|
||||
eapply "${WORKDIR}/patch-${PATCH_PV}"
|
||||
for patch in "${WORKDIR}/${PATCHSET}"/*.patch; do
|
||||
eapply "${patch}"
|
||||
# non-experimental patches always finish with Gentoo Kconfig
|
||||
# when ! use experimental, stop applying after it
|
||||
if [[ ${patch} == *Add-Gentoo-Linux-support-config-settings* ]] &&
|
||||
! use experimental
|
||||
then
|
||||
break
|
||||
fi
|
||||
done
|
||||
|
||||
default
|
||||
|
||||
# add Gentoo patchset version
|
||||
local extraversion=${PV#${PATCH_PV}}
|
||||
sed -i -e "s:^\(EXTRAVERSION =\).*:\1 ${extraversion/_/-}:" Makefile || die
|
||||
|
||||
local biendian=false
|
||||
|
||||
# prepare the default config
|
||||
case ${ARCH} in
|
||||
arm | hppa | loong | riscv | sparc)
|
||||
> .config || die
|
||||
;;
|
||||
amd64)
|
||||
cp "${DISTDIR}/kernel-x86_64-fedora.config.${CONFIG_VER}" .config || die
|
||||
;;
|
||||
arm64)
|
||||
cp "${DISTDIR}/kernel-aarch64-fedora.config.${CONFIG_VER}" .config || die
|
||||
biendian=true
|
||||
;;
|
||||
ppc)
|
||||
# assume powermac/powerbook defconfig
|
||||
# we still package.use.force savedconfig
|
||||
cp "${WORKDIR}/${BASE_P}/arch/powerpc/configs/pmac32_defconfig" .config || die
|
||||
;;
|
||||
ppc64)
|
||||
cp "${DISTDIR}/kernel-ppc64le-fedora.config.${CONFIG_VER}" .config || die
|
||||
biendian=true
|
||||
;;
|
||||
x86)
|
||||
cp "${DISTDIR}/kernel-i686-fedora.config.${CONFIG_VER}" .config || die
|
||||
;;
|
||||
*)
|
||||
die "Unsupported arch ${ARCH}"
|
||||
;;
|
||||
esac
|
||||
|
||||
local myversion="-gentoo-dist"
|
||||
use hardened && myversion+="-hardened"
|
||||
echo "CONFIG_LOCALVERSION=\"${myversion}\"" > "${T}"/version.config || die
|
||||
local dist_conf_path="${WORKDIR}/gentoo-kernel-config-${GENTOO_CONFIG_VER}"
|
||||
|
||||
local merge_configs=(
|
||||
"${T}"/version.config
|
||||
"${dist_conf_path}"/base.config
|
||||
)
|
||||
use debug || merge_configs+=(
|
||||
"${dist_conf_path}"/no-debug.config
|
||||
)
|
||||
if use hardened; then
|
||||
merge_configs+=( "${dist_conf_path}"/hardened-base.config )
|
||||
|
||||
tc-is-gcc && merge_configs+=( "${dist_conf_path}"/hardened-gcc-plugins.config )
|
||||
|
||||
if [[ -f "${dist_conf_path}/hardened-${ARCH}.config" ]]; then
|
||||
merge_configs+=( "${dist_conf_path}/hardened-${ARCH}.config" )
|
||||
fi
|
||||
fi
|
||||
|
||||
# this covers ppc64 and aarch64_be only for now
|
||||
if [[ ${biendian} == true && $(tc-endian) == big ]]; then
|
||||
merge_configs+=( "${dist_conf_path}/big-endian.config" )
|
||||
fi
|
||||
|
||||
use secureboot && merge_configs+=(
|
||||
"${dist_conf_path}/secureboot.config"
|
||||
"${dist_conf_path}/zboot.config"
|
||||
)
|
||||
|
||||
kernel-build_merge_configs "${merge_configs[@]}"
|
||||
}
|
||||
@@ -15,7 +15,7 @@ PATCHSET=linux-gentoo-patches-6.6.111
|
||||
# forked to https://github.com/projg2/fedora-kernel-config-for-gentoo
|
||||
CONFIG_VER=6.6.12-gentoo
|
||||
GENTOO_CONFIG_VER=g17
|
||||
SHA256SUM_DATE=20251012
|
||||
SHA256SUM_DATE=20251023
|
||||
|
||||
DESCRIPTION="Linux kernel built with Gentoo patches"
|
||||
HOMEPAGE="
|
||||
@@ -1,107 +1,54 @@
|
||||
DIST gentoo-kernel-config-g16.tar.gz 5995 BLAKE2B cddb80d45169749c707d87efd186f7a981534aab2479b6c51790008ea61e9f9feac35d0d74b95dc18281e4b81771e09f259a1d9f216f5d7f806fa7cd6aeeb4d1 SHA512 f8114e645e1ab99e45703790b7e43c2fa9ee17b41a2265dccdd9187c122bf8b5a09ba918fbcf094aa899bb959f05d105ed474b75cdfa9a19c4d49fd138825647
|
||||
DIST gentoo-kernel-config-g17.tar.gz 6024 BLAKE2B 53ecea1c19cc83bc3f6e13ad3b2e813999a09e2b29526115480e8ea7b870da2f4728918713f8eb0b351730b2cdd9f75e7515dc99a9b34a4079f7d15a1cd78425 SHA512 a5a78da8027492a229f54bfbcddf4e8e14304280db01d856071a9eb1ed9cd86111254498c5546a9908d617a012c914e8ded0afad5bdf28e9f237e321b9ab0f63
|
||||
DIST kernel-aarch64-fedora.config.5.10.12 223184 BLAKE2B a0246dac2f7a4ad6a55b611538d24382ac87a8960077811a859c9595ac67f961b4bccb7e139a89abc7c0e26e80832da5c94211fc658082f2e7dde984f14dd29d SHA512 7d803b347b136331db1ad6e22e0445fe0224c3e26cd7c034cbe9794915d457b492e05f77664865079874ec001351553652646e2e08d0fee31e30b841b0008f52
|
||||
DIST kernel-aarch64-fedora.config.6.1.102-gentoo 252811 BLAKE2B f6bad0d23132bf0dfbaa25db928a95f39763b6500fd1df9b4aeca4351e3e75f185891c0df96b111ad840e4bac431d74a9b11e7344e766ab49715663c89e4dbfc SHA512 41ebf195d8b656801d49c6bb693ebe1404b6725d70d88d93a75bc4af230030d65ef0701ea931846b022a3c598dcca068fbc38ecf6d064262b3f5b88e57060437
|
||||
DIST kernel-aarch64-fedora.config.6.12.41-gentoo 288081 BLAKE2B 08273a34c387621d0ccffcc325a0a34b40e0a8fbe78f2429c8a9efc73aa05f8fb563ed53e5fadb25662089f23ebafb61b2d08f91ea00b073e67e702798255e9c SHA512 58ea4f247aa9af6f7535ab5fe44dae2fbf286c7fbceeda86df532125807bbd4c25a89ddeeff4284592efefbaaef5022626abad7f1d1d64976e3040dc6e89251a
|
||||
DIST kernel-aarch64-fedora.config.6.12.8-gentoo 288081 BLAKE2B 08273a34c387621d0ccffcc325a0a34b40e0a8fbe78f2429c8a9efc73aa05f8fb563ed53e5fadb25662089f23ebafb61b2d08f91ea00b073e67e702798255e9c SHA512 58ea4f247aa9af6f7535ab5fe44dae2fbf286c7fbceeda86df532125807bbd4c25a89ddeeff4284592efefbaaef5022626abad7f1d1d64976e3040dc6e89251a
|
||||
DIST kernel-aarch64-fedora.config.6.16.2-gentoo 297085 BLAKE2B 0adf857e4b81998357f6ee4f254a6c72a4f3556c68e21bda340137a66b5de7e696c4bacaa15f49885b0bc15672b86b0255c51e6a58f74cee0cf72b7c7fa45cec SHA512 e33e1c429e9678d9a86f87d9dac8ac49b8f0c6f7cef071e76b84698435215c97cb302d1f9352346a3f10e544b03bffbfe5ded509a921f363fe25a858d3e24405
|
||||
DIST kernel-aarch64-fedora.config.6.16.9-gentoo 297074 BLAKE2B 8dcd60d7acc3b1c38deced6cfdc76892b4e4b0f682d626a39462851a0d99f63f918b9edfdd3a70e4be9cc557f06fea0713bb80f53f5bd781406834515f89a3e8 SHA512 0aa8861ae29869a349f346d431fd98e727ca5fe847f4affca0a54b1626610b7f7a97bb3da72a79b0cd1c54716babcdc18a5f4bf8e6aeb459ff329353b8d87957
|
||||
DIST kernel-aarch64-fedora.config.6.17.0-gentoo 299605 BLAKE2B 34b52ba9bab684b7252bb746b04a9fae223241253e035cc650e2ed14fe1ff8660ae5e204ccd3f6f58977d1fd998ecc41d7ad061d7134fc5ba1d289372fd600ba SHA512 55903d907aaeac2b6647c3176a5d913f2cd458032a02d8ce32e2a15fedced5268e45b9429c3f062b354b30470aeabd88029cc9f36d7296f48b6ec39b265178fe
|
||||
DIST kernel-aarch64-fedora.config.6.17.3-gentoo 299506 BLAKE2B 94d31403019edf5c31599308b07fcde9d8534b025035cef2974055190aaa457997848a4ea788218767c0542d47969fa1976a557aeaefebc596029713c5239109 SHA512 aaa8536fc97653c2454175f51e90c3c9c91c3fdba31b3e5264ab21760b13fea79dfdb08a926adbf06a8e4116fcdbc94713c559ae04b8f6d0c6b8604e04c8ebd4
|
||||
DIST kernel-aarch64-fedora.config.6.6.12-gentoo 271041 BLAKE2B 5af7c2f57cd6cd9230d9ab1a539a4b12b02cfdd777f5921b2d69329b171060a8085909a60eed9916aea504e8d9c9d1e907a61f0c6681ac75d5c64864052f821e SHA512 f744444f2840020dce2dc8473e3e562fa53ac1c34a641a9f322c2c7efd8fc4d9b3677479d3a31e705fa60beff0b1beca79ab78ad7dd4b6633d4499bebbfc76bd
|
||||
DIST kernel-i686-fedora.config.5.10.12 205412 BLAKE2B 92c715b7e2cd7dd74da7970c05981f520597d3e403ce82c8cf4eee31c9f1f50b638792a6bdb256ef5bfdc99f1bcd594e819e8f44dc6febb2ad9a854bad817f2b SHA512 69d8db11723ae1b40fdedfaace74d15bb63198cdb0485e0a1e5eba95b31217110c93a93e39cc7370cf45f1d3a8bc7f75ec096d6db5ea9ecb28ac6b56702ebb10
|
||||
DIST kernel-i686-fedora.config.6.1.102-gentoo 228064 BLAKE2B 9e783fc6087efeb0808437bb8bd80ccb54c29fd48a6893087a51b452dab98586f476be8d2dc4e0a2896308c9a0c185879deca46ffba1bb446b142ab3e81303a3 SHA512 4ef3eedd4c1ab78c2c5294121b47a2c4b465b4f537d12d48c397a7ab30ab4dc58b65d680326a23bce661d611aa37a2f98e814ec8e3cb84c3522151f09661e90c
|
||||
DIST kernel-i686-fedora.config.6.12.41-gentoo 255152 BLAKE2B 4d865ad46de06195628acfca1b4774908bd14212878b9a2ceb579bc47e57a17192000941e472f35b5fca0556f241701760bca194c3a48f58d5a75e4c2b07a8a6 SHA512 6d17f93a5a9f5a8cb3b3466c304ef9828eeb7b18a3270220b70d9219834f80f5f0945a6956e92d4da4f311a980525d77513e85691811d060246f9dcaa6327bf2
|
||||
DIST kernel-i686-fedora.config.6.12.8-gentoo 255163 BLAKE2B 7015bbcfb2aed0ba70173dc7e9abf464e167184e2bc8cea6d26623972bbe6b42956241a7d75ff8604d70d5c0202db6e40cdb890abfcea3d0c8e0d00aa869353e SHA512 a1b4b688510a231fe079b4158e8aaddaddc4e719367132668279edcb16e32b6c7f2c449ec196646b0986171dc43a82475255502ae40679e0433de9f9876e0a20
|
||||
DIST kernel-i686-fedora.config.6.16.2-gentoo 263837 BLAKE2B de77b1dcb3f8a14d83dd0133d6a19858ef15f8e850c0c70cfd1d3dbbccfe9aa0c5de84c7259ed59dcccc78dc5be49664b8cb1b916435540a6272a0177698e5ac SHA512 80433599bf4b50dd046111c182ace71700507db0e2a80806935b93a011c0a61653c4f5dd79630bb039ed268f14ca076c4d113db7d789dd325de2f66597dd3565
|
||||
DIST kernel-i686-fedora.config.6.16.9-gentoo 263837 BLAKE2B de77b1dcb3f8a14d83dd0133d6a19858ef15f8e850c0c70cfd1d3dbbccfe9aa0c5de84c7259ed59dcccc78dc5be49664b8cb1b916435540a6272a0177698e5ac SHA512 80433599bf4b50dd046111c182ace71700507db0e2a80806935b93a011c0a61653c4f5dd79630bb039ed268f14ca076c4d113db7d789dd325de2f66597dd3565
|
||||
DIST kernel-i686-fedora.config.6.17.0-gentoo 265947 BLAKE2B efce7edf95788ca539c4ce9ea6630d4de76f09673239348208b234ff9798d963489823b2581f431fdf95b00aca2fe3ecd2a1be1f4397a4fac3ce99b4d975668e SHA512 6c3923cc3f75a9ce344405bfd6e731b4e6222a707e4c03e44dce376acfe55988ee369c3314ac23cf33782bbc118947cc114c091ab2c8057e13b66f42913422ef
|
||||
DIST kernel-i686-fedora.config.6.17.3-gentoo 265947 BLAKE2B efce7edf95788ca539c4ce9ea6630d4de76f09673239348208b234ff9798d963489823b2581f431fdf95b00aca2fe3ecd2a1be1f4397a4fac3ce99b4d975668e SHA512 6c3923cc3f75a9ce344405bfd6e731b4e6222a707e4c03e44dce376acfe55988ee369c3314ac23cf33782bbc118947cc114c091ab2c8057e13b66f42913422ef
|
||||
DIST kernel-i686-fedora.config.6.6.12-gentoo 242515 BLAKE2B dbb4df93a5c8ee34d687262cced152a07f412a89ef2e8122429477633424fdac80809ed57a5a6de72de05313ec91f266d37c3494426099621d047c0561ccb57e SHA512 a65fe3299b6d8f89373937d2a782aa1469ebf18954b00bbf2798cee952b9946d7fead795388c079cb508f6d431e49b2812fb6d845c8a0e3861a4a3bd11e81968
|
||||
DIST kernel-ppc64le-fedora.config.5.10.12 192105 BLAKE2B 889141debb0656a358a3381bae14b5216b982acdfce0bc758f9445c16647807a68a788fb290199c2a1a23627bda1ef4c9405b3f5ac2a4176d1d2b55c71fb7db9 SHA512 3ab0f1401d9f50a61477c71369dede438f575d9d2c3a2f5c2cf36d624c2b59a938efca9c981b075511b3860c983eaaf5e5a9f877d659277f09ceba45edd43770
|
||||
DIST kernel-ppc64le-fedora.config.6.1.102-gentoo 218278 BLAKE2B f4dda4430e9801c4660be4bbf6e4b37052e720656e77c928adb7176ff3dba55feb2fe66dd564d41a181809488941cf392ec9c94d786e4a3d813fbe5d683d305f SHA512 a5e12ab1045fae61b494938047cf1c2a3c34693d3d242968e4ab564a012c70e6d232b9d5333347f5ba114a64bb59dd96919b38c5a1327fb8c5154ef40ad28d2c
|
||||
DIST kernel-ppc64le-fedora.config.6.12.41-gentoo 241851 BLAKE2B e7b8833572348037d7af2ba1f9671e8010276d853e0d85b8a175c0dcc5c212c57c7660be54a7ba2621c427cc8120acbeb1063a1c1a1c293894ebe1d63921b684 SHA512 7a81fe1c4b1d4fb9f2d68846882a8869c0888c8fa764ec41f41d27e61b7a69825ea8ceba2209b40deb7c0e8f4bb2c5d81226a4f28e7ca8aff4788bc7a3292194
|
||||
DIST kernel-ppc64le-fedora.config.6.12.8-gentoo 241851 BLAKE2B e7b8833572348037d7af2ba1f9671e8010276d853e0d85b8a175c0dcc5c212c57c7660be54a7ba2621c427cc8120acbeb1063a1c1a1c293894ebe1d63921b684 SHA512 7a81fe1c4b1d4fb9f2d68846882a8869c0888c8fa764ec41f41d27e61b7a69825ea8ceba2209b40deb7c0e8f4bb2c5d81226a4f28e7ca8aff4788bc7a3292194
|
||||
DIST kernel-ppc64le-fedora.config.6.16.2-gentoo 247451 BLAKE2B 19219e8ae6988cb5e80bff24fb1bcdafc1d87d3806133f10df6ed528fd0c6aaa0627f77098f3e036f900cd008b5f3a8da8f2e34bd3e8fb4a2aa4253edc1b7b7d SHA512 3db2fcd4a77fa5f4c0d775c20c4e4fb02c918f80dae251cc68f8d29bb4dda19a240a5f3e0e33f4d6dfcd6bfe1d664a79adf3e8537d17f03a8e451bc48d1eadb7
|
||||
DIST kernel-ppc64le-fedora.config.6.16.9-gentoo 247451 BLAKE2B 19219e8ae6988cb5e80bff24fb1bcdafc1d87d3806133f10df6ed528fd0c6aaa0627f77098f3e036f900cd008b5f3a8da8f2e34bd3e8fb4a2aa4253edc1b7b7d SHA512 3db2fcd4a77fa5f4c0d775c20c4e4fb02c918f80dae251cc68f8d29bb4dda19a240a5f3e0e33f4d6dfcd6bfe1d664a79adf3e8537d17f03a8e451bc48d1eadb7
|
||||
DIST kernel-ppc64le-fedora.config.6.17.0-gentoo 249262 BLAKE2B ff80a57f4f2b1598a90c7afb0e71708396f059058179fc4bc024195be2a504e24946f3e7356c2d3d461c0d5cba7b5744159e4f3c7018cc4275321e47df59dab6 SHA512 8b4341bc1d11719ef14d4c717fc2ac73a3bf53bef497930ef663313995e66726e7ed4be84e0704bc9f5f8468a6a01e038d14c0f0a9469c0e29f28af185681714
|
||||
DIST kernel-ppc64le-fedora.config.6.17.3-gentoo 249262 BLAKE2B ff80a57f4f2b1598a90c7afb0e71708396f059058179fc4bc024195be2a504e24946f3e7356c2d3d461c0d5cba7b5744159e4f3c7018cc4275321e47df59dab6 SHA512 8b4341bc1d11719ef14d4c717fc2ac73a3bf53bef497930ef663313995e66726e7ed4be84e0704bc9f5f8468a6a01e038d14c0f0a9469c0e29f28af185681714
|
||||
DIST kernel-ppc64le-fedora.config.6.6.12-gentoo 232147 BLAKE2B d67c2ab2d089ecdde3879129d2b1f85a592adae811ed053d00d4ff120e6bb44546bb41d74817be558adb1d669d06f3dd50e6ea542c8a9c2f13672f77f4e4eed5 SHA512 b130b4c57959c0f7be983334b08354640d5e2946bfdd956d6c5b895f816f6177d5fa4bb1c4382cca5c4dd4723aac42e9e89a002b71d86f4eb30f755008f8f9af
|
||||
DIST kernel-riscv64-fedora.config.6.12.41-gentoo 245234 BLAKE2B 802218a7610177426b813a715ae9b94e7ca2f2d8d9f08124208a8cd122f1a7e3ed5b1cd8a7e227a21a5cb7341554640fac321cb690fecbe9de78e7d8929b5847 SHA512 cc06482e7c08704fbe92d0f1c0e2f7c7469953119ddf43c0bf6a4f2fde55d0ad8b6b326bfa3ba8f01c528fc94ee14d889f93427db02a97ac8a26e8b9a0ebcf91
|
||||
DIST kernel-riscv64-fedora.config.6.12.8-gentoo 245234 BLAKE2B 802218a7610177426b813a715ae9b94e7ca2f2d8d9f08124208a8cd122f1a7e3ed5b1cd8a7e227a21a5cb7341554640fac321cb690fecbe9de78e7d8929b5847 SHA512 cc06482e7c08704fbe92d0f1c0e2f7c7469953119ddf43c0bf6a4f2fde55d0ad8b6b326bfa3ba8f01c528fc94ee14d889f93427db02a97ac8a26e8b9a0ebcf91
|
||||
DIST kernel-riscv64-fedora.config.6.16.2-gentoo 251903 BLAKE2B 9a391dc81449275e2313101e3c8461aa22b7302193ce8c9e3b1958c47639e98eb5353fec218b026dcda6778a576318cbdfc97e2037671fb52f89f1f24ba797c4 SHA512 836204822c6e2701068159ed6ab4322aa8720ab9edcf4f065ba583783fc6460d278dfff9c77a7276581eefc0b3bcaabbdce1633569f71074e8aa63994e9e1bb2
|
||||
DIST kernel-riscv64-fedora.config.6.16.9-gentoo 251903 BLAKE2B 9a391dc81449275e2313101e3c8461aa22b7302193ce8c9e3b1958c47639e98eb5353fec218b026dcda6778a576318cbdfc97e2037671fb52f89f1f24ba797c4 SHA512 836204822c6e2701068159ed6ab4322aa8720ab9edcf4f065ba583783fc6460d278dfff9c77a7276581eefc0b3bcaabbdce1633569f71074e8aa63994e9e1bb2
|
||||
DIST kernel-riscv64-fedora.config.6.17.0-gentoo 253885 BLAKE2B 7ec9d7570a3fde72f181d571ef2dc6a92067cd70334cc98186e451ae3f204bbbb9f2c904c90802b43788e95265f867f6f1b61e77f057322ce132440b7a269c84 SHA512 2da86c5a5cadca1956332cff8f078dfea9841c9a8f7596cd9c589d0076b8c4a8dc3ecb42ec0557a7c892d58333806754a9f705defc13de373c28b8a9f946028b
|
||||
DIST kernel-riscv64-fedora.config.6.17.3-gentoo 253885 BLAKE2B 7ec9d7570a3fde72f181d571ef2dc6a92067cd70334cc98186e451ae3f204bbbb9f2c904c90802b43788e95265f867f6f1b61e77f057322ce132440b7a269c84 SHA512 2da86c5a5cadca1956332cff8f078dfea9841c9a8f7596cd9c589d0076b8c4a8dc3ecb42ec0557a7c892d58333806754a9f705defc13de373c28b8a9f946028b
|
||||
DIST kernel-x86_64-fedora.config.5.10.12 206357 BLAKE2B 0eda9d4f3f973336cabd67c1ac78f100aabde926354743e8dcb7ff84496f0de49210d45f99bc850a2096078b0b4687aa7fd965d999248559506004f2b29dac0c SHA512 b12f43d3c1a52a4915cd73db98874ce9ae6c425672c0f1c19ed1b1101341c868ebf1c9620bef5449752ec0d7342c1ce38fb77779d0f89b9267096a605ebf7a26
|
||||
DIST kernel-x86_64-fedora.config.6.1.102-gentoo 228685 BLAKE2B e68236ccc1d51b2aff850eda9f3197b7ea95b8a88716bc7b07dad30348a86fdbb99a948060300dddae73ca82267d851d357f1c9547a9dcefae1364deebdbd124 SHA512 42bec2ddb9cf7eb6e84bbdeb23eb98dc11c9cea41f6134b776010c6b36833b520a290f0ef0145379de15c7f7834398fa5e3aaabd7258d7d4e89567faa09eeb4c
|
||||
DIST kernel-x86_64-fedora.config.6.12.41-gentoo 256210 BLAKE2B f14f7de8ae573561824df47cf94c3c0ce52a820456ebd0e618e4c1e7f5454b7d3f6f86c559a3cd98dd94c55aaeed397f3d0cee6b0e37cf6b47d3aedd920a9dea SHA512 ea87b4b45c78888e02d0288dd5844cf2d97a14e251b565c7d6451a0e62fbe0dbef38f46715467af2f869995d6bbc8be61d5b70476a86d607a5bfa27fbaf36e92
|
||||
DIST kernel-x86_64-fedora.config.6.12.8-gentoo 256210 BLAKE2B f14f7de8ae573561824df47cf94c3c0ce52a820456ebd0e618e4c1e7f5454b7d3f6f86c559a3cd98dd94c55aaeed397f3d0cee6b0e37cf6b47d3aedd920a9dea SHA512 ea87b4b45c78888e02d0288dd5844cf2d97a14e251b565c7d6451a0e62fbe0dbef38f46715467af2f869995d6bbc8be61d5b70476a86d607a5bfa27fbaf36e92
|
||||
DIST kernel-x86_64-fedora.config.6.16.2-gentoo 264934 BLAKE2B ad8ce402e5ffc1329d9cd8e2988f22540286af761158f22067918fc14223af6c27b5873782fc5f1dd12bd2b68101a537b438960dcb71ac4ded9effd9c4b19d02 SHA512 ea8c66dc9bdff50eb2c74259af6fb3f310ec06b2bb6a4cbb1f1ae3f138ff68e3f01f5871c7b18047859d76d43a1566e397c74fbce6a643f5ad97e12f0a545b15
|
||||
DIST kernel-x86_64-fedora.config.6.16.9-gentoo 264962 BLAKE2B cb01a4e5248619d975bf6fbcc64d449e8e24fcb6815af0f1260b3dab48b87a78a02564c27dad549550a66b065248be0662ed45ea84409e1bb8fd72fb3902de6c SHA512 ee614bd2e1c4f73e640d86924f771c867e03f25dcd98a2312ba8d9093597e4b421a94a40c4b84c94c4e6b0ceb5d289801cd6451944765fb64bca5a2b84223583
|
||||
DIST kernel-x86_64-fedora.config.6.17.0-gentoo 267029 BLAKE2B 8640bdbaac5658542cd683e08d5abbbd5fe96c856364b1a73342a58632269b76e370277697c424a060c10912e162d329ca3089e90e3327809204071cd8537062 SHA512 9f62da015a50f83368dc87f06a0f704f97187a582931bb8371707da4397e52eb72b0d23dbee5f90baf5fca4ef10f454ee9d264f94bf4d934d37950c62d7cf73c
|
||||
DIST kernel-x86_64-fedora.config.6.17.3-gentoo 267029 BLAKE2B 8640bdbaac5658542cd683e08d5abbbd5fe96c856364b1a73342a58632269b76e370277697c424a060c10912e162d329ca3089e90e3327809204071cd8537062 SHA512 9f62da015a50f83368dc87f06a0f704f97187a582931bb8371707da4397e52eb72b0d23dbee5f90baf5fca4ef10f454ee9d264f94bf4d934d37950c62d7cf73c
|
||||
DIST kernel-x86_64-fedora.config.6.6.12-gentoo 243607 BLAKE2B 7e670d37c6471e50aa0ba395570cd0173af0210afe63faa48d7a147327110652e3aab5c339cf10ed22a6a20e81e505aee84311beb21fda3eb577e06ea55ecac8 SHA512 c484403a60670dd006ecbe65240cb00d97e8b3fe22d1169c5b6ccb92bcdbddb3ecd474d2b57880b30baf6a38bcef11fc8d56b8b0b02fcddd859833c3640cdc9c
|
||||
DIST linux-5.10.tar.xz 116606704 BLAKE2B b923d7b66309224f42f35f8a5fa219421b0a9362d2adacdadd8d96251f61f7230878ea297a269a7f3b3c56830f0b177e068691e1d7f88501a05653b0a13274d1 SHA512 95bc137d0cf9148da6a9d1f1a878698dc27b40f68e22c597544010a6c591ce1b256f083489d3ff45ff77753289b535135590194d88ef9f007d0ddab3d74de70e
|
||||
DIST linux-5.15.tar.xz 121913744 BLAKE2B 3921274b23f7938abdf3ed9334534b4581e13d7484303d3a5280eddb038999aaa8b836666a487472d9c4a219af0f06b9fecccaf348fb5510ab8762f4ef4b7e83 SHA512 d25ad40b5bcd6a4c6042fd0fd84e196e7a58024734c3e9a484fd0d5d54a0c1d87db8a3c784eff55e43b6f021709dc685eb0efa18d2aec327e4f88a79f405705a
|
||||
DIST linux-5.x-sha256sums-20250717.asc 364595 BLAKE2B 75abc4c666dede398ee54a7323380496f75cecb9439261305a60200169430544eaec7bc9e6ee3d4b1beb667d51cb6c858ebe109e3a9446667e9b1793298aef08 SHA512 1d52b1dfc0da4d287f4d1d02bb05a38c24f5505002c567bedc48b4bfd523a2135bdaa8e103c75e7bf521d356b66e7b36009054a792d8eaf3034ae1ef09fe3ff2
|
||||
DIST linux-5.x-sha256sums-20250911.asc 368378 BLAKE2B 068e10fc2176a4e8c7bf19ce19c48f3fa1551af2a250267f0d177ff0a277d16506444c5bad5dca08fcbc2badfd22021a9a05cdad5e256ce84d5866d5fcc8fea0 SHA512 9e8ee63833ea184f54741ee7e04284ab4c181e5384dc0af12e51518269d0bbc57f4d20911b2888beedbbeffa6a9649fab29cd8a355277e26e55cd45c4875337b
|
||||
DIST linux-5.x-sha256sums-20251002.asc 369409 BLAKE2B 62c1f9ac1772cd3890d9afef5a2f7da95fb34441396db435c4969e7a268e01bc72b82dba8f5fdd77d9f895dc8d6ff62d236bc6960db41156ca68a15aa3f66ecc SHA512 3a2f452d03ef1c2bfb60ba12021bed5942d9d8d96944e38eff905724e1dd2aeceeda133fe2c4e4d77d5caebae1b8e8d06dab0c8f18d44ed10659306c43cb9ef4
|
||||
DIST linux-5.x-sha256sums-20251019.asc 369754 BLAKE2B 43d79e2fa32a32f489bf4022f455012dbb1f60b6a961f75da96266b29ca552cc6d9480b0cbc3edd2460287431722c959b2e65c8e1e201414475f9df98fd97476 SHA512 1f39d7a6cc109cedb9d593c8db6f21513a3337650e993f39a2f44c9286cf49a076fefb2fd793b094196cef804062d54434b15bd30f1d6e69e18040e01277e171
|
||||
DIST linux-6.1.tar.xz 134728520 BLAKE2B ae60257860b2bd1bd708d183f0443afc60ebbd2b3d535c45e44c2e541bd0928530a3b62de6385dd4e4726ebbedcc0a871d4f3ffb4105b9f1f6d8ed7467f5688e SHA512 6ed2a73c2699d0810e54753715635736fc370288ad5ce95c594f2379959b0e418665cd71bc512a0273fe226fe90074d8b10d14c209080a6466498417a4fdda68
|
||||
DIST linux-6.12.tar.xz 147906904 BLAKE2B b2ec2fc69218cacabbbe49f78384a5d259ca581b717617c12b000b16f4a4c59ee348ea886b37147f5f70fb9a7a01c1e2c8f19021078f6b23f5bc62d1c48d5e5e SHA512 a37b1823df7b4f72542f689b65882634740ba0401a42fdcf6601d9efd2e132e5a7650e70450ba76f6cd1f13ca31180f2ccee9d54fe4df89bc0000ade4380a548
|
||||
DIST linux-6.16.tar.xz 152620004 BLAKE2B 87bc4da7e89cc8265aebffea7ec6c09f711be24fee87cb1c03a264c03fd5a538d66aa806640835aa5103926e612cdfbc52d7c861d7f7065f1a8bb11d893b0921 SHA512 55a00f89ad6db6db2e26ff5dc5cfc96bbf6654e5bd5d17d2a3b944a47640367e54139716d230923187bebc6cb7756edc9511a620fb8abc6f32c50a658a734784
|
||||
DIST linux-6.17.tar.xz 153382068 BLAKE2B 0edb2324be5638aa75984128aafdba3e50824187d2fcdff8794eab99d85c10c3a17d1e840053c2c83df5ee11fdf69f1c9452c57ecc9dae01c4af38180fe7821a SHA512 063999d7b819970657f6b7713fdb4173da2065ffdeed7cae197026dbb1edfd7f1d50374f073a1e19ef9686539594824ff6ecb8a930d97c4f272cb12f1c6d8355
|
||||
DIST linux-6.6.tar.xz 140064536 BLAKE2B 5f02fd8696d42f7ec8c5fbadec8e7270bdcfcb1f9844a6c4db3e1fd461c93ce1ccda650ca72dceb4890ebcbbf768ba8fba0bce91efc49fbd2c307b04e95665f2 SHA512 458b2c34d46206f9b4ccbac54cc57aeca1eaecaf831bc441e59701bac6eadffc17f6ce24af6eadd0454964e843186539ac0d63295ad2cc32d112b60360c39a35
|
||||
DIST linux-6.x-sha256sums-20250724.asc 159789 BLAKE2B 9a85b54a784ea9f026ccc7d63d961239f09c0e656a67eac035fac6d7f3eb8bbebd67097a1a38b6d06ab232e79411e6d0ea2cce30eb7972df4cac65fc5f63c664 SHA512 dd79403876b28843987b7685962a9f79f9dae3ae680ff1dd915ec78218c235df4177d1197f8ff9e2a05cb11a3464808dda4c15441626e0fc5b91bbbc217537d0
|
||||
DIST linux-6.x-sha256sums-20250801.asc 161137 BLAKE2B b2bf0bde731b85404a19a7da414530d7d5c5df672e79d49eb8d55ba57e51d86d53d2cd5e69c7413908c06e4ec7f2a743eb022d6011e81e51faf0b33c2c8086af SHA512 927477c663091ba0003f743d8c82e3116eb95f5f7c10b0443e058fd43d3d7c1746c866e02e11f3ffcf9ccc0dcf7c6958a6ac7c869ee998e1c592893728e2b1e7
|
||||
DIST linux-6.x-sha256sums-20250911.asc 169634 BLAKE2B da96d04ed279153edd39a0e9936a49e6ed688ea1d660eba3f6543a27167bcaa5884ab5f802f7290cd33f703e99244ff0a0de94af9793e923f14ca762563faee9 SHA512 bbb722cbf511b748979d9e2ee8c216e6901473234fc2e620fb320eaf5f5da0bf19b56798011021a829edb10a33cd75f12c898f17077efeaacdeb38cfa186c73f
|
||||
DIST linux-6.x-sha256sums-20250919.asc 170994 BLAKE2B a1082e77bf0a127dc8a256f722fab9087681d1be2b6f0a787171fb3eaaf899ce48f1f4647287e3b5f5f302131561588b0e6ee0a0d172b045034115e0620a88fc SHA512 e66b3334582ed3df4a6c79e252fdf803e208d8995b11b857d5ab80fc4f9c3260db546408a85d962e788f19be40c5bd4a513988983ea08ab3c247beea7adc3bb3
|
||||
DIST linux-6.x-sha256sums-20250925.asc 172354 BLAKE2B d47d7b4ca3ff08154c84ba895476362bad0fa216691e29d3375be55fd0ea60ab8829e50d3086fc045d04369b6e81fdec78e556806ee56e357b0c625a703da9eb SHA512 931979d856ec768bb59d54c3403e19d7a4afd59d9f79ea320b4a986431d286ce817a0a7bc2538552af89fb3257dad79e03f7c445f3252bc1a8b06c2d8413ee97
|
||||
DIST linux-6.x-sha256sums-20251002.asc 174047 BLAKE2B 472be6fbe67c21d21178f648aab6f34bdfecdaa17e2acbb6a54341ba8792a71eb5ea8172bb1a95ec4fcaeaf140f50db5cf0e4ebd0ef5ba898871fd4d213241c0 SHA512 b36add7db9f0fde5ee77025f454a9acb94b463c4c04c2ccbc8dc21d51d16b945274f4844fa47d32e3dc48135a1e35eb4cdea973203366f7ca1c243d422fb5e78
|
||||
DIST linux-6.x-sha256sums-20251006.asc 175407 BLAKE2B 369d5935711756f4a9b6dec658e15817160ced94da8787fa19316707a3599cfe450947a4e69544f2182a7f4f5fc062ad05aa41126847c88ca409a3d14cf4ecc7 SHA512 2a108737b88f4dade9ca6c104a2c20698b3b0ba219417edf56622ea630c1d3ec1d630472d58ce2bf859255f018d4fa423db4e043ffed3fb618068a65669f9a14
|
||||
DIST linux-6.x-sha256sums-20251012.asc 176767 BLAKE2B f7e4acdfcedb9c5dde535210cf6f65acf4ebec917db08fc10a2ae5fac47b6f6389d93671ce3e0a32bb1011814a627dfe688de09200be706c76e38b8c2707301b SHA512 6994d816e509fe72393b107cca386c09398ad8bf7f4813ed2479b78b9c01eddd3b6bceabea262793dcc2b64c89c674ac84b61e1548a39216203b31ebe2ff8b5b
|
||||
DIST linux-6.x-sha256sums-20251015.asc 178127 BLAKE2B 726dd0bec1aac697e998ba37cbf75d008ff1ac46d344f82e7e8feea9e60e2d30a0ce403b68854d8ff1c0106c2a2986f84cd861a3895248b25aa131e6da16d9c9 SHA512 a59379fec232b4d831e1a2e2778274f5e9ba874eda4710eb52ebb4268c74d6e41997d65fdb3bbb50226f103f61f06c4a0b62d2a09e9ac2731085c8fc4e1df950
|
||||
DIST linux-6.x-sha256sums-20251019.asc 179487 BLAKE2B 51ef5573677dadd88d0e221035b98234a09fe70fef44d4827264c73d91f64fded9cc288fa07c2cc0cd1abcf41adb2a99f2f2291130418299ca2649654cb9db8e SHA512 8dba06afc30f76c6ac896271c5092c263a30b10a2aeee890659f26cca64f178e12514c55d105cbdb797846c9adb9c9aea91bd28ba97960d2a44701e1b1dbd4af
|
||||
DIST patch-5.10.240.xz 6786568 BLAKE2B 1cb287b2c99bb403585cad3500a2de0819db40ea62a72d276c2b53d8637915cfc0350051bfdfc99cbb56a4e839331b7e11cbb2abdf6768a683d44e798ee5862d SHA512 91f059de27701a33e5c4d40f2d3e982dc60d9dc14fa8cb6a0bbd49e4452195715f0093a563e3a1db1efa37b3a1e09e74b0a6d53f77357757ffd29374abcead19
|
||||
DIST linux-6.x-sha256sums-20251023.asc 180506 BLAKE2B 740c8af4ce2c9b6e9363df1dbb3ffdeb6a5c6900965ddcc9d144a6ce412e9ad5c0d669cd5446e91b2b5310c25e3226cf3c18c3bff8c57b461773e9d531d46967 SHA512 2ad1d2c1dda538d0dee77d38acb3ce277d7f44d61e681a02de163ca9bc7fe0ce8902c5f29331bdef3ae681738503667b7e298c068f4c66d3e45305c7778fdb16
|
||||
DIST patch-5.10.244.xz 6886012 BLAKE2B 4472ca1171fa697c4e9de7835b82e670b22e2b8f12c3f8b2b4197321ae468d333691fda1c36ee480d2781a62229ce8adc394fbea53d1420cd823c9383739149a SHA512 64d02ae7401effc89e906a1d0e54293af14ad7895d55b39424d67ab98b79cdc12d197b01b95dcb6fd6d4010ae13d8e123e2dc725914dd010335fcf43a8724be9
|
||||
DIST patch-5.10.245.xz 6907208 BLAKE2B 1015edea300289cab5c8e4017920419035c74bb5e589747fe1711aa82e9cacfda38e2bce2f14b02aee8ecb66e876066be8bb8db4c186aadaf72ea92da8dc0c20 SHA512 c29d28bb920d73153b5f6ce88d7e9c4f6888fad9ec04bd196bde33778d3a0bebb41f1c2f396780e1b2b2972144102cf4ac7c4479ad25b1182cab330518560033
|
||||
DIST patch-5.15.189.xz 6955776 BLAKE2B bd2bf4ad70014395ffac8874434b2caae7823b1b9999231738552d9f23a53547533c248fdb7fc4b4bdd60dc05e8898a910e3e94e6f5edae7ae96a66937f387a2 SHA512 8ace7d82af676b101ed37c382c9833193ab487cbb15b8444b92ccf8239e2c62bfb70ef7342ef6f694d71e8ac72b7db445d544e4ad285d9bd977365350bf155d3
|
||||
DIST patch-5.15.193.xz 7083524 BLAKE2B ceb5cafae883916d5b0786e2aaf178aa841642aa4829c903d5d0697b53344400b9654642ef2c888a7ba41b23b51c4345a5748b552d36b4ce50673f9e6890dd74 SHA512 92048ebe709dec716391615dcc4135dd6ab764b4d36f2bd550b4e248c860e6f7a6b3451477ac66bade53e1af7edfd24179d48e832d3c6eebd9f1ff8d5722c747
|
||||
DIST patch-5.15.194.xz 7107504 BLAKE2B cf8fa36126451deb0376db6145351c5089bd15abe2054206195d624f2d9d744e633c4428023ca584727d904e1c9014108f0bf22bed963639a3fe85479e78624e SHA512 ae23a0aebd42d8a0f9a498fbe58f019493cd9dfa9091e240c50236d53aa19fa77d293069d39c8a6adfd58dbb65db6141e816b825464fa0b060650bb6c722f9c5
|
||||
DIST patch-5.15.195.xz 7158088 BLAKE2B 63a662a495ea38091a522671ce876c976a7b4405f2d333f1edbc7522443d2783a363e03a09edfb33d044efe82e8547f824a6ea322908cd00b6e35305b3e54b7f SHA512 564924cd372abac65ef87ec797be82310cd224fb74c976415adc3e40b73cc102c78498be309a0c670509f45664897c897bccf3a920634a0315da158348adc23a
|
||||
DIST patch-6.1.147.xz 6320180 BLAKE2B d109214e0682653ead5f62f5699d0bad2764bae1765789720d780e74afefadc39faf8e833df1ee4cc1436e4db5facbfc7f4ba8c3b657fc48aabda3ab84a4b540 SHA512 2cfd04771f982da4b65caf53cb944bf9ae2888a32005428adce383c408c35c72bec5d88e49670deb87011f0d6bc329e0a53adcad065aaa716ad5c8baffb2fddf
|
||||
DIST patch-6.1.152.xz 6486524 BLAKE2B f9b532c867b2b5a15d28c08f89f9a30252b4b9d55dae069afbabc1f34eef570be6a39a6199e135c0cca18ede52accefa546dfa65342c8f6429a5b00280d1a56b SHA512 14fd84fc1f80125331940de767510a94735fce70f70cf71ef5868a46481ec146a2a6983af26935014547c90b84ff524a0e4a7341e8511fa18b92ae33fcd25a1d
|
||||
DIST patch-6.1.153.xz 6497932 BLAKE2B 67a540a290ccb6db0b4f83916102323a53907adb1d56874c11a11c91fa402d0a80f2151d9d1bb6c1dfb59522e239be788c0e4d5718b8039cf2016c7debd26a4a SHA512 d988204e844c17c18fa6d39d5712afc5a326374e82eb049be7c80d625be16400ea57accd81f7c550c69f8f803d01f48ecd4b497145a825817dca1b450f7bb5e5
|
||||
DIST patch-6.1.154.xz 6507340 BLAKE2B 5333097c2375c59b2bd73acf4b02cf60bf8aedb085031075dfb6c1df88995330e62163fda59e98e756b1456ebc3995b699102932b50e5e15ba59a1f92eb6c877 SHA512 268c89cef61d4fa0c83eed99f7056ca5483f855b6e78004c384c963cff3a21b68313683ced3b211d4b3eacc9481d3ca7e71dd8aa98912444ea1e10b5ed40cd33
|
||||
DIST patch-6.1.155.xz 6523120 BLAKE2B d7fded35eb0b20ced762bbaf0caadc53bae23243f3fe3a2ce25a3461c5cfce131541826aacc8764803edb6eb6abbf8253a324659f65186ce683909382ddd43b3 SHA512 4ec98b90483f80fce40dcfb134b7ebeb4b3fc9d257b0a2a6ef6b23f77e786e8a13c7812fdcd8928b40ebfab28b247a1e8d917b5429bbac538a2af441c4f53b77
|
||||
DIST patch-6.1.156.xz 6549524 BLAKE2B 3dd6e04f40fe58351f4a832550ff3058d840fa0e71768f72cf9b0930772a67f5bf60b0719460ec0a9e33185c13240f26946979bdf9d1982e48e69f35e7642b0e SHA512 abbea02001a8caf931baadb38fc30346fe69786fa26d6494689fb4fb77fe83a5716714363d0f7d5d47f3c13c43fd09ecee3862a6c5b926064ca64aee7b3d8184
|
||||
DIST patch-6.1.157.xz 6579568 BLAKE2B 57556c1ebd47576a12155d3b00a5c238d3667a18f9d16f260ca3c2638239f5ec983d77df1ad8e7d161977c7197d3f7e0df54d6d4f695a60052975b3cc11f93c8 SHA512 0b4b7d14a47cae3f62812ee17b9de7224d0b678249148729639fa2f3563208237ec047f6a52f7c904f49f0442f630dd7e5a09f1c445dd8912d98df7f10c2d409
|
||||
DIST patch-6.12.41.xz 2584360 BLAKE2B 8cb7d77a45e79b186e24bc59be15d74f4e9ea4b7c7f7b5c81b82eaa9b1a8b88a7aabff6768471d905e24539366bdb85593304365726307e19bcfa41937764bf0 SHA512 b9307fafe443eb61b0edc624b2c9ab7a0206765eb614683e0f01d7f7fab04a729a91d92d67b8ace03208d6b63088ff235203e8fdfad27adc97cdbf7df872b3c2
|
||||
DIST patch-6.12.47.xz 2896968 BLAKE2B 4064af2ae029d13d63a0a6cfb9e4121266ab33622c03e088ad3544a0f5bf443d75a2ff2f7c35b58d7cc8669acb0eac93165cd3bfe5d8567f332516850bc9f7a4 SHA512 19bb9e9e235fa408e3b37dd6fe475f1dc7690bd09274dcdcb722ccc9733da9169dbaa97dffb15e0b32da6a62cd89b2da8cad32b4d2f16f2fbbd9d023b5ebae9b
|
||||
DIST patch-6.12.48.xz 2931416 BLAKE2B 888711e5a4b9578bdd09379aac0b385b901e9784e1307b2c36a700f996e6deb9c2e6531ea2a4fd4daec6bd2cb44c8a7767d00e59922c2311e448592605929e00 SHA512 f7a4999b1f2d2019fcaf691a2c0f1797be73858404fd4825962ec32945733fe98f625d8451d9bc264a1c14500b4596be6b73ea947da35e7b27f044f08642f2ab
|
||||
DIST patch-6.12.49.xz 2955076 BLAKE2B 8f333d832ea1fe060000b3b14fb2e91ee2302df73f3e84a49a4813f59a254f56b51e7d7b8ad0a1f6c83655f34eaad41f97d70111c12ecd781d62b273a91c1af1 SHA512 38d48f5d76489936562b1ea0b62482ecfea1b2e1ccde07742f93950ce5f059897904b2c4342b6e91d2b647c283485c6f69d56719a9a3ed41a9e35f282b5e1dd1
|
||||
DIST patch-6.12.50.xz 2972204 BLAKE2B 589b11a26af4f14181e12f156a4d34e884e7b8310802c22a63d3494b9a4507d275e3a437aaef7c7c5e2736ddbf71fc91ee4a9ab11acb252c89a16697c8964ed0 SHA512 3ec4639bec29bfe04765efa90abbda5ec5384ce616114b926e0c4bc7601a43ddf45c71634d8e846e1b5189460210099ccf4a4c0f20278a2e564cc25767543a7b
|
||||
DIST patch-6.12.51.xz 2974844 BLAKE2B cfb7242811febee3e506aa8775189f90cb1501341ca7aea7153aca28553cb5e953902f1c7bc23b2872f3f4617ee76641888c0cc0ae7a4611399a892030832b58 SHA512 5e04752b3432809212315b24c8fc18764b367e9e3282325d3d52b75190b4e0eeca48a10dc3baf09abfde3a633a7b14e03b4224251ae4e0b6206085683cce5dd2
|
||||
DIST patch-6.12.52.xz 2981340 BLAKE2B c3317e774812d88811d8e2aaac2f0ac076e819a012a28966a7f7ab0efe8aa5bd0b96fad848333121c681df5d9867740d8f4f61b39359a88a007b66481970b4a0 SHA512 a26009f2fe4a9c0d64685ffc7567ec2a817dc649093b8f50a20742e4f7db49a0752def2a8d4c2261df111160dbc97278357bc8f66685a87f5bf55eb9fd626baf
|
||||
DIST patch-6.12.53.xz 3031480 BLAKE2B ba00b2dc89efd299aa9c581c0d075c350ab8634f04bdbd41eb9d4aa9c3a8eaf359cacf5f0e776f8f234d2c9b2705eb0cb17cff258b1da3f0f12e94b8d27c1fd6 SHA512 34d6aab0f26e6b66ed96f1a7e978abb88c355aab89e9a05759956ea3bafb3d5d19d3106896dda4f6a76d45b84164ac66aa20c0cdb9cfb74f8c17f49e5597908c
|
||||
DIST patch-6.12.54.xz 3096864 BLAKE2B f5bff8166a5a45535092614ef9ed1d9e39064fd2762f0d71e852a87437326892c9d25a095ad51eb3b7fdfe266ba5f16d271303b98c4c1c6ed1716cfa09b669bb SHA512 744143218b5258a67f4b00126c72d7630b6e563dd0cc0a9cf685bc38cb48dc217d717053117e72a52fba061b2171a99ef64d992288f75500f069c617d1663b5b
|
||||
DIST patch-6.16.10.xz 796140 BLAKE2B fb1868512d250eded50e32cbe9233e8a89e63d9004d0ca6cb1c5f156c128358bc294da6e0e7fe011cfbcac1358b1ef6b860d82628e34e15ac141a45465109c53 SHA512 0a2c34c2f64cd87f7079388295d120c81ad6bf3797873bac5bdaf4baeb0ae419f1beccb4f5415ed4a6b14f583f671073f7db2b7de92930ccf5bf59169a714e8f
|
||||
DIST patch-6.16.11.xz 799032 BLAKE2B 5e0a522494c81839a9a0c06825ebdbdce4c7a802ce62c337dd819cfe04012ecfed7bab3d93574aa6a3e66477971d687d0ef1971dff409ff49d0d18e09d68df21 SHA512 46423abc9bd8aaf0611f285947726dba54c24c73966cbfd03203314a6c235e98b110681335c2a1d0528c43abd13f285edec73a43f4df872c0cc7221677fd318c
|
||||
DIST patch-6.16.12.xz 808544 BLAKE2B 0fbd9b63869a73e5f4f1ba4dab26167faaeb9c178ef7ab0b0b9e158f493929eba9b70ca8681e05cb4b2d8e8983ee8ffa4b1845ad90cbef93671868fc9fa4c989 SHA512 64079698b0ad170b99f59db0ed119eb9920e2df7887c1738434583128cec578901e31f7f6002a7f397670d4d51ff2c2ac3f414c9896de9c7ba4f55e694364c11
|
||||
DIST patch-6.16.7.xz 650544 BLAKE2B 5ceb5a463cf7c9df15a894103913e7f872af9b879a6a8751b2cd4208c687e477654a2b23f468a44d6af66a987f55e76da55c0080de5025dcc286ddf1d1be9e4b SHA512 9351c2d01a914854831cd5db71aec3ebf9887161871ba7a00fdd234849121764b0af9ce4b08c5f275d9278268fc960e4aa4232edec15220e75113fc9610ca59e
|
||||
DIST patch-6.16.8.xz 719144 BLAKE2B bc4342eda12987323d7b5cb04307fc5454940e71d9c153e5e74876375798f95af6084c23245cfdc9551f6dbe478884d1fcbdea8e1a2d9bc27ab95a2cb30db280 SHA512 ce466430fae6ff8501cca3798d1c3e72b3defc997175f7f1ea78c774c207b97579c1dac5f5eee8b56e3569ca23fabaeaba9186125b5fdce617414a9abd6dda82
|
||||
DIST patch-6.16.9.xz 759708 BLAKE2B 740b6400b05631c7a0a5ff3ddeb812a5e570d2c834a194c848ad5cf87049b9d45666b0a8b3c83d386eb382a84b4f34290f16766df32b3002ea3172165aa2beae SHA512 58f3e476392a081648471fc5d8222981c7ebfa7896b6adfb267d93c2fe5227096a4e850ca3ba0914d243078ab1f6a3248bb1ff26fde1eef354e6fc579e419f52
|
||||
DIST patch-6.17.1.xz 6492 BLAKE2B a0c0ceae36a46f63fb02c0eaaca8a4c2613f6c3cb42d786626ae12e21f4b827e268eb95246a220411836414b46199aa705cb5a7974a072fbbc819f6e4e7efc97 SHA512 7a69dcd30b39c297332bfaeec104400768e185fdccc1603768cc05d2a7e9f37107df0da7b05e1dbea7d9464e5a63e02d867ea225b9989c57b6ec62391826d80b
|
||||
DIST patch-6.17.2.xz 16496 BLAKE2B ef9f5023aa506e252e108b653066ceb90b2f8cc7d2064603d0d4fa860d7a8ebdf281dd615729acbba006c79539202dc57e19169aa09380fdb59856cf69cc30b6 SHA512 90cdf063da741ec0628dc089f15089b074cfd7ce3382d32e5c8a330f13200be09faffd1b2dfa2fe57c3a16dcc9a01c166f4f0733bc0ee70e68bd6f05d879cc3e
|
||||
DIST patch-6.17.3.xz 205828 BLAKE2B 4b6b11f7a723c57bb532f066f66cf6bcd087ca7768be71e79d6a424b9f973414fb44af320411f18aa161d0b2ced6d43bfa8c96b9ff1ceedba16b710f14bc8802 SHA512 23fe4c195ca71fe0aa524f6d80d1ec4ba7ff6fe4352410c27fd93a86cecf23a0bd4cf61ee097fb2413da85b10aa76cac2a4e7da53ec493c2d7d1eddaccf71286
|
||||
DIST patch-6.12.55.xz 3132512 BLAKE2B b78f35653171cb91d00f115cfb7a9d5e1b1eb43e77f342b06e7eed3425e620975addcc35608b64eee11d08f0b0599850520ce92fc8170dad3742fd65a2d529b4 SHA512 c81f4e2afc3bb1e5c279147c26ad91bbc045b34bb557f0f2ccaa05d59991320e936a7fd71237ea177e246062280496d72e3e6a006b87e8d67aaaa6c8dfce4608
|
||||
DIST patch-6.17.4.xz 315840 BLAKE2B 4121f8cc485a71878335d1b186c39271b83bca4e176566ee63e60a26eedd74e68e5d238492c7bb462c4139fade13bff105c46a1d12411cb4fa0972c9eb9cb3d9 SHA512 c81d328581330b10d1b6b99e3bc1386a20c0661905d953a294bf0e68e8f7ccec698ba2286e2c868c8c0ed4e2f42fb8432a988080cc3cdeb57de36630b576400f
|
||||
DIST patch-6.6.101.xz 4660596 BLAKE2B 3b02a5a37a67113ec35d647bb13f729fa0b883fa59b004e7b19b401bed374b700ef806f27285c0951c2dc8cd3e0af16ae7d9fc3268b4f5020eafb1d0361aaab8 SHA512 bcb5671c660a84f34556210dd525c6b38f3a9cf6c78bbc6b7d936f8efeb3170b27bfbf4a343b0ac94659cc63a35c479e1e158ca35043d5937eebbaf4fd8cadb6
|
||||
DIST patch-6.17.5.xz 374980 BLAKE2B d1a8f1ab63801a8ca421981cce57aae2b5da5864336821fe8bbb5131a40b16c100d4fa3d3dd2d5c4ce28bb6e3dd9c6b4b5a642d81f2303dbe12739ce4b7f3c68 SHA512 decf5a01bb3ea68e62257233225e3648d140690ac471cbac9048386aa0ebe7f7362c34cfce1d8fb615c2b37368893d33346da6ea0376feab8b7f3d3187288c83
|
||||
DIST patch-6.6.106.xz 4880660 BLAKE2B 3205119e8c10be006eb9f5c455a6fd2cec6b98f351e5e9983c6303f11b5f8822f73ede0dbc95c390736ddbd90bd2ca6383e3737618d108ffe3637d38dafad762 SHA512 e4a2bbd7c0f6a5a875fe4bdb1fbc82ff54a7d8a37f0c8cf04e6222a2be3d4579458bcbd87736b9fc95058f79a5181a381d40dc4d5b69761378eae29dc30349bc
|
||||
DIST patch-6.6.107.xz 4898532 BLAKE2B 5be64e27df6d78bd192913d6196a75530fc21fd9863426e08fc09e968679921eb706703bc159ddf57bc4c6aa4240a77b9b4eb626569c84c7a97ab834df76ada4 SHA512 84c59a8d255e91f0ba1356ea16e16e9a29e078ecdd7ef368fcd501679e2edb17e8b41ef42feb7f28a32b7b02fc63427d7f96594ca22e0ee0306d02054e173fcb
|
||||
DIST patch-6.6.108.xz 4910552 BLAKE2B 6d482fe76be8b11fc931087537872b2a5b2ef862c8654be312d8531cc6bb4508a85fbd3a91c67f17190a42f0c6e0a540f27391aec3b4b81308c2ead7c43e2ab7 SHA512 fa31c0f6c378d80723c8acecf2e7dcd49028136d21be0596679d4797efcdc257a0c8994b91ab428934678626d14a01a27648aba48e643ad179cf2ac0b4220335
|
||||
DIST patch-6.6.109.xz 4925652 BLAKE2B 1eea77c0d6966963fa61546aa5a2e4deff3145a61e0b3ddc2a179222aa736f7f65d8581ce4e549bf2d0a76b679dda6c0a2970e49036b8a6be8c9104a390d9fd6 SHA512 a3c9fadf8d6c55c569fc388c3585ef571a958eee3736cddc900beaec14c3b59e78ad3e38493177d35322f3f840f6f372c231bdf5272243e6d831590499d8c6bc
|
||||
DIST patch-6.6.110.xz 4926864 BLAKE2B 062eded9bbb18836209b7b07bd5803602212f4bd1d0c9d87252eddbe9cbbce216f78618d3b797c8d3768ec4a1b71081c3aaf1ebf7cdbe4c59ddfcd77595bb658 SHA512 927f002bf2ec227c19d115589337e4189c8320aa30d54325923078e87f74e2b7ffa5f6dd9cec515c3266dcff3d74ddab2cae6cdfd63c120fa34923ed7d455ec3
|
||||
DIST patch-6.6.111.xz 4931684 BLAKE2B a832e787516bb20de7e4841b1f5adb45683c900bb4df9b7856878c150a0b5e27d8b83c951eb68cdbf8ff0cd42e4a12c65792c032854b140efd7759eb9b1c39be SHA512 583fbec82cf16b75e1e447a51c858dfde9b1599f4970e927043d6f2e7f4cd0afc619432b001d3cb89d33c02414eb217b811717973b163d646676c3ca86f48b3c
|
||||
DIST patch-6.6.112.xz 4963076 BLAKE2B 4e4798a85173a15fd73cd126d9444b0726701bc9c4d7f94a5fce44401787f6e8c2550190e9243426b8216e866663aa9a554552b1199e55b54138d60a4c9f22be SHA512 6a622dac83d2a7f737799403d41695582ed7f7cd008096af55fc930cc387c498dcffd826ed51cf9fa5011bd7a53549f8ab95418c010e9ed9a0e16aba91cbbde2
|
||||
DIST patch-6.6.113.xz 5000480 BLAKE2B 6f9b360db1f92e80a5faae98ab399aba43f307df6fbc37d106b768aff02b0abea69dd4d20cb3db82ecb7b778ecf769bd49998c0b3a0e00f7e81af4fff49a39c5 SHA512 37622c883ae85ada9ec01852b1b8b40ab8e6533ee1f59b6dc080599cf03eddc77901043ef25dcd3872698fa59029297727c31f83e1891332896c2b597fa2fcb9
|
||||
DIST patch-6.6.114.xz 5029636 BLAKE2B f41f9ce02f210d7506bfc1e646b9ac22cac7cadbbc89e0262f8a545372bb71a388c97279b8ff5c18d411029a48c05a19410dd4c36720b3511a2be843b1e39844 SHA512 92d061b9cd67fb293736b0e2989acab66399650d4fc6e83f220b39bf83dc179a40813fa58ddb16ffab6b562938e66512df140b6d55039c58ec51873ece10e378
|
||||
|
||||
@@ -1,147 +0,0 @@
|
||||
# Copyright 2020-2025 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
inherit kernel-build toolchain-funcs verify-sig
|
||||
|
||||
MY_P=linux-${PV%.*}
|
||||
# https://koji.fedoraproject.org/koji/packageinfo?packageID=8
|
||||
CONFIG_VER=5.10.12
|
||||
CONFIG_HASH=836165dd2dff34e4f2c47ca8f9c803002c1e6530
|
||||
GENTOO_CONFIG_VER=g16
|
||||
SHA256SUM_DATE=20250717
|
||||
|
||||
DESCRIPTION="Linux kernel built from vanilla upstream sources"
|
||||
HOMEPAGE="
|
||||
https://wiki.gentoo.org/wiki/Project:Distribution_Kernel
|
||||
https://www.kernel.org/
|
||||
"
|
||||
SRC_URI+="
|
||||
https://cdn.kernel.org/pub/linux/kernel/v$(ver_cut 1).x/${MY_P}.tar.xz
|
||||
https://cdn.kernel.org/pub/linux/kernel/v$(ver_cut 1).x/patch-${PV}.xz
|
||||
https://github.com/projg2/gentoo-kernel-config/archive/${GENTOO_CONFIG_VER}.tar.gz
|
||||
-> gentoo-kernel-config-${GENTOO_CONFIG_VER}.tar.gz
|
||||
verify-sig? (
|
||||
https://cdn.kernel.org/pub/linux/kernel/v$(ver_cut 1).x/sha256sums.asc
|
||||
-> linux-$(ver_cut 1).x-sha256sums-${SHA256SUM_DATE}.asc
|
||||
)
|
||||
amd64? (
|
||||
https://src.fedoraproject.org/rpms/kernel/raw/${CONFIG_HASH}/f/kernel-x86_64-fedora.config
|
||||
-> kernel-x86_64-fedora.config.${CONFIG_VER}
|
||||
)
|
||||
arm64? (
|
||||
https://src.fedoraproject.org/rpms/kernel/raw/${CONFIG_HASH}/f/kernel-aarch64-fedora.config
|
||||
-> kernel-aarch64-fedora.config.${CONFIG_VER}
|
||||
)
|
||||
ppc64? (
|
||||
https://src.fedoraproject.org/rpms/kernel/raw/${CONFIG_HASH}/f/kernel-ppc64le-fedora.config
|
||||
-> kernel-ppc64le-fedora.config.${CONFIG_VER}
|
||||
)
|
||||
x86? (
|
||||
https://src.fedoraproject.org/rpms/kernel/raw/${CONFIG_HASH}/f/kernel-i686-fedora.config
|
||||
-> kernel-i686-fedora.config.${CONFIG_VER}
|
||||
)
|
||||
"
|
||||
S=${WORKDIR}/${MY_P}
|
||||
|
||||
KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ppc ~ppc64 ~sparc ~x86"
|
||||
IUSE="debug hardened"
|
||||
REQUIRED_USE="
|
||||
arm? ( savedconfig )
|
||||
hppa? ( savedconfig )
|
||||
sparc? ( savedconfig )
|
||||
"
|
||||
|
||||
BDEPEND="
|
||||
debug? ( dev-util/pahole )
|
||||
verify-sig? ( >=sec-keys/openpgp-keys-kernel-20250702 )
|
||||
"
|
||||
PDEPEND="
|
||||
>=virtual/dist-kernel-${PV}
|
||||
"
|
||||
|
||||
QA_FLAGS_IGNORED="
|
||||
usr/src/linux-.*/scripts/gcc-plugins/.*.so
|
||||
usr/src/linux-.*/vmlinux
|
||||
usr/src/linux-.*/arch/powerpc/kernel/vdso.*/vdso.*.so.dbg
|
||||
"
|
||||
|
||||
VERIFY_SIG_OPENPGP_KEY_PATH=/usr/share/openpgp-keys/kernel.org.asc
|
||||
|
||||
src_unpack() {
|
||||
if use verify-sig; then
|
||||
cd "${DISTDIR}" || die
|
||||
verify-sig_verify_signed_checksums \
|
||||
"linux-$(ver_cut 1).x-sha256sums-${SHA256SUM_DATE}.asc" \
|
||||
sha256 "${MY_P}.tar.xz patch-${PV}.xz"
|
||||
cd "${WORKDIR}" || die
|
||||
fi
|
||||
|
||||
default
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
eapply "${WORKDIR}/patch-${PV}"
|
||||
default
|
||||
|
||||
local biendian=false
|
||||
|
||||
# prepare the default config
|
||||
case ${ARCH} in
|
||||
arm | hppa | sparc)
|
||||
> .config || die
|
||||
;;
|
||||
amd64)
|
||||
cp "${DISTDIR}/kernel-x86_64-fedora.config.${CONFIG_VER}" .config || die
|
||||
;;
|
||||
arm64)
|
||||
cp "${DISTDIR}/kernel-aarch64-fedora.config.${CONFIG_VER}" .config || die
|
||||
biendian=true
|
||||
;;
|
||||
ppc)
|
||||
# assume powermac/powerbook defconfig
|
||||
# we still package.use.force savedconfig
|
||||
cp "${WORKDIR}/${MY_P}/arch/powerpc/configs/pmac32_defconfig" .config || die
|
||||
;;
|
||||
ppc64)
|
||||
cp "${DISTDIR}/kernel-ppc64le-fedora.config.${CONFIG_VER}" .config || die
|
||||
biendian=true
|
||||
;;
|
||||
x86)
|
||||
cp "${DISTDIR}/kernel-i686-fedora.config.${CONFIG_VER}" .config || die
|
||||
;;
|
||||
*)
|
||||
die "Unsupported arch ${ARCH}"
|
||||
;;
|
||||
esac
|
||||
|
||||
local myversion="-dist"
|
||||
use hardened && myversion+="-hardened"
|
||||
echo "CONFIG_LOCALVERSION=\"${myversion}\"" > "${T}"/version.config || die
|
||||
local dist_conf_path="${WORKDIR}/gentoo-kernel-config-${GENTOO_CONFIG_VER}"
|
||||
|
||||
local merge_configs=(
|
||||
"${T}"/version.config
|
||||
"${dist_conf_path}"/base.config
|
||||
)
|
||||
use debug || merge_configs+=(
|
||||
"${dist_conf_path}"/no-debug.config
|
||||
)
|
||||
if use hardened; then
|
||||
merge_configs+=( "${dist_conf_path}"/hardened-base.config )
|
||||
|
||||
tc-is-gcc && merge_configs+=( "${dist_conf_path}"/hardened-gcc-plugins.config )
|
||||
|
||||
if [[ -f "${dist_conf_path}/hardened-${ARCH}.config" ]]; then
|
||||
merge_configs+=( "${dist_conf_path}/hardened-${ARCH}.config" )
|
||||
fi
|
||||
fi
|
||||
|
||||
# this covers ppc64 and aarch64_be only for now
|
||||
if [[ ${biendian} == true && $(tc-endian) == big ]]; then
|
||||
merge_configs+=( "${dist_conf_path}/big-endian.config" )
|
||||
fi
|
||||
|
||||
kernel-build_merge_configs "${merge_configs[@]}"
|
||||
}
|
||||
@@ -1,147 +0,0 @@
|
||||
# Copyright 2020-2025 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
inherit kernel-build toolchain-funcs verify-sig
|
||||
|
||||
MY_P=linux-${PV%.*}
|
||||
# https://koji.fedoraproject.org/koji/packageinfo?packageID=8
|
||||
# forked to https://github.com/projg2/fedora-kernel-config-for-gentoo
|
||||
CONFIG_VER=6.1.102-gentoo
|
||||
GENTOO_CONFIG_VER=g16
|
||||
SHA256SUM_DATE=20250717
|
||||
|
||||
DESCRIPTION="Linux kernel built from vanilla upstream sources"
|
||||
HOMEPAGE="
|
||||
https://wiki.gentoo.org/wiki/Project:Distribution_Kernel
|
||||
https://www.kernel.org/
|
||||
"
|
||||
SRC_URI+="
|
||||
https://cdn.kernel.org/pub/linux/kernel/v$(ver_cut 1).x/${MY_P}.tar.xz
|
||||
https://cdn.kernel.org/pub/linux/kernel/v$(ver_cut 1).x/patch-${PV}.xz
|
||||
https://github.com/projg2/gentoo-kernel-config/archive/${GENTOO_CONFIG_VER}.tar.gz
|
||||
-> gentoo-kernel-config-${GENTOO_CONFIG_VER}.tar.gz
|
||||
verify-sig? (
|
||||
https://cdn.kernel.org/pub/linux/kernel/v$(ver_cut 1).x/sha256sums.asc
|
||||
-> linux-$(ver_cut 1).x-sha256sums-${SHA256SUM_DATE}.asc
|
||||
)
|
||||
amd64? (
|
||||
https://raw.githubusercontent.com/projg2/fedora-kernel-config-for-gentoo/${CONFIG_VER}/kernel-x86_64-fedora.config
|
||||
-> kernel-x86_64-fedora.config.${CONFIG_VER}
|
||||
)
|
||||
arm64? (
|
||||
https://raw.githubusercontent.com/projg2/fedora-kernel-config-for-gentoo/${CONFIG_VER}/kernel-aarch64-fedora.config
|
||||
-> kernel-aarch64-fedora.config.${CONFIG_VER}
|
||||
)
|
||||
ppc64? (
|
||||
https://raw.githubusercontent.com/projg2/fedora-kernel-config-for-gentoo/${CONFIG_VER}/kernel-ppc64le-fedora.config
|
||||
-> kernel-ppc64le-fedora.config.${CONFIG_VER}
|
||||
)
|
||||
x86? (
|
||||
https://raw.githubusercontent.com/projg2/fedora-kernel-config-for-gentoo/${CONFIG_VER}/kernel-i686-fedora.config
|
||||
-> kernel-i686-fedora.config.${CONFIG_VER}
|
||||
)
|
||||
"
|
||||
S=${WORKDIR}/${MY_P}
|
||||
|
||||
KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ppc ~ppc64 ~sparc ~x86"
|
||||
IUSE="debug hardened"
|
||||
REQUIRED_USE="
|
||||
arm? ( savedconfig )
|
||||
hppa? ( savedconfig )
|
||||
sparc? ( savedconfig )
|
||||
"
|
||||
|
||||
BDEPEND="
|
||||
debug? ( dev-util/pahole )
|
||||
verify-sig? ( >=sec-keys/openpgp-keys-kernel-20250702 )
|
||||
"
|
||||
PDEPEND="
|
||||
>=virtual/dist-kernel-${PV}
|
||||
"
|
||||
|
||||
QA_FLAGS_IGNORED="
|
||||
usr/src/linux-.*/scripts/gcc-plugins/.*.so
|
||||
usr/src/linux-.*/vmlinux
|
||||
usr/src/linux-.*/arch/powerpc/kernel/vdso.*/vdso.*.so.dbg
|
||||
"
|
||||
|
||||
VERIFY_SIG_OPENPGP_KEY_PATH=/usr/share/openpgp-keys/kernel.org.asc
|
||||
|
||||
src_unpack() {
|
||||
if use verify-sig; then
|
||||
cd "${DISTDIR}" || die
|
||||
verify-sig_verify_signed_checksums \
|
||||
"linux-$(ver_cut 1).x-sha256sums-${SHA256SUM_DATE}.asc" \
|
||||
sha256 "${MY_P}.tar.xz patch-${PV}.xz"
|
||||
cd "${WORKDIR}" || die
|
||||
fi
|
||||
|
||||
default
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
eapply "${WORKDIR}/patch-${PV}"
|
||||
default
|
||||
|
||||
local biendian=false
|
||||
|
||||
# prepare the default config
|
||||
case ${ARCH} in
|
||||
arm | hppa | sparc)
|
||||
> .config || die
|
||||
;;
|
||||
amd64)
|
||||
cp "${DISTDIR}/kernel-x86_64-fedora.config.${CONFIG_VER}" .config || die
|
||||
;;
|
||||
arm64)
|
||||
cp "${DISTDIR}/kernel-aarch64-fedora.config.${CONFIG_VER}" .config || die
|
||||
biendian=true
|
||||
;;
|
||||
ppc)
|
||||
# assume powermac/powerbook defconfig
|
||||
# we still package.use.force savedconfig
|
||||
cp "${WORKDIR}/${MY_P}/arch/powerpc/configs/pmac32_defconfig" .config || die
|
||||
;;
|
||||
ppc64)
|
||||
cp "${DISTDIR}/kernel-ppc64le-fedora.config.${CONFIG_VER}" .config || die
|
||||
biendian=true
|
||||
;;
|
||||
x86)
|
||||
cp "${DISTDIR}/kernel-i686-fedora.config.${CONFIG_VER}" .config || die
|
||||
;;
|
||||
*)
|
||||
die "Unsupported arch ${ARCH}"
|
||||
;;
|
||||
esac
|
||||
|
||||
local myversion="-dist"
|
||||
use hardened && myversion+="-hardened"
|
||||
echo "CONFIG_LOCALVERSION=\"${myversion}\"" > "${T}"/version.config || die
|
||||
local dist_conf_path="${WORKDIR}/gentoo-kernel-config-${GENTOO_CONFIG_VER}"
|
||||
|
||||
local merge_configs=(
|
||||
"${T}"/version.config
|
||||
"${dist_conf_path}"/base.config
|
||||
)
|
||||
use debug || merge_configs+=(
|
||||
"${dist_conf_path}"/no-debug.config
|
||||
)
|
||||
if use hardened; then
|
||||
merge_configs+=( "${dist_conf_path}"/hardened-base.config )
|
||||
|
||||
tc-is-gcc && merge_configs+=( "${dist_conf_path}"/hardened-gcc-plugins.config )
|
||||
|
||||
if [[ -f "${dist_conf_path}/hardened-${ARCH}.config" ]]; then
|
||||
merge_configs+=( "${dist_conf_path}/hardened-${ARCH}.config" )
|
||||
fi
|
||||
fi
|
||||
|
||||
# this covers ppc64 and aarch64_be only for now
|
||||
if [[ ${biendian} == true && $(tc-endian) == big ]]; then
|
||||
merge_configs+=( "${dist_conf_path}/big-endian.config" )
|
||||
fi
|
||||
|
||||
kernel-build_merge_configs "${merge_configs[@]}"
|
||||
}
|
||||
@@ -1,151 +0,0 @@
|
||||
# Copyright 2020-2025 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
KERNEL_IUSE_MODULES_SIGN=1
|
||||
|
||||
inherit kernel-build toolchain-funcs verify-sig
|
||||
|
||||
BASE_P=linux-${PV%.*}
|
||||
# https://koji.fedoraproject.org/koji/packageinfo?packageID=8
|
||||
# forked to https://github.com/projg2/fedora-kernel-config-for-gentoo
|
||||
CONFIG_VER=6.1.102-gentoo
|
||||
GENTOO_CONFIG_VER=g17
|
||||
SHA256SUM_DATE=20251002
|
||||
|
||||
DESCRIPTION="Linux kernel built from vanilla upstream sources"
|
||||
HOMEPAGE="
|
||||
https://wiki.gentoo.org/wiki/Project:Distribution_Kernel
|
||||
https://www.kernel.org/
|
||||
"
|
||||
SRC_URI+="
|
||||
https://cdn.kernel.org/pub/linux/kernel/v$(ver_cut 1).x/${BASE_P}.tar.xz
|
||||
https://cdn.kernel.org/pub/linux/kernel/v$(ver_cut 1).x/patch-${PV}.xz
|
||||
https://github.com/projg2/gentoo-kernel-config/archive/${GENTOO_CONFIG_VER}.tar.gz
|
||||
-> gentoo-kernel-config-${GENTOO_CONFIG_VER}.tar.gz
|
||||
verify-sig? (
|
||||
https://cdn.kernel.org/pub/linux/kernel/v$(ver_cut 1).x/sha256sums.asc
|
||||
-> linux-$(ver_cut 1).x-sha256sums-${SHA256SUM_DATE}.asc
|
||||
)
|
||||
amd64? (
|
||||
https://raw.githubusercontent.com/projg2/fedora-kernel-config-for-gentoo/${CONFIG_VER}/kernel-x86_64-fedora.config
|
||||
-> kernel-x86_64-fedora.config.${CONFIG_VER}
|
||||
)
|
||||
arm64? (
|
||||
https://raw.githubusercontent.com/projg2/fedora-kernel-config-for-gentoo/${CONFIG_VER}/kernel-aarch64-fedora.config
|
||||
-> kernel-aarch64-fedora.config.${CONFIG_VER}
|
||||
)
|
||||
ppc64? (
|
||||
https://raw.githubusercontent.com/projg2/fedora-kernel-config-for-gentoo/${CONFIG_VER}/kernel-ppc64le-fedora.config
|
||||
-> kernel-ppc64le-fedora.config.${CONFIG_VER}
|
||||
)
|
||||
x86? (
|
||||
https://raw.githubusercontent.com/projg2/fedora-kernel-config-for-gentoo/${CONFIG_VER}/kernel-i686-fedora.config
|
||||
-> kernel-i686-fedora.config.${CONFIG_VER}
|
||||
)
|
||||
"
|
||||
S=${WORKDIR}/${BASE_P}
|
||||
|
||||
KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ppc ~ppc64 ~sparc ~x86"
|
||||
IUSE="debug hardened"
|
||||
REQUIRED_USE="
|
||||
arm? ( savedconfig )
|
||||
hppa? ( savedconfig )
|
||||
sparc? ( savedconfig )
|
||||
"
|
||||
|
||||
BDEPEND="
|
||||
debug? ( dev-util/pahole )
|
||||
verify-sig? ( >=sec-keys/openpgp-keys-kernel-20250702 )
|
||||
"
|
||||
PDEPEND="
|
||||
>=virtual/dist-kernel-${PV}
|
||||
"
|
||||
|
||||
QA_FLAGS_IGNORED="
|
||||
usr/src/linux-.*/scripts/gcc-plugins/.*.so
|
||||
usr/src/linux-.*/vmlinux
|
||||
usr/src/linux-.*/arch/powerpc/kernel/vdso.*/vdso.*.so.dbg
|
||||
"
|
||||
|
||||
VERIFY_SIG_OPENPGP_KEY_PATH=/usr/share/openpgp-keys/kernel.org.asc
|
||||
|
||||
src_unpack() {
|
||||
if use verify-sig; then
|
||||
cd "${DISTDIR}" || die
|
||||
verify-sig_verify_signed_checksums \
|
||||
"linux-$(ver_cut 1).x-sha256sums-${SHA256SUM_DATE}.asc" \
|
||||
sha256 "${BASE_P}.tar.xz patch-${PV}.xz"
|
||||
cd "${WORKDIR}" || die
|
||||
fi
|
||||
|
||||
default
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
eapply "${WORKDIR}/patch-${PV}"
|
||||
default
|
||||
|
||||
local biendian=false
|
||||
|
||||
# prepare the default config
|
||||
case ${ARCH} in
|
||||
arm | hppa | sparc)
|
||||
> .config || die
|
||||
;;
|
||||
amd64)
|
||||
cp "${DISTDIR}/kernel-x86_64-fedora.config.${CONFIG_VER}" .config || die
|
||||
;;
|
||||
arm64)
|
||||
cp "${DISTDIR}/kernel-aarch64-fedora.config.${CONFIG_VER}" .config || die
|
||||
biendian=true
|
||||
;;
|
||||
ppc)
|
||||
# assume powermac/powerbook defconfig
|
||||
# we still package.use.force savedconfig
|
||||
cp "${WORKDIR}/${BASE_P}/arch/powerpc/configs/pmac32_defconfig" .config || die
|
||||
;;
|
||||
ppc64)
|
||||
cp "${DISTDIR}/kernel-ppc64le-fedora.config.${CONFIG_VER}" .config || die
|
||||
biendian=true
|
||||
;;
|
||||
x86)
|
||||
cp "${DISTDIR}/kernel-i686-fedora.config.${CONFIG_VER}" .config || die
|
||||
;;
|
||||
*)
|
||||
die "Unsupported arch ${ARCH}"
|
||||
;;
|
||||
esac
|
||||
|
||||
local myversion="-dist"
|
||||
use hardened && myversion+="-hardened"
|
||||
echo "CONFIG_LOCALVERSION=\"${myversion}\"" > "${T}"/version.config || die
|
||||
local dist_conf_path="${WORKDIR}/gentoo-kernel-config-${GENTOO_CONFIG_VER}"
|
||||
|
||||
local merge_configs=(
|
||||
"${T}"/version.config
|
||||
"${dist_conf_path}"/base.config
|
||||
)
|
||||
use debug || merge_configs+=(
|
||||
"${dist_conf_path}"/no-debug.config
|
||||
)
|
||||
if use hardened; then
|
||||
merge_configs+=( "${dist_conf_path}"/hardened-base.config )
|
||||
|
||||
tc-is-gcc && merge_configs+=( "${dist_conf_path}"/hardened-gcc-plugins.config )
|
||||
|
||||
if [[ -f "${dist_conf_path}/hardened-${ARCH}.config" ]]; then
|
||||
merge_configs+=( "${dist_conf_path}/hardened-${ARCH}.config" )
|
||||
fi
|
||||
fi
|
||||
|
||||
# this covers ppc64 and aarch64_be only for now
|
||||
if [[ ${biendian} == true && $(tc-endian) == big ]]; then
|
||||
merge_configs+=( "${dist_conf_path}/big-endian.config" )
|
||||
fi
|
||||
|
||||
use secureboot && merge_configs+=( "${dist_conf_path}/secureboot.config" )
|
||||
|
||||
kernel-build_merge_configs "${merge_configs[@]}"
|
||||
}
|
||||
@@ -1,148 +0,0 @@
|
||||
# Copyright 2020-2025 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
inherit kernel-build toolchain-funcs verify-sig
|
||||
|
||||
MY_P=linux-${PV%.*}
|
||||
# https://koji.fedoraproject.org/koji/packageinfo?packageID=8
|
||||
# forked to https://github.com/projg2/fedora-kernel-config-for-gentoo
|
||||
CONFIG_VER=6.1.102-gentoo
|
||||
GENTOO_CONFIG_VER=g16
|
||||
SHA256SUM_DATE=20250724
|
||||
|
||||
DESCRIPTION="Linux kernel built from vanilla upstream sources"
|
||||
HOMEPAGE="
|
||||
https://wiki.gentoo.org/wiki/Project:Distribution_Kernel
|
||||
https://www.kernel.org/
|
||||
"
|
||||
SRC_URI+="
|
||||
https://cdn.kernel.org/pub/linux/kernel/v$(ver_cut 1).x/${MY_P}.tar.xz
|
||||
https://cdn.kernel.org/pub/linux/kernel/v$(ver_cut 1).x/patch-${PV}.xz
|
||||
https://github.com/projg2/gentoo-kernel-config/archive/${GENTOO_CONFIG_VER}.tar.gz
|
||||
-> gentoo-kernel-config-${GENTOO_CONFIG_VER}.tar.gz
|
||||
verify-sig? (
|
||||
https://cdn.kernel.org/pub/linux/kernel/v$(ver_cut 1).x/sha256sums.asc
|
||||
-> linux-$(ver_cut 1).x-sha256sums-${SHA256SUM_DATE}.asc
|
||||
)
|
||||
amd64? (
|
||||
https://raw.githubusercontent.com/projg2/fedora-kernel-config-for-gentoo/${CONFIG_VER}/kernel-x86_64-fedora.config
|
||||
-> kernel-x86_64-fedora.config.${CONFIG_VER}
|
||||
)
|
||||
arm64? (
|
||||
https://raw.githubusercontent.com/projg2/fedora-kernel-config-for-gentoo/${CONFIG_VER}/kernel-aarch64-fedora.config
|
||||
-> kernel-aarch64-fedora.config.${CONFIG_VER}
|
||||
)
|
||||
ppc64? (
|
||||
https://raw.githubusercontent.com/projg2/fedora-kernel-config-for-gentoo/${CONFIG_VER}/kernel-ppc64le-fedora.config
|
||||
-> kernel-ppc64le-fedora.config.${CONFIG_VER}
|
||||
)
|
||||
x86? (
|
||||
https://raw.githubusercontent.com/projg2/fedora-kernel-config-for-gentoo/${CONFIG_VER}/kernel-i686-fedora.config
|
||||
-> kernel-i686-fedora.config.${CONFIG_VER}
|
||||
)
|
||||
"
|
||||
S=${WORKDIR}/${MY_P}
|
||||
|
||||
KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~loong ~ppc ~ppc64 ~riscv ~sparc ~x86"
|
||||
IUSE="debug hardened"
|
||||
REQUIRED_USE="
|
||||
arm? ( savedconfig )
|
||||
hppa? ( savedconfig )
|
||||
riscv? ( savedconfig )
|
||||
sparc? ( savedconfig )
|
||||
"
|
||||
|
||||
BDEPEND="
|
||||
debug? ( dev-util/pahole )
|
||||
verify-sig? ( >=sec-keys/openpgp-keys-kernel-20250702 )
|
||||
"
|
||||
PDEPEND="
|
||||
>=virtual/dist-kernel-${PV}
|
||||
"
|
||||
|
||||
QA_FLAGS_IGNORED="
|
||||
usr/src/linux-.*/scripts/gcc-plugins/.*.so
|
||||
usr/src/linux-.*/vmlinux
|
||||
usr/src/linux-.*/arch/powerpc/kernel/vdso.*/vdso.*.so.dbg
|
||||
"
|
||||
|
||||
VERIFY_SIG_OPENPGP_KEY_PATH=/usr/share/openpgp-keys/kernel.org.asc
|
||||
|
||||
src_unpack() {
|
||||
if use verify-sig; then
|
||||
cd "${DISTDIR}" || die
|
||||
verify-sig_verify_signed_checksums \
|
||||
"linux-$(ver_cut 1).x-sha256sums-${SHA256SUM_DATE}.asc" \
|
||||
sha256 "${MY_P}.tar.xz patch-${PV}.xz"
|
||||
cd "${WORKDIR}" || die
|
||||
fi
|
||||
|
||||
default
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
eapply "${WORKDIR}/patch-${PV}"
|
||||
default
|
||||
|
||||
local biendian=false
|
||||
|
||||
# prepare the default config
|
||||
case ${ARCH} in
|
||||
arm | hppa | loong | riscv | sparc)
|
||||
> .config || die
|
||||
;;
|
||||
amd64)
|
||||
cp "${DISTDIR}/kernel-x86_64-fedora.config.${CONFIG_VER}" .config || die
|
||||
;;
|
||||
arm64)
|
||||
cp "${DISTDIR}/kernel-aarch64-fedora.config.${CONFIG_VER}" .config || die
|
||||
biendian=true
|
||||
;;
|
||||
ppc)
|
||||
# assume powermac/powerbook defconfig
|
||||
# we still package.use.force savedconfig
|
||||
cp "${WORKDIR}/${MY_P}/arch/powerpc/configs/pmac32_defconfig" .config || die
|
||||
;;
|
||||
ppc64)
|
||||
cp "${DISTDIR}/kernel-ppc64le-fedora.config.${CONFIG_VER}" .config || die
|
||||
biendian=true
|
||||
;;
|
||||
x86)
|
||||
cp "${DISTDIR}/kernel-i686-fedora.config.${CONFIG_VER}" .config || die
|
||||
;;
|
||||
*)
|
||||
die "Unsupported arch ${ARCH}"
|
||||
;;
|
||||
esac
|
||||
|
||||
local myversion="-dist"
|
||||
use hardened && myversion+="-hardened"
|
||||
echo "CONFIG_LOCALVERSION=\"${myversion}\"" > "${T}"/version.config || die
|
||||
local dist_conf_path="${WORKDIR}/gentoo-kernel-config-${GENTOO_CONFIG_VER}"
|
||||
|
||||
local merge_configs=(
|
||||
"${T}"/version.config
|
||||
"${dist_conf_path}"/base.config
|
||||
)
|
||||
use debug || merge_configs+=(
|
||||
"${dist_conf_path}"/no-debug.config
|
||||
)
|
||||
if use hardened; then
|
||||
merge_configs+=( "${dist_conf_path}"/hardened-base.config )
|
||||
|
||||
tc-is-gcc && merge_configs+=( "${dist_conf_path}"/hardened-gcc-plugins.config )
|
||||
|
||||
if [[ -f "${dist_conf_path}/hardened-${ARCH}.config" ]]; then
|
||||
merge_configs+=( "${dist_conf_path}/hardened-${ARCH}.config" )
|
||||
fi
|
||||
fi
|
||||
|
||||
# this covers ppc64 and aarch64_be only for now
|
||||
if [[ ${biendian} == true && $(tc-endian) == big ]]; then
|
||||
merge_configs+=( "${dist_conf_path}/big-endian.config" )
|
||||
fi
|
||||
|
||||
kernel-build_merge_configs "${merge_configs[@]}"
|
||||
}
|
||||
@@ -1,152 +0,0 @@
|
||||
# Copyright 2020-2025 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
KERNEL_IUSE_MODULES_SIGN=1
|
||||
|
||||
inherit kernel-build toolchain-funcs verify-sig
|
||||
|
||||
BASE_P=linux-${PV%.*}
|
||||
# https://koji.fedoraproject.org/koji/packageinfo?packageID=8
|
||||
# forked to https://github.com/projg2/fedora-kernel-config-for-gentoo
|
||||
CONFIG_VER=6.1.102-gentoo
|
||||
GENTOO_CONFIG_VER=g17
|
||||
SHA256SUM_DATE=20250919
|
||||
|
||||
DESCRIPTION="Linux kernel built from vanilla upstream sources"
|
||||
HOMEPAGE="
|
||||
https://wiki.gentoo.org/wiki/Project:Distribution_Kernel
|
||||
https://www.kernel.org/
|
||||
"
|
||||
SRC_URI+="
|
||||
https://cdn.kernel.org/pub/linux/kernel/v$(ver_cut 1).x/${BASE_P}.tar.xz
|
||||
https://cdn.kernel.org/pub/linux/kernel/v$(ver_cut 1).x/patch-${PV}.xz
|
||||
https://github.com/projg2/gentoo-kernel-config/archive/${GENTOO_CONFIG_VER}.tar.gz
|
||||
-> gentoo-kernel-config-${GENTOO_CONFIG_VER}.tar.gz
|
||||
verify-sig? (
|
||||
https://cdn.kernel.org/pub/linux/kernel/v$(ver_cut 1).x/sha256sums.asc
|
||||
-> linux-$(ver_cut 1).x-sha256sums-${SHA256SUM_DATE}.asc
|
||||
)
|
||||
amd64? (
|
||||
https://raw.githubusercontent.com/projg2/fedora-kernel-config-for-gentoo/${CONFIG_VER}/kernel-x86_64-fedora.config
|
||||
-> kernel-x86_64-fedora.config.${CONFIG_VER}
|
||||
)
|
||||
arm64? (
|
||||
https://raw.githubusercontent.com/projg2/fedora-kernel-config-for-gentoo/${CONFIG_VER}/kernel-aarch64-fedora.config
|
||||
-> kernel-aarch64-fedora.config.${CONFIG_VER}
|
||||
)
|
||||
ppc64? (
|
||||
https://raw.githubusercontent.com/projg2/fedora-kernel-config-for-gentoo/${CONFIG_VER}/kernel-ppc64le-fedora.config
|
||||
-> kernel-ppc64le-fedora.config.${CONFIG_VER}
|
||||
)
|
||||
x86? (
|
||||
https://raw.githubusercontent.com/projg2/fedora-kernel-config-for-gentoo/${CONFIG_VER}/kernel-i686-fedora.config
|
||||
-> kernel-i686-fedora.config.${CONFIG_VER}
|
||||
)
|
||||
"
|
||||
S=${WORKDIR}/${BASE_P}
|
||||
|
||||
KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~loong ~ppc ~ppc64 ~riscv ~sparc ~x86"
|
||||
IUSE="debug hardened"
|
||||
REQUIRED_USE="
|
||||
arm? ( savedconfig )
|
||||
hppa? ( savedconfig )
|
||||
riscv? ( savedconfig )
|
||||
sparc? ( savedconfig )
|
||||
"
|
||||
|
||||
BDEPEND="
|
||||
debug? ( dev-util/pahole )
|
||||
verify-sig? ( >=sec-keys/openpgp-keys-kernel-20250702 )
|
||||
"
|
||||
PDEPEND="
|
||||
>=virtual/dist-kernel-${PV}
|
||||
"
|
||||
|
||||
QA_FLAGS_IGNORED="
|
||||
usr/src/linux-.*/scripts/gcc-plugins/.*.so
|
||||
usr/src/linux-.*/vmlinux
|
||||
usr/src/linux-.*/arch/powerpc/kernel/vdso.*/vdso.*.so.dbg
|
||||
"
|
||||
|
||||
VERIFY_SIG_OPENPGP_KEY_PATH=/usr/share/openpgp-keys/kernel.org.asc
|
||||
|
||||
src_unpack() {
|
||||
if use verify-sig; then
|
||||
cd "${DISTDIR}" || die
|
||||
verify-sig_verify_signed_checksums \
|
||||
"linux-$(ver_cut 1).x-sha256sums-${SHA256SUM_DATE}.asc" \
|
||||
sha256 "${BASE_P}.tar.xz patch-${PV}.xz"
|
||||
cd "${WORKDIR}" || die
|
||||
fi
|
||||
|
||||
default
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
eapply "${WORKDIR}/patch-${PV}"
|
||||
default
|
||||
|
||||
local biendian=false
|
||||
|
||||
# prepare the default config
|
||||
case ${ARCH} in
|
||||
arm | hppa | loong | riscv | sparc)
|
||||
> .config || die
|
||||
;;
|
||||
amd64)
|
||||
cp "${DISTDIR}/kernel-x86_64-fedora.config.${CONFIG_VER}" .config || die
|
||||
;;
|
||||
arm64)
|
||||
cp "${DISTDIR}/kernel-aarch64-fedora.config.${CONFIG_VER}" .config || die
|
||||
biendian=true
|
||||
;;
|
||||
ppc)
|
||||
# assume powermac/powerbook defconfig
|
||||
# we still package.use.force savedconfig
|
||||
cp "${WORKDIR}/${BASE_P}/arch/powerpc/configs/pmac32_defconfig" .config || die
|
||||
;;
|
||||
ppc64)
|
||||
cp "${DISTDIR}/kernel-ppc64le-fedora.config.${CONFIG_VER}" .config || die
|
||||
biendian=true
|
||||
;;
|
||||
x86)
|
||||
cp "${DISTDIR}/kernel-i686-fedora.config.${CONFIG_VER}" .config || die
|
||||
;;
|
||||
*)
|
||||
die "Unsupported arch ${ARCH}"
|
||||
;;
|
||||
esac
|
||||
|
||||
local myversion="-dist"
|
||||
use hardened && myversion+="-hardened"
|
||||
echo "CONFIG_LOCALVERSION=\"${myversion}\"" > "${T}"/version.config || die
|
||||
local dist_conf_path="${WORKDIR}/gentoo-kernel-config-${GENTOO_CONFIG_VER}"
|
||||
|
||||
local merge_configs=(
|
||||
"${T}"/version.config
|
||||
"${dist_conf_path}"/base.config
|
||||
)
|
||||
use debug || merge_configs+=(
|
||||
"${dist_conf_path}"/no-debug.config
|
||||
)
|
||||
if use hardened; then
|
||||
merge_configs+=( "${dist_conf_path}"/hardened-base.config )
|
||||
|
||||
tc-is-gcc && merge_configs+=( "${dist_conf_path}"/hardened-gcc-plugins.config )
|
||||
|
||||
if [[ -f "${dist_conf_path}/hardened-${ARCH}.config" ]]; then
|
||||
merge_configs+=( "${dist_conf_path}/hardened-${ARCH}.config" )
|
||||
fi
|
||||
fi
|
||||
|
||||
# this covers ppc64 and aarch64_be only for now
|
||||
if [[ ${biendian} == true && $(tc-endian) == big ]]; then
|
||||
merge_configs+=( "${dist_conf_path}/big-endian.config" )
|
||||
fi
|
||||
|
||||
use secureboot && merge_configs+=( "${dist_conf_path}/secureboot.config" )
|
||||
|
||||
kernel-build_merge_configs "${merge_configs[@]}"
|
||||
}
|
||||
@@ -1,152 +0,0 @@
|
||||
# Copyright 2020-2025 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
KERNEL_IUSE_MODULES_SIGN=1
|
||||
|
||||
inherit kernel-build toolchain-funcs verify-sig
|
||||
|
||||
BASE_P=linux-${PV%.*}
|
||||
# https://koji.fedoraproject.org/koji/packageinfo?packageID=8
|
||||
# forked to https://github.com/projg2/fedora-kernel-config-for-gentoo
|
||||
CONFIG_VER=6.1.102-gentoo
|
||||
GENTOO_CONFIG_VER=g17
|
||||
SHA256SUM_DATE=20250925
|
||||
|
||||
DESCRIPTION="Linux kernel built from vanilla upstream sources"
|
||||
HOMEPAGE="
|
||||
https://wiki.gentoo.org/wiki/Project:Distribution_Kernel
|
||||
https://www.kernel.org/
|
||||
"
|
||||
SRC_URI+="
|
||||
https://cdn.kernel.org/pub/linux/kernel/v$(ver_cut 1).x/${BASE_P}.tar.xz
|
||||
https://cdn.kernel.org/pub/linux/kernel/v$(ver_cut 1).x/patch-${PV}.xz
|
||||
https://github.com/projg2/gentoo-kernel-config/archive/${GENTOO_CONFIG_VER}.tar.gz
|
||||
-> gentoo-kernel-config-${GENTOO_CONFIG_VER}.tar.gz
|
||||
verify-sig? (
|
||||
https://cdn.kernel.org/pub/linux/kernel/v$(ver_cut 1).x/sha256sums.asc
|
||||
-> linux-$(ver_cut 1).x-sha256sums-${SHA256SUM_DATE}.asc
|
||||
)
|
||||
amd64? (
|
||||
https://raw.githubusercontent.com/projg2/fedora-kernel-config-for-gentoo/${CONFIG_VER}/kernel-x86_64-fedora.config
|
||||
-> kernel-x86_64-fedora.config.${CONFIG_VER}
|
||||
)
|
||||
arm64? (
|
||||
https://raw.githubusercontent.com/projg2/fedora-kernel-config-for-gentoo/${CONFIG_VER}/kernel-aarch64-fedora.config
|
||||
-> kernel-aarch64-fedora.config.${CONFIG_VER}
|
||||
)
|
||||
ppc64? (
|
||||
https://raw.githubusercontent.com/projg2/fedora-kernel-config-for-gentoo/${CONFIG_VER}/kernel-ppc64le-fedora.config
|
||||
-> kernel-ppc64le-fedora.config.${CONFIG_VER}
|
||||
)
|
||||
x86? (
|
||||
https://raw.githubusercontent.com/projg2/fedora-kernel-config-for-gentoo/${CONFIG_VER}/kernel-i686-fedora.config
|
||||
-> kernel-i686-fedora.config.${CONFIG_VER}
|
||||
)
|
||||
"
|
||||
S=${WORKDIR}/${BASE_P}
|
||||
|
||||
KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~loong ~ppc ~ppc64 ~riscv ~sparc ~x86"
|
||||
IUSE="debug hardened"
|
||||
REQUIRED_USE="
|
||||
arm? ( savedconfig )
|
||||
hppa? ( savedconfig )
|
||||
riscv? ( savedconfig )
|
||||
sparc? ( savedconfig )
|
||||
"
|
||||
|
||||
BDEPEND="
|
||||
debug? ( dev-util/pahole )
|
||||
verify-sig? ( >=sec-keys/openpgp-keys-kernel-20250702 )
|
||||
"
|
||||
PDEPEND="
|
||||
>=virtual/dist-kernel-${PV}
|
||||
"
|
||||
|
||||
QA_FLAGS_IGNORED="
|
||||
usr/src/linux-.*/scripts/gcc-plugins/.*.so
|
||||
usr/src/linux-.*/vmlinux
|
||||
usr/src/linux-.*/arch/powerpc/kernel/vdso.*/vdso.*.so.dbg
|
||||
"
|
||||
|
||||
VERIFY_SIG_OPENPGP_KEY_PATH=/usr/share/openpgp-keys/kernel.org.asc
|
||||
|
||||
src_unpack() {
|
||||
if use verify-sig; then
|
||||
cd "${DISTDIR}" || die
|
||||
verify-sig_verify_signed_checksums \
|
||||
"linux-$(ver_cut 1).x-sha256sums-${SHA256SUM_DATE}.asc" \
|
||||
sha256 "${BASE_P}.tar.xz patch-${PV}.xz"
|
||||
cd "${WORKDIR}" || die
|
||||
fi
|
||||
|
||||
default
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
eapply "${WORKDIR}/patch-${PV}"
|
||||
default
|
||||
|
||||
local biendian=false
|
||||
|
||||
# prepare the default config
|
||||
case ${ARCH} in
|
||||
arm | hppa | loong | riscv | sparc)
|
||||
> .config || die
|
||||
;;
|
||||
amd64)
|
||||
cp "${DISTDIR}/kernel-x86_64-fedora.config.${CONFIG_VER}" .config || die
|
||||
;;
|
||||
arm64)
|
||||
cp "${DISTDIR}/kernel-aarch64-fedora.config.${CONFIG_VER}" .config || die
|
||||
biendian=true
|
||||
;;
|
||||
ppc)
|
||||
# assume powermac/powerbook defconfig
|
||||
# we still package.use.force savedconfig
|
||||
cp "${WORKDIR}/${BASE_P}/arch/powerpc/configs/pmac32_defconfig" .config || die
|
||||
;;
|
||||
ppc64)
|
||||
cp "${DISTDIR}/kernel-ppc64le-fedora.config.${CONFIG_VER}" .config || die
|
||||
biendian=true
|
||||
;;
|
||||
x86)
|
||||
cp "${DISTDIR}/kernel-i686-fedora.config.${CONFIG_VER}" .config || die
|
||||
;;
|
||||
*)
|
||||
die "Unsupported arch ${ARCH}"
|
||||
;;
|
||||
esac
|
||||
|
||||
local myversion="-dist"
|
||||
use hardened && myversion+="-hardened"
|
||||
echo "CONFIG_LOCALVERSION=\"${myversion}\"" > "${T}"/version.config || die
|
||||
local dist_conf_path="${WORKDIR}/gentoo-kernel-config-${GENTOO_CONFIG_VER}"
|
||||
|
||||
local merge_configs=(
|
||||
"${T}"/version.config
|
||||
"${dist_conf_path}"/base.config
|
||||
)
|
||||
use debug || merge_configs+=(
|
||||
"${dist_conf_path}"/no-debug.config
|
||||
)
|
||||
if use hardened; then
|
||||
merge_configs+=( "${dist_conf_path}"/hardened-base.config )
|
||||
|
||||
tc-is-gcc && merge_configs+=( "${dist_conf_path}"/hardened-gcc-plugins.config )
|
||||
|
||||
if [[ -f "${dist_conf_path}/hardened-${ARCH}.config" ]]; then
|
||||
merge_configs+=( "${dist_conf_path}/hardened-${ARCH}.config" )
|
||||
fi
|
||||
fi
|
||||
|
||||
# this covers ppc64 and aarch64_be only for now
|
||||
if [[ ${biendian} == true && $(tc-endian) == big ]]; then
|
||||
merge_configs+=( "${dist_conf_path}/big-endian.config" )
|
||||
fi
|
||||
|
||||
use secureboot && merge_configs+=( "${dist_conf_path}/secureboot.config" )
|
||||
|
||||
kernel-build_merge_configs "${merge_configs[@]}"
|
||||
}
|
||||
@@ -1,152 +0,0 @@
|
||||
# Copyright 2020-2025 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
KERNEL_IUSE_MODULES_SIGN=1
|
||||
|
||||
inherit kernel-build toolchain-funcs verify-sig
|
||||
|
||||
BASE_P=linux-${PV%.*}
|
||||
# https://koji.fedoraproject.org/koji/packageinfo?packageID=8
|
||||
# forked to https://github.com/projg2/fedora-kernel-config-for-gentoo
|
||||
CONFIG_VER=6.1.102-gentoo
|
||||
GENTOO_CONFIG_VER=g17
|
||||
SHA256SUM_DATE=20251002
|
||||
|
||||
DESCRIPTION="Linux kernel built from vanilla upstream sources"
|
||||
HOMEPAGE="
|
||||
https://wiki.gentoo.org/wiki/Project:Distribution_Kernel
|
||||
https://www.kernel.org/
|
||||
"
|
||||
SRC_URI+="
|
||||
https://cdn.kernel.org/pub/linux/kernel/v$(ver_cut 1).x/${BASE_P}.tar.xz
|
||||
https://cdn.kernel.org/pub/linux/kernel/v$(ver_cut 1).x/patch-${PV}.xz
|
||||
https://github.com/projg2/gentoo-kernel-config/archive/${GENTOO_CONFIG_VER}.tar.gz
|
||||
-> gentoo-kernel-config-${GENTOO_CONFIG_VER}.tar.gz
|
||||
verify-sig? (
|
||||
https://cdn.kernel.org/pub/linux/kernel/v$(ver_cut 1).x/sha256sums.asc
|
||||
-> linux-$(ver_cut 1).x-sha256sums-${SHA256SUM_DATE}.asc
|
||||
)
|
||||
amd64? (
|
||||
https://raw.githubusercontent.com/projg2/fedora-kernel-config-for-gentoo/${CONFIG_VER}/kernel-x86_64-fedora.config
|
||||
-> kernel-x86_64-fedora.config.${CONFIG_VER}
|
||||
)
|
||||
arm64? (
|
||||
https://raw.githubusercontent.com/projg2/fedora-kernel-config-for-gentoo/${CONFIG_VER}/kernel-aarch64-fedora.config
|
||||
-> kernel-aarch64-fedora.config.${CONFIG_VER}
|
||||
)
|
||||
ppc64? (
|
||||
https://raw.githubusercontent.com/projg2/fedora-kernel-config-for-gentoo/${CONFIG_VER}/kernel-ppc64le-fedora.config
|
||||
-> kernel-ppc64le-fedora.config.${CONFIG_VER}
|
||||
)
|
||||
x86? (
|
||||
https://raw.githubusercontent.com/projg2/fedora-kernel-config-for-gentoo/${CONFIG_VER}/kernel-i686-fedora.config
|
||||
-> kernel-i686-fedora.config.${CONFIG_VER}
|
||||
)
|
||||
"
|
||||
S=${WORKDIR}/${BASE_P}
|
||||
|
||||
KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~loong ~ppc ~ppc64 ~riscv ~sparc ~x86"
|
||||
IUSE="debug hardened"
|
||||
REQUIRED_USE="
|
||||
arm? ( savedconfig )
|
||||
hppa? ( savedconfig )
|
||||
riscv? ( savedconfig )
|
||||
sparc? ( savedconfig )
|
||||
"
|
||||
|
||||
BDEPEND="
|
||||
debug? ( dev-util/pahole )
|
||||
verify-sig? ( >=sec-keys/openpgp-keys-kernel-20250702 )
|
||||
"
|
||||
PDEPEND="
|
||||
>=virtual/dist-kernel-${PV}
|
||||
"
|
||||
|
||||
QA_FLAGS_IGNORED="
|
||||
usr/src/linux-.*/scripts/gcc-plugins/.*.so
|
||||
usr/src/linux-.*/vmlinux
|
||||
usr/src/linux-.*/arch/powerpc/kernel/vdso.*/vdso.*.so.dbg
|
||||
"
|
||||
|
||||
VERIFY_SIG_OPENPGP_KEY_PATH=/usr/share/openpgp-keys/kernel.org.asc
|
||||
|
||||
src_unpack() {
|
||||
if use verify-sig; then
|
||||
cd "${DISTDIR}" || die
|
||||
verify-sig_verify_signed_checksums \
|
||||
"linux-$(ver_cut 1).x-sha256sums-${SHA256SUM_DATE}.asc" \
|
||||
sha256 "${BASE_P}.tar.xz patch-${PV}.xz"
|
||||
cd "${WORKDIR}" || die
|
||||
fi
|
||||
|
||||
default
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
eapply "${WORKDIR}/patch-${PV}"
|
||||
default
|
||||
|
||||
local biendian=false
|
||||
|
||||
# prepare the default config
|
||||
case ${ARCH} in
|
||||
arm | hppa | loong | riscv | sparc)
|
||||
> .config || die
|
||||
;;
|
||||
amd64)
|
||||
cp "${DISTDIR}/kernel-x86_64-fedora.config.${CONFIG_VER}" .config || die
|
||||
;;
|
||||
arm64)
|
||||
cp "${DISTDIR}/kernel-aarch64-fedora.config.${CONFIG_VER}" .config || die
|
||||
biendian=true
|
||||
;;
|
||||
ppc)
|
||||
# assume powermac/powerbook defconfig
|
||||
# we still package.use.force savedconfig
|
||||
cp "${WORKDIR}/${BASE_P}/arch/powerpc/configs/pmac32_defconfig" .config || die
|
||||
;;
|
||||
ppc64)
|
||||
cp "${DISTDIR}/kernel-ppc64le-fedora.config.${CONFIG_VER}" .config || die
|
||||
biendian=true
|
||||
;;
|
||||
x86)
|
||||
cp "${DISTDIR}/kernel-i686-fedora.config.${CONFIG_VER}" .config || die
|
||||
;;
|
||||
*)
|
||||
die "Unsupported arch ${ARCH}"
|
||||
;;
|
||||
esac
|
||||
|
||||
local myversion="-dist"
|
||||
use hardened && myversion+="-hardened"
|
||||
echo "CONFIG_LOCALVERSION=\"${myversion}\"" > "${T}"/version.config || die
|
||||
local dist_conf_path="${WORKDIR}/gentoo-kernel-config-${GENTOO_CONFIG_VER}"
|
||||
|
||||
local merge_configs=(
|
||||
"${T}"/version.config
|
||||
"${dist_conf_path}"/base.config
|
||||
)
|
||||
use debug || merge_configs+=(
|
||||
"${dist_conf_path}"/no-debug.config
|
||||
)
|
||||
if use hardened; then
|
||||
merge_configs+=( "${dist_conf_path}"/hardened-base.config )
|
||||
|
||||
tc-is-gcc && merge_configs+=( "${dist_conf_path}"/hardened-gcc-plugins.config )
|
||||
|
||||
if [[ -f "${dist_conf_path}/hardened-${ARCH}.config" ]]; then
|
||||
merge_configs+=( "${dist_conf_path}/hardened-${ARCH}.config" )
|
||||
fi
|
||||
fi
|
||||
|
||||
# this covers ppc64 and aarch64_be only for now
|
||||
if [[ ${biendian} == true && $(tc-endian) == big ]]; then
|
||||
merge_configs+=( "${dist_conf_path}/big-endian.config" )
|
||||
fi
|
||||
|
||||
use secureboot && merge_configs+=( "${dist_conf_path}/secureboot.config" )
|
||||
|
||||
kernel-build_merge_configs "${merge_configs[@]}"
|
||||
}
|
||||
@@ -1,152 +0,0 @@
|
||||
# Copyright 2020-2025 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
KERNEL_IUSE_MODULES_SIGN=1
|
||||
|
||||
inherit kernel-build toolchain-funcs verify-sig
|
||||
|
||||
BASE_P=linux-${PV%.*}
|
||||
# https://koji.fedoraproject.org/koji/packageinfo?packageID=8
|
||||
# forked to https://github.com/projg2/fedora-kernel-config-for-gentoo
|
||||
CONFIG_VER=6.1.102-gentoo
|
||||
GENTOO_CONFIG_VER=g17
|
||||
SHA256SUM_DATE=20251015
|
||||
|
||||
DESCRIPTION="Linux kernel built from vanilla upstream sources"
|
||||
HOMEPAGE="
|
||||
https://wiki.gentoo.org/wiki/Project:Distribution_Kernel
|
||||
https://www.kernel.org/
|
||||
"
|
||||
SRC_URI+="
|
||||
https://cdn.kernel.org/pub/linux/kernel/v$(ver_cut 1).x/${BASE_P}.tar.xz
|
||||
https://cdn.kernel.org/pub/linux/kernel/v$(ver_cut 1).x/patch-${PV}.xz
|
||||
https://github.com/projg2/gentoo-kernel-config/archive/${GENTOO_CONFIG_VER}.tar.gz
|
||||
-> gentoo-kernel-config-${GENTOO_CONFIG_VER}.tar.gz
|
||||
verify-sig? (
|
||||
https://cdn.kernel.org/pub/linux/kernel/v$(ver_cut 1).x/sha256sums.asc
|
||||
-> linux-$(ver_cut 1).x-sha256sums-${SHA256SUM_DATE}.asc
|
||||
)
|
||||
amd64? (
|
||||
https://raw.githubusercontent.com/projg2/fedora-kernel-config-for-gentoo/${CONFIG_VER}/kernel-x86_64-fedora.config
|
||||
-> kernel-x86_64-fedora.config.${CONFIG_VER}
|
||||
)
|
||||
arm64? (
|
||||
https://raw.githubusercontent.com/projg2/fedora-kernel-config-for-gentoo/${CONFIG_VER}/kernel-aarch64-fedora.config
|
||||
-> kernel-aarch64-fedora.config.${CONFIG_VER}
|
||||
)
|
||||
ppc64? (
|
||||
https://raw.githubusercontent.com/projg2/fedora-kernel-config-for-gentoo/${CONFIG_VER}/kernel-ppc64le-fedora.config
|
||||
-> kernel-ppc64le-fedora.config.${CONFIG_VER}
|
||||
)
|
||||
x86? (
|
||||
https://raw.githubusercontent.com/projg2/fedora-kernel-config-for-gentoo/${CONFIG_VER}/kernel-i686-fedora.config
|
||||
-> kernel-i686-fedora.config.${CONFIG_VER}
|
||||
)
|
||||
"
|
||||
S=${WORKDIR}/${BASE_P}
|
||||
|
||||
KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~loong ~ppc ~ppc64 ~riscv ~sparc ~x86"
|
||||
IUSE="debug hardened"
|
||||
REQUIRED_USE="
|
||||
arm? ( savedconfig )
|
||||
hppa? ( savedconfig )
|
||||
riscv? ( savedconfig )
|
||||
sparc? ( savedconfig )
|
||||
"
|
||||
|
||||
BDEPEND="
|
||||
debug? ( dev-util/pahole )
|
||||
verify-sig? ( >=sec-keys/openpgp-keys-kernel-20250702 )
|
||||
"
|
||||
PDEPEND="
|
||||
>=virtual/dist-kernel-${PV}
|
||||
"
|
||||
|
||||
QA_FLAGS_IGNORED="
|
||||
usr/src/linux-.*/scripts/gcc-plugins/.*.so
|
||||
usr/src/linux-.*/vmlinux
|
||||
usr/src/linux-.*/arch/powerpc/kernel/vdso.*/vdso.*.so.dbg
|
||||
"
|
||||
|
||||
VERIFY_SIG_OPENPGP_KEY_PATH=/usr/share/openpgp-keys/kernel.org.asc
|
||||
|
||||
src_unpack() {
|
||||
if use verify-sig; then
|
||||
cd "${DISTDIR}" || die
|
||||
verify-sig_verify_signed_checksums \
|
||||
"linux-$(ver_cut 1).x-sha256sums-${SHA256SUM_DATE}.asc" \
|
||||
sha256 "${BASE_P}.tar.xz patch-${PV}.xz"
|
||||
cd "${WORKDIR}" || die
|
||||
fi
|
||||
|
||||
default
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
eapply "${WORKDIR}/patch-${PV}"
|
||||
default
|
||||
|
||||
local biendian=false
|
||||
|
||||
# prepare the default config
|
||||
case ${ARCH} in
|
||||
arm | hppa | loong | riscv | sparc)
|
||||
> .config || die
|
||||
;;
|
||||
amd64)
|
||||
cp "${DISTDIR}/kernel-x86_64-fedora.config.${CONFIG_VER}" .config || die
|
||||
;;
|
||||
arm64)
|
||||
cp "${DISTDIR}/kernel-aarch64-fedora.config.${CONFIG_VER}" .config || die
|
||||
biendian=true
|
||||
;;
|
||||
ppc)
|
||||
# assume powermac/powerbook defconfig
|
||||
# we still package.use.force savedconfig
|
||||
cp "${WORKDIR}/${BASE_P}/arch/powerpc/configs/pmac32_defconfig" .config || die
|
||||
;;
|
||||
ppc64)
|
||||
cp "${DISTDIR}/kernel-ppc64le-fedora.config.${CONFIG_VER}" .config || die
|
||||
biendian=true
|
||||
;;
|
||||
x86)
|
||||
cp "${DISTDIR}/kernel-i686-fedora.config.${CONFIG_VER}" .config || die
|
||||
;;
|
||||
*)
|
||||
die "Unsupported arch ${ARCH}"
|
||||
;;
|
||||
esac
|
||||
|
||||
local myversion="-dist"
|
||||
use hardened && myversion+="-hardened"
|
||||
echo "CONFIG_LOCALVERSION=\"${myversion}\"" > "${T}"/version.config || die
|
||||
local dist_conf_path="${WORKDIR}/gentoo-kernel-config-${GENTOO_CONFIG_VER}"
|
||||
|
||||
local merge_configs=(
|
||||
"${T}"/version.config
|
||||
"${dist_conf_path}"/base.config
|
||||
)
|
||||
use debug || merge_configs+=(
|
||||
"${dist_conf_path}"/no-debug.config
|
||||
)
|
||||
if use hardened; then
|
||||
merge_configs+=( "${dist_conf_path}"/hardened-base.config )
|
||||
|
||||
tc-is-gcc && merge_configs+=( "${dist_conf_path}"/hardened-gcc-plugins.config )
|
||||
|
||||
if [[ -f "${dist_conf_path}/hardened-${ARCH}.config" ]]; then
|
||||
merge_configs+=( "${dist_conf_path}/hardened-${ARCH}.config" )
|
||||
fi
|
||||
fi
|
||||
|
||||
# this covers ppc64 and aarch64_be only for now
|
||||
if [[ ${biendian} == true && $(tc-endian) == big ]]; then
|
||||
merge_configs+=( "${dist_conf_path}/big-endian.config" )
|
||||
fi
|
||||
|
||||
use secureboot && merge_configs+=( "${dist_conf_path}/secureboot.config" )
|
||||
|
||||
kernel-build_merge_configs "${merge_configs[@]}"
|
||||
}
|
||||
@@ -1,157 +0,0 @@
|
||||
# Copyright 2020-2025 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
KERNEL_IUSE_GENERIC_UKI=1
|
||||
KERNEL_IUSE_MODULES_SIGN=1
|
||||
|
||||
inherit kernel-build toolchain-funcs verify-sig
|
||||
|
||||
MY_P=linux-${PV%.*}
|
||||
# https://koji.fedoraproject.org/koji/packageinfo?packageID=8
|
||||
# forked to https://github.com/projg2/fedora-kernel-config-for-gentoo
|
||||
CONFIG_VER=6.12.41-gentoo
|
||||
GENTOO_CONFIG_VER=g16
|
||||
SHA256SUM_DATE=20250801
|
||||
|
||||
DESCRIPTION="Linux kernel built from vanilla upstream sources"
|
||||
HOMEPAGE="
|
||||
https://wiki.gentoo.org/wiki/Project:Distribution_Kernel
|
||||
https://www.kernel.org/
|
||||
"
|
||||
SRC_URI+="
|
||||
https://cdn.kernel.org/pub/linux/kernel/v$(ver_cut 1).x/${MY_P}.tar.xz
|
||||
https://cdn.kernel.org/pub/linux/kernel/v$(ver_cut 1).x/patch-${PV}.xz
|
||||
https://github.com/projg2/gentoo-kernel-config/archive/${GENTOO_CONFIG_VER}.tar.gz
|
||||
-> gentoo-kernel-config-${GENTOO_CONFIG_VER}.tar.gz
|
||||
verify-sig? (
|
||||
https://cdn.kernel.org/pub/linux/kernel/v$(ver_cut 1).x/sha256sums.asc
|
||||
-> linux-$(ver_cut 1).x-sha256sums-${SHA256SUM_DATE}.asc
|
||||
)
|
||||
amd64? (
|
||||
https://raw.githubusercontent.com/projg2/fedora-kernel-config-for-gentoo/${CONFIG_VER}/kernel-x86_64-fedora.config
|
||||
-> kernel-x86_64-fedora.config.${CONFIG_VER}
|
||||
)
|
||||
arm64? (
|
||||
https://raw.githubusercontent.com/projg2/fedora-kernel-config-for-gentoo/${CONFIG_VER}/kernel-aarch64-fedora.config
|
||||
-> kernel-aarch64-fedora.config.${CONFIG_VER}
|
||||
)
|
||||
ppc64? (
|
||||
https://raw.githubusercontent.com/projg2/fedora-kernel-config-for-gentoo/${CONFIG_VER}/kernel-ppc64le-fedora.config
|
||||
-> kernel-ppc64le-fedora.config.${CONFIG_VER}
|
||||
)
|
||||
riscv? (
|
||||
https://raw.githubusercontent.com/projg2/fedora-kernel-config-for-gentoo/${CONFIG_VER}/kernel-riscv64-fedora.config
|
||||
-> kernel-riscv64-fedora.config.${CONFIG_VER}
|
||||
)
|
||||
x86? (
|
||||
https://raw.githubusercontent.com/projg2/fedora-kernel-config-for-gentoo/${CONFIG_VER}/kernel-i686-fedora.config
|
||||
-> kernel-i686-fedora.config.${CONFIG_VER}
|
||||
)
|
||||
"
|
||||
S=${WORKDIR}/${MY_P}
|
||||
|
||||
KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~loong ~ppc ~ppc64 ~riscv ~sparc ~x86"
|
||||
IUSE="debug hardened"
|
||||
REQUIRED_USE="
|
||||
arm? ( savedconfig )
|
||||
hppa? ( savedconfig )
|
||||
sparc? ( savedconfig )
|
||||
"
|
||||
|
||||
BDEPEND="
|
||||
debug? ( dev-util/pahole )
|
||||
verify-sig? ( >=sec-keys/openpgp-keys-kernel-20250702 )
|
||||
"
|
||||
PDEPEND="
|
||||
>=virtual/dist-kernel-${PV}
|
||||
"
|
||||
|
||||
QA_FLAGS_IGNORED="
|
||||
usr/src/linux-.*/scripts/gcc-plugins/.*.so
|
||||
usr/src/linux-.*/vmlinux
|
||||
usr/src/linux-.*/arch/powerpc/kernel/vdso.*/vdso.*.so.dbg
|
||||
"
|
||||
|
||||
VERIFY_SIG_OPENPGP_KEY_PATH=/usr/share/openpgp-keys/kernel.org.asc
|
||||
|
||||
src_unpack() {
|
||||
if use verify-sig; then
|
||||
cd "${DISTDIR}" || die
|
||||
verify-sig_verify_signed_checksums \
|
||||
"linux-$(ver_cut 1).x-sha256sums-${SHA256SUM_DATE}.asc" \
|
||||
sha256 "${MY_P}.tar.xz patch-${PV}.xz"
|
||||
cd "${WORKDIR}" || die
|
||||
fi
|
||||
|
||||
default
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
eapply "${WORKDIR}/patch-${PV}"
|
||||
default
|
||||
|
||||
local biendian=false
|
||||
|
||||
# prepare the default config
|
||||
case ${ARCH} in
|
||||
arm | hppa | loong | sparc)
|
||||
> .config || die
|
||||
;;
|
||||
amd64)
|
||||
cp "${DISTDIR}/kernel-x86_64-fedora.config.${CONFIG_VER}" .config || die
|
||||
;;
|
||||
arm64)
|
||||
cp "${DISTDIR}/kernel-aarch64-fedora.config.${CONFIG_VER}" .config || die
|
||||
biendian=true
|
||||
;;
|
||||
ppc)
|
||||
# assume powermac/powerbook defconfig
|
||||
# we still package.use.force savedconfig
|
||||
cp "${WORKDIR}/${MY_P}/arch/powerpc/configs/pmac32_defconfig" .config || die
|
||||
;;
|
||||
ppc64)
|
||||
cp "${DISTDIR}/kernel-ppc64le-fedora.config.${CONFIG_VER}" .config || die
|
||||
biendian=true
|
||||
;;
|
||||
x86)
|
||||
cp "${DISTDIR}/kernel-i686-fedora.config.${CONFIG_VER}" .config || die
|
||||
;;
|
||||
*)
|
||||
die "Unsupported arch ${ARCH}"
|
||||
;;
|
||||
esac
|
||||
|
||||
local myversion="-dist"
|
||||
use hardened && myversion+="-hardened"
|
||||
echo "CONFIG_LOCALVERSION=\"${myversion}\"" > "${T}"/version.config || die
|
||||
local dist_conf_path="${WORKDIR}/gentoo-kernel-config-${GENTOO_CONFIG_VER}"
|
||||
|
||||
local merge_configs=(
|
||||
"${T}"/version.config
|
||||
"${dist_conf_path}"/base.config
|
||||
"${dist_conf_path}"/6.12+.config
|
||||
)
|
||||
use debug || merge_configs+=(
|
||||
"${dist_conf_path}"/no-debug.config
|
||||
)
|
||||
if use hardened; then
|
||||
merge_configs+=( "${dist_conf_path}"/hardened-base.config )
|
||||
|
||||
tc-is-gcc && merge_configs+=( "${dist_conf_path}"/hardened-gcc-plugins.config )
|
||||
|
||||
if [[ -f "${dist_conf_path}/hardened-${ARCH}.config" ]]; then
|
||||
merge_configs+=( "${dist_conf_path}/hardened-${ARCH}.config" )
|
||||
fi
|
||||
fi
|
||||
|
||||
# this covers ppc64 and aarch64_be only for now
|
||||
if [[ ${biendian} == true && $(tc-endian) == big ]]; then
|
||||
merge_configs+=( "${dist_conf_path}/big-endian.config" )
|
||||
fi
|
||||
|
||||
use secureboot && merge_configs+=( "${dist_conf_path}/secureboot.config" )
|
||||
|
||||
kernel-build_merge_configs "${merge_configs[@]}"
|
||||
}
|
||||
@@ -1,160 +0,0 @@
|
||||
# Copyright 2020-2025 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
KERNEL_IUSE_GENERIC_UKI=1
|
||||
KERNEL_IUSE_MODULES_SIGN=1
|
||||
|
||||
inherit kernel-build toolchain-funcs verify-sig
|
||||
|
||||
BASE_P=linux-${PV%.*}
|
||||
# https://koji.fedoraproject.org/koji/packageinfo?packageID=8
|
||||
# forked to https://github.com/projg2/fedora-kernel-config-for-gentoo
|
||||
CONFIG_VER=6.12.41-gentoo
|
||||
GENTOO_CONFIG_VER=g17
|
||||
SHA256SUM_DATE=20250919
|
||||
|
||||
DESCRIPTION="Linux kernel built from vanilla upstream sources"
|
||||
HOMEPAGE="
|
||||
https://wiki.gentoo.org/wiki/Project:Distribution_Kernel
|
||||
https://www.kernel.org/
|
||||
"
|
||||
SRC_URI+="
|
||||
https://cdn.kernel.org/pub/linux/kernel/v$(ver_cut 1).x/${BASE_P}.tar.xz
|
||||
https://cdn.kernel.org/pub/linux/kernel/v$(ver_cut 1).x/patch-${PV}.xz
|
||||
https://github.com/projg2/gentoo-kernel-config/archive/${GENTOO_CONFIG_VER}.tar.gz
|
||||
-> gentoo-kernel-config-${GENTOO_CONFIG_VER}.tar.gz
|
||||
verify-sig? (
|
||||
https://cdn.kernel.org/pub/linux/kernel/v$(ver_cut 1).x/sha256sums.asc
|
||||
-> linux-$(ver_cut 1).x-sha256sums-${SHA256SUM_DATE}.asc
|
||||
)
|
||||
amd64? (
|
||||
https://raw.githubusercontent.com/projg2/fedora-kernel-config-for-gentoo/${CONFIG_VER}/kernel-x86_64-fedora.config
|
||||
-> kernel-x86_64-fedora.config.${CONFIG_VER}
|
||||
)
|
||||
arm64? (
|
||||
https://raw.githubusercontent.com/projg2/fedora-kernel-config-for-gentoo/${CONFIG_VER}/kernel-aarch64-fedora.config
|
||||
-> kernel-aarch64-fedora.config.${CONFIG_VER}
|
||||
)
|
||||
ppc64? (
|
||||
https://raw.githubusercontent.com/projg2/fedora-kernel-config-for-gentoo/${CONFIG_VER}/kernel-ppc64le-fedora.config
|
||||
-> kernel-ppc64le-fedora.config.${CONFIG_VER}
|
||||
)
|
||||
riscv? (
|
||||
https://raw.githubusercontent.com/projg2/fedora-kernel-config-for-gentoo/${CONFIG_VER}/kernel-riscv64-fedora.config
|
||||
-> kernel-riscv64-fedora.config.${CONFIG_VER}
|
||||
)
|
||||
x86? (
|
||||
https://raw.githubusercontent.com/projg2/fedora-kernel-config-for-gentoo/${CONFIG_VER}/kernel-i686-fedora.config
|
||||
-> kernel-i686-fedora.config.${CONFIG_VER}
|
||||
)
|
||||
"
|
||||
S=${WORKDIR}/${BASE_P}
|
||||
|
||||
KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~loong ~ppc ~ppc64 ~riscv ~sparc ~x86"
|
||||
IUSE="debug hardened"
|
||||
REQUIRED_USE="
|
||||
arm? ( savedconfig )
|
||||
hppa? ( savedconfig )
|
||||
sparc? ( savedconfig )
|
||||
"
|
||||
|
||||
BDEPEND="
|
||||
debug? ( dev-util/pahole )
|
||||
verify-sig? ( >=sec-keys/openpgp-keys-kernel-20250702 )
|
||||
"
|
||||
PDEPEND="
|
||||
>=virtual/dist-kernel-${PV}
|
||||
"
|
||||
|
||||
QA_FLAGS_IGNORED="
|
||||
usr/src/linux-.*/scripts/gcc-plugins/.*.so
|
||||
usr/src/linux-.*/vmlinux
|
||||
usr/src/linux-.*/arch/powerpc/kernel/vdso.*/vdso.*.so.dbg
|
||||
"
|
||||
|
||||
VERIFY_SIG_OPENPGP_KEY_PATH=/usr/share/openpgp-keys/kernel.org.asc
|
||||
|
||||
src_unpack() {
|
||||
if use verify-sig; then
|
||||
cd "${DISTDIR}" || die
|
||||
verify-sig_verify_signed_checksums \
|
||||
"linux-$(ver_cut 1).x-sha256sums-${SHA256SUM_DATE}.asc" \
|
||||
sha256 "${BASE_P}.tar.xz patch-${PV}.xz"
|
||||
cd "${WORKDIR}" || die
|
||||
fi
|
||||
|
||||
default
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
eapply "${WORKDIR}/patch-${PV}"
|
||||
default
|
||||
|
||||
local biendian=false
|
||||
|
||||
# prepare the default config
|
||||
case ${ARCH} in
|
||||
arm | hppa | loong | sparc)
|
||||
> .config || die
|
||||
;;
|
||||
amd64)
|
||||
cp "${DISTDIR}/kernel-x86_64-fedora.config.${CONFIG_VER}" .config || die
|
||||
;;
|
||||
arm64)
|
||||
cp "${DISTDIR}/kernel-aarch64-fedora.config.${CONFIG_VER}" .config || die
|
||||
biendian=true
|
||||
;;
|
||||
ppc)
|
||||
# assume powermac/powerbook defconfig
|
||||
# we still package.use.force savedconfig
|
||||
cp "${WORKDIR}/${BASE_P}/arch/powerpc/configs/pmac32_defconfig" .config || die
|
||||
;;
|
||||
ppc64)
|
||||
cp "${DISTDIR}/kernel-ppc64le-fedora.config.${CONFIG_VER}" .config || die
|
||||
biendian=true
|
||||
;;
|
||||
x86)
|
||||
cp "${DISTDIR}/kernel-i686-fedora.config.${CONFIG_VER}" .config || die
|
||||
;;
|
||||
*)
|
||||
die "Unsupported arch ${ARCH}"
|
||||
;;
|
||||
esac
|
||||
|
||||
local myversion="-dist"
|
||||
use hardened && myversion+="-hardened"
|
||||
echo "CONFIG_LOCALVERSION=\"${myversion}\"" > "${T}"/version.config || die
|
||||
local dist_conf_path="${WORKDIR}/gentoo-kernel-config-${GENTOO_CONFIG_VER}"
|
||||
|
||||
local merge_configs=(
|
||||
"${T}"/version.config
|
||||
"${dist_conf_path}"/base.config
|
||||
"${dist_conf_path}"/6.12+.config
|
||||
)
|
||||
use debug || merge_configs+=(
|
||||
"${dist_conf_path}"/no-debug.config
|
||||
)
|
||||
if use hardened; then
|
||||
merge_configs+=( "${dist_conf_path}"/hardened-base.config )
|
||||
|
||||
tc-is-gcc && merge_configs+=( "${dist_conf_path}"/hardened-gcc-plugins.config )
|
||||
|
||||
if [[ -f "${dist_conf_path}/hardened-${ARCH}.config" ]]; then
|
||||
merge_configs+=( "${dist_conf_path}/hardened-${ARCH}.config" )
|
||||
fi
|
||||
fi
|
||||
|
||||
# this covers ppc64 and aarch64_be only for now
|
||||
if [[ ${biendian} == true && $(tc-endian) == big ]]; then
|
||||
merge_configs+=( "${dist_conf_path}/big-endian.config" )
|
||||
fi
|
||||
|
||||
use secureboot && merge_configs+=(
|
||||
"${dist_conf_path}/secureboot.config"
|
||||
"${dist_conf_path}/zboot.config"
|
||||
)
|
||||
|
||||
kernel-build_merge_configs "${merge_configs[@]}"
|
||||
}
|
||||
@@ -1,160 +0,0 @@
|
||||
# Copyright 2020-2025 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
KERNEL_IUSE_GENERIC_UKI=1
|
||||
KERNEL_IUSE_MODULES_SIGN=1
|
||||
|
||||
inherit kernel-build toolchain-funcs verify-sig
|
||||
|
||||
BASE_P=linux-${PV%.*}
|
||||
# https://koji.fedoraproject.org/koji/packageinfo?packageID=8
|
||||
# forked to https://github.com/projg2/fedora-kernel-config-for-gentoo
|
||||
CONFIG_VER=6.12.41-gentoo
|
||||
GENTOO_CONFIG_VER=g17
|
||||
SHA256SUM_DATE=20250925
|
||||
|
||||
DESCRIPTION="Linux kernel built from vanilla upstream sources"
|
||||
HOMEPAGE="
|
||||
https://wiki.gentoo.org/wiki/Project:Distribution_Kernel
|
||||
https://www.kernel.org/
|
||||
"
|
||||
SRC_URI+="
|
||||
https://cdn.kernel.org/pub/linux/kernel/v$(ver_cut 1).x/${BASE_P}.tar.xz
|
||||
https://cdn.kernel.org/pub/linux/kernel/v$(ver_cut 1).x/patch-${PV}.xz
|
||||
https://github.com/projg2/gentoo-kernel-config/archive/${GENTOO_CONFIG_VER}.tar.gz
|
||||
-> gentoo-kernel-config-${GENTOO_CONFIG_VER}.tar.gz
|
||||
verify-sig? (
|
||||
https://cdn.kernel.org/pub/linux/kernel/v$(ver_cut 1).x/sha256sums.asc
|
||||
-> linux-$(ver_cut 1).x-sha256sums-${SHA256SUM_DATE}.asc
|
||||
)
|
||||
amd64? (
|
||||
https://raw.githubusercontent.com/projg2/fedora-kernel-config-for-gentoo/${CONFIG_VER}/kernel-x86_64-fedora.config
|
||||
-> kernel-x86_64-fedora.config.${CONFIG_VER}
|
||||
)
|
||||
arm64? (
|
||||
https://raw.githubusercontent.com/projg2/fedora-kernel-config-for-gentoo/${CONFIG_VER}/kernel-aarch64-fedora.config
|
||||
-> kernel-aarch64-fedora.config.${CONFIG_VER}
|
||||
)
|
||||
ppc64? (
|
||||
https://raw.githubusercontent.com/projg2/fedora-kernel-config-for-gentoo/${CONFIG_VER}/kernel-ppc64le-fedora.config
|
||||
-> kernel-ppc64le-fedora.config.${CONFIG_VER}
|
||||
)
|
||||
riscv? (
|
||||
https://raw.githubusercontent.com/projg2/fedora-kernel-config-for-gentoo/${CONFIG_VER}/kernel-riscv64-fedora.config
|
||||
-> kernel-riscv64-fedora.config.${CONFIG_VER}
|
||||
)
|
||||
x86? (
|
||||
https://raw.githubusercontent.com/projg2/fedora-kernel-config-for-gentoo/${CONFIG_VER}/kernel-i686-fedora.config
|
||||
-> kernel-i686-fedora.config.${CONFIG_VER}
|
||||
)
|
||||
"
|
||||
S=${WORKDIR}/${BASE_P}
|
||||
|
||||
KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~loong ~ppc ~ppc64 ~riscv ~sparc ~x86"
|
||||
IUSE="debug hardened"
|
||||
REQUIRED_USE="
|
||||
arm? ( savedconfig )
|
||||
hppa? ( savedconfig )
|
||||
sparc? ( savedconfig )
|
||||
"
|
||||
|
||||
BDEPEND="
|
||||
debug? ( dev-util/pahole )
|
||||
verify-sig? ( >=sec-keys/openpgp-keys-kernel-20250702 )
|
||||
"
|
||||
PDEPEND="
|
||||
>=virtual/dist-kernel-${PV}
|
||||
"
|
||||
|
||||
QA_FLAGS_IGNORED="
|
||||
usr/src/linux-.*/scripts/gcc-plugins/.*.so
|
||||
usr/src/linux-.*/vmlinux
|
||||
usr/src/linux-.*/arch/powerpc/kernel/vdso.*/vdso.*.so.dbg
|
||||
"
|
||||
|
||||
VERIFY_SIG_OPENPGP_KEY_PATH=/usr/share/openpgp-keys/kernel.org.asc
|
||||
|
||||
src_unpack() {
|
||||
if use verify-sig; then
|
||||
cd "${DISTDIR}" || die
|
||||
verify-sig_verify_signed_checksums \
|
||||
"linux-$(ver_cut 1).x-sha256sums-${SHA256SUM_DATE}.asc" \
|
||||
sha256 "${BASE_P}.tar.xz patch-${PV}.xz"
|
||||
cd "${WORKDIR}" || die
|
||||
fi
|
||||
|
||||
default
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
eapply "${WORKDIR}/patch-${PV}"
|
||||
default
|
||||
|
||||
local biendian=false
|
||||
|
||||
# prepare the default config
|
||||
case ${ARCH} in
|
||||
arm | hppa | loong | sparc)
|
||||
> .config || die
|
||||
;;
|
||||
amd64)
|
||||
cp "${DISTDIR}/kernel-x86_64-fedora.config.${CONFIG_VER}" .config || die
|
||||
;;
|
||||
arm64)
|
||||
cp "${DISTDIR}/kernel-aarch64-fedora.config.${CONFIG_VER}" .config || die
|
||||
biendian=true
|
||||
;;
|
||||
ppc)
|
||||
# assume powermac/powerbook defconfig
|
||||
# we still package.use.force savedconfig
|
||||
cp "${WORKDIR}/${BASE_P}/arch/powerpc/configs/pmac32_defconfig" .config || die
|
||||
;;
|
||||
ppc64)
|
||||
cp "${DISTDIR}/kernel-ppc64le-fedora.config.${CONFIG_VER}" .config || die
|
||||
biendian=true
|
||||
;;
|
||||
x86)
|
||||
cp "${DISTDIR}/kernel-i686-fedora.config.${CONFIG_VER}" .config || die
|
||||
;;
|
||||
*)
|
||||
die "Unsupported arch ${ARCH}"
|
||||
;;
|
||||
esac
|
||||
|
||||
local myversion="-dist"
|
||||
use hardened && myversion+="-hardened"
|
||||
echo "CONFIG_LOCALVERSION=\"${myversion}\"" > "${T}"/version.config || die
|
||||
local dist_conf_path="${WORKDIR}/gentoo-kernel-config-${GENTOO_CONFIG_VER}"
|
||||
|
||||
local merge_configs=(
|
||||
"${T}"/version.config
|
||||
"${dist_conf_path}"/base.config
|
||||
"${dist_conf_path}"/6.12+.config
|
||||
)
|
||||
use debug || merge_configs+=(
|
||||
"${dist_conf_path}"/no-debug.config
|
||||
)
|
||||
if use hardened; then
|
||||
merge_configs+=( "${dist_conf_path}"/hardened-base.config )
|
||||
|
||||
tc-is-gcc && merge_configs+=( "${dist_conf_path}"/hardened-gcc-plugins.config )
|
||||
|
||||
if [[ -f "${dist_conf_path}/hardened-${ARCH}.config" ]]; then
|
||||
merge_configs+=( "${dist_conf_path}/hardened-${ARCH}.config" )
|
||||
fi
|
||||
fi
|
||||
|
||||
# this covers ppc64 and aarch64_be only for now
|
||||
if [[ ${biendian} == true && $(tc-endian) == big ]]; then
|
||||
merge_configs+=( "${dist_conf_path}/big-endian.config" )
|
||||
fi
|
||||
|
||||
use secureboot && merge_configs+=(
|
||||
"${dist_conf_path}/secureboot.config"
|
||||
"${dist_conf_path}/zboot.config"
|
||||
)
|
||||
|
||||
kernel-build_merge_configs "${merge_configs[@]}"
|
||||
}
|
||||
@@ -1,160 +0,0 @@
|
||||
# Copyright 2020-2025 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
KERNEL_IUSE_GENERIC_UKI=1
|
||||
KERNEL_IUSE_MODULES_SIGN=1
|
||||
|
||||
inherit kernel-build toolchain-funcs verify-sig
|
||||
|
||||
BASE_P=linux-${PV%.*}
|
||||
# https://koji.fedoraproject.org/koji/packageinfo?packageID=8
|
||||
# forked to https://github.com/projg2/fedora-kernel-config-for-gentoo
|
||||
CONFIG_VER=6.12.41-gentoo
|
||||
GENTOO_CONFIG_VER=g17
|
||||
SHA256SUM_DATE=20251002
|
||||
|
||||
DESCRIPTION="Linux kernel built from vanilla upstream sources"
|
||||
HOMEPAGE="
|
||||
https://wiki.gentoo.org/wiki/Project:Distribution_Kernel
|
||||
https://www.kernel.org/
|
||||
"
|
||||
SRC_URI+="
|
||||
https://cdn.kernel.org/pub/linux/kernel/v$(ver_cut 1).x/${BASE_P}.tar.xz
|
||||
https://cdn.kernel.org/pub/linux/kernel/v$(ver_cut 1).x/patch-${PV}.xz
|
||||
https://github.com/projg2/gentoo-kernel-config/archive/${GENTOO_CONFIG_VER}.tar.gz
|
||||
-> gentoo-kernel-config-${GENTOO_CONFIG_VER}.tar.gz
|
||||
verify-sig? (
|
||||
https://cdn.kernel.org/pub/linux/kernel/v$(ver_cut 1).x/sha256sums.asc
|
||||
-> linux-$(ver_cut 1).x-sha256sums-${SHA256SUM_DATE}.asc
|
||||
)
|
||||
amd64? (
|
||||
https://raw.githubusercontent.com/projg2/fedora-kernel-config-for-gentoo/${CONFIG_VER}/kernel-x86_64-fedora.config
|
||||
-> kernel-x86_64-fedora.config.${CONFIG_VER}
|
||||
)
|
||||
arm64? (
|
||||
https://raw.githubusercontent.com/projg2/fedora-kernel-config-for-gentoo/${CONFIG_VER}/kernel-aarch64-fedora.config
|
||||
-> kernel-aarch64-fedora.config.${CONFIG_VER}
|
||||
)
|
||||
ppc64? (
|
||||
https://raw.githubusercontent.com/projg2/fedora-kernel-config-for-gentoo/${CONFIG_VER}/kernel-ppc64le-fedora.config
|
||||
-> kernel-ppc64le-fedora.config.${CONFIG_VER}
|
||||
)
|
||||
riscv? (
|
||||
https://raw.githubusercontent.com/projg2/fedora-kernel-config-for-gentoo/${CONFIG_VER}/kernel-riscv64-fedora.config
|
||||
-> kernel-riscv64-fedora.config.${CONFIG_VER}
|
||||
)
|
||||
x86? (
|
||||
https://raw.githubusercontent.com/projg2/fedora-kernel-config-for-gentoo/${CONFIG_VER}/kernel-i686-fedora.config
|
||||
-> kernel-i686-fedora.config.${CONFIG_VER}
|
||||
)
|
||||
"
|
||||
S=${WORKDIR}/${BASE_P}
|
||||
|
||||
KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~loong ~ppc ~ppc64 ~riscv ~sparc ~x86"
|
||||
IUSE="debug hardened"
|
||||
REQUIRED_USE="
|
||||
arm? ( savedconfig )
|
||||
hppa? ( savedconfig )
|
||||
sparc? ( savedconfig )
|
||||
"
|
||||
|
||||
BDEPEND="
|
||||
debug? ( dev-util/pahole )
|
||||
verify-sig? ( >=sec-keys/openpgp-keys-kernel-20250702 )
|
||||
"
|
||||
PDEPEND="
|
||||
>=virtual/dist-kernel-${PV}
|
||||
"
|
||||
|
||||
QA_FLAGS_IGNORED="
|
||||
usr/src/linux-.*/scripts/gcc-plugins/.*.so
|
||||
usr/src/linux-.*/vmlinux
|
||||
usr/src/linux-.*/arch/powerpc/kernel/vdso.*/vdso.*.so.dbg
|
||||
"
|
||||
|
||||
VERIFY_SIG_OPENPGP_KEY_PATH=/usr/share/openpgp-keys/kernel.org.asc
|
||||
|
||||
src_unpack() {
|
||||
if use verify-sig; then
|
||||
cd "${DISTDIR}" || die
|
||||
verify-sig_verify_signed_checksums \
|
||||
"linux-$(ver_cut 1).x-sha256sums-${SHA256SUM_DATE}.asc" \
|
||||
sha256 "${BASE_P}.tar.xz patch-${PV}.xz"
|
||||
cd "${WORKDIR}" || die
|
||||
fi
|
||||
|
||||
default
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
eapply "${WORKDIR}/patch-${PV}"
|
||||
default
|
||||
|
||||
local biendian=false
|
||||
|
||||
# prepare the default config
|
||||
case ${ARCH} in
|
||||
arm | hppa | loong | sparc)
|
||||
> .config || die
|
||||
;;
|
||||
amd64)
|
||||
cp "${DISTDIR}/kernel-x86_64-fedora.config.${CONFIG_VER}" .config || die
|
||||
;;
|
||||
arm64)
|
||||
cp "${DISTDIR}/kernel-aarch64-fedora.config.${CONFIG_VER}" .config || die
|
||||
biendian=true
|
||||
;;
|
||||
ppc)
|
||||
# assume powermac/powerbook defconfig
|
||||
# we still package.use.force savedconfig
|
||||
cp "${WORKDIR}/${BASE_P}/arch/powerpc/configs/pmac32_defconfig" .config || die
|
||||
;;
|
||||
ppc64)
|
||||
cp "${DISTDIR}/kernel-ppc64le-fedora.config.${CONFIG_VER}" .config || die
|
||||
biendian=true
|
||||
;;
|
||||
x86)
|
||||
cp "${DISTDIR}/kernel-i686-fedora.config.${CONFIG_VER}" .config || die
|
||||
;;
|
||||
*)
|
||||
die "Unsupported arch ${ARCH}"
|
||||
;;
|
||||
esac
|
||||
|
||||
local myversion="-dist"
|
||||
use hardened && myversion+="-hardened"
|
||||
echo "CONFIG_LOCALVERSION=\"${myversion}\"" > "${T}"/version.config || die
|
||||
local dist_conf_path="${WORKDIR}/gentoo-kernel-config-${GENTOO_CONFIG_VER}"
|
||||
|
||||
local merge_configs=(
|
||||
"${T}"/version.config
|
||||
"${dist_conf_path}"/base.config
|
||||
"${dist_conf_path}"/6.12+.config
|
||||
)
|
||||
use debug || merge_configs+=(
|
||||
"${dist_conf_path}"/no-debug.config
|
||||
)
|
||||
if use hardened; then
|
||||
merge_configs+=( "${dist_conf_path}"/hardened-base.config )
|
||||
|
||||
tc-is-gcc && merge_configs+=( "${dist_conf_path}"/hardened-gcc-plugins.config )
|
||||
|
||||
if [[ -f "${dist_conf_path}/hardened-${ARCH}.config" ]]; then
|
||||
merge_configs+=( "${dist_conf_path}/hardened-${ARCH}.config" )
|
||||
fi
|
||||
fi
|
||||
|
||||
# this covers ppc64 and aarch64_be only for now
|
||||
if [[ ${biendian} == true && $(tc-endian) == big ]]; then
|
||||
merge_configs+=( "${dist_conf_path}/big-endian.config" )
|
||||
fi
|
||||
|
||||
use secureboot && merge_configs+=(
|
||||
"${dist_conf_path}/secureboot.config"
|
||||
"${dist_conf_path}/zboot.config"
|
||||
)
|
||||
|
||||
kernel-build_merge_configs "${merge_configs[@]}"
|
||||
}
|
||||
@@ -1,160 +0,0 @@
|
||||
# Copyright 2020-2025 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
KERNEL_IUSE_GENERIC_UKI=1
|
||||
KERNEL_IUSE_MODULES_SIGN=1
|
||||
|
||||
inherit kernel-build toolchain-funcs verify-sig
|
||||
|
||||
BASE_P=linux-${PV%.*}
|
||||
# https://koji.fedoraproject.org/koji/packageinfo?packageID=8
|
||||
# forked to https://github.com/projg2/fedora-kernel-config-for-gentoo
|
||||
CONFIG_VER=6.12.41-gentoo
|
||||
GENTOO_CONFIG_VER=g17
|
||||
SHA256SUM_DATE=20251012
|
||||
|
||||
DESCRIPTION="Linux kernel built from vanilla upstream sources"
|
||||
HOMEPAGE="
|
||||
https://wiki.gentoo.org/wiki/Project:Distribution_Kernel
|
||||
https://www.kernel.org/
|
||||
"
|
||||
SRC_URI+="
|
||||
https://cdn.kernel.org/pub/linux/kernel/v$(ver_cut 1).x/${BASE_P}.tar.xz
|
||||
https://cdn.kernel.org/pub/linux/kernel/v$(ver_cut 1).x/patch-${PV}.xz
|
||||
https://github.com/projg2/gentoo-kernel-config/archive/${GENTOO_CONFIG_VER}.tar.gz
|
||||
-> gentoo-kernel-config-${GENTOO_CONFIG_VER}.tar.gz
|
||||
verify-sig? (
|
||||
https://cdn.kernel.org/pub/linux/kernel/v$(ver_cut 1).x/sha256sums.asc
|
||||
-> linux-$(ver_cut 1).x-sha256sums-${SHA256SUM_DATE}.asc
|
||||
)
|
||||
amd64? (
|
||||
https://raw.githubusercontent.com/projg2/fedora-kernel-config-for-gentoo/${CONFIG_VER}/kernel-x86_64-fedora.config
|
||||
-> kernel-x86_64-fedora.config.${CONFIG_VER}
|
||||
)
|
||||
arm64? (
|
||||
https://raw.githubusercontent.com/projg2/fedora-kernel-config-for-gentoo/${CONFIG_VER}/kernel-aarch64-fedora.config
|
||||
-> kernel-aarch64-fedora.config.${CONFIG_VER}
|
||||
)
|
||||
ppc64? (
|
||||
https://raw.githubusercontent.com/projg2/fedora-kernel-config-for-gentoo/${CONFIG_VER}/kernel-ppc64le-fedora.config
|
||||
-> kernel-ppc64le-fedora.config.${CONFIG_VER}
|
||||
)
|
||||
riscv? (
|
||||
https://raw.githubusercontent.com/projg2/fedora-kernel-config-for-gentoo/${CONFIG_VER}/kernel-riscv64-fedora.config
|
||||
-> kernel-riscv64-fedora.config.${CONFIG_VER}
|
||||
)
|
||||
x86? (
|
||||
https://raw.githubusercontent.com/projg2/fedora-kernel-config-for-gentoo/${CONFIG_VER}/kernel-i686-fedora.config
|
||||
-> kernel-i686-fedora.config.${CONFIG_VER}
|
||||
)
|
||||
"
|
||||
S=${WORKDIR}/${BASE_P}
|
||||
|
||||
KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~loong ~ppc ~ppc64 ~riscv ~sparc ~x86"
|
||||
IUSE="debug hardened"
|
||||
REQUIRED_USE="
|
||||
arm? ( savedconfig )
|
||||
hppa? ( savedconfig )
|
||||
sparc? ( savedconfig )
|
||||
"
|
||||
|
||||
BDEPEND="
|
||||
debug? ( dev-util/pahole )
|
||||
verify-sig? ( >=sec-keys/openpgp-keys-kernel-20250702 )
|
||||
"
|
||||
PDEPEND="
|
||||
>=virtual/dist-kernel-${PV}
|
||||
"
|
||||
|
||||
QA_FLAGS_IGNORED="
|
||||
usr/src/linux-.*/scripts/gcc-plugins/.*.so
|
||||
usr/src/linux-.*/vmlinux
|
||||
usr/src/linux-.*/arch/powerpc/kernel/vdso.*/vdso.*.so.dbg
|
||||
"
|
||||
|
||||
VERIFY_SIG_OPENPGP_KEY_PATH=/usr/share/openpgp-keys/kernel.org.asc
|
||||
|
||||
src_unpack() {
|
||||
if use verify-sig; then
|
||||
cd "${DISTDIR}" || die
|
||||
verify-sig_verify_signed_checksums \
|
||||
"linux-$(ver_cut 1).x-sha256sums-${SHA256SUM_DATE}.asc" \
|
||||
sha256 "${BASE_P}.tar.xz patch-${PV}.xz"
|
||||
cd "${WORKDIR}" || die
|
||||
fi
|
||||
|
||||
default
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
eapply "${WORKDIR}/patch-${PV}"
|
||||
default
|
||||
|
||||
local biendian=false
|
||||
|
||||
# prepare the default config
|
||||
case ${ARCH} in
|
||||
arm | hppa | loong | sparc)
|
||||
> .config || die
|
||||
;;
|
||||
amd64)
|
||||
cp "${DISTDIR}/kernel-x86_64-fedora.config.${CONFIG_VER}" .config || die
|
||||
;;
|
||||
arm64)
|
||||
cp "${DISTDIR}/kernel-aarch64-fedora.config.${CONFIG_VER}" .config || die
|
||||
biendian=true
|
||||
;;
|
||||
ppc)
|
||||
# assume powermac/powerbook defconfig
|
||||
# we still package.use.force savedconfig
|
||||
cp "${WORKDIR}/${BASE_P}/arch/powerpc/configs/pmac32_defconfig" .config || die
|
||||
;;
|
||||
ppc64)
|
||||
cp "${DISTDIR}/kernel-ppc64le-fedora.config.${CONFIG_VER}" .config || die
|
||||
biendian=true
|
||||
;;
|
||||
x86)
|
||||
cp "${DISTDIR}/kernel-i686-fedora.config.${CONFIG_VER}" .config || die
|
||||
;;
|
||||
*)
|
||||
die "Unsupported arch ${ARCH}"
|
||||
;;
|
||||
esac
|
||||
|
||||
local myversion="-dist"
|
||||
use hardened && myversion+="-hardened"
|
||||
echo "CONFIG_LOCALVERSION=\"${myversion}\"" > "${T}"/version.config || die
|
||||
local dist_conf_path="${WORKDIR}/gentoo-kernel-config-${GENTOO_CONFIG_VER}"
|
||||
|
||||
local merge_configs=(
|
||||
"${T}"/version.config
|
||||
"${dist_conf_path}"/base.config
|
||||
"${dist_conf_path}"/6.12+.config
|
||||
)
|
||||
use debug || merge_configs+=(
|
||||
"${dist_conf_path}"/no-debug.config
|
||||
)
|
||||
if use hardened; then
|
||||
merge_configs+=( "${dist_conf_path}"/hardened-base.config )
|
||||
|
||||
tc-is-gcc && merge_configs+=( "${dist_conf_path}"/hardened-gcc-plugins.config )
|
||||
|
||||
if [[ -f "${dist_conf_path}/hardened-${ARCH}.config" ]]; then
|
||||
merge_configs+=( "${dist_conf_path}/hardened-${ARCH}.config" )
|
||||
fi
|
||||
fi
|
||||
|
||||
# this covers ppc64 and aarch64_be only for now
|
||||
if [[ ${biendian} == true && $(tc-endian) == big ]]; then
|
||||
merge_configs+=( "${dist_conf_path}/big-endian.config" )
|
||||
fi
|
||||
|
||||
use secureboot && merge_configs+=(
|
||||
"${dist_conf_path}/secureboot.config"
|
||||
"${dist_conf_path}/zboot.config"
|
||||
)
|
||||
|
||||
kernel-build_merge_configs "${merge_configs[@]}"
|
||||
}
|
||||
@@ -1,160 +0,0 @@
|
||||
# Copyright 2020-2025 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
KERNEL_IUSE_GENERIC_UKI=1
|
||||
KERNEL_IUSE_MODULES_SIGN=1
|
||||
|
||||
inherit kernel-build toolchain-funcs verify-sig
|
||||
|
||||
BASE_P=linux-${PV%.*}
|
||||
# https://koji.fedoraproject.org/koji/packageinfo?packageID=8
|
||||
# forked to https://github.com/projg2/fedora-kernel-config-for-gentoo
|
||||
CONFIG_VER=6.12.41-gentoo
|
||||
GENTOO_CONFIG_VER=g17
|
||||
SHA256SUM_DATE=20251015
|
||||
|
||||
DESCRIPTION="Linux kernel built from vanilla upstream sources"
|
||||
HOMEPAGE="
|
||||
https://wiki.gentoo.org/wiki/Project:Distribution_Kernel
|
||||
https://www.kernel.org/
|
||||
"
|
||||
SRC_URI+="
|
||||
https://cdn.kernel.org/pub/linux/kernel/v$(ver_cut 1).x/${BASE_P}.tar.xz
|
||||
https://cdn.kernel.org/pub/linux/kernel/v$(ver_cut 1).x/patch-${PV}.xz
|
||||
https://github.com/projg2/gentoo-kernel-config/archive/${GENTOO_CONFIG_VER}.tar.gz
|
||||
-> gentoo-kernel-config-${GENTOO_CONFIG_VER}.tar.gz
|
||||
verify-sig? (
|
||||
https://cdn.kernel.org/pub/linux/kernel/v$(ver_cut 1).x/sha256sums.asc
|
||||
-> linux-$(ver_cut 1).x-sha256sums-${SHA256SUM_DATE}.asc
|
||||
)
|
||||
amd64? (
|
||||
https://raw.githubusercontent.com/projg2/fedora-kernel-config-for-gentoo/${CONFIG_VER}/kernel-x86_64-fedora.config
|
||||
-> kernel-x86_64-fedora.config.${CONFIG_VER}
|
||||
)
|
||||
arm64? (
|
||||
https://raw.githubusercontent.com/projg2/fedora-kernel-config-for-gentoo/${CONFIG_VER}/kernel-aarch64-fedora.config
|
||||
-> kernel-aarch64-fedora.config.${CONFIG_VER}
|
||||
)
|
||||
ppc64? (
|
||||
https://raw.githubusercontent.com/projg2/fedora-kernel-config-for-gentoo/${CONFIG_VER}/kernel-ppc64le-fedora.config
|
||||
-> kernel-ppc64le-fedora.config.${CONFIG_VER}
|
||||
)
|
||||
riscv? (
|
||||
https://raw.githubusercontent.com/projg2/fedora-kernel-config-for-gentoo/${CONFIG_VER}/kernel-riscv64-fedora.config
|
||||
-> kernel-riscv64-fedora.config.${CONFIG_VER}
|
||||
)
|
||||
x86? (
|
||||
https://raw.githubusercontent.com/projg2/fedora-kernel-config-for-gentoo/${CONFIG_VER}/kernel-i686-fedora.config
|
||||
-> kernel-i686-fedora.config.${CONFIG_VER}
|
||||
)
|
||||
"
|
||||
S=${WORKDIR}/${BASE_P}
|
||||
|
||||
KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~loong ~ppc ~ppc64 ~riscv ~sparc ~x86"
|
||||
IUSE="debug hardened"
|
||||
REQUIRED_USE="
|
||||
arm? ( savedconfig )
|
||||
hppa? ( savedconfig )
|
||||
sparc? ( savedconfig )
|
||||
"
|
||||
|
||||
BDEPEND="
|
||||
debug? ( dev-util/pahole )
|
||||
verify-sig? ( >=sec-keys/openpgp-keys-kernel-20250702 )
|
||||
"
|
||||
PDEPEND="
|
||||
>=virtual/dist-kernel-${PV}
|
||||
"
|
||||
|
||||
QA_FLAGS_IGNORED="
|
||||
usr/src/linux-.*/scripts/gcc-plugins/.*.so
|
||||
usr/src/linux-.*/vmlinux
|
||||
usr/src/linux-.*/arch/powerpc/kernel/vdso.*/vdso.*.so.dbg
|
||||
"
|
||||
|
||||
VERIFY_SIG_OPENPGP_KEY_PATH=/usr/share/openpgp-keys/kernel.org.asc
|
||||
|
||||
src_unpack() {
|
||||
if use verify-sig; then
|
||||
cd "${DISTDIR}" || die
|
||||
verify-sig_verify_signed_checksums \
|
||||
"linux-$(ver_cut 1).x-sha256sums-${SHA256SUM_DATE}.asc" \
|
||||
sha256 "${BASE_P}.tar.xz patch-${PV}.xz"
|
||||
cd "${WORKDIR}" || die
|
||||
fi
|
||||
|
||||
default
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
eapply "${WORKDIR}/patch-${PV}"
|
||||
default
|
||||
|
||||
local biendian=false
|
||||
|
||||
# prepare the default config
|
||||
case ${ARCH} in
|
||||
arm | hppa | loong | sparc)
|
||||
> .config || die
|
||||
;;
|
||||
amd64)
|
||||
cp "${DISTDIR}/kernel-x86_64-fedora.config.${CONFIG_VER}" .config || die
|
||||
;;
|
||||
arm64)
|
||||
cp "${DISTDIR}/kernel-aarch64-fedora.config.${CONFIG_VER}" .config || die
|
||||
biendian=true
|
||||
;;
|
||||
ppc)
|
||||
# assume powermac/powerbook defconfig
|
||||
# we still package.use.force savedconfig
|
||||
cp "${WORKDIR}/${BASE_P}/arch/powerpc/configs/pmac32_defconfig" .config || die
|
||||
;;
|
||||
ppc64)
|
||||
cp "${DISTDIR}/kernel-ppc64le-fedora.config.${CONFIG_VER}" .config || die
|
||||
biendian=true
|
||||
;;
|
||||
x86)
|
||||
cp "${DISTDIR}/kernel-i686-fedora.config.${CONFIG_VER}" .config || die
|
||||
;;
|
||||
*)
|
||||
die "Unsupported arch ${ARCH}"
|
||||
;;
|
||||
esac
|
||||
|
||||
local myversion="-dist"
|
||||
use hardened && myversion+="-hardened"
|
||||
echo "CONFIG_LOCALVERSION=\"${myversion}\"" > "${T}"/version.config || die
|
||||
local dist_conf_path="${WORKDIR}/gentoo-kernel-config-${GENTOO_CONFIG_VER}"
|
||||
|
||||
local merge_configs=(
|
||||
"${T}"/version.config
|
||||
"${dist_conf_path}"/base.config
|
||||
"${dist_conf_path}"/6.12+.config
|
||||
)
|
||||
use debug || merge_configs+=(
|
||||
"${dist_conf_path}"/no-debug.config
|
||||
)
|
||||
if use hardened; then
|
||||
merge_configs+=( "${dist_conf_path}"/hardened-base.config )
|
||||
|
||||
tc-is-gcc && merge_configs+=( "${dist_conf_path}"/hardened-gcc-plugins.config )
|
||||
|
||||
if [[ -f "${dist_conf_path}/hardened-${ARCH}.config" ]]; then
|
||||
merge_configs+=( "${dist_conf_path}/hardened-${ARCH}.config" )
|
||||
fi
|
||||
fi
|
||||
|
||||
# this covers ppc64 and aarch64_be only for now
|
||||
if [[ ${biendian} == true && $(tc-endian) == big ]]; then
|
||||
merge_configs+=( "${dist_conf_path}/big-endian.config" )
|
||||
fi
|
||||
|
||||
use secureboot && merge_configs+=(
|
||||
"${dist_conf_path}/secureboot.config"
|
||||
"${dist_conf_path}/zboot.config"
|
||||
)
|
||||
|
||||
kernel-build_merge_configs "${merge_configs[@]}"
|
||||
}
|
||||
@@ -13,7 +13,7 @@ BASE_P=linux-${PV%.*}
|
||||
# forked to https://github.com/projg2/fedora-kernel-config-for-gentoo
|
||||
CONFIG_VER=6.12.41-gentoo
|
||||
GENTOO_CONFIG_VER=g17
|
||||
SHA256SUM_DATE=20251006
|
||||
SHA256SUM_DATE=20251023
|
||||
|
||||
DESCRIPTION="Linux kernel built from vanilla upstream sources"
|
||||
HOMEPAGE="
|
||||
@@ -1,163 +0,0 @@
|
||||
# Copyright 2020-2025 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
KERNEL_IUSE_GENERIC_UKI=1
|
||||
KERNEL_IUSE_MODULES_SIGN=1
|
||||
|
||||
inherit kernel-build toolchain-funcs verify-sig
|
||||
|
||||
BASE_P=linux-${PV%.*}
|
||||
# https://koji.fedoraproject.org/koji/packageinfo?packageID=8
|
||||
# forked to https://github.com/projg2/fedora-kernel-config-for-gentoo
|
||||
CONFIG_VER=6.16.9-gentoo
|
||||
GENTOO_CONFIG_VER=g17
|
||||
SHA256SUM_DATE=20251006
|
||||
|
||||
DESCRIPTION="Linux kernel built from vanilla upstream sources"
|
||||
HOMEPAGE="
|
||||
https://wiki.gentoo.org/wiki/Project:Distribution_Kernel
|
||||
https://www.kernel.org/
|
||||
"
|
||||
SRC_URI+="
|
||||
https://cdn.kernel.org/pub/linux/kernel/v$(ver_cut 1).x/${BASE_P}.tar.xz
|
||||
https://cdn.kernel.org/pub/linux/kernel/v$(ver_cut 1).x/patch-${PV}.xz
|
||||
https://github.com/projg2/gentoo-kernel-config/archive/${GENTOO_CONFIG_VER}.tar.gz
|
||||
-> gentoo-kernel-config-${GENTOO_CONFIG_VER}.tar.gz
|
||||
verify-sig? (
|
||||
https://cdn.kernel.org/pub/linux/kernel/v$(ver_cut 1).x/sha256sums.asc
|
||||
-> linux-$(ver_cut 1).x-sha256sums-${SHA256SUM_DATE}.asc
|
||||
)
|
||||
amd64? (
|
||||
https://raw.githubusercontent.com/projg2/fedora-kernel-config-for-gentoo/${CONFIG_VER}/kernel-x86_64-fedora.config
|
||||
-> kernel-x86_64-fedora.config.${CONFIG_VER}
|
||||
)
|
||||
arm64? (
|
||||
https://raw.githubusercontent.com/projg2/fedora-kernel-config-for-gentoo/${CONFIG_VER}/kernel-aarch64-fedora.config
|
||||
-> kernel-aarch64-fedora.config.${CONFIG_VER}
|
||||
)
|
||||
ppc64? (
|
||||
https://raw.githubusercontent.com/projg2/fedora-kernel-config-for-gentoo/${CONFIG_VER}/kernel-ppc64le-fedora.config
|
||||
-> kernel-ppc64le-fedora.config.${CONFIG_VER}
|
||||
)
|
||||
riscv? (
|
||||
https://raw.githubusercontent.com/projg2/fedora-kernel-config-for-gentoo/${CONFIG_VER}/kernel-riscv64-fedora.config
|
||||
-> kernel-riscv64-fedora.config.${CONFIG_VER}
|
||||
)
|
||||
x86? (
|
||||
https://raw.githubusercontent.com/projg2/fedora-kernel-config-for-gentoo/${CONFIG_VER}/kernel-i686-fedora.config
|
||||
-> kernel-i686-fedora.config.${CONFIG_VER}
|
||||
)
|
||||
"
|
||||
S=${WORKDIR}/${BASE_P}
|
||||
|
||||
KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~loong ~ppc ~ppc64 ~riscv ~sparc ~x86"
|
||||
IUSE="debug hardened"
|
||||
REQUIRED_USE="
|
||||
arm? ( savedconfig )
|
||||
hppa? ( savedconfig )
|
||||
sparc? ( savedconfig )
|
||||
"
|
||||
|
||||
BDEPEND="
|
||||
debug? ( dev-util/pahole )
|
||||
verify-sig? ( >=sec-keys/openpgp-keys-kernel-20250702 )
|
||||
"
|
||||
PDEPEND="
|
||||
>=virtual/dist-kernel-${PV}
|
||||
"
|
||||
|
||||
VERIFY_SIG_OPENPGP_KEY_PATH=/usr/share/openpgp-keys/kernel.org.asc
|
||||
|
||||
QA_FLAGS_IGNORED="
|
||||
usr/src/linux-.*/scripts/gcc-plugins/.*.so
|
||||
usr/src/linux-.*/vmlinux
|
||||
usr/src/linux-.*/arch/powerpc/kernel/vdso.*/vdso.*.so.dbg
|
||||
"
|
||||
|
||||
src_unpack() {
|
||||
if use verify-sig; then
|
||||
cd "${DISTDIR}" || die
|
||||
verify-sig_verify_signed_checksums \
|
||||
"linux-$(ver_cut 1).x-sha256sums-${SHA256SUM_DATE}.asc" \
|
||||
sha256 "${BASE_P}.tar.xz patch-${PV}.xz"
|
||||
cd "${WORKDIR}" || die
|
||||
fi
|
||||
|
||||
default
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
eapply "${WORKDIR}/patch-${PV}"
|
||||
default
|
||||
|
||||
local biendian=false
|
||||
|
||||
# prepare the default config
|
||||
case ${ARCH} in
|
||||
arm | hppa | loong | sparc)
|
||||
> .config || die
|
||||
;;
|
||||
amd64)
|
||||
cp "${DISTDIR}/kernel-x86_64-fedora.config.${CONFIG_VER}" .config || die
|
||||
;;
|
||||
arm64)
|
||||
cp "${DISTDIR}/kernel-aarch64-fedora.config.${CONFIG_VER}" .config || die
|
||||
biendian=true
|
||||
;;
|
||||
ppc)
|
||||
# assume powermac/powerbook defconfig
|
||||
# we still package.use.force savedconfig
|
||||
cp "${WORKDIR}/${BASE_P}/arch/powerpc/configs/pmac32_defconfig" .config || die
|
||||
;;
|
||||
ppc64)
|
||||
cp "${DISTDIR}/kernel-ppc64le-fedora.config.${CONFIG_VER}" .config || die
|
||||
biendian=true
|
||||
;;
|
||||
riscv)
|
||||
cp "${DISTDIR}/kernel-riscv64-fedora.config.${CONFIG_VER}" .config || die
|
||||
;;
|
||||
x86)
|
||||
cp "${DISTDIR}/kernel-i686-fedora.config.${CONFIG_VER}" .config || die
|
||||
;;
|
||||
*)
|
||||
die "Unsupported arch ${ARCH}"
|
||||
;;
|
||||
esac
|
||||
|
||||
local myversion="-dist"
|
||||
use hardened && myversion+="-hardened"
|
||||
echo "CONFIG_LOCALVERSION=\"${myversion}\"" > "${T}"/version.config || die
|
||||
local dist_conf_path="${WORKDIR}/gentoo-kernel-config-${GENTOO_CONFIG_VER}"
|
||||
|
||||
local merge_configs=(
|
||||
"${T}"/version.config
|
||||
"${dist_conf_path}"/base.config
|
||||
"${dist_conf_path}"/6.12+.config
|
||||
)
|
||||
use debug || merge_configs+=(
|
||||
"${dist_conf_path}"/no-debug.config
|
||||
)
|
||||
if use hardened; then
|
||||
merge_configs+=( "${dist_conf_path}"/hardened-base.config )
|
||||
|
||||
tc-is-gcc && merge_configs+=( "${dist_conf_path}"/hardened-gcc-plugins.config )
|
||||
|
||||
if [[ -f "${dist_conf_path}/hardened-${ARCH}.config" ]]; then
|
||||
merge_configs+=( "${dist_conf_path}/hardened-${ARCH}.config" )
|
||||
fi
|
||||
fi
|
||||
|
||||
# this covers ppc64 and aarch64_be only for now
|
||||
if [[ ${biendian} == true && $(tc-endian) == big ]]; then
|
||||
merge_configs+=( "${dist_conf_path}/big-endian.config" )
|
||||
fi
|
||||
|
||||
use secureboot && merge_configs+=(
|
||||
"${dist_conf_path}/secureboot.config"
|
||||
"${dist_conf_path}/zboot.config"
|
||||
)
|
||||
|
||||
kernel-build_merge_configs "${merge_configs[@]}"
|
||||
}
|
||||
@@ -1,163 +0,0 @@
|
||||
# Copyright 2020-2025 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
KERNEL_IUSE_GENERIC_UKI=1
|
||||
KERNEL_IUSE_MODULES_SIGN=1
|
||||
|
||||
inherit kernel-build toolchain-funcs verify-sig
|
||||
|
||||
BASE_P=linux-${PV%.*}
|
||||
# https://koji.fedoraproject.org/koji/packageinfo?packageID=8
|
||||
# forked to https://github.com/projg2/fedora-kernel-config-for-gentoo
|
||||
CONFIG_VER=6.16.9-gentoo
|
||||
GENTOO_CONFIG_VER=g17
|
||||
SHA256SUM_DATE=20251012
|
||||
|
||||
DESCRIPTION="Linux kernel built from vanilla upstream sources"
|
||||
HOMEPAGE="
|
||||
https://wiki.gentoo.org/wiki/Project:Distribution_Kernel
|
||||
https://www.kernel.org/
|
||||
"
|
||||
SRC_URI+="
|
||||
https://cdn.kernel.org/pub/linux/kernel/v$(ver_cut 1).x/${BASE_P}.tar.xz
|
||||
https://cdn.kernel.org/pub/linux/kernel/v$(ver_cut 1).x/patch-${PV}.xz
|
||||
https://github.com/projg2/gentoo-kernel-config/archive/${GENTOO_CONFIG_VER}.tar.gz
|
||||
-> gentoo-kernel-config-${GENTOO_CONFIG_VER}.tar.gz
|
||||
verify-sig? (
|
||||
https://cdn.kernel.org/pub/linux/kernel/v$(ver_cut 1).x/sha256sums.asc
|
||||
-> linux-$(ver_cut 1).x-sha256sums-${SHA256SUM_DATE}.asc
|
||||
)
|
||||
amd64? (
|
||||
https://raw.githubusercontent.com/projg2/fedora-kernel-config-for-gentoo/${CONFIG_VER}/kernel-x86_64-fedora.config
|
||||
-> kernel-x86_64-fedora.config.${CONFIG_VER}
|
||||
)
|
||||
arm64? (
|
||||
https://raw.githubusercontent.com/projg2/fedora-kernel-config-for-gentoo/${CONFIG_VER}/kernel-aarch64-fedora.config
|
||||
-> kernel-aarch64-fedora.config.${CONFIG_VER}
|
||||
)
|
||||
ppc64? (
|
||||
https://raw.githubusercontent.com/projg2/fedora-kernel-config-for-gentoo/${CONFIG_VER}/kernel-ppc64le-fedora.config
|
||||
-> kernel-ppc64le-fedora.config.${CONFIG_VER}
|
||||
)
|
||||
riscv? (
|
||||
https://raw.githubusercontent.com/projg2/fedora-kernel-config-for-gentoo/${CONFIG_VER}/kernel-riscv64-fedora.config
|
||||
-> kernel-riscv64-fedora.config.${CONFIG_VER}
|
||||
)
|
||||
x86? (
|
||||
https://raw.githubusercontent.com/projg2/fedora-kernel-config-for-gentoo/${CONFIG_VER}/kernel-i686-fedora.config
|
||||
-> kernel-i686-fedora.config.${CONFIG_VER}
|
||||
)
|
||||
"
|
||||
S=${WORKDIR}/${BASE_P}
|
||||
|
||||
KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~loong ~ppc ~ppc64 ~riscv ~sparc ~x86"
|
||||
IUSE="debug hardened"
|
||||
REQUIRED_USE="
|
||||
arm? ( savedconfig )
|
||||
hppa? ( savedconfig )
|
||||
sparc? ( savedconfig )
|
||||
"
|
||||
|
||||
BDEPEND="
|
||||
debug? ( dev-util/pahole )
|
||||
verify-sig? ( >=sec-keys/openpgp-keys-kernel-20250702 )
|
||||
"
|
||||
PDEPEND="
|
||||
>=virtual/dist-kernel-${PV}
|
||||
"
|
||||
|
||||
VERIFY_SIG_OPENPGP_KEY_PATH=/usr/share/openpgp-keys/kernel.org.asc
|
||||
|
||||
QA_FLAGS_IGNORED="
|
||||
usr/src/linux-.*/scripts/gcc-plugins/.*.so
|
||||
usr/src/linux-.*/vmlinux
|
||||
usr/src/linux-.*/arch/powerpc/kernel/vdso.*/vdso.*.so.dbg
|
||||
"
|
||||
|
||||
src_unpack() {
|
||||
if use verify-sig; then
|
||||
cd "${DISTDIR}" || die
|
||||
verify-sig_verify_signed_checksums \
|
||||
"linux-$(ver_cut 1).x-sha256sums-${SHA256SUM_DATE}.asc" \
|
||||
sha256 "${BASE_P}.tar.xz patch-${PV}.xz"
|
||||
cd "${WORKDIR}" || die
|
||||
fi
|
||||
|
||||
default
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
eapply "${WORKDIR}/patch-${PV}"
|
||||
default
|
||||
|
||||
local biendian=false
|
||||
|
||||
# prepare the default config
|
||||
case ${ARCH} in
|
||||
arm | hppa | loong | sparc)
|
||||
> .config || die
|
||||
;;
|
||||
amd64)
|
||||
cp "${DISTDIR}/kernel-x86_64-fedora.config.${CONFIG_VER}" .config || die
|
||||
;;
|
||||
arm64)
|
||||
cp "${DISTDIR}/kernel-aarch64-fedora.config.${CONFIG_VER}" .config || die
|
||||
biendian=true
|
||||
;;
|
||||
ppc)
|
||||
# assume powermac/powerbook defconfig
|
||||
# we still package.use.force savedconfig
|
||||
cp "${WORKDIR}/${BASE_P}/arch/powerpc/configs/pmac32_defconfig" .config || die
|
||||
;;
|
||||
ppc64)
|
||||
cp "${DISTDIR}/kernel-ppc64le-fedora.config.${CONFIG_VER}" .config || die
|
||||
biendian=true
|
||||
;;
|
||||
riscv)
|
||||
cp "${DISTDIR}/kernel-riscv64-fedora.config.${CONFIG_VER}" .config || die
|
||||
;;
|
||||
x86)
|
||||
cp "${DISTDIR}/kernel-i686-fedora.config.${CONFIG_VER}" .config || die
|
||||
;;
|
||||
*)
|
||||
die "Unsupported arch ${ARCH}"
|
||||
;;
|
||||
esac
|
||||
|
||||
local myversion="-dist"
|
||||
use hardened && myversion+="-hardened"
|
||||
echo "CONFIG_LOCALVERSION=\"${myversion}\"" > "${T}"/version.config || die
|
||||
local dist_conf_path="${WORKDIR}/gentoo-kernel-config-${GENTOO_CONFIG_VER}"
|
||||
|
||||
local merge_configs=(
|
||||
"${T}"/version.config
|
||||
"${dist_conf_path}"/base.config
|
||||
"${dist_conf_path}"/6.12+.config
|
||||
)
|
||||
use debug || merge_configs+=(
|
||||
"${dist_conf_path}"/no-debug.config
|
||||
)
|
||||
if use hardened; then
|
||||
merge_configs+=( "${dist_conf_path}"/hardened-base.config )
|
||||
|
||||
tc-is-gcc && merge_configs+=( "${dist_conf_path}"/hardened-gcc-plugins.config )
|
||||
|
||||
if [[ -f "${dist_conf_path}/hardened-${ARCH}.config" ]]; then
|
||||
merge_configs+=( "${dist_conf_path}/hardened-${ARCH}.config" )
|
||||
fi
|
||||
fi
|
||||
|
||||
# this covers ppc64 and aarch64_be only for now
|
||||
if [[ ${biendian} == true && $(tc-endian) == big ]]; then
|
||||
merge_configs+=( "${dist_conf_path}/big-endian.config" )
|
||||
fi
|
||||
|
||||
use secureboot && merge_configs+=(
|
||||
"${dist_conf_path}/secureboot.config"
|
||||
"${dist_conf_path}/zboot.config"
|
||||
)
|
||||
|
||||
kernel-build_merge_configs "${merge_configs[@]}"
|
||||
}
|
||||
@@ -1,163 +0,0 @@
|
||||
# Copyright 2020-2025 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
KERNEL_IUSE_GENERIC_UKI=1
|
||||
KERNEL_IUSE_MODULES_SIGN=1
|
||||
|
||||
inherit kernel-build toolchain-funcs verify-sig
|
||||
|
||||
BASE_P=linux-${PV%.*}
|
||||
# https://koji.fedoraproject.org/koji/packageinfo?packageID=8
|
||||
# forked to https://github.com/projg2/fedora-kernel-config-for-gentoo
|
||||
CONFIG_VER=6.16.2-gentoo
|
||||
GENTOO_CONFIG_VER=g17
|
||||
SHA256SUM_DATE=20250911
|
||||
|
||||
DESCRIPTION="Linux kernel built from vanilla upstream sources"
|
||||
HOMEPAGE="
|
||||
https://wiki.gentoo.org/wiki/Project:Distribution_Kernel
|
||||
https://www.kernel.org/
|
||||
"
|
||||
SRC_URI+="
|
||||
https://cdn.kernel.org/pub/linux/kernel/v$(ver_cut 1).x/${BASE_P}.tar.xz
|
||||
https://cdn.kernel.org/pub/linux/kernel/v$(ver_cut 1).x/patch-${PV}.xz
|
||||
https://github.com/projg2/gentoo-kernel-config/archive/${GENTOO_CONFIG_VER}.tar.gz
|
||||
-> gentoo-kernel-config-${GENTOO_CONFIG_VER}.tar.gz
|
||||
verify-sig? (
|
||||
https://cdn.kernel.org/pub/linux/kernel/v$(ver_cut 1).x/sha256sums.asc
|
||||
-> linux-$(ver_cut 1).x-sha256sums-${SHA256SUM_DATE}.asc
|
||||
)
|
||||
amd64? (
|
||||
https://raw.githubusercontent.com/projg2/fedora-kernel-config-for-gentoo/${CONFIG_VER}/kernel-x86_64-fedora.config
|
||||
-> kernel-x86_64-fedora.config.${CONFIG_VER}
|
||||
)
|
||||
arm64? (
|
||||
https://raw.githubusercontent.com/projg2/fedora-kernel-config-for-gentoo/${CONFIG_VER}/kernel-aarch64-fedora.config
|
||||
-> kernel-aarch64-fedora.config.${CONFIG_VER}
|
||||
)
|
||||
ppc64? (
|
||||
https://raw.githubusercontent.com/projg2/fedora-kernel-config-for-gentoo/${CONFIG_VER}/kernel-ppc64le-fedora.config
|
||||
-> kernel-ppc64le-fedora.config.${CONFIG_VER}
|
||||
)
|
||||
riscv? (
|
||||
https://raw.githubusercontent.com/projg2/fedora-kernel-config-for-gentoo/${CONFIG_VER}/kernel-riscv64-fedora.config
|
||||
-> kernel-riscv64-fedora.config.${CONFIG_VER}
|
||||
)
|
||||
x86? (
|
||||
https://raw.githubusercontent.com/projg2/fedora-kernel-config-for-gentoo/${CONFIG_VER}/kernel-i686-fedora.config
|
||||
-> kernel-i686-fedora.config.${CONFIG_VER}
|
||||
)
|
||||
"
|
||||
S=${WORKDIR}/${BASE_P}
|
||||
|
||||
KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~loong ~ppc ~ppc64 ~riscv ~sparc ~x86"
|
||||
IUSE="debug hardened"
|
||||
REQUIRED_USE="
|
||||
arm? ( savedconfig )
|
||||
hppa? ( savedconfig )
|
||||
sparc? ( savedconfig )
|
||||
"
|
||||
|
||||
BDEPEND="
|
||||
debug? ( dev-util/pahole )
|
||||
verify-sig? ( >=sec-keys/openpgp-keys-kernel-20250702 )
|
||||
"
|
||||
PDEPEND="
|
||||
>=virtual/dist-kernel-${PV}
|
||||
"
|
||||
|
||||
VERIFY_SIG_OPENPGP_KEY_PATH=/usr/share/openpgp-keys/kernel.org.asc
|
||||
|
||||
QA_FLAGS_IGNORED="
|
||||
usr/src/linux-.*/scripts/gcc-plugins/.*.so
|
||||
usr/src/linux-.*/vmlinux
|
||||
usr/src/linux-.*/arch/powerpc/kernel/vdso.*/vdso.*.so.dbg
|
||||
"
|
||||
|
||||
src_unpack() {
|
||||
if use verify-sig; then
|
||||
cd "${DISTDIR}" || die
|
||||
verify-sig_verify_signed_checksums \
|
||||
"linux-$(ver_cut 1).x-sha256sums-${SHA256SUM_DATE}.asc" \
|
||||
sha256 "${BASE_P}.tar.xz patch-${PV}.xz"
|
||||
cd "${WORKDIR}" || die
|
||||
fi
|
||||
|
||||
default
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
eapply "${WORKDIR}/patch-${PV}"
|
||||
default
|
||||
|
||||
local biendian=false
|
||||
|
||||
# prepare the default config
|
||||
case ${ARCH} in
|
||||
arm | hppa | loong | sparc)
|
||||
> .config || die
|
||||
;;
|
||||
amd64)
|
||||
cp "${DISTDIR}/kernel-x86_64-fedora.config.${CONFIG_VER}" .config || die
|
||||
;;
|
||||
arm64)
|
||||
cp "${DISTDIR}/kernel-aarch64-fedora.config.${CONFIG_VER}" .config || die
|
||||
biendian=true
|
||||
;;
|
||||
ppc)
|
||||
# assume powermac/powerbook defconfig
|
||||
# we still package.use.force savedconfig
|
||||
cp "${WORKDIR}/${BASE_P}/arch/powerpc/configs/pmac32_defconfig" .config || die
|
||||
;;
|
||||
ppc64)
|
||||
cp "${DISTDIR}/kernel-ppc64le-fedora.config.${CONFIG_VER}" .config || die
|
||||
biendian=true
|
||||
;;
|
||||
riscv)
|
||||
cp "${DISTDIR}/kernel-riscv64-fedora.config.${CONFIG_VER}" .config || die
|
||||
;;
|
||||
x86)
|
||||
cp "${DISTDIR}/kernel-i686-fedora.config.${CONFIG_VER}" .config || die
|
||||
;;
|
||||
*)
|
||||
die "Unsupported arch ${ARCH}"
|
||||
;;
|
||||
esac
|
||||
|
||||
local myversion="-dist"
|
||||
use hardened && myversion+="-hardened"
|
||||
echo "CONFIG_LOCALVERSION=\"${myversion}\"" > "${T}"/version.config || die
|
||||
local dist_conf_path="${WORKDIR}/gentoo-kernel-config-${GENTOO_CONFIG_VER}"
|
||||
|
||||
local merge_configs=(
|
||||
"${T}"/version.config
|
||||
"${dist_conf_path}"/base.config
|
||||
"${dist_conf_path}"/6.12+.config
|
||||
)
|
||||
use debug || merge_configs+=(
|
||||
"${dist_conf_path}"/no-debug.config
|
||||
)
|
||||
if use hardened; then
|
||||
merge_configs+=( "${dist_conf_path}"/hardened-base.config )
|
||||
|
||||
tc-is-gcc && merge_configs+=( "${dist_conf_path}"/hardened-gcc-plugins.config )
|
||||
|
||||
if [[ -f "${dist_conf_path}/hardened-${ARCH}.config" ]]; then
|
||||
merge_configs+=( "${dist_conf_path}/hardened-${ARCH}.config" )
|
||||
fi
|
||||
fi
|
||||
|
||||
# this covers ppc64 and aarch64_be only for now
|
||||
if [[ ${biendian} == true && $(tc-endian) == big ]]; then
|
||||
merge_configs+=( "${dist_conf_path}/big-endian.config" )
|
||||
fi
|
||||
|
||||
use secureboot && merge_configs+=(
|
||||
"${dist_conf_path}/secureboot.config"
|
||||
"${dist_conf_path}/zboot.config"
|
||||
)
|
||||
|
||||
kernel-build_merge_configs "${merge_configs[@]}"
|
||||
}
|
||||
@@ -1,163 +0,0 @@
|
||||
# Copyright 2020-2025 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
KERNEL_IUSE_GENERIC_UKI=1
|
||||
KERNEL_IUSE_MODULES_SIGN=1
|
||||
|
||||
inherit kernel-build toolchain-funcs verify-sig
|
||||
|
||||
BASE_P=linux-${PV%.*}
|
||||
# https://koji.fedoraproject.org/koji/packageinfo?packageID=8
|
||||
# forked to https://github.com/projg2/fedora-kernel-config-for-gentoo
|
||||
CONFIG_VER=6.16.2-gentoo
|
||||
GENTOO_CONFIG_VER=g17
|
||||
SHA256SUM_DATE=20250919
|
||||
|
||||
DESCRIPTION="Linux kernel built from vanilla upstream sources"
|
||||
HOMEPAGE="
|
||||
https://wiki.gentoo.org/wiki/Project:Distribution_Kernel
|
||||
https://www.kernel.org/
|
||||
"
|
||||
SRC_URI+="
|
||||
https://cdn.kernel.org/pub/linux/kernel/v$(ver_cut 1).x/${BASE_P}.tar.xz
|
||||
https://cdn.kernel.org/pub/linux/kernel/v$(ver_cut 1).x/patch-${PV}.xz
|
||||
https://github.com/projg2/gentoo-kernel-config/archive/${GENTOO_CONFIG_VER}.tar.gz
|
||||
-> gentoo-kernel-config-${GENTOO_CONFIG_VER}.tar.gz
|
||||
verify-sig? (
|
||||
https://cdn.kernel.org/pub/linux/kernel/v$(ver_cut 1).x/sha256sums.asc
|
||||
-> linux-$(ver_cut 1).x-sha256sums-${SHA256SUM_DATE}.asc
|
||||
)
|
||||
amd64? (
|
||||
https://raw.githubusercontent.com/projg2/fedora-kernel-config-for-gentoo/${CONFIG_VER}/kernel-x86_64-fedora.config
|
||||
-> kernel-x86_64-fedora.config.${CONFIG_VER}
|
||||
)
|
||||
arm64? (
|
||||
https://raw.githubusercontent.com/projg2/fedora-kernel-config-for-gentoo/${CONFIG_VER}/kernel-aarch64-fedora.config
|
||||
-> kernel-aarch64-fedora.config.${CONFIG_VER}
|
||||
)
|
||||
ppc64? (
|
||||
https://raw.githubusercontent.com/projg2/fedora-kernel-config-for-gentoo/${CONFIG_VER}/kernel-ppc64le-fedora.config
|
||||
-> kernel-ppc64le-fedora.config.${CONFIG_VER}
|
||||
)
|
||||
riscv? (
|
||||
https://raw.githubusercontent.com/projg2/fedora-kernel-config-for-gentoo/${CONFIG_VER}/kernel-riscv64-fedora.config
|
||||
-> kernel-riscv64-fedora.config.${CONFIG_VER}
|
||||
)
|
||||
x86? (
|
||||
https://raw.githubusercontent.com/projg2/fedora-kernel-config-for-gentoo/${CONFIG_VER}/kernel-i686-fedora.config
|
||||
-> kernel-i686-fedora.config.${CONFIG_VER}
|
||||
)
|
||||
"
|
||||
S=${WORKDIR}/${BASE_P}
|
||||
|
||||
KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~loong ~ppc ~ppc64 ~riscv ~sparc ~x86"
|
||||
IUSE="debug hardened"
|
||||
REQUIRED_USE="
|
||||
arm? ( savedconfig )
|
||||
hppa? ( savedconfig )
|
||||
sparc? ( savedconfig )
|
||||
"
|
||||
|
||||
BDEPEND="
|
||||
debug? ( dev-util/pahole )
|
||||
verify-sig? ( >=sec-keys/openpgp-keys-kernel-20250702 )
|
||||
"
|
||||
PDEPEND="
|
||||
>=virtual/dist-kernel-${PV}
|
||||
"
|
||||
|
||||
VERIFY_SIG_OPENPGP_KEY_PATH=/usr/share/openpgp-keys/kernel.org.asc
|
||||
|
||||
QA_FLAGS_IGNORED="
|
||||
usr/src/linux-.*/scripts/gcc-plugins/.*.so
|
||||
usr/src/linux-.*/vmlinux
|
||||
usr/src/linux-.*/arch/powerpc/kernel/vdso.*/vdso.*.so.dbg
|
||||
"
|
||||
|
||||
src_unpack() {
|
||||
if use verify-sig; then
|
||||
cd "${DISTDIR}" || die
|
||||
verify-sig_verify_signed_checksums \
|
||||
"linux-$(ver_cut 1).x-sha256sums-${SHA256SUM_DATE}.asc" \
|
||||
sha256 "${BASE_P}.tar.xz patch-${PV}.xz"
|
||||
cd "${WORKDIR}" || die
|
||||
fi
|
||||
|
||||
default
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
eapply "${WORKDIR}/patch-${PV}"
|
||||
default
|
||||
|
||||
local biendian=false
|
||||
|
||||
# prepare the default config
|
||||
case ${ARCH} in
|
||||
arm | hppa | loong | sparc)
|
||||
> .config || die
|
||||
;;
|
||||
amd64)
|
||||
cp "${DISTDIR}/kernel-x86_64-fedora.config.${CONFIG_VER}" .config || die
|
||||
;;
|
||||
arm64)
|
||||
cp "${DISTDIR}/kernel-aarch64-fedora.config.${CONFIG_VER}" .config || die
|
||||
biendian=true
|
||||
;;
|
||||
ppc)
|
||||
# assume powermac/powerbook defconfig
|
||||
# we still package.use.force savedconfig
|
||||
cp "${WORKDIR}/${BASE_P}/arch/powerpc/configs/pmac32_defconfig" .config || die
|
||||
;;
|
||||
ppc64)
|
||||
cp "${DISTDIR}/kernel-ppc64le-fedora.config.${CONFIG_VER}" .config || die
|
||||
biendian=true
|
||||
;;
|
||||
riscv)
|
||||
cp "${DISTDIR}/kernel-riscv64-fedora.config.${CONFIG_VER}" .config || die
|
||||
;;
|
||||
x86)
|
||||
cp "${DISTDIR}/kernel-i686-fedora.config.${CONFIG_VER}" .config || die
|
||||
;;
|
||||
*)
|
||||
die "Unsupported arch ${ARCH}"
|
||||
;;
|
||||
esac
|
||||
|
||||
local myversion="-dist"
|
||||
use hardened && myversion+="-hardened"
|
||||
echo "CONFIG_LOCALVERSION=\"${myversion}\"" > "${T}"/version.config || die
|
||||
local dist_conf_path="${WORKDIR}/gentoo-kernel-config-${GENTOO_CONFIG_VER}"
|
||||
|
||||
local merge_configs=(
|
||||
"${T}"/version.config
|
||||
"${dist_conf_path}"/base.config
|
||||
"${dist_conf_path}"/6.12+.config
|
||||
)
|
||||
use debug || merge_configs+=(
|
||||
"${dist_conf_path}"/no-debug.config
|
||||
)
|
||||
if use hardened; then
|
||||
merge_configs+=( "${dist_conf_path}"/hardened-base.config )
|
||||
|
||||
tc-is-gcc && merge_configs+=( "${dist_conf_path}"/hardened-gcc-plugins.config )
|
||||
|
||||
if [[ -f "${dist_conf_path}/hardened-${ARCH}.config" ]]; then
|
||||
merge_configs+=( "${dist_conf_path}/hardened-${ARCH}.config" )
|
||||
fi
|
||||
fi
|
||||
|
||||
# this covers ppc64 and aarch64_be only for now
|
||||
if [[ ${biendian} == true && $(tc-endian) == big ]]; then
|
||||
merge_configs+=( "${dist_conf_path}/big-endian.config" )
|
||||
fi
|
||||
|
||||
use secureboot && merge_configs+=(
|
||||
"${dist_conf_path}/secureboot.config"
|
||||
"${dist_conf_path}/zboot.config"
|
||||
)
|
||||
|
||||
kernel-build_merge_configs "${merge_configs[@]}"
|
||||
}
|
||||
@@ -1,163 +0,0 @@
|
||||
# Copyright 2020-2025 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
KERNEL_IUSE_GENERIC_UKI=1
|
||||
KERNEL_IUSE_MODULES_SIGN=1
|
||||
|
||||
inherit kernel-build toolchain-funcs verify-sig
|
||||
|
||||
BASE_P=linux-${PV%.*}
|
||||
# https://koji.fedoraproject.org/koji/packageinfo?packageID=8
|
||||
# forked to https://github.com/projg2/fedora-kernel-config-for-gentoo
|
||||
CONFIG_VER=6.16.2-gentoo
|
||||
GENTOO_CONFIG_VER=g17
|
||||
SHA256SUM_DATE=20250925
|
||||
|
||||
DESCRIPTION="Linux kernel built from vanilla upstream sources"
|
||||
HOMEPAGE="
|
||||
https://wiki.gentoo.org/wiki/Project:Distribution_Kernel
|
||||
https://www.kernel.org/
|
||||
"
|
||||
SRC_URI+="
|
||||
https://cdn.kernel.org/pub/linux/kernel/v$(ver_cut 1).x/${BASE_P}.tar.xz
|
||||
https://cdn.kernel.org/pub/linux/kernel/v$(ver_cut 1).x/patch-${PV}.xz
|
||||
https://github.com/projg2/gentoo-kernel-config/archive/${GENTOO_CONFIG_VER}.tar.gz
|
||||
-> gentoo-kernel-config-${GENTOO_CONFIG_VER}.tar.gz
|
||||
verify-sig? (
|
||||
https://cdn.kernel.org/pub/linux/kernel/v$(ver_cut 1).x/sha256sums.asc
|
||||
-> linux-$(ver_cut 1).x-sha256sums-${SHA256SUM_DATE}.asc
|
||||
)
|
||||
amd64? (
|
||||
https://raw.githubusercontent.com/projg2/fedora-kernel-config-for-gentoo/${CONFIG_VER}/kernel-x86_64-fedora.config
|
||||
-> kernel-x86_64-fedora.config.${CONFIG_VER}
|
||||
)
|
||||
arm64? (
|
||||
https://raw.githubusercontent.com/projg2/fedora-kernel-config-for-gentoo/${CONFIG_VER}/kernel-aarch64-fedora.config
|
||||
-> kernel-aarch64-fedora.config.${CONFIG_VER}
|
||||
)
|
||||
ppc64? (
|
||||
https://raw.githubusercontent.com/projg2/fedora-kernel-config-for-gentoo/${CONFIG_VER}/kernel-ppc64le-fedora.config
|
||||
-> kernel-ppc64le-fedora.config.${CONFIG_VER}
|
||||
)
|
||||
riscv? (
|
||||
https://raw.githubusercontent.com/projg2/fedora-kernel-config-for-gentoo/${CONFIG_VER}/kernel-riscv64-fedora.config
|
||||
-> kernel-riscv64-fedora.config.${CONFIG_VER}
|
||||
)
|
||||
x86? (
|
||||
https://raw.githubusercontent.com/projg2/fedora-kernel-config-for-gentoo/${CONFIG_VER}/kernel-i686-fedora.config
|
||||
-> kernel-i686-fedora.config.${CONFIG_VER}
|
||||
)
|
||||
"
|
||||
S=${WORKDIR}/${BASE_P}
|
||||
|
||||
KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~loong ~ppc ~ppc64 ~riscv ~sparc ~x86"
|
||||
IUSE="debug hardened"
|
||||
REQUIRED_USE="
|
||||
arm? ( savedconfig )
|
||||
hppa? ( savedconfig )
|
||||
sparc? ( savedconfig )
|
||||
"
|
||||
|
||||
BDEPEND="
|
||||
debug? ( dev-util/pahole )
|
||||
verify-sig? ( >=sec-keys/openpgp-keys-kernel-20250702 )
|
||||
"
|
||||
PDEPEND="
|
||||
>=virtual/dist-kernel-${PV}
|
||||
"
|
||||
|
||||
VERIFY_SIG_OPENPGP_KEY_PATH=/usr/share/openpgp-keys/kernel.org.asc
|
||||
|
||||
QA_FLAGS_IGNORED="
|
||||
usr/src/linux-.*/scripts/gcc-plugins/.*.so
|
||||
usr/src/linux-.*/vmlinux
|
||||
usr/src/linux-.*/arch/powerpc/kernel/vdso.*/vdso.*.so.dbg
|
||||
"
|
||||
|
||||
src_unpack() {
|
||||
if use verify-sig; then
|
||||
cd "${DISTDIR}" || die
|
||||
verify-sig_verify_signed_checksums \
|
||||
"linux-$(ver_cut 1).x-sha256sums-${SHA256SUM_DATE}.asc" \
|
||||
sha256 "${BASE_P}.tar.xz patch-${PV}.xz"
|
||||
cd "${WORKDIR}" || die
|
||||
fi
|
||||
|
||||
default
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
eapply "${WORKDIR}/patch-${PV}"
|
||||
default
|
||||
|
||||
local biendian=false
|
||||
|
||||
# prepare the default config
|
||||
case ${ARCH} in
|
||||
arm | hppa | loong | sparc)
|
||||
> .config || die
|
||||
;;
|
||||
amd64)
|
||||
cp "${DISTDIR}/kernel-x86_64-fedora.config.${CONFIG_VER}" .config || die
|
||||
;;
|
||||
arm64)
|
||||
cp "${DISTDIR}/kernel-aarch64-fedora.config.${CONFIG_VER}" .config || die
|
||||
biendian=true
|
||||
;;
|
||||
ppc)
|
||||
# assume powermac/powerbook defconfig
|
||||
# we still package.use.force savedconfig
|
||||
cp "${WORKDIR}/${BASE_P}/arch/powerpc/configs/pmac32_defconfig" .config || die
|
||||
;;
|
||||
ppc64)
|
||||
cp "${DISTDIR}/kernel-ppc64le-fedora.config.${CONFIG_VER}" .config || die
|
||||
biendian=true
|
||||
;;
|
||||
riscv)
|
||||
cp "${DISTDIR}/kernel-riscv64-fedora.config.${CONFIG_VER}" .config || die
|
||||
;;
|
||||
x86)
|
||||
cp "${DISTDIR}/kernel-i686-fedora.config.${CONFIG_VER}" .config || die
|
||||
;;
|
||||
*)
|
||||
die "Unsupported arch ${ARCH}"
|
||||
;;
|
||||
esac
|
||||
|
||||
local myversion="-dist"
|
||||
use hardened && myversion+="-hardened"
|
||||
echo "CONFIG_LOCALVERSION=\"${myversion}\"" > "${T}"/version.config || die
|
||||
local dist_conf_path="${WORKDIR}/gentoo-kernel-config-${GENTOO_CONFIG_VER}"
|
||||
|
||||
local merge_configs=(
|
||||
"${T}"/version.config
|
||||
"${dist_conf_path}"/base.config
|
||||
"${dist_conf_path}"/6.12+.config
|
||||
)
|
||||
use debug || merge_configs+=(
|
||||
"${dist_conf_path}"/no-debug.config
|
||||
)
|
||||
if use hardened; then
|
||||
merge_configs+=( "${dist_conf_path}"/hardened-base.config )
|
||||
|
||||
tc-is-gcc && merge_configs+=( "${dist_conf_path}"/hardened-gcc-plugins.config )
|
||||
|
||||
if [[ -f "${dist_conf_path}/hardened-${ARCH}.config" ]]; then
|
||||
merge_configs+=( "${dist_conf_path}/hardened-${ARCH}.config" )
|
||||
fi
|
||||
fi
|
||||
|
||||
# this covers ppc64 and aarch64_be only for now
|
||||
if [[ ${biendian} == true && $(tc-endian) == big ]]; then
|
||||
merge_configs+=( "${dist_conf_path}/big-endian.config" )
|
||||
fi
|
||||
|
||||
use secureboot && merge_configs+=(
|
||||
"${dist_conf_path}/secureboot.config"
|
||||
"${dist_conf_path}/zboot.config"
|
||||
)
|
||||
|
||||
kernel-build_merge_configs "${merge_configs[@]}"
|
||||
}
|
||||
@@ -1,163 +0,0 @@
|
||||
# Copyright 2020-2025 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
KERNEL_IUSE_GENERIC_UKI=1
|
||||
KERNEL_IUSE_MODULES_SIGN=1
|
||||
|
||||
inherit kernel-build toolchain-funcs verify-sig
|
||||
|
||||
BASE_P=linux-${PV%.*}
|
||||
# https://koji.fedoraproject.org/koji/packageinfo?packageID=8
|
||||
# forked to https://github.com/projg2/fedora-kernel-config-for-gentoo
|
||||
CONFIG_VER=6.17.0-gentoo
|
||||
GENTOO_CONFIG_VER=g17
|
||||
SHA256SUM_DATE=20251006
|
||||
|
||||
DESCRIPTION="Linux kernel built from vanilla upstream sources"
|
||||
HOMEPAGE="
|
||||
https://wiki.gentoo.org/wiki/Project:Distribution_Kernel
|
||||
https://www.kernel.org/
|
||||
"
|
||||
SRC_URI+="
|
||||
https://cdn.kernel.org/pub/linux/kernel/v$(ver_cut 1).x/${BASE_P}.tar.xz
|
||||
https://cdn.kernel.org/pub/linux/kernel/v$(ver_cut 1).x/patch-${PV}.xz
|
||||
https://github.com/projg2/gentoo-kernel-config/archive/${GENTOO_CONFIG_VER}.tar.gz
|
||||
-> gentoo-kernel-config-${GENTOO_CONFIG_VER}.tar.gz
|
||||
verify-sig? (
|
||||
https://cdn.kernel.org/pub/linux/kernel/v$(ver_cut 1).x/sha256sums.asc
|
||||
-> linux-$(ver_cut 1).x-sha256sums-${SHA256SUM_DATE}.asc
|
||||
)
|
||||
amd64? (
|
||||
https://raw.githubusercontent.com/projg2/fedora-kernel-config-for-gentoo/${CONFIG_VER}/kernel-x86_64-fedora.config
|
||||
-> kernel-x86_64-fedora.config.${CONFIG_VER}
|
||||
)
|
||||
arm64? (
|
||||
https://raw.githubusercontent.com/projg2/fedora-kernel-config-for-gentoo/${CONFIG_VER}/kernel-aarch64-fedora.config
|
||||
-> kernel-aarch64-fedora.config.${CONFIG_VER}
|
||||
)
|
||||
ppc64? (
|
||||
https://raw.githubusercontent.com/projg2/fedora-kernel-config-for-gentoo/${CONFIG_VER}/kernel-ppc64le-fedora.config
|
||||
-> kernel-ppc64le-fedora.config.${CONFIG_VER}
|
||||
)
|
||||
riscv? (
|
||||
https://raw.githubusercontent.com/projg2/fedora-kernel-config-for-gentoo/${CONFIG_VER}/kernel-riscv64-fedora.config
|
||||
-> kernel-riscv64-fedora.config.${CONFIG_VER}
|
||||
)
|
||||
x86? (
|
||||
https://raw.githubusercontent.com/projg2/fedora-kernel-config-for-gentoo/${CONFIG_VER}/kernel-i686-fedora.config
|
||||
-> kernel-i686-fedora.config.${CONFIG_VER}
|
||||
)
|
||||
"
|
||||
S=${WORKDIR}/${BASE_P}
|
||||
|
||||
KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~loong ~ppc ~ppc64 ~riscv ~sparc ~x86"
|
||||
IUSE="debug hardened"
|
||||
REQUIRED_USE="
|
||||
arm? ( savedconfig )
|
||||
hppa? ( savedconfig )
|
||||
sparc? ( savedconfig )
|
||||
"
|
||||
|
||||
BDEPEND="
|
||||
debug? ( dev-util/pahole )
|
||||
verify-sig? ( >=sec-keys/openpgp-keys-kernel-20250702 )
|
||||
"
|
||||
PDEPEND="
|
||||
>=virtual/dist-kernel-${PV}
|
||||
"
|
||||
|
||||
VERIFY_SIG_OPENPGP_KEY_PATH=/usr/share/openpgp-keys/kernel.org.asc
|
||||
|
||||
QA_FLAGS_IGNORED="
|
||||
usr/src/linux-.*/scripts/gcc-plugins/.*.so
|
||||
usr/src/linux-.*/vmlinux
|
||||
usr/src/linux-.*/arch/powerpc/kernel/vdso.*/vdso.*.so.dbg
|
||||
"
|
||||
|
||||
src_unpack() {
|
||||
if use verify-sig; then
|
||||
cd "${DISTDIR}" || die
|
||||
verify-sig_verify_signed_checksums \
|
||||
"linux-$(ver_cut 1).x-sha256sums-${SHA256SUM_DATE}.asc" \
|
||||
sha256 "${BASE_P}.tar.xz patch-${PV}.xz"
|
||||
cd "${WORKDIR}" || die
|
||||
fi
|
||||
|
||||
default
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
eapply "${WORKDIR}/patch-${PV}"
|
||||
default
|
||||
|
||||
local biendian=false
|
||||
|
||||
# prepare the default config
|
||||
case ${ARCH} in
|
||||
arm | hppa | loong | sparc)
|
||||
> .config || die
|
||||
;;
|
||||
amd64)
|
||||
cp "${DISTDIR}/kernel-x86_64-fedora.config.${CONFIG_VER}" .config || die
|
||||
;;
|
||||
arm64)
|
||||
cp "${DISTDIR}/kernel-aarch64-fedora.config.${CONFIG_VER}" .config || die
|
||||
biendian=true
|
||||
;;
|
||||
ppc)
|
||||
# assume powermac/powerbook defconfig
|
||||
# we still package.use.force savedconfig
|
||||
cp "${WORKDIR}/${BASE_P}/arch/powerpc/configs/pmac32_defconfig" .config || die
|
||||
;;
|
||||
ppc64)
|
||||
cp "${DISTDIR}/kernel-ppc64le-fedora.config.${CONFIG_VER}" .config || die
|
||||
biendian=true
|
||||
;;
|
||||
riscv)
|
||||
cp "${DISTDIR}/kernel-riscv64-fedora.config.${CONFIG_VER}" .config || die
|
||||
;;
|
||||
x86)
|
||||
cp "${DISTDIR}/kernel-i686-fedora.config.${CONFIG_VER}" .config || die
|
||||
;;
|
||||
*)
|
||||
die "Unsupported arch ${ARCH}"
|
||||
;;
|
||||
esac
|
||||
|
||||
local myversion="-dist"
|
||||
use hardened && myversion+="-hardened"
|
||||
echo "CONFIG_LOCALVERSION=\"${myversion}\"" > "${T}"/version.config || die
|
||||
local dist_conf_path="${WORKDIR}/gentoo-kernel-config-${GENTOO_CONFIG_VER}"
|
||||
|
||||
local merge_configs=(
|
||||
"${T}"/version.config
|
||||
"${dist_conf_path}"/base.config
|
||||
"${dist_conf_path}"/6.12+.config
|
||||
)
|
||||
use debug || merge_configs+=(
|
||||
"${dist_conf_path}"/no-debug.config
|
||||
)
|
||||
if use hardened; then
|
||||
merge_configs+=( "${dist_conf_path}"/hardened-base.config )
|
||||
|
||||
tc-is-gcc && merge_configs+=( "${dist_conf_path}"/hardened-gcc-plugins.config )
|
||||
|
||||
if [[ -f "${dist_conf_path}/hardened-${ARCH}.config" ]]; then
|
||||
merge_configs+=( "${dist_conf_path}/hardened-${ARCH}.config" )
|
||||
fi
|
||||
fi
|
||||
|
||||
# this covers ppc64 and aarch64_be only for now
|
||||
if [[ ${biendian} == true && $(tc-endian) == big ]]; then
|
||||
merge_configs+=( "${dist_conf_path}/big-endian.config" )
|
||||
fi
|
||||
|
||||
use secureboot && merge_configs+=(
|
||||
"${dist_conf_path}/secureboot.config"
|
||||
"${dist_conf_path}/zboot.config"
|
||||
)
|
||||
|
||||
kernel-build_merge_configs "${merge_configs[@]}"
|
||||
}
|
||||
@@ -1,163 +0,0 @@
|
||||
# Copyright 2020-2025 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
KERNEL_IUSE_GENERIC_UKI=1
|
||||
KERNEL_IUSE_MODULES_SIGN=1
|
||||
|
||||
inherit kernel-build toolchain-funcs verify-sig
|
||||
|
||||
BASE_P=linux-${PV%.*}
|
||||
# https://koji.fedoraproject.org/koji/packageinfo?packageID=8
|
||||
# forked to https://github.com/projg2/fedora-kernel-config-for-gentoo
|
||||
CONFIG_VER=6.17.0-gentoo
|
||||
GENTOO_CONFIG_VER=g17
|
||||
SHA256SUM_DATE=20251012
|
||||
|
||||
DESCRIPTION="Linux kernel built from vanilla upstream sources"
|
||||
HOMEPAGE="
|
||||
https://wiki.gentoo.org/wiki/Project:Distribution_Kernel
|
||||
https://www.kernel.org/
|
||||
"
|
||||
SRC_URI+="
|
||||
https://cdn.kernel.org/pub/linux/kernel/v$(ver_cut 1).x/${BASE_P}.tar.xz
|
||||
https://cdn.kernel.org/pub/linux/kernel/v$(ver_cut 1).x/patch-${PV}.xz
|
||||
https://github.com/projg2/gentoo-kernel-config/archive/${GENTOO_CONFIG_VER}.tar.gz
|
||||
-> gentoo-kernel-config-${GENTOO_CONFIG_VER}.tar.gz
|
||||
verify-sig? (
|
||||
https://cdn.kernel.org/pub/linux/kernel/v$(ver_cut 1).x/sha256sums.asc
|
||||
-> linux-$(ver_cut 1).x-sha256sums-${SHA256SUM_DATE}.asc
|
||||
)
|
||||
amd64? (
|
||||
https://raw.githubusercontent.com/projg2/fedora-kernel-config-for-gentoo/${CONFIG_VER}/kernel-x86_64-fedora.config
|
||||
-> kernel-x86_64-fedora.config.${CONFIG_VER}
|
||||
)
|
||||
arm64? (
|
||||
https://raw.githubusercontent.com/projg2/fedora-kernel-config-for-gentoo/${CONFIG_VER}/kernel-aarch64-fedora.config
|
||||
-> kernel-aarch64-fedora.config.${CONFIG_VER}
|
||||
)
|
||||
ppc64? (
|
||||
https://raw.githubusercontent.com/projg2/fedora-kernel-config-for-gentoo/${CONFIG_VER}/kernel-ppc64le-fedora.config
|
||||
-> kernel-ppc64le-fedora.config.${CONFIG_VER}
|
||||
)
|
||||
riscv? (
|
||||
https://raw.githubusercontent.com/projg2/fedora-kernel-config-for-gentoo/${CONFIG_VER}/kernel-riscv64-fedora.config
|
||||
-> kernel-riscv64-fedora.config.${CONFIG_VER}
|
||||
)
|
||||
x86? (
|
||||
https://raw.githubusercontent.com/projg2/fedora-kernel-config-for-gentoo/${CONFIG_VER}/kernel-i686-fedora.config
|
||||
-> kernel-i686-fedora.config.${CONFIG_VER}
|
||||
)
|
||||
"
|
||||
S=${WORKDIR}/${BASE_P}
|
||||
|
||||
KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~loong ~ppc ~ppc64 ~riscv ~sparc ~x86"
|
||||
IUSE="debug hardened"
|
||||
REQUIRED_USE="
|
||||
arm? ( savedconfig )
|
||||
hppa? ( savedconfig )
|
||||
sparc? ( savedconfig )
|
||||
"
|
||||
|
||||
BDEPEND="
|
||||
debug? ( dev-util/pahole )
|
||||
verify-sig? ( >=sec-keys/openpgp-keys-kernel-20250702 )
|
||||
"
|
||||
PDEPEND="
|
||||
>=virtual/dist-kernel-${PV}
|
||||
"
|
||||
|
||||
VERIFY_SIG_OPENPGP_KEY_PATH=/usr/share/openpgp-keys/kernel.org.asc
|
||||
|
||||
QA_FLAGS_IGNORED="
|
||||
usr/src/linux-.*/scripts/gcc-plugins/.*.so
|
||||
usr/src/linux-.*/vmlinux
|
||||
usr/src/linux-.*/arch/powerpc/kernel/vdso.*/vdso.*.so.dbg
|
||||
"
|
||||
|
||||
src_unpack() {
|
||||
if use verify-sig; then
|
||||
cd "${DISTDIR}" || die
|
||||
verify-sig_verify_signed_checksums \
|
||||
"linux-$(ver_cut 1).x-sha256sums-${SHA256SUM_DATE}.asc" \
|
||||
sha256 "${BASE_P}.tar.xz patch-${PV}.xz"
|
||||
cd "${WORKDIR}" || die
|
||||
fi
|
||||
|
||||
default
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
eapply "${WORKDIR}/patch-${PV}"
|
||||
default
|
||||
|
||||
local biendian=false
|
||||
|
||||
# prepare the default config
|
||||
case ${ARCH} in
|
||||
arm | hppa | loong | sparc)
|
||||
> .config || die
|
||||
;;
|
||||
amd64)
|
||||
cp "${DISTDIR}/kernel-x86_64-fedora.config.${CONFIG_VER}" .config || die
|
||||
;;
|
||||
arm64)
|
||||
cp "${DISTDIR}/kernel-aarch64-fedora.config.${CONFIG_VER}" .config || die
|
||||
biendian=true
|
||||
;;
|
||||
ppc)
|
||||
# assume powermac/powerbook defconfig
|
||||
# we still package.use.force savedconfig
|
||||
cp "${WORKDIR}/${BASE_P}/arch/powerpc/configs/pmac32_defconfig" .config || die
|
||||
;;
|
||||
ppc64)
|
||||
cp "${DISTDIR}/kernel-ppc64le-fedora.config.${CONFIG_VER}" .config || die
|
||||
biendian=true
|
||||
;;
|
||||
riscv)
|
||||
cp "${DISTDIR}/kernel-riscv64-fedora.config.${CONFIG_VER}" .config || die
|
||||
;;
|
||||
x86)
|
||||
cp "${DISTDIR}/kernel-i686-fedora.config.${CONFIG_VER}" .config || die
|
||||
;;
|
||||
*)
|
||||
die "Unsupported arch ${ARCH}"
|
||||
;;
|
||||
esac
|
||||
|
||||
local myversion="-dist"
|
||||
use hardened && myversion+="-hardened"
|
||||
echo "CONFIG_LOCALVERSION=\"${myversion}\"" > "${T}"/version.config || die
|
||||
local dist_conf_path="${WORKDIR}/gentoo-kernel-config-${GENTOO_CONFIG_VER}"
|
||||
|
||||
local merge_configs=(
|
||||
"${T}"/version.config
|
||||
"${dist_conf_path}"/base.config
|
||||
"${dist_conf_path}"/6.12+.config
|
||||
)
|
||||
use debug || merge_configs+=(
|
||||
"${dist_conf_path}"/no-debug.config
|
||||
)
|
||||
if use hardened; then
|
||||
merge_configs+=( "${dist_conf_path}"/hardened-base.config )
|
||||
|
||||
tc-is-gcc && merge_configs+=( "${dist_conf_path}"/hardened-gcc-plugins.config )
|
||||
|
||||
if [[ -f "${dist_conf_path}/hardened-${ARCH}.config" ]]; then
|
||||
merge_configs+=( "${dist_conf_path}/hardened-${ARCH}.config" )
|
||||
fi
|
||||
fi
|
||||
|
||||
# this covers ppc64 and aarch64_be only for now
|
||||
if [[ ${biendian} == true && $(tc-endian) == big ]]; then
|
||||
merge_configs+=( "${dist_conf_path}/big-endian.config" )
|
||||
fi
|
||||
|
||||
use secureboot && merge_configs+=(
|
||||
"${dist_conf_path}/secureboot.config"
|
||||
"${dist_conf_path}/zboot.config"
|
||||
)
|
||||
|
||||
kernel-build_merge_configs "${merge_configs[@]}"
|
||||
}
|
||||
@@ -1,163 +0,0 @@
|
||||
# Copyright 2020-2025 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
KERNEL_IUSE_GENERIC_UKI=1
|
||||
KERNEL_IUSE_MODULES_SIGN=1
|
||||
|
||||
inherit kernel-build toolchain-funcs verify-sig
|
||||
|
||||
BASE_P=linux-${PV%.*}
|
||||
# https://koji.fedoraproject.org/koji/packageinfo?packageID=8
|
||||
# forked to https://github.com/projg2/fedora-kernel-config-for-gentoo
|
||||
CONFIG_VER=6.17.0-gentoo
|
||||
GENTOO_CONFIG_VER=g17
|
||||
SHA256SUM_DATE=20251015
|
||||
|
||||
DESCRIPTION="Linux kernel built from vanilla upstream sources"
|
||||
HOMEPAGE="
|
||||
https://wiki.gentoo.org/wiki/Project:Distribution_Kernel
|
||||
https://www.kernel.org/
|
||||
"
|
||||
SRC_URI+="
|
||||
https://cdn.kernel.org/pub/linux/kernel/v$(ver_cut 1).x/${BASE_P}.tar.xz
|
||||
https://cdn.kernel.org/pub/linux/kernel/v$(ver_cut 1).x/patch-${PV}.xz
|
||||
https://github.com/projg2/gentoo-kernel-config/archive/${GENTOO_CONFIG_VER}.tar.gz
|
||||
-> gentoo-kernel-config-${GENTOO_CONFIG_VER}.tar.gz
|
||||
verify-sig? (
|
||||
https://cdn.kernel.org/pub/linux/kernel/v$(ver_cut 1).x/sha256sums.asc
|
||||
-> linux-$(ver_cut 1).x-sha256sums-${SHA256SUM_DATE}.asc
|
||||
)
|
||||
amd64? (
|
||||
https://raw.githubusercontent.com/projg2/fedora-kernel-config-for-gentoo/${CONFIG_VER}/kernel-x86_64-fedora.config
|
||||
-> kernel-x86_64-fedora.config.${CONFIG_VER}
|
||||
)
|
||||
arm64? (
|
||||
https://raw.githubusercontent.com/projg2/fedora-kernel-config-for-gentoo/${CONFIG_VER}/kernel-aarch64-fedora.config
|
||||
-> kernel-aarch64-fedora.config.${CONFIG_VER}
|
||||
)
|
||||
ppc64? (
|
||||
https://raw.githubusercontent.com/projg2/fedora-kernel-config-for-gentoo/${CONFIG_VER}/kernel-ppc64le-fedora.config
|
||||
-> kernel-ppc64le-fedora.config.${CONFIG_VER}
|
||||
)
|
||||
riscv? (
|
||||
https://raw.githubusercontent.com/projg2/fedora-kernel-config-for-gentoo/${CONFIG_VER}/kernel-riscv64-fedora.config
|
||||
-> kernel-riscv64-fedora.config.${CONFIG_VER}
|
||||
)
|
||||
x86? (
|
||||
https://raw.githubusercontent.com/projg2/fedora-kernel-config-for-gentoo/${CONFIG_VER}/kernel-i686-fedora.config
|
||||
-> kernel-i686-fedora.config.${CONFIG_VER}
|
||||
)
|
||||
"
|
||||
S=${WORKDIR}/${BASE_P}
|
||||
|
||||
KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~loong ~ppc ~ppc64 ~riscv ~sparc ~x86"
|
||||
IUSE="debug hardened"
|
||||
REQUIRED_USE="
|
||||
arm? ( savedconfig )
|
||||
hppa? ( savedconfig )
|
||||
sparc? ( savedconfig )
|
||||
"
|
||||
|
||||
BDEPEND="
|
||||
debug? ( dev-util/pahole )
|
||||
verify-sig? ( >=sec-keys/openpgp-keys-kernel-20250702 )
|
||||
"
|
||||
PDEPEND="
|
||||
>=virtual/dist-kernel-${PV}
|
||||
"
|
||||
|
||||
VERIFY_SIG_OPENPGP_KEY_PATH=/usr/share/openpgp-keys/kernel.org.asc
|
||||
|
||||
QA_FLAGS_IGNORED="
|
||||
usr/src/linux-.*/scripts/gcc-plugins/.*.so
|
||||
usr/src/linux-.*/vmlinux
|
||||
usr/src/linux-.*/arch/powerpc/kernel/vdso.*/vdso.*.so.dbg
|
||||
"
|
||||
|
||||
src_unpack() {
|
||||
if use verify-sig; then
|
||||
cd "${DISTDIR}" || die
|
||||
verify-sig_verify_signed_checksums \
|
||||
"linux-$(ver_cut 1).x-sha256sums-${SHA256SUM_DATE}.asc" \
|
||||
sha256 "${BASE_P}.tar.xz patch-${PV}.xz"
|
||||
cd "${WORKDIR}" || die
|
||||
fi
|
||||
|
||||
default
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
eapply "${WORKDIR}/patch-${PV}"
|
||||
default
|
||||
|
||||
local biendian=false
|
||||
|
||||
# prepare the default config
|
||||
case ${ARCH} in
|
||||
arm | hppa | loong | sparc)
|
||||
> .config || die
|
||||
;;
|
||||
amd64)
|
||||
cp "${DISTDIR}/kernel-x86_64-fedora.config.${CONFIG_VER}" .config || die
|
||||
;;
|
||||
arm64)
|
||||
cp "${DISTDIR}/kernel-aarch64-fedora.config.${CONFIG_VER}" .config || die
|
||||
biendian=true
|
||||
;;
|
||||
ppc)
|
||||
# assume powermac/powerbook defconfig
|
||||
# we still package.use.force savedconfig
|
||||
cp "${WORKDIR}/${BASE_P}/arch/powerpc/configs/pmac32_defconfig" .config || die
|
||||
;;
|
||||
ppc64)
|
||||
cp "${DISTDIR}/kernel-ppc64le-fedora.config.${CONFIG_VER}" .config || die
|
||||
biendian=true
|
||||
;;
|
||||
riscv)
|
||||
cp "${DISTDIR}/kernel-riscv64-fedora.config.${CONFIG_VER}" .config || die
|
||||
;;
|
||||
x86)
|
||||
cp "${DISTDIR}/kernel-i686-fedora.config.${CONFIG_VER}" .config || die
|
||||
;;
|
||||
*)
|
||||
die "Unsupported arch ${ARCH}"
|
||||
;;
|
||||
esac
|
||||
|
||||
local myversion="-dist"
|
||||
use hardened && myversion+="-hardened"
|
||||
echo "CONFIG_LOCALVERSION=\"${myversion}\"" > "${T}"/version.config || die
|
||||
local dist_conf_path="${WORKDIR}/gentoo-kernel-config-${GENTOO_CONFIG_VER}"
|
||||
|
||||
local merge_configs=(
|
||||
"${T}"/version.config
|
||||
"${dist_conf_path}"/base.config
|
||||
"${dist_conf_path}"/6.12+.config
|
||||
)
|
||||
use debug || merge_configs+=(
|
||||
"${dist_conf_path}"/no-debug.config
|
||||
)
|
||||
if use hardened; then
|
||||
merge_configs+=( "${dist_conf_path}"/hardened-base.config )
|
||||
|
||||
tc-is-gcc && merge_configs+=( "${dist_conf_path}"/hardened-gcc-plugins.config )
|
||||
|
||||
if [[ -f "${dist_conf_path}/hardened-${ARCH}.config" ]]; then
|
||||
merge_configs+=( "${dist_conf_path}/hardened-${ARCH}.config" )
|
||||
fi
|
||||
fi
|
||||
|
||||
# this covers ppc64 and aarch64_be only for now
|
||||
if [[ ${biendian} == true && $(tc-endian) == big ]]; then
|
||||
merge_configs+=( "${dist_conf_path}/big-endian.config" )
|
||||
fi
|
||||
|
||||
use secureboot && merge_configs+=(
|
||||
"${dist_conf_path}/secureboot.config"
|
||||
"${dist_conf_path}/zboot.config"
|
||||
)
|
||||
|
||||
kernel-build_merge_configs "${merge_configs[@]}"
|
||||
}
|
||||
@@ -11,9 +11,9 @@ inherit kernel-build toolchain-funcs verify-sig
|
||||
BASE_P=linux-${PV%.*}
|
||||
# https://koji.fedoraproject.org/koji/packageinfo?packageID=8
|
||||
# forked to https://github.com/projg2/fedora-kernel-config-for-gentoo
|
||||
CONFIG_VER=6.16.9-gentoo
|
||||
CONFIG_VER=6.17.3-gentoo
|
||||
GENTOO_CONFIG_VER=g17
|
||||
SHA256SUM_DATE=20251002
|
||||
SHA256SUM_DATE=20251023
|
||||
|
||||
DESCRIPTION="Linux kernel built from vanilla upstream sources"
|
||||
HOMEPAGE="
|
||||
@@ -1,153 +0,0 @@
|
||||
# Copyright 2020-2025 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
KERNEL_IUSE_GENERIC_UKI=1
|
||||
KERNEL_IUSE_MODULES_SIGN=1
|
||||
|
||||
inherit kernel-build toolchain-funcs verify-sig
|
||||
|
||||
MY_P=linux-${PV%.*}
|
||||
# https://koji.fedoraproject.org/koji/packageinfo?packageID=8
|
||||
# forked to https://github.com/projg2/fedora-kernel-config-for-gentoo
|
||||
CONFIG_VER=6.6.12-gentoo
|
||||
GENTOO_CONFIG_VER=g16
|
||||
SHA256SUM_DATE=20250801
|
||||
|
||||
DESCRIPTION="Linux kernel built from vanilla upstream sources"
|
||||
HOMEPAGE="
|
||||
https://wiki.gentoo.org/wiki/Project:Distribution_Kernel
|
||||
https://www.kernel.org/
|
||||
"
|
||||
SRC_URI+="
|
||||
https://cdn.kernel.org/pub/linux/kernel/v$(ver_cut 1).x/${MY_P}.tar.xz
|
||||
https://cdn.kernel.org/pub/linux/kernel/v$(ver_cut 1).x/patch-${PV}.xz
|
||||
https://github.com/projg2/gentoo-kernel-config/archive/${GENTOO_CONFIG_VER}.tar.gz
|
||||
-> gentoo-kernel-config-${GENTOO_CONFIG_VER}.tar.gz
|
||||
verify-sig? (
|
||||
https://cdn.kernel.org/pub/linux/kernel/v$(ver_cut 1).x/sha256sums.asc
|
||||
-> linux-$(ver_cut 1).x-sha256sums-${SHA256SUM_DATE}.asc
|
||||
)
|
||||
amd64? (
|
||||
https://raw.githubusercontent.com/projg2/fedora-kernel-config-for-gentoo/${CONFIG_VER}/kernel-x86_64-fedora.config
|
||||
-> kernel-x86_64-fedora.config.${CONFIG_VER}
|
||||
)
|
||||
arm64? (
|
||||
https://raw.githubusercontent.com/projg2/fedora-kernel-config-for-gentoo/${CONFIG_VER}/kernel-aarch64-fedora.config
|
||||
-> kernel-aarch64-fedora.config.${CONFIG_VER}
|
||||
)
|
||||
ppc64? (
|
||||
https://raw.githubusercontent.com/projg2/fedora-kernel-config-for-gentoo/${CONFIG_VER}/kernel-ppc64le-fedora.config
|
||||
-> kernel-ppc64le-fedora.config.${CONFIG_VER}
|
||||
)
|
||||
x86? (
|
||||
https://raw.githubusercontent.com/projg2/fedora-kernel-config-for-gentoo/${CONFIG_VER}/kernel-i686-fedora.config
|
||||
-> kernel-i686-fedora.config.${CONFIG_VER}
|
||||
)
|
||||
"
|
||||
S=${WORKDIR}/${MY_P}
|
||||
|
||||
KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~loong ~ppc ~ppc64 ~riscv ~sparc ~x86"
|
||||
IUSE="debug hardened"
|
||||
REQUIRED_USE="
|
||||
arm? ( savedconfig )
|
||||
hppa? ( savedconfig )
|
||||
riscv? ( savedconfig )
|
||||
sparc? ( savedconfig )
|
||||
"
|
||||
|
||||
BDEPEND="
|
||||
debug? ( dev-util/pahole )
|
||||
verify-sig? ( >=sec-keys/openpgp-keys-kernel-20250702 )
|
||||
"
|
||||
PDEPEND="
|
||||
>=virtual/dist-kernel-${PV}
|
||||
"
|
||||
|
||||
QA_FLAGS_IGNORED="
|
||||
usr/src/linux-.*/scripts/gcc-plugins/.*.so
|
||||
usr/src/linux-.*/vmlinux
|
||||
usr/src/linux-.*/arch/powerpc/kernel/vdso.*/vdso.*.so.dbg
|
||||
"
|
||||
|
||||
VERIFY_SIG_OPENPGP_KEY_PATH=/usr/share/openpgp-keys/kernel.org.asc
|
||||
|
||||
src_unpack() {
|
||||
if use verify-sig; then
|
||||
cd "${DISTDIR}" || die
|
||||
verify-sig_verify_signed_checksums \
|
||||
"linux-$(ver_cut 1).x-sha256sums-${SHA256SUM_DATE}.asc" \
|
||||
sha256 "${MY_P}.tar.xz patch-${PV}.xz"
|
||||
cd "${WORKDIR}" || die
|
||||
fi
|
||||
|
||||
default
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
eapply "${WORKDIR}/patch-${PV}"
|
||||
default
|
||||
|
||||
local biendian=false
|
||||
|
||||
# prepare the default config
|
||||
case ${ARCH} in
|
||||
arm | hppa | loong | riscv | sparc)
|
||||
> .config || die
|
||||
;;
|
||||
amd64)
|
||||
cp "${DISTDIR}/kernel-x86_64-fedora.config.${CONFIG_VER}" .config || die
|
||||
;;
|
||||
arm64)
|
||||
cp "${DISTDIR}/kernel-aarch64-fedora.config.${CONFIG_VER}" .config || die
|
||||
biendian=true
|
||||
;;
|
||||
ppc)
|
||||
# assume powermac/powerbook defconfig
|
||||
# we still package.use.force savedconfig
|
||||
cp "${WORKDIR}/${MY_P}/arch/powerpc/configs/pmac32_defconfig" .config || die
|
||||
;;
|
||||
ppc64)
|
||||
cp "${DISTDIR}/kernel-ppc64le-fedora.config.${CONFIG_VER}" .config || die
|
||||
biendian=true
|
||||
;;
|
||||
x86)
|
||||
cp "${DISTDIR}/kernel-i686-fedora.config.${CONFIG_VER}" .config || die
|
||||
;;
|
||||
*)
|
||||
die "Unsupported arch ${ARCH}"
|
||||
;;
|
||||
esac
|
||||
|
||||
local myversion="-dist"
|
||||
use hardened && myversion+="-hardened"
|
||||
echo "CONFIG_LOCALVERSION=\"${myversion}\"" > "${T}"/version.config || die
|
||||
local dist_conf_path="${WORKDIR}/gentoo-kernel-config-${GENTOO_CONFIG_VER}"
|
||||
|
||||
local merge_configs=(
|
||||
"${T}"/version.config
|
||||
"${dist_conf_path}"/base.config
|
||||
)
|
||||
use debug || merge_configs+=(
|
||||
"${dist_conf_path}"/no-debug.config
|
||||
)
|
||||
if use hardened; then
|
||||
merge_configs+=( "${dist_conf_path}"/hardened-base.config )
|
||||
|
||||
tc-is-gcc && merge_configs+=( "${dist_conf_path}"/hardened-gcc-plugins.config )
|
||||
|
||||
if [[ -f "${dist_conf_path}/hardened-${ARCH}.config" ]]; then
|
||||
merge_configs+=( "${dist_conf_path}/hardened-${ARCH}.config" )
|
||||
fi
|
||||
fi
|
||||
|
||||
# this covers ppc64 and aarch64_be only for now
|
||||
if [[ ${biendian} == true && $(tc-endian) == big ]]; then
|
||||
merge_configs+=( "${dist_conf_path}/big-endian.config" )
|
||||
fi
|
||||
|
||||
use secureboot && merge_configs+=( "${dist_conf_path}/secureboot.config" )
|
||||
|
||||
kernel-build_merge_configs "${merge_configs[@]}"
|
||||
}
|
||||
@@ -1,156 +0,0 @@
|
||||
# Copyright 2020-2025 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
KERNEL_IUSE_GENERIC_UKI=1
|
||||
KERNEL_IUSE_MODULES_SIGN=1
|
||||
|
||||
inherit kernel-build toolchain-funcs verify-sig
|
||||
|
||||
BASE_P=linux-${PV%.*}
|
||||
# https://koji.fedoraproject.org/koji/packageinfo?packageID=8
|
||||
# forked to https://github.com/projg2/fedora-kernel-config-for-gentoo
|
||||
CONFIG_VER=6.6.12-gentoo
|
||||
GENTOO_CONFIG_VER=g17
|
||||
SHA256SUM_DATE=20250925
|
||||
|
||||
DESCRIPTION="Linux kernel built from vanilla upstream sources"
|
||||
HOMEPAGE="
|
||||
https://wiki.gentoo.org/wiki/Project:Distribution_Kernel
|
||||
https://www.kernel.org/
|
||||
"
|
||||
SRC_URI+="
|
||||
https://cdn.kernel.org/pub/linux/kernel/v$(ver_cut 1).x/${BASE_P}.tar.xz
|
||||
https://cdn.kernel.org/pub/linux/kernel/v$(ver_cut 1).x/patch-${PV}.xz
|
||||
https://github.com/projg2/gentoo-kernel-config/archive/${GENTOO_CONFIG_VER}.tar.gz
|
||||
-> gentoo-kernel-config-${GENTOO_CONFIG_VER}.tar.gz
|
||||
verify-sig? (
|
||||
https://cdn.kernel.org/pub/linux/kernel/v$(ver_cut 1).x/sha256sums.asc
|
||||
-> linux-$(ver_cut 1).x-sha256sums-${SHA256SUM_DATE}.asc
|
||||
)
|
||||
amd64? (
|
||||
https://raw.githubusercontent.com/projg2/fedora-kernel-config-for-gentoo/${CONFIG_VER}/kernel-x86_64-fedora.config
|
||||
-> kernel-x86_64-fedora.config.${CONFIG_VER}
|
||||
)
|
||||
arm64? (
|
||||
https://raw.githubusercontent.com/projg2/fedora-kernel-config-for-gentoo/${CONFIG_VER}/kernel-aarch64-fedora.config
|
||||
-> kernel-aarch64-fedora.config.${CONFIG_VER}
|
||||
)
|
||||
ppc64? (
|
||||
https://raw.githubusercontent.com/projg2/fedora-kernel-config-for-gentoo/${CONFIG_VER}/kernel-ppc64le-fedora.config
|
||||
-> kernel-ppc64le-fedora.config.${CONFIG_VER}
|
||||
)
|
||||
x86? (
|
||||
https://raw.githubusercontent.com/projg2/fedora-kernel-config-for-gentoo/${CONFIG_VER}/kernel-i686-fedora.config
|
||||
-> kernel-i686-fedora.config.${CONFIG_VER}
|
||||
)
|
||||
"
|
||||
S=${WORKDIR}/${BASE_P}
|
||||
|
||||
KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~loong ~ppc ~ppc64 ~riscv ~sparc ~x86"
|
||||
IUSE="debug hardened"
|
||||
REQUIRED_USE="
|
||||
arm? ( savedconfig )
|
||||
hppa? ( savedconfig )
|
||||
riscv? ( savedconfig )
|
||||
sparc? ( savedconfig )
|
||||
"
|
||||
|
||||
BDEPEND="
|
||||
debug? ( dev-util/pahole )
|
||||
verify-sig? ( >=sec-keys/openpgp-keys-kernel-20250702 )
|
||||
"
|
||||
PDEPEND="
|
||||
>=virtual/dist-kernel-${PV}
|
||||
"
|
||||
|
||||
QA_FLAGS_IGNORED="
|
||||
usr/src/linux-.*/scripts/gcc-plugins/.*.so
|
||||
usr/src/linux-.*/vmlinux
|
||||
usr/src/linux-.*/arch/powerpc/kernel/vdso.*/vdso.*.so.dbg
|
||||
"
|
||||
|
||||
VERIFY_SIG_OPENPGP_KEY_PATH=/usr/share/openpgp-keys/kernel.org.asc
|
||||
|
||||
src_unpack() {
|
||||
if use verify-sig; then
|
||||
cd "${DISTDIR}" || die
|
||||
verify-sig_verify_signed_checksums \
|
||||
"linux-$(ver_cut 1).x-sha256sums-${SHA256SUM_DATE}.asc" \
|
||||
sha256 "${BASE_P}.tar.xz patch-${PV}.xz"
|
||||
cd "${WORKDIR}" || die
|
||||
fi
|
||||
|
||||
default
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
eapply "${WORKDIR}/patch-${PV}"
|
||||
default
|
||||
|
||||
local biendian=false
|
||||
|
||||
# prepare the default config
|
||||
case ${ARCH} in
|
||||
arm | hppa | loong | riscv | sparc)
|
||||
> .config || die
|
||||
;;
|
||||
amd64)
|
||||
cp "${DISTDIR}/kernel-x86_64-fedora.config.${CONFIG_VER}" .config || die
|
||||
;;
|
||||
arm64)
|
||||
cp "${DISTDIR}/kernel-aarch64-fedora.config.${CONFIG_VER}" .config || die
|
||||
biendian=true
|
||||
;;
|
||||
ppc)
|
||||
# assume powermac/powerbook defconfig
|
||||
# we still package.use.force savedconfig
|
||||
cp "${WORKDIR}/${BASE_P}/arch/powerpc/configs/pmac32_defconfig" .config || die
|
||||
;;
|
||||
ppc64)
|
||||
cp "${DISTDIR}/kernel-ppc64le-fedora.config.${CONFIG_VER}" .config || die
|
||||
biendian=true
|
||||
;;
|
||||
x86)
|
||||
cp "${DISTDIR}/kernel-i686-fedora.config.${CONFIG_VER}" .config || die
|
||||
;;
|
||||
*)
|
||||
die "Unsupported arch ${ARCH}"
|
||||
;;
|
||||
esac
|
||||
|
||||
local myversion="-dist"
|
||||
use hardened && myversion+="-hardened"
|
||||
echo "CONFIG_LOCALVERSION=\"${myversion}\"" > "${T}"/version.config || die
|
||||
local dist_conf_path="${WORKDIR}/gentoo-kernel-config-${GENTOO_CONFIG_VER}"
|
||||
|
||||
local merge_configs=(
|
||||
"${T}"/version.config
|
||||
"${dist_conf_path}"/base.config
|
||||
)
|
||||
use debug || merge_configs+=(
|
||||
"${dist_conf_path}"/no-debug.config
|
||||
)
|
||||
if use hardened; then
|
||||
merge_configs+=( "${dist_conf_path}"/hardened-base.config )
|
||||
|
||||
tc-is-gcc && merge_configs+=( "${dist_conf_path}"/hardened-gcc-plugins.config )
|
||||
|
||||
if [[ -f "${dist_conf_path}/hardened-${ARCH}.config" ]]; then
|
||||
merge_configs+=( "${dist_conf_path}/hardened-${ARCH}.config" )
|
||||
fi
|
||||
fi
|
||||
|
||||
# this covers ppc64 and aarch64_be only for now
|
||||
if [[ ${biendian} == true && $(tc-endian) == big ]]; then
|
||||
merge_configs+=( "${dist_conf_path}/big-endian.config" )
|
||||
fi
|
||||
|
||||
use secureboot && merge_configs+=(
|
||||
"${dist_conf_path}/secureboot.config"
|
||||
"${dist_conf_path}/zboot.config"
|
||||
)
|
||||
|
||||
kernel-build_merge_configs "${merge_configs[@]}"
|
||||
}
|
||||
@@ -1,156 +0,0 @@
|
||||
# Copyright 2020-2025 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
KERNEL_IUSE_GENERIC_UKI=1
|
||||
KERNEL_IUSE_MODULES_SIGN=1
|
||||
|
||||
inherit kernel-build toolchain-funcs verify-sig
|
||||
|
||||
BASE_P=linux-${PV%.*}
|
||||
# https://koji.fedoraproject.org/koji/packageinfo?packageID=8
|
||||
# forked to https://github.com/projg2/fedora-kernel-config-for-gentoo
|
||||
CONFIG_VER=6.6.12-gentoo
|
||||
GENTOO_CONFIG_VER=g17
|
||||
SHA256SUM_DATE=20251002
|
||||
|
||||
DESCRIPTION="Linux kernel built from vanilla upstream sources"
|
||||
HOMEPAGE="
|
||||
https://wiki.gentoo.org/wiki/Project:Distribution_Kernel
|
||||
https://www.kernel.org/
|
||||
"
|
||||
SRC_URI+="
|
||||
https://cdn.kernel.org/pub/linux/kernel/v$(ver_cut 1).x/${BASE_P}.tar.xz
|
||||
https://cdn.kernel.org/pub/linux/kernel/v$(ver_cut 1).x/patch-${PV}.xz
|
||||
https://github.com/projg2/gentoo-kernel-config/archive/${GENTOO_CONFIG_VER}.tar.gz
|
||||
-> gentoo-kernel-config-${GENTOO_CONFIG_VER}.tar.gz
|
||||
verify-sig? (
|
||||
https://cdn.kernel.org/pub/linux/kernel/v$(ver_cut 1).x/sha256sums.asc
|
||||
-> linux-$(ver_cut 1).x-sha256sums-${SHA256SUM_DATE}.asc
|
||||
)
|
||||
amd64? (
|
||||
https://raw.githubusercontent.com/projg2/fedora-kernel-config-for-gentoo/${CONFIG_VER}/kernel-x86_64-fedora.config
|
||||
-> kernel-x86_64-fedora.config.${CONFIG_VER}
|
||||
)
|
||||
arm64? (
|
||||
https://raw.githubusercontent.com/projg2/fedora-kernel-config-for-gentoo/${CONFIG_VER}/kernel-aarch64-fedora.config
|
||||
-> kernel-aarch64-fedora.config.${CONFIG_VER}
|
||||
)
|
||||
ppc64? (
|
||||
https://raw.githubusercontent.com/projg2/fedora-kernel-config-for-gentoo/${CONFIG_VER}/kernel-ppc64le-fedora.config
|
||||
-> kernel-ppc64le-fedora.config.${CONFIG_VER}
|
||||
)
|
||||
x86? (
|
||||
https://raw.githubusercontent.com/projg2/fedora-kernel-config-for-gentoo/${CONFIG_VER}/kernel-i686-fedora.config
|
||||
-> kernel-i686-fedora.config.${CONFIG_VER}
|
||||
)
|
||||
"
|
||||
S=${WORKDIR}/${BASE_P}
|
||||
|
||||
KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~loong ~ppc ~ppc64 ~riscv ~sparc ~x86"
|
||||
IUSE="debug hardened"
|
||||
REQUIRED_USE="
|
||||
arm? ( savedconfig )
|
||||
hppa? ( savedconfig )
|
||||
riscv? ( savedconfig )
|
||||
sparc? ( savedconfig )
|
||||
"
|
||||
|
||||
BDEPEND="
|
||||
debug? ( dev-util/pahole )
|
||||
verify-sig? ( >=sec-keys/openpgp-keys-kernel-20250702 )
|
||||
"
|
||||
PDEPEND="
|
||||
>=virtual/dist-kernel-${PV}
|
||||
"
|
||||
|
||||
QA_FLAGS_IGNORED="
|
||||
usr/src/linux-.*/scripts/gcc-plugins/.*.so
|
||||
usr/src/linux-.*/vmlinux
|
||||
usr/src/linux-.*/arch/powerpc/kernel/vdso.*/vdso.*.so.dbg
|
||||
"
|
||||
|
||||
VERIFY_SIG_OPENPGP_KEY_PATH=/usr/share/openpgp-keys/kernel.org.asc
|
||||
|
||||
src_unpack() {
|
||||
if use verify-sig; then
|
||||
cd "${DISTDIR}" || die
|
||||
verify-sig_verify_signed_checksums \
|
||||
"linux-$(ver_cut 1).x-sha256sums-${SHA256SUM_DATE}.asc" \
|
||||
sha256 "${BASE_P}.tar.xz patch-${PV}.xz"
|
||||
cd "${WORKDIR}" || die
|
||||
fi
|
||||
|
||||
default
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
eapply "${WORKDIR}/patch-${PV}"
|
||||
default
|
||||
|
||||
local biendian=false
|
||||
|
||||
# prepare the default config
|
||||
case ${ARCH} in
|
||||
arm | hppa | loong | riscv | sparc)
|
||||
> .config || die
|
||||
;;
|
||||
amd64)
|
||||
cp "${DISTDIR}/kernel-x86_64-fedora.config.${CONFIG_VER}" .config || die
|
||||
;;
|
||||
arm64)
|
||||
cp "${DISTDIR}/kernel-aarch64-fedora.config.${CONFIG_VER}" .config || die
|
||||
biendian=true
|
||||
;;
|
||||
ppc)
|
||||
# assume powermac/powerbook defconfig
|
||||
# we still package.use.force savedconfig
|
||||
cp "${WORKDIR}/${BASE_P}/arch/powerpc/configs/pmac32_defconfig" .config || die
|
||||
;;
|
||||
ppc64)
|
||||
cp "${DISTDIR}/kernel-ppc64le-fedora.config.${CONFIG_VER}" .config || die
|
||||
biendian=true
|
||||
;;
|
||||
x86)
|
||||
cp "${DISTDIR}/kernel-i686-fedora.config.${CONFIG_VER}" .config || die
|
||||
;;
|
||||
*)
|
||||
die "Unsupported arch ${ARCH}"
|
||||
;;
|
||||
esac
|
||||
|
||||
local myversion="-dist"
|
||||
use hardened && myversion+="-hardened"
|
||||
echo "CONFIG_LOCALVERSION=\"${myversion}\"" > "${T}"/version.config || die
|
||||
local dist_conf_path="${WORKDIR}/gentoo-kernel-config-${GENTOO_CONFIG_VER}"
|
||||
|
||||
local merge_configs=(
|
||||
"${T}"/version.config
|
||||
"${dist_conf_path}"/base.config
|
||||
)
|
||||
use debug || merge_configs+=(
|
||||
"${dist_conf_path}"/no-debug.config
|
||||
)
|
||||
if use hardened; then
|
||||
merge_configs+=( "${dist_conf_path}"/hardened-base.config )
|
||||
|
||||
tc-is-gcc && merge_configs+=( "${dist_conf_path}"/hardened-gcc-plugins.config )
|
||||
|
||||
if [[ -f "${dist_conf_path}/hardened-${ARCH}.config" ]]; then
|
||||
merge_configs+=( "${dist_conf_path}/hardened-${ARCH}.config" )
|
||||
fi
|
||||
fi
|
||||
|
||||
# this covers ppc64 and aarch64_be only for now
|
||||
if [[ ${biendian} == true && $(tc-endian) == big ]]; then
|
||||
merge_configs+=( "${dist_conf_path}/big-endian.config" )
|
||||
fi
|
||||
|
||||
use secureboot && merge_configs+=(
|
||||
"${dist_conf_path}/secureboot.config"
|
||||
"${dist_conf_path}/zboot.config"
|
||||
)
|
||||
|
||||
kernel-build_merge_configs "${merge_configs[@]}"
|
||||
}
|
||||
@@ -1,156 +0,0 @@
|
||||
# Copyright 2020-2025 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
KERNEL_IUSE_GENERIC_UKI=1
|
||||
KERNEL_IUSE_MODULES_SIGN=1
|
||||
|
||||
inherit kernel-build toolchain-funcs verify-sig
|
||||
|
||||
BASE_P=linux-${PV%.*}
|
||||
# https://koji.fedoraproject.org/koji/packageinfo?packageID=8
|
||||
# forked to https://github.com/projg2/fedora-kernel-config-for-gentoo
|
||||
CONFIG_VER=6.6.12-gentoo
|
||||
GENTOO_CONFIG_VER=g17
|
||||
SHA256SUM_DATE=20251006
|
||||
|
||||
DESCRIPTION="Linux kernel built from vanilla upstream sources"
|
||||
HOMEPAGE="
|
||||
https://wiki.gentoo.org/wiki/Project:Distribution_Kernel
|
||||
https://www.kernel.org/
|
||||
"
|
||||
SRC_URI+="
|
||||
https://cdn.kernel.org/pub/linux/kernel/v$(ver_cut 1).x/${BASE_P}.tar.xz
|
||||
https://cdn.kernel.org/pub/linux/kernel/v$(ver_cut 1).x/patch-${PV}.xz
|
||||
https://github.com/projg2/gentoo-kernel-config/archive/${GENTOO_CONFIG_VER}.tar.gz
|
||||
-> gentoo-kernel-config-${GENTOO_CONFIG_VER}.tar.gz
|
||||
verify-sig? (
|
||||
https://cdn.kernel.org/pub/linux/kernel/v$(ver_cut 1).x/sha256sums.asc
|
||||
-> linux-$(ver_cut 1).x-sha256sums-${SHA256SUM_DATE}.asc
|
||||
)
|
||||
amd64? (
|
||||
https://raw.githubusercontent.com/projg2/fedora-kernel-config-for-gentoo/${CONFIG_VER}/kernel-x86_64-fedora.config
|
||||
-> kernel-x86_64-fedora.config.${CONFIG_VER}
|
||||
)
|
||||
arm64? (
|
||||
https://raw.githubusercontent.com/projg2/fedora-kernel-config-for-gentoo/${CONFIG_VER}/kernel-aarch64-fedora.config
|
||||
-> kernel-aarch64-fedora.config.${CONFIG_VER}
|
||||
)
|
||||
ppc64? (
|
||||
https://raw.githubusercontent.com/projg2/fedora-kernel-config-for-gentoo/${CONFIG_VER}/kernel-ppc64le-fedora.config
|
||||
-> kernel-ppc64le-fedora.config.${CONFIG_VER}
|
||||
)
|
||||
x86? (
|
||||
https://raw.githubusercontent.com/projg2/fedora-kernel-config-for-gentoo/${CONFIG_VER}/kernel-i686-fedora.config
|
||||
-> kernel-i686-fedora.config.${CONFIG_VER}
|
||||
)
|
||||
"
|
||||
S=${WORKDIR}/${BASE_P}
|
||||
|
||||
KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~loong ~ppc ~ppc64 ~riscv ~sparc ~x86"
|
||||
IUSE="debug hardened"
|
||||
REQUIRED_USE="
|
||||
arm? ( savedconfig )
|
||||
hppa? ( savedconfig )
|
||||
riscv? ( savedconfig )
|
||||
sparc? ( savedconfig )
|
||||
"
|
||||
|
||||
BDEPEND="
|
||||
debug? ( dev-util/pahole )
|
||||
verify-sig? ( >=sec-keys/openpgp-keys-kernel-20250702 )
|
||||
"
|
||||
PDEPEND="
|
||||
>=virtual/dist-kernel-${PV}
|
||||
"
|
||||
|
||||
QA_FLAGS_IGNORED="
|
||||
usr/src/linux-.*/scripts/gcc-plugins/.*.so
|
||||
usr/src/linux-.*/vmlinux
|
||||
usr/src/linux-.*/arch/powerpc/kernel/vdso.*/vdso.*.so.dbg
|
||||
"
|
||||
|
||||
VERIFY_SIG_OPENPGP_KEY_PATH=/usr/share/openpgp-keys/kernel.org.asc
|
||||
|
||||
src_unpack() {
|
||||
if use verify-sig; then
|
||||
cd "${DISTDIR}" || die
|
||||
verify-sig_verify_signed_checksums \
|
||||
"linux-$(ver_cut 1).x-sha256sums-${SHA256SUM_DATE}.asc" \
|
||||
sha256 "${BASE_P}.tar.xz patch-${PV}.xz"
|
||||
cd "${WORKDIR}" || die
|
||||
fi
|
||||
|
||||
default
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
eapply "${WORKDIR}/patch-${PV}"
|
||||
default
|
||||
|
||||
local biendian=false
|
||||
|
||||
# prepare the default config
|
||||
case ${ARCH} in
|
||||
arm | hppa | loong | riscv | sparc)
|
||||
> .config || die
|
||||
;;
|
||||
amd64)
|
||||
cp "${DISTDIR}/kernel-x86_64-fedora.config.${CONFIG_VER}" .config || die
|
||||
;;
|
||||
arm64)
|
||||
cp "${DISTDIR}/kernel-aarch64-fedora.config.${CONFIG_VER}" .config || die
|
||||
biendian=true
|
||||
;;
|
||||
ppc)
|
||||
# assume powermac/powerbook defconfig
|
||||
# we still package.use.force savedconfig
|
||||
cp "${WORKDIR}/${BASE_P}/arch/powerpc/configs/pmac32_defconfig" .config || die
|
||||
;;
|
||||
ppc64)
|
||||
cp "${DISTDIR}/kernel-ppc64le-fedora.config.${CONFIG_VER}" .config || die
|
||||
biendian=true
|
||||
;;
|
||||
x86)
|
||||
cp "${DISTDIR}/kernel-i686-fedora.config.${CONFIG_VER}" .config || die
|
||||
;;
|
||||
*)
|
||||
die "Unsupported arch ${ARCH}"
|
||||
;;
|
||||
esac
|
||||
|
||||
local myversion="-dist"
|
||||
use hardened && myversion+="-hardened"
|
||||
echo "CONFIG_LOCALVERSION=\"${myversion}\"" > "${T}"/version.config || die
|
||||
local dist_conf_path="${WORKDIR}/gentoo-kernel-config-${GENTOO_CONFIG_VER}"
|
||||
|
||||
local merge_configs=(
|
||||
"${T}"/version.config
|
||||
"${dist_conf_path}"/base.config
|
||||
)
|
||||
use debug || merge_configs+=(
|
||||
"${dist_conf_path}"/no-debug.config
|
||||
)
|
||||
if use hardened; then
|
||||
merge_configs+=( "${dist_conf_path}"/hardened-base.config )
|
||||
|
||||
tc-is-gcc && merge_configs+=( "${dist_conf_path}"/hardened-gcc-plugins.config )
|
||||
|
||||
if [[ -f "${dist_conf_path}/hardened-${ARCH}.config" ]]; then
|
||||
merge_configs+=( "${dist_conf_path}/hardened-${ARCH}.config" )
|
||||
fi
|
||||
fi
|
||||
|
||||
# this covers ppc64 and aarch64_be only for now
|
||||
if [[ ${biendian} == true && $(tc-endian) == big ]]; then
|
||||
merge_configs+=( "${dist_conf_path}/big-endian.config" )
|
||||
fi
|
||||
|
||||
use secureboot && merge_configs+=(
|
||||
"${dist_conf_path}/secureboot.config"
|
||||
"${dist_conf_path}/zboot.config"
|
||||
)
|
||||
|
||||
kernel-build_merge_configs "${merge_configs[@]}"
|
||||
}
|
||||
@@ -1,156 +0,0 @@
|
||||
# Copyright 2020-2025 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
KERNEL_IUSE_GENERIC_UKI=1
|
||||
KERNEL_IUSE_MODULES_SIGN=1
|
||||
|
||||
inherit kernel-build toolchain-funcs verify-sig
|
||||
|
||||
BASE_P=linux-${PV%.*}
|
||||
# https://koji.fedoraproject.org/koji/packageinfo?packageID=8
|
||||
# forked to https://github.com/projg2/fedora-kernel-config-for-gentoo
|
||||
CONFIG_VER=6.6.12-gentoo
|
||||
GENTOO_CONFIG_VER=g17
|
||||
SHA256SUM_DATE=20251012
|
||||
|
||||
DESCRIPTION="Linux kernel built from vanilla upstream sources"
|
||||
HOMEPAGE="
|
||||
https://wiki.gentoo.org/wiki/Project:Distribution_Kernel
|
||||
https://www.kernel.org/
|
||||
"
|
||||
SRC_URI+="
|
||||
https://cdn.kernel.org/pub/linux/kernel/v$(ver_cut 1).x/${BASE_P}.tar.xz
|
||||
https://cdn.kernel.org/pub/linux/kernel/v$(ver_cut 1).x/patch-${PV}.xz
|
||||
https://github.com/projg2/gentoo-kernel-config/archive/${GENTOO_CONFIG_VER}.tar.gz
|
||||
-> gentoo-kernel-config-${GENTOO_CONFIG_VER}.tar.gz
|
||||
verify-sig? (
|
||||
https://cdn.kernel.org/pub/linux/kernel/v$(ver_cut 1).x/sha256sums.asc
|
||||
-> linux-$(ver_cut 1).x-sha256sums-${SHA256SUM_DATE}.asc
|
||||
)
|
||||
amd64? (
|
||||
https://raw.githubusercontent.com/projg2/fedora-kernel-config-for-gentoo/${CONFIG_VER}/kernel-x86_64-fedora.config
|
||||
-> kernel-x86_64-fedora.config.${CONFIG_VER}
|
||||
)
|
||||
arm64? (
|
||||
https://raw.githubusercontent.com/projg2/fedora-kernel-config-for-gentoo/${CONFIG_VER}/kernel-aarch64-fedora.config
|
||||
-> kernel-aarch64-fedora.config.${CONFIG_VER}
|
||||
)
|
||||
ppc64? (
|
||||
https://raw.githubusercontent.com/projg2/fedora-kernel-config-for-gentoo/${CONFIG_VER}/kernel-ppc64le-fedora.config
|
||||
-> kernel-ppc64le-fedora.config.${CONFIG_VER}
|
||||
)
|
||||
x86? (
|
||||
https://raw.githubusercontent.com/projg2/fedora-kernel-config-for-gentoo/${CONFIG_VER}/kernel-i686-fedora.config
|
||||
-> kernel-i686-fedora.config.${CONFIG_VER}
|
||||
)
|
||||
"
|
||||
S=${WORKDIR}/${BASE_P}
|
||||
|
||||
KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~loong ~ppc ~ppc64 ~riscv ~sparc ~x86"
|
||||
IUSE="debug hardened"
|
||||
REQUIRED_USE="
|
||||
arm? ( savedconfig )
|
||||
hppa? ( savedconfig )
|
||||
riscv? ( savedconfig )
|
||||
sparc? ( savedconfig )
|
||||
"
|
||||
|
||||
BDEPEND="
|
||||
debug? ( dev-util/pahole )
|
||||
verify-sig? ( >=sec-keys/openpgp-keys-kernel-20250702 )
|
||||
"
|
||||
PDEPEND="
|
||||
>=virtual/dist-kernel-${PV}
|
||||
"
|
||||
|
||||
QA_FLAGS_IGNORED="
|
||||
usr/src/linux-.*/scripts/gcc-plugins/.*.so
|
||||
usr/src/linux-.*/vmlinux
|
||||
usr/src/linux-.*/arch/powerpc/kernel/vdso.*/vdso.*.so.dbg
|
||||
"
|
||||
|
||||
VERIFY_SIG_OPENPGP_KEY_PATH=/usr/share/openpgp-keys/kernel.org.asc
|
||||
|
||||
src_unpack() {
|
||||
if use verify-sig; then
|
||||
cd "${DISTDIR}" || die
|
||||
verify-sig_verify_signed_checksums \
|
||||
"linux-$(ver_cut 1).x-sha256sums-${SHA256SUM_DATE}.asc" \
|
||||
sha256 "${BASE_P}.tar.xz patch-${PV}.xz"
|
||||
cd "${WORKDIR}" || die
|
||||
fi
|
||||
|
||||
default
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
eapply "${WORKDIR}/patch-${PV}"
|
||||
default
|
||||
|
||||
local biendian=false
|
||||
|
||||
# prepare the default config
|
||||
case ${ARCH} in
|
||||
arm | hppa | loong | riscv | sparc)
|
||||
> .config || die
|
||||
;;
|
||||
amd64)
|
||||
cp "${DISTDIR}/kernel-x86_64-fedora.config.${CONFIG_VER}" .config || die
|
||||
;;
|
||||
arm64)
|
||||
cp "${DISTDIR}/kernel-aarch64-fedora.config.${CONFIG_VER}" .config || die
|
||||
biendian=true
|
||||
;;
|
||||
ppc)
|
||||
# assume powermac/powerbook defconfig
|
||||
# we still package.use.force savedconfig
|
||||
cp "${WORKDIR}/${BASE_P}/arch/powerpc/configs/pmac32_defconfig" .config || die
|
||||
;;
|
||||
ppc64)
|
||||
cp "${DISTDIR}/kernel-ppc64le-fedora.config.${CONFIG_VER}" .config || die
|
||||
biendian=true
|
||||
;;
|
||||
x86)
|
||||
cp "${DISTDIR}/kernel-i686-fedora.config.${CONFIG_VER}" .config || die
|
||||
;;
|
||||
*)
|
||||
die "Unsupported arch ${ARCH}"
|
||||
;;
|
||||
esac
|
||||
|
||||
local myversion="-dist"
|
||||
use hardened && myversion+="-hardened"
|
||||
echo "CONFIG_LOCALVERSION=\"${myversion}\"" > "${T}"/version.config || die
|
||||
local dist_conf_path="${WORKDIR}/gentoo-kernel-config-${GENTOO_CONFIG_VER}"
|
||||
|
||||
local merge_configs=(
|
||||
"${T}"/version.config
|
||||
"${dist_conf_path}"/base.config
|
||||
)
|
||||
use debug || merge_configs+=(
|
||||
"${dist_conf_path}"/no-debug.config
|
||||
)
|
||||
if use hardened; then
|
||||
merge_configs+=( "${dist_conf_path}"/hardened-base.config )
|
||||
|
||||
tc-is-gcc && merge_configs+=( "${dist_conf_path}"/hardened-gcc-plugins.config )
|
||||
|
||||
if [[ -f "${dist_conf_path}/hardened-${ARCH}.config" ]]; then
|
||||
merge_configs+=( "${dist_conf_path}/hardened-${ARCH}.config" )
|
||||
fi
|
||||
fi
|
||||
|
||||
# this covers ppc64 and aarch64_be only for now
|
||||
if [[ ${biendian} == true && $(tc-endian) == big ]]; then
|
||||
merge_configs+=( "${dist_conf_path}/big-endian.config" )
|
||||
fi
|
||||
|
||||
use secureboot && merge_configs+=(
|
||||
"${dist_conf_path}/secureboot.config"
|
||||
"${dist_conf_path}/zboot.config"
|
||||
)
|
||||
|
||||
kernel-build_merge_configs "${merge_configs[@]}"
|
||||
}
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user