summaryrefslogtreecommitdiff
path: root/eclass/kernel-2.eclass
AgeCommit message (Collapse)Author
2024-07-08kernel-2.eclass: Drop reference to BUILD_FIXES variableUlrich Müller
Undocumented, and not used by any ebuilds inheriting this eclass. Signed-off-by: Ulrich Müller <ulm@gentoo.org>
2024-02-02kernel-2.eclass: add installkernel as optfeatureAndrew Ammerlaan
Signed-off-by: Andrew Ammerlaan <andrewammerlaan@gentoo.org>
2024-02-01kernel-2.eclass: require real bison & flexSam James
This reverts commit 57a9b506597e766521a5633898d33fef125ecd5b and commit bd3dc0379262bedb0bb301df1b9c82442835be3e. GNU Bison is at least needed, unclear about flex vs reflex, but let's say flex for now as the kernel docs say it (most of the time, reflex does work in place of flex, but not checked so let's be safe). Closes: https://bugs.gentoo.org/922823 Signed-off-by: Sam James <sam@gentoo.org>
2024-01-13Move {sys-devel → dev-build}/makeMichał Górny
Signed-off-by: Michał Górny <mgorny@gentoo.org>
2024-01-08kernel-2.eclass: sys-devel/bison -> app-alternatives/yaccSam James
All of these will be using app-alternatives/yacc anyway as they're not unsetting YACC or LEX, so make the dep reflect reality. (Included both YACC and LEX out of conservatism.) Signed-off-by: Sam James <sam@gentoo.org>
2024-01-08kernel-2.eclass: sys-devel/flex -> app-alternatives/lexSam James
All of these will be using app-alternatives/lex anyway as they're not unsetting YACC or LEX, so make the dep reflect reality. (Included both YACC and LEX out of conservatism.) Signed-off-by: Sam James <sam@gentoo.org>
2024-01-08kernel-2.eclass: app-arch/cpio -> app-alternatives/cpioSam James
All of these will be using app-alternatives/cpio anyway as they're not calling gcpio, so make the dep reflect reality. Signed-off-by: Sam James <sam@gentoo.org>
2024-01-08kernel-2.eclass: sys-devel/bc -> app-alternatives/bcSam James
All of these will be using app-alternatives/bc anyway as they're not calling bc-reference, so make the dep reflect reality. Signed-off-by: Sam James <sam@gentoo.org>
2023-10-19kernel-2.eclass: Allow ebuilds to set their own SLOTMike Pagano
Signed-off-by: Mike Pagano <mpagano@gentoo.org>
2023-09-14kernel-2.eclass: fix Unquoted VariableArthur Zamarin
Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org> Signed-off-by: Michał Górny <mgorny@gentoo.org>
2023-08-29kernel-2.eclass: move ppc64 hack before crossdev inheritAlfred Persson Forsberg
Closes: https://bugs.gentoo.org/913127 Signed-off-by: Alfred Persson Forsberg <cat@catcream.org> Closes: https://github.com/gentoo/gentoo/pull/32501 Signed-off-by: Sam James <sam@gentoo.org>
2023-08-22kernel-2.eclass: Use cross.eclass for figuring out CTARGETAlfred Persson Forsberg
Use crossdev.eclass instead of manually parsing category. This makes it automatically support LLVM/Clang crossdev. Signed-off-by: Alfred Persson Forsberg <cat@catcream.org> Signed-off-by: Sam James <sam@gentoo.org>
2023-07-27kernel-2.eclass: Replace the ill-defined linux-firmware license labelUlrich Müller
Replace by "linux-fw-redistributable all-rights-reserved" which reflects usage by the linux-firmware package. This only affects kernels before 4.14. Signed-off-by: Ulrich Müller <ulm@gentoo.org>
2023-07-04kernel-2.eclass: Preserve S during installMike Pagano
Closes: https://bugs.gentoo.org/909447 Signed-off-by: Mike Pagano <mpagano@gentoo.org>
2023-03-26kernel-2.eclass: fix spellingSam James
Thanks to codespell. Signed-off-by: Sam James <sam@gentoo.org> Signed-off-by: Ulrich Müller <ulm@gentoo.org>
2023-03-26kernel-2.eclass: Quote argument of ":" commandUlrich Müller
This avoids globbing, see: https://www.shellcheck.net/wiki/SC2223 Signed-off-by: Ulrich Müller <ulm@gentoo.org>
2023-01-27kernel-2.eclass: Rename xmakeopts to more appropriate KERNEL_MAKEOPTSJames Le Cuirot
An upper-case name suggests that the variable is exported. This variable is also not just used for cross-compiling any more. Signed-off-by: James Le Cuirot <chewi@gentoo.org>
2023-01-27kernel-2.eclass: Make xmakeopts an array for spaces in toolchain varsJames Le Cuirot
Variables like CC can have spaces for additional arguments. This is particularly useful for reliably setting the sysroot. Signed-off-by: James Le Cuirot <chewi@gentoo.org>
2022-12-29kernel-2.eclass: Don't drop CPU OPT patch when CC=clangMike Pagano
Clang is supported by the CPU optimization patch. (USE=experimental) Check for CC=clang and do not drop this patch. Closes: https://bugs.gentoo.org/888727 Signed-off-by: Mike Pagano <mpagano@gentoo.org>
2022-12-27kernel-2.eclass: minor whitespace fixesSam James
Signed-off-by: Sam James <sam@gentoo.org> Signed-off-by: David Seifert <soap@gentoo.org>
2022-12-07kernel-2.eclass: remove unnecessary BDEPEND on sys-apps/sedDavid Seifert
* guaranteed by PMS Closes: https://github.com/gentoo/gentoo/pull/28550 Signed-off-by: David Seifert <soap@gentoo.org>
2022-11-10kernel-2.eclass: remove whissi from GENPATCHES_URIMike Pagano
Signed-off-by: Mike Pagano <mpagano@gentoo.org>
2022-10-13kernel-2.eclass: decompress xz in parallelSam James
No-op until >=app-arch/xz-utils-5.3.3_alpha. Recently added support for this in Portage and pkgcore too for unpacking. Signed-off-by: Sam James <sam@gentoo.org>
2022-08-07kernel-2.eclass: Force deblob-check to use awkAlice Ferrazzi
This patch remove python from the kernel-2.eclass by forcing the deblob-check script to use awk instead of python. Closes: https://bugs.gentoo.org/610008 Signed-off-by: Alice Ferrazzi <alicef@gentoo.org>
2022-05-12kernel-2.eclass: Fix func name to comply with pms, deprecate, old with deadlineMike Pagano
According to PMS certain words are reserved for package manager use and may not be used or relied upon by ebuilds. See: https://projects.gentoo.org/pms/8/pms.html#x1-13700012.3.17 Closes: https://bugs.gentoo.org/843674 Signed-off-by: Mike Pagano <mpagano@gentoo.org>
2022-04-16kernel-2.eclass: fix spellingDavid Seifert
Closes: https://github.com/gentoo/gentoo/pull/24978 Signed-off-by: David Seifert <soap@gentoo.org>
2022-04-16kernel-2.eclass: remove EAPI 6David Seifert
Signed-off-by: David Seifert <soap@gentoo.org>
2022-03-24*.eclass: @ECLASS-VARIABLE renamed to @ECLASS_VARIABLEUlrich Müller
Bug: https://bugs.gentoo.org/835396 Signed-off-by: Ulrich Müller <ulm@gentoo.org>
2022-02-20kernel-2.eclass: Document variables, minor style clean-upMike Pagano
Document variables in the eclass, reorder alphabetically. Make spacing consistent in comment lines. Closes: https://bugs.gentoo.org/833188 Signed-off-by: Mike Pagano <mpagano@gentoo.org>
2022-01-06kernel-2.eclass: fix minor OBOBJCOPY -> OBJCOPY typoAdrian Ratiu
Fixes:55f5c68c01e791c7339144aadc1f20802791551e Suggested-by: Manoj Gupta <manojgupta@chromium.org> Signed-off-by: Adrian Ratiu <adrian.ratiu@collabora.com> Signed-off-by: Georgy Yakovlev <gyakovlev@gentoo.org>
2022-01-05kernel-2.eclass: Remove duplicateMike Pagano
Signed-off-by: Mike Pagano <mpagano@gentoo.org>
2022-01-04kernel-2.eclass: Respect portage toolchain variablesAdrian Ratiu
Starting with kernel>=v5.7 the build system can override the tools vars by setting LLVM=1 [1], but older kernels still use the default GNU tools, so to be able to use a full LLVM/Clang build, CC & co should be set to their respective portage values. [1] a0d1c951ef08 kbuild: support LLVM=1 to switch the default tools to Clang/LLVM Co-authored-by: Manoj Gupta <manojgupta@chromium.org> Signed-off-by: Adrian Ratiu <adrian.ratiu@collabora.com> Closes: https://github.com/gentoo/gentoo/pull/23091 Signed-off-by: Mike Pagano <mpagano@gentoo.org>
2021-09-17kernel-2.eclass: Update PYTHON_COMPAT to drop python 3.7Alice Ferrazzi
Signed-off-by: Alice Ferrazzi <alicef@gentoo.org>
2021-09-09kernel-2.eclass: Remove < 2.6 support for kernel headersMike Pagano
The functionality removed is only to support kernels < 2.6 These kernels have long been removed from the tree Detail: Remove the function compile_headers as it is not called for kernels > 2.6.18 because that's when the build target headers_install was introduced. Remove supporting function compile_headers_tweak_config. Additionally, remove 2.6 support from install_headers. Signed-off-by: Mike Pagano <mpagano@gentoo.org>
2021-09-03kernel-2.eclass: Move EXPORT_FUNCTIONS below inheritUlrich Müller
Signed-off-by: Ulrich Müller <ulm@gentoo.org>
2021-08-30Clean deblobAlice Ferrazzi
As we are moving out to deprecate EAPI=6 from kernel-2.eclass start removing it from deblob function. Also clean code linked to old kernel versions. kernel sources that use deblob are already updated to EAPI=8 Signed-off-by: Alice Ferrazzi <alicef@gentoo.org>
2021-08-30kernel-2.eclass: Replace bit-shift arithmetic by ver_testUlrich Müller
There are kernel versions like 4.9.280, therefore shifting version components by 8 bits in kernel_is() may fail. Signed-off-by: Ulrich Müller <ulm@gentoo.org>
2021-08-27Revert "kernel-2.eclass: Replace bit-shift arithmetic by ver_test"Ulrich Müller
This reverts commit 1646e870d312060d7920869eec8416a8753724b6. Signed-off-by: Ulrich Müller <ulm@gentoo.org>
2021-08-27kernel-2.eclass: Drop useless unset of local variablesUlrich Müller
Reviewed-by: Alice Ferrazzi <alicef@gentoo.org> Signed-off-by: Ulrich Müller <ulm@gentoo.org>
2021-08-27kernel-2.eclass: Replace bit-shift arithmetic by ver_testUlrich Müller
There are kernel versions like 4.9.280, therefore shifting version components by 8 bits in kernel_is() may fail. Reviewed-by: Alice Ferrazzi <alicef@gentoo.org> Signed-off-by: Ulrich Müller <ulm@gentoo.org>
2021-08-24kernel-2.eclass: Add cpio dependencyMike Pagano
Closes: https://bugs.gentoo.org/731666 Signed-off-by: Mike Pagano <mpagano@gentoo.org>
2021-08-23kernel-2.eclass: Add deblob support only for python3Alice Ferrazzi
Closes: https://bugs.gentoo.org/744808 Signed-off-by: Alice Ferrazzi <alicef@gentoo.org>
2021-07-20kernel-2.eclass: Enable EAPI 8Mike Pagano
Closes: https://bugs.gentoo.org/802591 Signed-off-by: Mike Pagano <mpagano@gentoo.org>
2021-06-30eclass/kernel-2.eclass: Support CPU OPT Patch in kernels >= 5.13Mike Pagano
Closes: https://bugs.gentoo.org/799272 Signed-off-by: Mike Pagano <mpagano@gentoo.org>
2021-06-16eclass/kernel-2: Fix einfo/elog messagesMike Pagano
Fix einfo/elog messages to be more aligned with guidance outlined in the devmanual Closes: https://bugs.gentoo.org/795354 Reported-by: Pacho Ramos Signed-off-by: Mike Pagano <mpagano@gentoo.org>
2021-06-09eclass/kernel-2: fix USE=symlinkTill Schäfer
the symlink to /usr/src/linux is longer removed bofore linking (see 7446cb850c5e0412e4d88b3aa5d207751241fb02). the latter ln -sf does not replace existing symlinks, since destination is a directory. Closes: https://bugs.gentoo.org/795057 Signed-off-by: Till Schäfer <till2.schaefer@uni-dortmund.de> Closes: https://bugs.gentoo.org/795057 Closes: https://github.com/gentoo/gentoo/pull/21171 Signed-off-by: Mike Pagano <mpagano@gentoo.org>
2021-06-07eclass/kernel-2: respect USE=symlinkBertrand Jacquin
kernel-2 eclass postinst_sources() creates /usr/usr/linux symlink regardless of USE=symlink. MAKELINK variable controls the creation of /usr/src/linux, however MAKELINK is always set to 1 only if /usr/src/linux does not currently exist with no consideration for USE=symlink. This change simplify the whole /usr/usr/linux symlink creation to instead depend on K_SYMLINK which is set if USE=symlink. This change also refuse to remove existing /usr/usr/linux if it currently exist while not being a symlink Note that this is broken since 906501be57c0 ("adding symlink use flag support") Bug: https://bugs.gentoo.org/695592 Signed-off-by: Bertrand Jacquin <bertrand@jacquin.bzh> Closes: https://bugs.gentoo.org/695592 Closes: https://github.com/gentoo/gentoo/pull/13031 Signed-off-by: Mike Pagano <mpagano@gentoo.org>
2021-05-28kernel-2.eclass: Drop `|| die` in install_universalDavid Seifert
* Breaks unprivileged install Acked-by: Sam James <sam@gentoo.org> Signed-off-by: David Seifert <soap@gentoo.org>
2021-05-27kernel-2.eclass: drop additional unused 2.4 and 2.6 functionsDavid Michael
* Invoking maintainer timeout after 14 days. Closes: https://github.com/gentoo/gentoo/pull/20639 Signed-off-by: David Michael <fedora.dm0@gmail.com> Signed-off-by: David Seifert <soap@gentoo.org>
2021-05-27kernel-2.eclass: Remove deprecated code around 2.4, 2.6 and fbcondecorMike Pagano
Signed-off-by: Mike Pagano <mpagano@gentoo.org> Signed-off-by: David Seifert <soap@gentoo.org>