summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* kernel-2.eclass: Drop reference to BUILD_FIXES variableUlrich Müller2024-07-081-1/+1
| | | | | | Undocumented, and not used by any ebuilds inheriting this eclass. Signed-off-by: Ulrich Müller <ulm@gentoo.org>
* kernel-2.eclass: add installkernel as optfeatureAndrew Ammerlaan2024-02-021-1/+4
| | | | Signed-off-by: Andrew Ammerlaan <andrewammerlaan@gentoo.org>
* kernel-2.eclass: require real bison & flexSam James2024-02-011-2/+2
| | | | | | | | | | | | 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>
* Move {sys-devel → dev-build}/makeMichał Górny2024-01-131-1/+1
| | | | Signed-off-by: Michał Górny <mgorny@gentoo.org>
* kernel-2.eclass: sys-devel/bison -> app-alternatives/yaccSam James2024-01-081-1/+1
| | | | | | | | | 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>
* kernel-2.eclass: sys-devel/flex -> app-alternatives/lexSam James2024-01-081-1/+1
| | | | | | | | 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>
* kernel-2.eclass: app-arch/cpio -> app-alternatives/cpioSam James2024-01-081-1/+1
| | | | | | | 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>
* kernel-2.eclass: sys-devel/bc -> app-alternatives/bcSam James2024-01-081-2/+2
| | | | | | | 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>
* kernel-2.eclass: Allow ebuilds to set their own SLOTMike Pagano2023-10-191-2/+1
| | | | Signed-off-by: Mike Pagano <mpagano@gentoo.org>
* kernel-2.eclass: fix Unquoted VariableArthur Zamarin2023-09-141-1/+1
| | | | | Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org> Signed-off-by: Michał Górny <mgorny@gentoo.org>
* kernel-2.eclass: move ppc64 hack before crossdev inheritAlfred Persson Forsberg2023-08-291-5/+7
| | | | | | | 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>
* kernel-2.eclass: Use cross.eclass for figuring out CTARGETAlfred Persson Forsberg2023-08-221-6/+1
| | | | | | | | 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>
* kernel-2.eclass: Replace the ill-defined linux-firmware license labelUlrich Müller2023-07-271-2/+3
| | | | | | | | | 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>
* kernel-2.eclass: Preserve S during installMike Pagano2023-07-041-1/+1
| | | | | | Closes: https://bugs.gentoo.org/909447 Signed-off-by: Mike Pagano <mpagano@gentoo.org>
* kernel-2.eclass: fix spellingSam James2023-03-261-14/+14
| | | | | | | Thanks to codespell. Signed-off-by: Sam James <sam@gentoo.org> Signed-off-by: Ulrich Müller <ulm@gentoo.org>
* kernel-2.eclass: Quote argument of ":" commandUlrich Müller2023-03-261-2/+2
| | | | | | This avoids globbing, see: https://www.shellcheck.net/wiki/SC2223 Signed-off-by: Ulrich Müller <ulm@gentoo.org>
* kernel-2.eclass: Rename xmakeopts to more appropriate KERNEL_MAKEOPTSJames Le Cuirot2023-01-271-12/+13
| | | | | | | 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>
* kernel-2.eclass: Make xmakeopts an array for spaces in toolchain varsJames Le Cuirot2023-01-271-6/+15
| | | | | | | 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>
* kernel-2.eclass: Don't drop CPU OPT patch when CC=clangMike Pagano2022-12-291-1/+1
| | | | | | | | | 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>
* kernel-2.eclass: minor whitespace fixesSam James2022-12-271-16/+16
| | | | | Signed-off-by: Sam James <sam@gentoo.org> Signed-off-by: David Seifert <soap@gentoo.org>
* kernel-2.eclass: remove unnecessary BDEPEND on sys-apps/sedDavid Seifert2022-12-071-1/+0
| | | | | | | * guaranteed by PMS Closes: https://github.com/gentoo/gentoo/pull/28550 Signed-off-by: David Seifert <soap@gentoo.org>
* kernel-2.eclass: remove whissi from GENPATCHES_URIMike Pagano2022-11-101-1/+1
| | | | Signed-off-by: Mike Pagano <mpagano@gentoo.org>
* kernel-2.eclass: decompress xz in parallelSam James2022-10-131-2/+2
| | | | | | | 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>
* kernel-2.eclass: Force deblob-check to use awkAlice Ferrazzi2022-08-071-11/+3
| | | | | | | | | | 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>
* kernel-2.eclass: Fix func name to comply with pms, deprecate, old with deadlineMike Pagano2022-05-121-1/+10
| | | | | | | | | | | 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>
* kernel-2.eclass: fix spellingDavid Seifert2022-04-161-2/+2
| | | | | Closes: https://github.com/gentoo/gentoo/pull/24978 Signed-off-by: David Seifert <soap@gentoo.org>
* kernel-2.eclass: remove EAPI 6David Seifert2022-04-161-14/+12
| | | | Signed-off-by: David Seifert <soap@gentoo.org>
* *.eclass: @ECLASS-VARIABLE renamed to @ECLASS_VARIABLEUlrich Müller2022-03-241-43/+43
| | | | | Bug: https://bugs.gentoo.org/835396 Signed-off-by: Ulrich Müller <ulm@gentoo.org>
* kernel-2.eclass: Document variables, minor style clean-upMike Pagano2022-02-201-80/+163
| | | | | | | | | 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>
* kernel-2.eclass: fix minor OBOBJCOPY -> OBJCOPY typoAdrian Ratiu2022-01-061-1/+1
| | | | | | | 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>
* kernel-2.eclass: Remove duplicateMike Pagano2022-01-051-1/+1
| | | | Signed-off-by: Mike Pagano <mpagano@gentoo.org>
* kernel-2.eclass: Respect portage toolchain variablesAdrian Ratiu2022-01-041-1/+1
| | | | | | | | | | | | | | 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>
* kernel-2.eclass: Update PYTHON_COMPAT to drop python 3.7Alice Ferrazzi2021-09-171-1/+1
| | | | Signed-off-by: Alice Ferrazzi <alicef@gentoo.org>
* kernel-2.eclass: Remove < 2.6 support for kernel headersMike Pagano2021-09-091-107/+5
| | | | | | | | | | | | | | 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>
* kernel-2.eclass: Move EXPORT_FUNCTIONS below inheritUlrich Müller2021-09-031-6/+8
| | | | Signed-off-by: Ulrich Müller <ulm@gentoo.org>
* Clean deblobAlice Ferrazzi2021-08-301-11/+0
| | | | | | | | | 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>
* kernel-2.eclass: Replace bit-shift arithmetic by ver_testUlrich Müller2021-08-301-4/+5
| | | | | | | 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>
* Revert "kernel-2.eclass: Replace bit-shift arithmetic by ver_test"Ulrich Müller2021-08-271-5/+4
| | | | | | This reverts commit 1646e870d312060d7920869eec8416a8753724b6. Signed-off-by: Ulrich Müller <ulm@gentoo.org>
* kernel-2.eclass: Drop useless unset of local variablesUlrich Müller2021-08-271-1/+0
| | | | | Reviewed-by: Alice Ferrazzi <alicef@gentoo.org> Signed-off-by: Ulrich Müller <ulm@gentoo.org>
* kernel-2.eclass: Replace bit-shift arithmetic by ver_testUlrich Müller2021-08-271-4/+5
| | | | | | | | 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>
* kernel-2.eclass: Add cpio dependencyMike Pagano2021-08-241-0/+1
| | | | | | Closes: https://bugs.gentoo.org/731666 Signed-off-by: Mike Pagano <mpagano@gentoo.org>
* kernel-2.eclass: Add deblob support only for python3Alice Ferrazzi2021-08-231-1/+5
| | | | | | Closes: https://bugs.gentoo.org/744808 Signed-off-by: Alice Ferrazzi <alicef@gentoo.org>
* kernel-2.eclass: Enable EAPI 8Mike Pagano2021-07-201-2/+2
| | | | | | Closes: https://bugs.gentoo.org/802591 Signed-off-by: Mike Pagano <mpagano@gentoo.org>
* eclass/kernel-2.eclass: Support CPU OPT Patch in kernels >= 5.13Mike Pagano2021-06-301-1/+2
| | | | | | Closes: https://bugs.gentoo.org/799272 Signed-off-by: Mike Pagano <mpagano@gentoo.org>
* eclass/kernel-2: Fix einfo/elog messagesMike Pagano2021-06-161-4/+4
| | | | | | | | | | 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>
* eclass/kernel-2: fix USE=symlinkTill Schäfer2021-06-091-1/+1
| | | | | | | | | | | | | 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>
* eclass/kernel-2: respect USE=symlinkBertrand Jacquin2021-06-071-9/+3
| | | | | | | | | | | | | | | | | | | | | | | 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>
* kernel-2.eclass: Drop `|| die` in install_universalDavid Seifert2021-05-281-2/+2
| | | | | | | * Breaks unprivileged install Acked-by: Sam James <sam@gentoo.org> Signed-off-by: David Seifert <soap@gentoo.org>
* kernel-2.eclass: drop additional unused 2.4 and 2.6 functionsDavid Michael2021-05-271-16/+0
| | | | | | | | * 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>
* kernel-2.eclass: Remove deprecated code around 2.4, 2.6 and fbcondecorMike Pagano2021-05-271-70/+0
| | | | | Signed-off-by: Mike Pagano <mpagano@gentoo.org> Signed-off-by: David Seifert <soap@gentoo.org>